Lines Matching defs:tmpdir
2109 static char *tmpdir = NULL;
2111 if (!tmpdir) {
2118 tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U" _PATH_TMP "}/", VAR_GLOBAL,
2120 if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) {
2121 free(tmpdir);
2122 tmpdir = bmake_strdup(_PATH_TMP);
2125 return tmpdir;
2136 static char *tmpdir = NULL;
2142 if (!tmpdir)
2143 tmpdir = getTmpdir();
2147 snprintf(tfile, sizeof(tfile), "%s%s", tmpdir, pattern);