Lines Matching refs:tmpdir
197 ck_mkstemp (p_filename, tmpdir, base)
199 char *base, *tmpdir;
206 if (tmpdir == NULL)
207 tmpdir = getenv("TMPDIR");
208 if (tmpdir == NULL)
210 tmpdir = getenv("TMP");
211 if (tmpdir == NULL)
213 tmpdir = P_tmpdir;
215 tmpdir = "/tmp";
219 template = xmalloc (strlen (tmpdir) + strlen (base) + 8);
220 sprintf (template, "%s/%sXXXXXX", tmpdir, base);