Searched refs:openfile (Results 1 - 6 of 6) sorted by relevance

/ast/src/lib/libcmd/
H A Dcksum.c149 openfile(const char* path, const char* mode) function
164 * close an openfile() stream
306 if (sp = openfile(file, "rb"))
412 if (sp = openfile(file, state->check ? "rt" : "rb"))
578 if (sp = openfile(file, "rt"))
584 else if (sp = openfile(NiL, "rt"))
604 if (sp = openfile(ent->fts_accpath, "rb"))
/ast/src/cmd/nmake/
H A Dmisc.c40 if (internal.openfile)
42 internal.openfile = 0;
78 internal.openfile = name;
79 if (res && resolve(internal.openfile, internal.openfd, O_RDONLY))
86 internal.openfile = 0;
H A Dmake.h105 #define ropen(f,m) ((f)==internal.openfile?(internal.openfile=0,internal.openfd):open(f,m))
106 #define rsfopen(f) ((f)==internal.openfile?(internal.openfile=0,sfnew(NiL,NiL,SF_UNBOUND,internal.openfd,SF_READ)):sfopen(NiL,f,"re"))
650 char* openfile; /* bind()-scan() optimization */ member in struct:Internal_s
H A Dbind.c1428 if (internal.openfile)
1429 internal.openfile = r->name;
1471 if (internal.openfile && st.st_mode)
1472 internal.openfile = x->name;
1491 if (internal.openfile && st.st_mode)
1492 internal.openfile = r->name;
H A Dcommand.c685 if (internal.openfile)
752 if (internal.openfile)
754 if ((state.test & 0x00020000) && internal.openfile)
757 internal.openfile = 0;
H A Doption.c2094 if (internal.openfile)

Completed in 33 milliseconds