After downloading fsck.c from v7addenda.tar.gz this happens:
w fsck.c
33044
q
# cc fsck.c
fsck.c:1441: s_dinfo undefined; func. makefree
fsck.c:1441: Illegal structure ref
fsck.c:1441: Incompatible structures
fsck.c:1442: Illegal structure ref
fsck.c:1442: Incompatible structures
fsck.c:1453: s_dinfo undefined; func. makefree
fsck.c:1453: Illegal structure ref
fsck.c:1453: Incompatible structures
fsck.c:1454: Illegal structure ref
fsck.c:1454: Incompatible structures
fsck.c lines of interest 1440-1455:
#define superblk sblk.b_un.b_fs
if(cylsize == 0 || stepsize == 0) {
step = superblk.s_dinfo[0];
cyl = superblk.s_dinfo[1];
}
else {
step = stepsize;
cyl = cylsize;
}
if(step > cyl || step <= 0 || cyl <= 0 || cyl > MAXCYL) {
error("Default free list spacing assumed\n");
step = STEPSIZE;
cyl = CYLSIZE;
}
superblk.s_dinfo[0] = step;
superblk.s_dinfo[1] = cyl;
clear(flg,sizeof(flg));
#define superblk sblk.b_un.b_fs
Ken