Home | History | Annotate | Download | only in patch

Lines Matching defs:tmpdir

158 	const	char *tmpdir;
171 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
172 tmpdir = _PATH_TMP;
173 for (i = strlen(tmpdir) - 1; i > 0 && tmpdir[i] == '/'; i--)
176 if (asprintf(&TMPOUTNAME, "%.*s/patchoXXXXXXXXXX", i, tmpdir) == -1)
182 if (asprintf(&TMPINNAME, "%.*s/patchiXXXXXXXXXX", i, tmpdir) == -1)
188 if (asprintf(&TMPREJNAME, "%.*s/patchrXXXXXXXXXX", i, tmpdir) == -1)
194 if (asprintf(&TMPPATNAME, "%.*s/patchpXXXXXXXXXX", i, tmpdir) == -1)