Lines Matching defs:tmpdir
150 const char *tmpdir;
164 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
165 tmpdir = _PATH_TMP;
166 for (i = strlen(tmpdir) - 1; i > 0 && tmpdir[i] == '/'; i--)
169 if (asprintf(&TMPOUTNAME, "%.*s/patchoXXXXXXXXXX", i, tmpdir) == -1)
175 if (asprintf(&TMPINNAME, "%.*s/patchiXXXXXXXXXX", i, tmpdir) == -1)
181 if (asprintf(&TMPREJNAME, "%.*s/patchrXXXXXXXXXX", i, tmpdir) == -1)
187 if (asprintf(&TMPPATNAME, "%.*s/patchpXXXXXXXXXX", i, tmpdir) == -1)