Lines Matching refs:tmpl
112 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, in __path_search() argument
164 sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); in __path_search()
175 try_file (char *tmpl, void *flags) in try_file() argument
178 return __open (tmpl, in try_file()
184 try_dir (char *tmpl, void *flags _GL_UNUSED) in try_dir() argument
186 return __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR); in try_dir()
190 try_nocreate (char *tmpl, void *flags _GL_UNUSED) in try_nocreate() argument
194 if (__lstat64_time64 (tmpl, &st) == 0 || errno == EOVERFLOW) in try_nocreate()
221 gen_tempname_len (char *tmpl, int suffixlen, int flags, int kind, in gen_tempname_len() argument
230 return try_tempname_len (tmpl, suffixlen, &flags, tryfunc[kind], in gen_tempname_len()
238 try_tempname_len (char *tmpl, int suffixlen, void *args, in try_tempname_len() argument
285 len = strlen (tmpl); in try_tempname_len()
287 || strspn (&tmpl[len - x_suffix_len - suffixlen], "X") < x_suffix_len) in try_tempname_len()
294 XXXXXX = &tmpl[len - x_suffix_len - suffixlen]; in try_tempname_len()
317 fd = tryfunc (tmpl, args); in try_tempname_len()
333 __gen_tempname (char *tmpl, int suffixlen, int flags, int kind) in __gen_tempname() argument
335 return gen_tempname_len (tmpl, suffixlen, flags, kind, 6); in __gen_tempname()
340 try_tempname (char *tmpl, int suffixlen, void *args, in try_tempname() argument
343 return try_tempname_len (tmpl, suffixlen, args, tryfunc, 6); in try_tempname()