Home | History | Annotate | Download | only in restore

Lines Matching defs:modefile

115 static char	modefile[MAXPATHLEN] = "#";	/* No file */
169 (void) snprintf(modefile, sizeof(modefile), "%s/rstmode%jd",
172 (void) snprintf(modefile, sizeof(modefile),
174 if ((mfd = mkstemp(modefile)) == -1)
176 modefile);
180 mf = fopen(modefile, "w");
182 err(1, "cannot open temporary file %s", modefile);
206 fail_dirtmp(modefile);
464 fail_dirtmp(modefile);
605 (void) snprintf(modefile, sizeof(modefile), "%s/rstmode%jd",
607 if (modefile[0] == '#') {
608 panic("modefile not defined\n");
612 mf = fopen(modefile, "r");
615 fprintf(stderr, "cannot open mode file %s\n", modefile);
626 warn("%s: cannot read modefile.", modefile);
645 warn("%s: cannot read modefile.",
646 modefile);
654 warn("%s: cannot seek in modefile.",
655 modefile);
801 fail_dirtmp(modefile);
827 if (modefile[0] != '#') {
828 (void) truncate(modefile, 0);
829 (void) unlink(modefile);