Lines Matching refs:tmpfname
107 static char tmpfname[PATH_MAX]; /* Temporary file name (for in-place editing) */ variable
366 if (*tmpfname) in mf_fgets()
367 (void) unlink(tmpfname); in mf_fgets()
372 if (*tmpfname != '\0') { in mf_fgets()
376 (void) unlink(tmpfname); in mf_fgets()
380 if (rename(tmpfname, fname) != 0) { in mf_fgets()
383 (void) unlink(tmpfname); in mf_fgets()
386 *tmpfname = '\0'; in mf_fgets()
417 len = snprintf(tmpfname, sizeof (tmpfname), in mf_fgets()
420 if (len >= sizeof (tmpfname)) in mf_fgets()
422 (void) unlink(tmpfname); in mf_fgets()
423 if ((outfile = fopen(tmpfname, "w")) == NULL) in mf_fgets()
442 outfname = tmpfname; in mf_fgets()