Lines Matching defs:tfile
2182 * If tfile is provided, set it to a copy of the filename created.
2186 mkTempFile(const char *pattern, char *tfile, size_t tfile_sz)
2196 if (tfile == NULL) {
2197 tfile = tbuf;
2202 snprintf(tfile, tfile_sz, "%s", pattern);
2204 snprintf(tfile, tfile_sz, "%s%s", tmpdir, pattern);
2206 if ((fd = mkstemp(tfile)) < 0)
2207 Punt("mkstemp %s: %s", tfile, strerror(errno));
2208 if (tfile == tbuf)
2209 unlink(tfile); /* we just want the descriptor */