itime.c (74872) | itime.c (74873) |
---|---|
1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93"; 37#endif 38static const char rcsid[] = | 1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/sbin/dump/itime.c 74872 2001-03-27 19:28:00Z obrien $"; | 39 "$FreeBSD: head/sbin/dump/itime.c 74873 2001-03-27 19:38:34Z obrien $"; |
40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/queue.h> 44#include <sys/time.h> 45#ifdef sunos 46#include <sys/vnode.h> 47 --- 32 unchanged lines hidden (view full) --- 80 81void 82initdumptimes() 83{ 84 FILE *df; 85 86 if ((df = fopen(dumpdates, "r")) == NULL) { 87 if (errno != ENOENT) { | 40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/queue.h> 44#include <sys/time.h> 45#ifdef sunos 46#include <sys/vnode.h> 47 --- 32 unchanged lines hidden (view full) --- 80 81void 82initdumptimes() 83{ 84 FILE *df; 85 86 if ((df = fopen(dumpdates, "r")) == NULL) { 87 if (errno != ENOENT) { |
88 msg("cannot read %s: %s\n", dumpdates, | 88 msg("WARNING: cannot read %s: %s\n", dumpdates, |
89 strerror(errno)); 90 return; 91 /* NOTREACHED */ 92 } 93 /* 94 * Dumpdates does not exist, make an empty one. 95 */ 96 msg("WARNING: no file `%s', making an empty one\n", dumpdates); 97 if ((df = fopen(dumpdates, "w")) == NULL) { | 89 strerror(errno)); 90 return; 91 /* NOTREACHED */ 92 } 93 /* 94 * Dumpdates does not exist, make an empty one. 95 */ 96 msg("WARNING: no file `%s', making an empty one\n", dumpdates); 97 if ((df = fopen(dumpdates, "w")) == NULL) { |
98 msg("cannot create %s: %s\n", dumpdates, | 98 msg("WARNING: cannot create %s: %s\n", dumpdates, |
99 strerror(errno)); 100 return; 101 /* NOTREACHED */ 102 } 103 (void) fclose(df); 104 if ((df = fopen(dumpdates, "r")) == NULL) { 105 quit("cannot read %s even after creating it: %s\n", 106 dumpdates, strerror(errno)); --- 173 unchanged lines hidden --- | 99 strerror(errno)); 100 return; 101 /* NOTREACHED */ 102 } 103 (void) fclose(df); 104 if ((df = fopen(dumpdates, "r")) == NULL) { 105 quit("cannot read %s even after creating it: %s\n", 106 dumpdates, strerror(errno)); --- 173 unchanged lines hidden --- |