Searched refs:tmpfil (Results 1 - 4 of 4) sorted by relevance
/freebsd-10.0-release/tools/regression/lib/libc/stdio/ |
H A D | test-perror.c | 46 static char tmpfil[PATH_MAX]; variable 57 strcpy(tmpfil, _PATH_TMP "perror.XXXXXXXX"); 58 if (mkstemp(tmpfil) < 0) 65 if (freopen(tmpfil, "r+", stderr) == NULL) 66 err(1, "%s", tmpfil); 107 unlink(tmpfil);
|
/freebsd-10.0-release/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.0-release/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.0-release/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 121 milliseconds