Lines Matching refs:newfile
351 char newfile[MAXPATHLEN]; in delete_entry() local
404 (void) snprintf(newfile, sizeof (newfile), "%s%s", oldfile, ".hold"); in delete_entry()
415 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) { in delete_entry()
418 newfile); in delete_entry()
422 newfile); in delete_entry()
430 newfile); in delete_entry()
535 if (rename(newfile, oldfile) == -1) { in delete_entry()
538 (void) unlink(newfile); in delete_entry()
546 if (unlink(newfile) == -1) { in delete_entry()
547 (void) fprintf(stderr, gettext(ERR_CANT_RM), newfile); in delete_entry()
1408 char newfile[MAXPATHLEN]; in update_minor_entry() local
1422 (void) snprintf(newfile, sizeof (newfile), "%s%s", minor_perm, ".hold"); in update_minor_entry()
1433 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) { in update_minor_entry()
1436 newfile); in update_minor_entry()
1440 newfile); in update_minor_entry()
1448 newfile); in update_minor_entry()
1565 if (rename(newfile, minor_perm) == -1) { in update_minor_entry()
1568 (void) unlink(newfile); in update_minor_entry()
1576 if (unlink(newfile) == -1) { in update_minor_entry()
1577 (void) fprintf(stderr, gettext(ERR_CANT_RM), newfile); in update_minor_entry()