Home
last modified time | relevance | path

Searched refs:tmpfil (Results 1 – 4 of 4) sorted by relevance

/freebsd-12.1/lib/libc/tests/stdio/
H A Dperror_test.c46 static char tmpfil[PATH_MAX]; variable
55 strcpy(tmpfil, "perror.XXXXXXXX"); in ATF_TC_BODY()
56 ATF_REQUIRE(mkstemp(tmpfil) >= 0); in ATF_TC_BODY()
61 ATF_REQUIRE(freopen(tmpfil, "r+", stderr) != NULL); in ATF_TC_BODY()
/freebsd-12.1/usr.sbin/edquota/
H A Dedquota.c87 char tmpfil[] = _PATH_TMP; variable
289 tmpfd = mkostemp(tmpfil, O_CLOEXEC); in main()
294 editit(tmpfil) && readtimes(protoprivs, tmpfil)) in main()
299 unlink(tmpfil); in main()
309 if (editit(tmpfil) && readprivs(curprivs, tmpfil)) in main()
314 unlink(tmpfil); in main()
484 err(1, "%s", tmpfil); in writeprivs()
698 err(1, "%s", tmpfil); in writetimes()
/freebsd-12.1/sbin/sunlabel/
H A Dsunlabel.c485 char tmpfil[] = _PATH_TMPFILE; in edit_label() local
494 if ((fd = mkstemp(tmpfil)) < 0) in edit_label()
506 execlp(editor, editor, tmpfil, (char *)NULL); in edit_label()
513 if (parse_label(sl, tmpfil) == 0) { in edit_label()
515 unlink(tmpfil); in edit_label()
527 unlink(tmpfil); in edit_label()
533 unlink(tmpfil); in edit_label()
/freebsd-12.1/sbin/bsdlabel/
H A Dbsdlabel.c105 static char tmpfil[] = PATH_TMPFILE; variable
656 if ((fd = mkstemp(tmpfil)) == -1 || in edit()
658 warnx("can't create %s", tmpfil); in edit()
666 fp = fopen(tmpfil, "r"); in edit()
668 warnx("can't reopen %s for reading", tmpfil); in edit()
677 (void) unlink(tmpfil); in edit()
690 (void) unlink(tmpfil); in edit()
725 execlp(ed, ed, tmpfil, (char *)0); in editit()