Lines Matching defs:tfile
2211 * If tfile is provided, set it to a copy of the filename created.
2215 mkTempFile(const char *pattern, char *tfile, size_t tfile_sz)
2225 if (tfile == NULL) {
2226 tfile = tbuf;
2231 snprintf(tfile, tfile_sz, "%s", pattern);
2233 snprintf(tfile, tfile_sz, "%s%s", tmpdir, pattern);
2235 if ((fd = mkstemp(tfile)) < 0)
2236 Punt("Could not create temporary file %s: %s", tfile,
2238 if (tfile == tbuf)
2239 unlink(tfile); /* we just want the descriptor */