Lines Matching defs:tmpfile
95 char *tmpfile;
101 if ((tmpfile = malloc(size)) == NULL)
104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) {
105 syslog(LOG_ERR, "_file_put_printer:buffer overflow:tmpfile");
117 free(tmpfile);
127 free(tmpfile);
131 if ((fd = mkstemp(tmpfile)) < 0) {
133 free(tmpfile);
149 * In this case, just don't write any entries to the tmpfile
180 (void) rename(tmpfile, file);
183 (void) unlink(tmpfile);
188 (void) free(tmpfile);