Searched refs:tmpfil (Results 1 - 4 of 4) sorted by relevance
/freebsd-10-stable/lib/libc/tests/stdio/ |
H A D | perror_test.c | 46 static char tmpfil[PATH_MAX]; variable 55 strcpy(tmpfil, "perror.XXXXXXXX"); 56 ATF_REQUIRE(mkstemp(tmpfil) >= 0); 61 ATF_REQUIRE(freopen(tmpfil, "r+", stderr) != NULL);
|
/freebsd-10-stable/usr.sbin/edquota/ |
H A D | edquota.c | 85 char tmpfil[] = _PATH_TMP; variable 287 tmpfd = mkstemp(tmpfil); 292 editit(tmpfil) && readtimes(protoprivs, tmpfil)) 297 unlink(tmpfil); 307 if (editit(tmpfil) && readprivs(curprivs, tmpfil)) 312 unlink(tmpfil); 482 err(1, "%s", tmpfil); 696 err(1, "%s", tmpfil); [all...] |
/freebsd-10-stable/sbin/sunlabel/ |
H A D | sunlabel.c | 483 char tmpfil[] = _PATH_TMPFILE; local 492 if ((fd = mkstemp(tmpfil)) < 0) 504 execlp(editor, editor, tmpfil, (char *)NULL); 511 if (parse_label(sl, tmpfil) == 0) { 513 unlink(tmpfil); 525 unlink(tmpfil); 531 unlink(tmpfil);
|
/freebsd-10-stable/sbin/bsdlabel/ |
H A D | bsdlabel.c | 103 static char tmpfil[] = PATH_TMPFILE; variable 656 if ((fd = mkstemp(tmpfil)) == -1 || 658 warnx("can't create %s", tmpfil); 666 fp = fopen(tmpfil, "r"); 668 warnx("can't reopen %s for reading", tmpfil); 677 (void) unlink(tmpfil); 690 (void) unlink(tmpfil); 725 execlp(ed, ed, tmpfil, (char *)0);
|
Completed in 111 milliseconds