Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/dump/itime.c
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
#include "dump.h" | #include "dump.h" | ||||
struct dumptime { | struct dumptime { | ||||
struct dumpdates dt_value; | struct dumpdates dt_value; | ||||
SLIST_ENTRY(dumptime) dt_list; | SLIST_ENTRY(dumptime) dt_list; | ||||
}; | }; | ||||
SLIST_HEAD(dthead, dumptime) dthead = SLIST_HEAD_INITIALIZER(dthead); | SLIST_HEAD(dthead, dumptime) dthead = SLIST_HEAD_INITIALIZER(dthead); | ||||
struct dumpdates **ddatev = NULL; | int nddates = 0; /* number of records (might be zero) */ | ||||
int nddates = 0; | struct dumpdates **ddatev; /* the arrayfied version */ | ||||
char *dumpdates; /* name of the file containing dump date info */ | |||||
int lastlevel; /* dump level of previous dump */ | |||||
static void dumprecout(FILE *, const struct dumpdates *); | static void dumprecout(FILE *, const struct dumpdates *); | ||||
static int getrecord(FILE *, struct dumpdates *); | static int getrecord(FILE *, struct dumpdates *); | ||||
static int makedumpdate(struct dumpdates *, const char *); | static int makedumpdate(struct dumpdates *, const char *); | ||||
static void readdumptimes(FILE *); | static void readdumptimes(FILE *); | ||||
void | void | ||||
initdumptimes(void) | initdumptimes(void) | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |