Lines Matching +defs:rename +defs:file
46 #define DBG_PRINT(file, fmt, args) fprintf(file, fmt, args)
48 #define DBG_PRINT(file, fmt, args) /* empty */
78 /* Warn on multiple includes of same file */
82 static char *base_name(const char *file);
486 DBG_PRINT(stderr, "file: %s\n", *fp);
502 getfile(const char *file)
511 content->f_name = file;
512 if ((fd = open(file, O_RDONLY)) < 0) {
513 warning("cannot open \"%s\"\n", file);
525 fatalerr("failed to read %s\n", file);
572 *eof, /* end of file pointer */
578 * start of each file.
687 * Strip the file name down to what we want to see in the Makefile.
694 char *file = strdup(in_file);
696 if (file == NULL)
699 p = strrchr(file, '.');
703 return (file);
708 rename(char *from, char *to)
758 /* rename() won't work on WIN32, CYGWIN, or CIFS if src file is open */
759 if (rename(makefile, backup) < 0)
760 fatalerr("cannot rename %s to %s\n", makefile, backup);
762 if (rename(backup, makefile) < 0)