Home | History | Annotate | Download | only in lib

Lines Matching full:tmpl

119    P_tmpdir, /tmp that exists.  Copies into TMPL a template suitable
122 enough space in TMPL. */
124 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
176 sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx);
185 /* Generate a temporary file name based on TMPL. TMPL must match the
187 does not exist at the time of the call to __gen_tempname. TMPL is
200 __gen_tempname (char *tmpl, int kind)
227 len = strlen (tmpl);
228 if (len < 6 || strcmp (&tmpl[len - 6], "XXXXXX"))
235 XXXXXX = &tmpl[len - 6];
269 fd = small_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
273 fd = large_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
277 fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
285 if (__lxstat64 (_STAT_VER, tmpl, &st) < 0)