Home
last modified time | relevance | path

Searched refs:dtwalk (Results 1 – 2 of 2) sorted by relevance

/freebsd/sbin/dump/
H A Ditime.c101 struct dumptime *dtwalk; in readdumptimes() local
104 dtwalk = (struct dumptime *)calloc(1, sizeof (struct dumptime)); in readdumptimes()
105 if (getrecord(df, &(dtwalk->dt_value)) < 0) { in readdumptimes()
106 free(dtwalk); in readdumptimes()
110 SLIST_INSERT_HEAD(&dthead, dtwalk, dt_list); in readdumptimes()
118 dtwalk = SLIST_FIRST(&dthead); in readdumptimes()
119 for (i = nddates - 1; i >= 0; i--, dtwalk = SLIST_NEXT(dtwalk, dt_list)) in readdumptimes()
120 ddatev[i] = &dtwalk->dt_value; in readdumptimes()
159 struct dumpdates *dtwalk; in putdumptime() local
179 ITITERATE(i, dtwalk) { in putdumptime()
[all …]
H A Doptr.c370 struct dumpdates *dtwalk; in lastdump() local
386 ITITERATE(i, dtwalk) { in lastdump()
387 if (strncmp(lastname, dtwalk->dd_name, in lastdump()
388 sizeof(dtwalk->dd_name)) == 0) in lastdump()
390 date = (char *)ctime(&dtwalk->dd_ddate); in lastdump()
392 lastname = dtwalk->dd_name; in lastdump()
393 dt = fstabsearch(dtwalk->dd_name); in lastdump()
396 tlast = localtime(&dtwalk->dd_ddate); in lastdump()
397 dumpme = tnow > (dtwalk->dd_ddate - (tlast->tm_hour * 3600) in lastdump()
405 dtwalk->dd_name, in lastdump()
[all …]