spcl
spcl.c_ddate = 0;
if (ddp->dd_ddate <= _time64_to_time(spcl.c_ddate))
spcl.c_ddate = _time_to_time64(ddp->dd_ddate);
spcl.c_ddate = 0;
dtwalk->dd_ddate = _time64_to_time(spcl.c_date);
if (spcl.c_date == 0) {
time_t t = _time64_to_time(spcl.c_date);
spcl.c_date = _time_to_time64(time(NULL));
spcl.c_ddate = unctime(optarg);
if (spcl.c_ddate < 0) {
(void)strncpy(spcl.c_dev, dt->fs_spec, NAMELEN);
(void)strncpy(spcl.c_filesys, dt->fs_file, NAMELEN);
(void)strncpy(spcl.c_dev, disk, NAMELEN);
(void)strncpy(spcl.c_filesys, "an unlisted file system",
spcl.c_dev[NAMELEN-1]='\0';
spcl.c_filesys[NAMELEN-1]='\0';
spcl.c_date = _time_to_time64(sb.st_mtime);
(void)strcpy(spcl.c_label, "none");
(void)gethostname(spcl.c_host, NAMELEN);
spcl.c_level = level;
spcl.c_type = TS_TAPE;
spcl.c_date = 0;
spcl.c_ddate = 0;
if (spcl.c_date == 0) {
time_t t = _time64_to_time(spcl.c_date);
if (spcl.c_ddate == 0) {
time_t t = _time64_to_time(spcl.c_ddate);
nonodump = spcl.c_level < honorlevel;
spcl.c_type = TS_END;
msg("DUMP: %jd tape blocks\n", (intmax_t)spcl.c_tapea);
(intmax_t)spcl.c_tapea, spcl.c_volume,
(spcl.c_volume == 1) ? "" : "s");
(intmax_t)(spcl.c_tapea /
lastspclrec = spcl.c_tapea;
spcl.c_tapea++;
spcl.c_tapea += avail;
if (spcl.c_type != TS_END && spcl.c_type != TS_CLRI &&
spcl.c_type != TS_BITS) {
assert(spcl.c_count <= TP_NINDIR);
for (i = 0; i < spcl.c_count; i++)
if (spcl.c_addr[i] != 0)
wp->count = lastspclrec + blks + 1 - spcl.c_tapea;
wp->tapea = spcl.c_tapea;
savedtapea = spcl.c_tapea;
spcl.c_tapea = wp->tapea;
spcl.c_tapea = savedtapea;
(void)sprintf(volno, "%d", spcl.c_volume + 1);
spcl.c_count = wp->count;
spcl.c_firstrec = wp->firstrec;
spcl.c_volume++;
spcl.c_type = TS_TAPE;
(CHANGEDSINCE(dp, spcl.c_ddate) && \
#define WANTTODUMP(dp) CHANGEDSINCE(dp, spcl.c_ddate)
spcl.c_mode = dp->dp1.di_mode;
spcl.c_size = dp->dp1.di_size;
spcl.c_extsize = 0;
spcl.c_atime = _time32_to_time(dp->dp1.di_atime);
spcl.c_atimensec = dp->dp1.di_atimensec;
spcl.c_mtime = _time32_to_time(dp->dp1.di_mtime);
spcl.c_mtimensec = dp->dp1.di_mtimensec;
spcl.c_birthtime = 0;
spcl.c_birthtimensec = 0;
spcl.c_rdev = dp->dp1.di_rdev;
spcl.c_file_flags = dp->dp1.di_flags;
spcl.c_uid = dp->dp1.di_uid;
spcl.c_gid = dp->dp1.di_gid;
spcl.c_mode = dp->dp2.di_mode;
spcl.c_size = dp->dp2.di_size;
spcl.c_extsize = dp->dp2.di_extsize;
spcl.c_atime = _time64_to_time(dp->dp2.di_atime);
spcl.c_atimensec = dp->dp2.di_atimensec;
spcl.c_mtime = _time64_to_time(dp->dp2.di_mtime);
spcl.c_mtimensec = dp->dp2.di_mtimensec;
spcl.c_birthtime = _time64_to_time(dp->dp2.di_birthtime);
spcl.c_birthtimensec = dp->dp2.di_birthnsec;
spcl.c_rdev = dp->dp2.di_rdev;
spcl.c_file_flags = dp->dp2.di_flags;
spcl.c_uid = dp->dp2.di_uid;
spcl.c_gid = dp->dp2.di_gid;
spcl.c_type = TS_INODE;
spcl.c_count = 0;
spcl.c_addr[0] = 1;
spcl.c_count = 1;
spcl.c_addr[j - i] = 1;
spcl.c_addr[j - i] = 0;
spcl.c_count = count - i;
spcl.c_type = TS_ADDR;
resid = howmany(fragoff(sblock, spcl.c_extsize),
spcl.c_addr[j - i] = 1;
spcl.c_addr[j - i] = 0;
spcl.c_count = count - i;
spcl.c_type = TS_ADDR;
spcl.c_count = 0;
if (spcl.c_extsize == 0)
if (spcl.c_extsize > UFS_NXADDR * sblock->fs_bsize)
blks = howmany(spcl.c_extsize, TP_BSIZE);
if (spcl.c_count + blks > TP_NINDIR)
assert(spcl.c_count + blks <= TP_NINDIR);
spcl.c_addr[spcl.c_count + i] = 1;
spcl.c_addr[spcl.c_count + i] = 0;
spcl.c_count += blks;
if (spcl.c_extsize == 0)
if (spcl.c_extsize > UFS_NXADDR * sblock->fs_bsize) {
frags = howmany(spcl.c_extsize, sblock->fs_fsize);
if (spcl.c_extsize > UFS_NXADDR * sblock->fs_bsize)
blks = howmany(spcl.c_extsize, TP_BSIZE);
if ((size = spcl.c_extsize - UFS_NXADDR * sblock->fs_bsize) > 0)
spcl.c_type = type;
spcl.c_count = howmany(mapsize * sizeof(char), TP_BSIZE);
for (i = 0, cp = map; i < spcl.c_count; i++, cp += TP_BSIZE)
spcl.c_atime = spcl.c_mtime;
spcl.c_atimensec = spcl.c_mtimensec;
spcl.c_inumber = ino;
spcl.c_magic = FS_UFS2_MAGIC;
spcl.c_checksum = 0;
lp = (int32_t *)&spcl;
spcl.c_checksum = CHECKSUM - sum;
writerec((char *)&spcl, 1);
spcl.c_type);
spcl.c_type);
if (gethead(&spcl) == FAIL) {
dumptime = _time64_to_time(spcl.c_ddate);
dumpdate = _time64_to_time(spcl.c_date);
if (spcl.c_volume != 1) {
if (gethead(&spcl) == FAIL) {
findinode(&spcl);
if (spcl.c_type != TS_CLRI) {
maxino = (spcl.c_count * TP_BSIZE * NBBY) + 1;
if (spcl.c_type != TS_BITS) {
(void) gethead(&spcl);
findinode(&spcl);
t = _time64_to_time(spcl.c_date);
t = _time64_to_time(spcl.c_ddate);
(spcl.c_ddate == 0) ? "the epoch\n" : ctime(&t));
if (spcl.c_host[0] == '\0')
(intmax_t)spcl.c_level, spcl.c_filesys, spcl.c_host, spcl.c_dev);
fprintf(stderr, "Label: %s\n", spcl.c_label);
while (spcl.c_type == TS_BITS || spcl.c_type == TS_CLRI)
size = spcl.c_size;
attrsize = spcl.c_extsize;
if (spcl.c_type == TS_END)
if (spcl.c_magic != FS_UFS2_MAGIC)
for (i = 0; i < spcl.c_count; i++) {
(intmax_t)spcl.c_count);
(intmax_t)spcl.c_count);
if (readmapflag || spcl.c_addr[i]) {
if (spcl.c_count - i > 1)
spcl.c_count - i - 1);
for (i++; i < spcl.c_count; i++) {
(intmax_t)spcl.c_count);
(intmax_t)spcl.c_count);
if (readmapflag || spcl.c_addr[i])
if (gethead(&spcl) == GOOD && size > 0) {
if (spcl.c_type == TS_ADDR)
findinode(&spcl);
((key->spcl & (0x80 >> i)) && \
if (oldkey->spcl != newkey->spcl)
if ((oldkey->spcl & (0x80 >> i)) == (newkey->spcl & (0x80 >> i))
if (key->spcl & (0x80 >> i)) {
omapp->key[i].spcl = mapp->key[i].spcl;
mapp->key[i].spcl = omapp->key[i].spcl;
u_char spcl;
u_char spcl;
map->key[scancode].spcl = 0;
map->key[scancode].spcl |= (0x80 >> i);
if (key->spcl & (0x80 >> i))
if (keymap->key[i].spcl & (0x80 >> j))
(unsigned)keymap->key[i].spcl,