Lines Matching defs:tmpdir
1973 static char *tmpdir = NULL;
1975 if (!tmpdir) {
1982 tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U" _PATH_TMP "}/", VAR_GLOBAL, 0);
1983 if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) {
1984 free(tmpdir);
1985 tmpdir = bmake_strdup(_PATH_TMP);
1988 return tmpdir;
1999 static char *tmpdir = NULL;
2005 if (!tmpdir)
2006 tmpdir = getTmpdir();
2010 snprintf(tfile, sizeof(tfile), "%s%s", tmpdir, pattern);