Lines Matching +full:needs +full:- +full:double +full:- +full:reset
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
57 * Query the operator; This previously-fascist piece of code
65 * that dump needs attention.
82 back = -1; in query()
102 * Turn off the alarm, and reset the signal to trap out.. in query()
163 snprintf(buf, sizeof(buf), "%s -g %s", _PATH_WALL, OPGRENT); in broadcast()
167 …(void) fputs("\a\a\aMessage from the dump program to all operators\n\nDUMP: NEEDS ATTENTION: ", fp… in broadcast()
185 double percent; in timeest()
198 deltat = (blockswritten == 0) ? 0 : tstart_writing - tnow + in timeest()
199 (double)(tnow - tstart_writing) / blockswritten * tapesize; in timeest()
206 tdone_str[strlen(tdone_str) - 1] = '\0'; in timeest()
287 (new->fs_file = strdup(fs->fs_file)) == NULL || in allocfsent()
288 (new->fs_type = strdup(fs->fs_type)) == NULL || in allocfsent()
289 (new->fs_spec = strdup(fs->fs_spec)) == NULL) in allocfsent()
291 new->fs_passno = fs->fs_passno; in allocfsent()
292 new->fs_freq = fs->fs_freq; in allocfsent()
315 if ((strcmp(fs->fs_type, FSTAB_RW) && in dump_getfstab()
316 strcmp(fs->fs_type, FSTAB_RO) && in dump_getfstab()
317 strcmp(fs->fs_type, FSTAB_RQ)) || in dump_getfstab()
318 strcmp(fs->fs_vfstype, "ufs")) in dump_getfstab()
323 pf->pf_fstab = fs; in dump_getfstab()
343 fs = pf->pf_fstab; in fstabsearch()
344 if (strcmp(fs->fs_file, key) == 0 || in fstabsearch()
345 strcmp(fs->fs_spec, key) == 0) in fstabsearch()
347 rn = rawname(fs->fs_spec); in fstabsearch()
351 if (*fs->fs_spec == '/' && in fstabsearch()
352 strcmp(fs->fs_spec + 1, key) == 0) in fstabsearch()
354 if (*fs->fs_file == '/' && in fstabsearch()
355 strcmp(fs->fs_file + 1, key) == 0) in fstabsearch()
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()
394 dumpme = (dt != NULL && dt->fs_freq != 0); in lastdump()
396 tlast = localtime(&dtwalk->dd_ddate); in lastdump()
397 dumpme = tnow > (dtwalk->dd_ddate - (tlast->tm_hour * 3600) in lastdump()
398 - (tlast->tm_min * 60) - tlast->tm_sec in lastdump()
399 + (dt->fs_freq * 86400)); in lastdump()
405 dtwalk->dd_name, in lastdump()
406 dt ? dt->fs_file : "", in lastdump()
407 dtwalk->dd_level, in lastdump()
419 diff = strncmp(d1->dd_name, d2->dd_name, sizeof(d1->dd_name)); in datesort()
421 return (d2->dd_ddate - d1->dd_ddate); in datesort()