Lines Matching refs:tfile
2169 * If tfile is provided, set it to a copy of the filename created.
2173 mkTempFile(const char *pattern, char *tfile, size_t tfile_sz)
2183 if (tfile == NULL) {
2184 tfile = tbuf;
2189 snprintf(tfile, tfile_sz, "%s", pattern);
2191 snprintf(tfile, tfile_sz, "%s%s", tmpdir, pattern);
2193 if ((fd = mkstemp(tfile)) < 0)
2194 Punt("Could not create temporary file %s: %s", tfile,
2196 if (tfile == tbuf)
2197 unlink(tfile); /* we just want the descriptor */