Searched defs:fdp (Results 1 - 5 of 5) sorted by relevance

/ast/src/lib/libast/path/
H A Dpathtmp.c35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) argument
40 return pathtemp(buf, len, dir, pfx, fdp);
H A Dpathtemp.c49 * if fdp!=0 then the path is opened O_EXCL and *fdp is the open fd
102 pathtemp(char* buf, size_t len, const char* dir, const char* pfx, int* fdp) argument
323 if (fdp)
327 *fdp = n;
/ast/src/lib/libast/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) argument
67 if (!pathtemp(buf, len, d, s, fdp))
/ast/src/lib/libcmd/
H A Dmktemp.c75 int* fdp = &fd; local
87 fdp = 0;
108 fdp = 0;
128 mode = (fdp ? (S_IRUSR|S_IWUSR) : S_IRWXU) & ~mask;
146 if (!pathtemp(path, sizeof(path), dir, pfx, fdp))
154 if (fdp || unsafe || !mkdir(path, mode))
156 if (fdp)
157 close(*fdp);
/ast/src/cmd/kshlib/open/
H A Dopen.c458 struct filedata *fdp; local
528 fdp = (struct filedata*)np->nvalue;
530 fdp->statb = statb;
532 fstat(fd,&fdp->statb);
533 fdp->fd = fd;
534 fdp->name = strdup(argv[1]);

Completed in 200 milliseconds