Lines Matching refs:path
45 mkstemps(char *path, int slen)
49 return (_gettemp(path, &fd, 0, slen) ? fd : -1);
53 mkstemp(char *path)
57 return (_gettemp(path, &fd, 0, 0) ? fd : -1);
61 mkdtemp(char *path)
63 return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL);
69 _mktemp(char *path)
71 return(_gettemp(path, (int *)NULL, 0, 0) ? path : (char *)NULL);
78 mktemp(char *path)
80 return(_mktemp(path));
85 _gettemp(char *path, int *doopen, int domkdir, int slen)
97 for (trv = path; *trv; ++trv)
102 if (trv < path) {
107 while (trv >= path && *trv == 'X' && pid != 0) {
111 while (trv >= path && *trv == 'X') {
129 if (trv <= path)
133 rval = stat(path, &sbuf);
149 open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
154 if (mkdir(path, 0700) == 0)
158 } else if (lstat(path, &sbuf))