Home | History | Annotate | Download | only in dump

Lines Matching refs:dumpdates

56 	struct	dumpdates dt_value;
60 struct dumpdates **ddatev = 0;
63 static void dumprecout(FILE *, struct dumpdates *);
64 static int getrecord(FILE *, struct dumpdates *);
65 static int makedumpdate(struct dumpdates *, const char *);
73 if ((df = fopen(dumpdates, "r")) == NULL) {
75 msg("WARNING: cannot read %s: %s\n", dumpdates,
80 * Dumpdates does not exist, make an empty one.
82 msg("WARNING: no file `%s', making an empty one\n", dumpdates);
83 if ((df = fopen(dumpdates, "w")) == NULL) {
84 msg("WARNING: cannot create %s: %s\n", dumpdates,
89 if ((df = fopen(dumpdates, "r")) == NULL) {
91 dumpdates);
120 ddatev = (struct dumpdates **)
121 xcalloc((unsigned) (nddates + 1), sizeof(struct dumpdates *));
130 struct dumpdates *ddp;
136 msg("Looking for name %s in dumpdates = %s for level = %c\n",
137 fname, dumpdates, level);
170 struct dumpdates *dtwalk, *dtfound;
177 if ((df = fopen(dumpdates, "r+")) == NULL)
178 quite(errno, "cannot rewrite %s", dumpdates);
187 quite(errno, "can't fseek %s", dumpdates);
202 (struct dumpdates *)xcalloc(1, sizeof (struct dumpdates));
214 quite(errno, "can't flush %s", dumpdates);
216 quite(errno, "can't ftruncate %s", dumpdates);
223 dumprecout(FILE *file, struct dumpdates *what)
230 quite(errno, "can't write %s", dumpdates);
236 getrecord(FILE *df, struct dumpdates *ddatep)
246 dumpdates, recno);
256 makedumpdate(struct dumpdates *ddp, const char *tbuf)