Lines Matching defs:tmpdir
157 const char *tmpdir;
165 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
166 tmpdir = _PATH_TMP;
167 for (i = strlen(tmpdir) - 1; i > 0 && tmpdir[i] == '/'; i--)
170 if (asprintf(&TMPOUTNAME, "%.*s/patchoXXXXXXXXXX", i, tmpdir) == -1)
176 if (asprintf(&TMPINNAME, "%.*s/patchiXXXXXXXXXX", i, tmpdir) == -1)
182 if (asprintf(&TMPREJNAME, "%.*s/patchrXXXXXXXXXX", i, tmpdir) == -1)
188 if (asprintf(&TMPPATNAME, "%.*s/patchpXXXXXXXXXX", i, tmpdir) == -1)