Searched refs:tmpfil (Results 1 – 2 of 2) sorted by relevance
| /mirbsd/src/usr.sbin/edquota/ |
| D | edquota.c | 68 char tmpfil[] = _PATH_TMPFILE; variable 156 if ((tmpfd = mkstemp(tmpfil)) == -1) in main() 157 errx(1, "%s", tmpfil); in main() 161 unlink(tmpfil); in main() 164 if (editit(tmpfil) && readtimes(protoprivs, tmpfd)) in main() 167 unlink(tmpfil); in main() 176 if (editit(tmpfil) && readprivs(curprivs, tmpfd)) in main() 181 unlink(tmpfil); in main() 419 err(1, "%s", tmpfil); in writeprivs() 556 err(1, "%s", tmpfil); in writetimes()
|
| /mirbsd/src/sbin/disklabel/ |
| D | disklabel.c | 84 char tmpfil[] = _PATH_TMPFILE; variable 1154 if ((fd = mkstemp(tmpfil)) == -1 || (fp = fdopen(fd, "w")) == NULL) { in edit() 1157 warn("%s", tmpfil); in edit() 1175 fp = fopen(tmpfil, "r"); in edit() 1177 warn("%s", tmpfil); in edit() 1185 (void) unlink(tmpfil); in edit() 1191 (void) unlink(tmpfil); in edit() 1204 (void)unlink(tmpfil); in edit() 1218 len = strlen(ed) + 1 + strlen(tmpfil) + 1; in editit() 1224 snprintf(p, len, "%s %s", ed, tmpfil); in editit()
|