Lines Matching defs:tmpdir
1899 static char *tmpdir = NULL;
1901 if (!tmpdir) {
1908 tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U" _PATH_TMP "}/", VAR_GLOBAL, 0);
1909 if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) {
1910 free(tmpdir);
1911 tmpdir = bmake_strdup(_PATH_TMP);
1914 return tmpdir;
1925 static char *tmpdir = NULL;
1931 if (!tmpdir)
1932 tmpdir = getTmpdir();
1936 snprintf(tfile, sizeof(tfile), "%s%s", tmpdir, pattern);