Lines Matching refs:tmpl
135 int __path_search(char *tmpl, size_t tmpl_len, const char *dir,
137 int __gen_tempname(char *tmpl, int kind);
155 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, in __path_search() argument
207 sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); in __path_search()
230 __gen_tempname (char *tmpl, int kind) in __gen_tempname() argument
253 len = strlen (tmpl); in __gen_tempname()
254 if (len < 6 || strcmp (&tmpl[len - 6], "XXXXXX")) in __gen_tempname()
261 XXXXXX = &tmpl[len - 6]; in __gen_tempname()
300 fd = open(tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in __gen_tempname()
304 fd = mkdir(tmpl, S_IRUSR | S_IWUSR | S_IXUSR); in __gen_tempname()
312 if (stat(tmpl, &st) < 0) in __gen_tempname()