Lines Matching defs:backup
726 char backup[BUFSIZ],
755 snprintf(backup, sizeof(backup), "%s.bak", makefile);
756 unlink(backup);
759 if (rename(makefile, backup) < 0)
760 fatalerr("cannot rename %s to %s\n", makefile, backup);
761 if ((fdin = fopen(backup, "r")) == NULL) {
762 if (rename(backup, makefile) < 0)
764 makefile, backup);
768 fatalerr("cannot open \"%s\"\n", backup);