Lines Matching defs:tfile
2195 * If tfile is provided, set it to a copy of the filename created.
2199 mkTempFile(const char *pattern, char *tfile, size_t tfile_sz)
2209 if (tfile == NULL) {
2210 tfile = tbuf;
2215 snprintf(tfile, tfile_sz, "%s", pattern);
2217 snprintf(tfile, tfile_sz, "%s%s", tmpdir, pattern);
2219 if ((fd = mkstemp(tfile)) < 0)
2220 Punt("Could not create temporary file %s: %s", tfile,
2222 if (tfile == tbuf)
2223 unlink(tfile); /* we just want the descriptor */