Searched refs:TMPINNAME (Results 1 – 4 of 4) sorted by relevance
/freebsd/usr.bin/patch/ |
H A D | inp.c | 294 unlink(TMPINNAME); in plan_b() 295 if ((tifd = open(TMPINNAME, O_EXCL | O_CREAT | O_WRONLY, 0666)) < 0) in plan_b() 296 pfatal("can't open file %s", TMPINNAME); in plan_b() 369 if ((tifd = open(TMPINNAME, O_RDONLY)) < 0) in plan_b() 370 pfatal("can't reopen file %s", TMPINNAME); in plan_b() 405 pfatal("error reading tmp file %s", TMPINNAME); in ifetch()
|
H A D | common.h | 76 extern char *TMPINNAME;
|
H A D | patch.c | 65 char *TMPINNAME; variable 181 if (asprintf(&TMPINNAME, "%.*s/patchiXXXXXXXXXX", i, tmpdir) == -1) in main() 183 if ((fd = mkstemp(TMPINNAME)) < 0) in main() 184 pfatal("can't create %s", TMPINNAME); in main()
|
H A D | util.c | 416 unlink(TMPINNAME); in my_exit()
|