Prereq: 1.10 diff -cr ../tct-1.09/patchlevel ./patchlevel *** ../tct-1.09/patchlevel Wed Dec 12 14:21:54 2001 --- ./patchlevel Mon Sep 16 14:40:20 2002 *************** *** 1 **** ! 1.09 --- 1 ---- ! 1.10 diff -cr ../tct-1.09/patchlevel ./patchlevel *** ../tct-1.09/patchlevel Wed Dec 12 14:21:54 2001 --- ./patchlevel Mon Sep 16 14:40:20 2002 *************** *** 1 **** ! 1.09 --- 1 ---- ! 1.10 diff -cr ../tct-1.09/CHANGES ./CHANGES *** ../tct-1.09/CHANGES Wed Dec 12 14:22:27 2001 --- ./CHANGES Mon Sep 16 14:40:01 2002 *************** *** 1,3 **** --- 1,12 ---- + Mon Sep 16 14:39:09 EDT 2002 + + o The lowest inode examined is now the lowest possible inode + number instead of ROOTINUM. + + Fri Mar 22 14:41:32 EST 2002 + + o Added support for OpenBSD 3.0. + Wed Dec 12 13:21:00 EST 2001 o tm_print() and tm_string() did unnecessary %HEX expansion diff -cr ../tct-1.09/extras/entropy/makedefs ./extras/entropy/makedefs *** ../tct-1.09/extras/entropy/makedefs Thu Oct 4 15:59:35 2001 --- ./extras/entropy/makedefs Fri Mar 22 14:44:10 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/extras/findkey/makedefs ./extras/findkey/makedefs *** ../tct-1.09/extras/findkey/makedefs Thu Oct 4 15:32:54 2001 --- ./extras/findkey/makedefs Fri Mar 22 14:44:10 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/lib/ostype.pl ./lib/ostype.pl *** ../tct-1.09/lib/ostype.pl Sun Jul 30 19:39:20 2000 --- ./lib/ostype.pl Sat Mar 23 18:50:28 2002 *************** *** 13,18 **** --- 13,19 ---- "FREEBSD3", "FreeBSD.3", "FREEBSD4", "FreeBSD.4", "OPENBSD2", "OpenBSD.2", + "OPENBSD3", "OpenBSD.3", "BSDI2", "BSD\/OS.2", "BSDI3", "BSD\/OS.3", "BSDI4", "BSD\/OS.4", diff -cr ../tct-1.09/man/man1/grave-robber.1 ./man/man1/grave-robber.1 *** ../tct-1.09/man/man1/grave-robber.1 Sat Sep 15 16:41:06 2001 --- ./man/man1/grave-robber.1 Sat Mar 23 18:51:17 2002 *************** *** 89,94 **** --- 89,95 ---- \fB`FREEBSD2'\fR, \fB`FREEBSD3'\fR, \fB`OPENBSD2'\fR, + \fB`OPENBSD3'\fR, \fB`BSDI2'\fR, \fB`BSDI3'\fR, \fB`SUNOS4'\fR, diff -cr ../tct-1.09/src/aux/makedefs ./src/aux/makedefs *** ../tct-1.09/src/aux/makedefs Thu Oct 4 15:34:08 2001 --- ./src/aux/makedefs Fri Mar 22 14:44:10 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/src/file/makedefs ./src/file/makedefs *** ../tct-1.09/src/file/makedefs Thu Oct 4 15:42:22 2001 --- ./src/file/makedefs Fri Mar 22 14:44:10 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/src/fstools/ext2fs.c ./src/fstools/ext2fs.c *** ../tct-1.09/src/fstools/ext2fs.c Sun Sep 9 17:21:19 2001 --- ./src/fstools/ext2fs.c Mon Sep 16 14:48:58 2002 *************** *** 155,161 **** /* * Sanity check. */ ! if (inum < EXT2_ROOT_INO || inum > ext2fs->fs.s_inodes_count) error("invalid inode number: %lu", (ULONG) inum); /* --- 155,161 ---- /* * Sanity check. */ ! if (inum < ext2fs->fs_info.start_inum || inum > ext2fs->fs.s_inodes_count) error("invalid inode number: %lu", (ULONG) inum); /* *************** *** 242,250 **** /* * Sanity checks. */ ! if (start < EXT2_ROOT_INO || start > fs->last_inum) error("%s: invalid start inode number: %lu", myname, (ULONG) start); ! if (last < EXT2_ROOT_INO || last > fs->last_inum) error("%s: invalid last inode number: %lu", myname, (ULONG) last); /* --- 242,250 ---- /* * Sanity checks. */ ! if (start < fs->start_inum || start > fs->last_inum) error("%s: invalid start inode number: %lu", myname, (ULONG) start); ! if (last < fs->start_inum || last > fs->last_inum) error("%s: invalid last inode number: %lu", myname, (ULONG) last); /* *************** *** 446,452 **** */ ext2fs->fs_info.inum_count = ext2fs->fs.s_inodes_count; ext2fs->fs_info.last_inum = ext2fs->fs_info.inum_count; ! ext2fs->fs_info.root_inum = EXT2_ROOT_INO; ext2fs->fs_info.block_count = ext2fs->fs.s_blocks_count; ext2fs->fs_info.start_block = 1; ext2fs->fs_info.last_block = ext2fs->fs_info.block_count - 1; --- 446,452 ---- */ ext2fs->fs_info.inum_count = ext2fs->fs.s_inodes_count; ext2fs->fs_info.last_inum = ext2fs->fs_info.inum_count; ! ext2fs->fs_info.start_inum = 1; ext2fs->fs_info.block_count = ext2fs->fs.s_blocks_count; ext2fs->fs_info.start_block = 1; ext2fs->fs_info.last_block = ext2fs->fs_info.block_count - 1; diff -cr ../tct-1.09/src/fstools/ffs.c ./src/fstools/ffs.c *** ../tct-1.09/src/fstools/ffs.c Sat Sep 15 16:45:56 2001 --- ./src/fstools/ffs.c Mon Sep 16 14:38:09 2002 *************** *** 92,98 **** /* * Sanity check. */ ! if (inum < ROOTINO || inum > ffs->fs_info.last_inum) error("invalid inode number: %lu", (ULONG) inum); /* --- 92,98 ---- /* * Sanity check. */ ! if (inum < ffs->fs_info.start_inum || inum > ffs->fs_info.last_inum) error("invalid inode number: %lu", (ULONG) inum); /* *************** *** 176,184 **** /* * Sanity checks. */ ! if (start < ROOTINO || start > ffs->fs_info.last_inum) error("%s: invalid start inode number: %lu", myname, (ULONG) start); ! if (last < ROOTINO || last > ffs->fs_info.last_inum) error("%s: invalid last inode number: %lu", myname, (ULONG) last); /* --- 176,184 ---- /* * Sanity checks. */ ! if (start < ffs->fs_info.start_inum || start > ffs->fs_info.last_inum) error("%s: invalid start inode number: %lu", myname, (ULONG) start); ! if (last < ffs->fs_info.start_inum || last > ffs->fs_info.last_inum) error("%s: invalid last inode number: %lu", myname, (ULONG) last); /* *************** *** 401,407 **** * Translate some filesystem-specific information to generic form. */ ffs->fs_info.inum_count = ffs->fs->fs_ncg * ffs->fs->fs_ipg; ! ffs->fs_info.root_inum = ROOTINO; ffs->fs_info.last_inum = ffs->fs_info.inum_count - 1; ffs->fs_info.block_count = ffs->fs->fs_size; ffs->fs_info.start_block = 0; --- 401,407 ---- * Translate some filesystem-specific information to generic form. */ ffs->fs_info.inum_count = ffs->fs->fs_ncg * ffs->fs->fs_ipg; ! ffs->fs_info.start_inum = 0; ffs->fs_info.last_inum = ffs->fs_info.inum_count - 1; ffs->fs_info.block_count = ffs->fs->fs_size; ffs->fs_info.start_block = 0; diff -cr ../tct-1.09/src/fstools/fs_tools.h ./src/fstools/fs_tools.h *** ../tct-1.09/src/fstools/fs_tools.h Fri Sep 7 13:06:57 2001 --- ./src/fstools/fs_tools.h Mon Sep 16 14:34:35 2002 *************** *** 159,165 **** /* * OpenBSD looks like BSD/OS 3.x. */ ! #if defined(OPENBSD2) #define SUPPORTED #define HAVE_UFS_FFS #include --- 159,165 ---- /* * OpenBSD looks like BSD/OS 3.x. */ ! #if defined(OPENBSD2) || defined(OPENBSD3) #define SUPPORTED #define HAVE_UFS_FFS #include *************** *** 225,231 **** struct FS_INFO { int fd; /* open raw device */ INUM_T inum_count; /* number of inodes */ ! INUM_T root_inum; /* root inode */ INUM_T last_inum; /* LINUX starts at 1 */ DADDR_T block_count; /* number of blocks */ DADDR_T start_block; /* in case start at 1 */ --- 225,231 ---- struct FS_INFO { int fd; /* open raw device */ INUM_T inum_count; /* number of inodes */ ! INUM_T start_inum; /* first inode */ INUM_T last_inum; /* LINUX starts at 1 */ DADDR_T block_count; /* number of blocks */ DADDR_T start_block; /* in case start at 1 */ diff -cr ../tct-1.09/src/fstools/ils.c ./src/fstools/ils.c *** ../tct-1.09/src/fstools/ils.c Fri Aug 11 21:35:31 2000 --- ./src/fstools/ils.c Mon Sep 16 14:36:01 2002 *************** *** 295,301 **** if (optind < argc) { while ((start = argv[optind]) != 0) { last = split_at(start, '-'); ! istart = (*start ? atoinum(start) : fs->root_inum); ilast = (!last ? istart : *last ? atoinum(last) : fs->last_inum); fs->inode_walk(fs, istart, ilast, flags, print_inode, (char *) 0); optind++; --- 295,301 ---- if (optind < argc) { while ((start = argv[optind]) != 0) { last = split_at(start, '-'); ! istart = (*start ? atoinum(start) : fs->start_inum); ilast = (!last ? istart : *last ? atoinum(last) : fs->last_inum); fs->inode_walk(fs, istart, ilast, flags, print_inode, (char *) 0); optind++; *************** *** 306,312 **** * List all inodes, subject to the specified restrictions. */ else { ! fs->inode_walk(fs, fs->root_inum, fs->last_inum, flags, print_inode, (char *) 0); } fs->close(fs); --- 306,312 ---- * List all inodes, subject to the specified restrictions. */ else { ! fs->inode_walk(fs, fs->start_inum, fs->last_inum, flags, print_inode, (char *) 0); } fs->close(fs); diff -cr ../tct-1.09/src/fstools/makedefs ./src/fstools/makedefs *** ../tct-1.09/src/fstools/makedefs Thu Oct 4 15:44:26 2001 --- ./src/fstools/makedefs Fri Mar 22 14:44:10 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/src/lastcomm/makedefs ./src/lastcomm/makedefs *** ../tct-1.09/src/lastcomm/makedefs Thu Oct 4 15:45:44 2001 --- ./src/lastcomm/makedefs Fri Mar 22 14:44:10 2002 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.3*) DEFS="-DFREEBSD3" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; BSD/OS.2*) DEFS="-DBSDI2" diff -cr ../tct-1.09/src/lastcomm/sys_defs.h ./src/lastcomm/sys_defs.h *** ../tct-1.09/src/lastcomm/sys_defs.h Sun Jul 30 19:39:20 2000 --- ./src/lastcomm/sys_defs.h Fri Mar 22 14:44:10 2002 *************** *** 7,13 **** */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ ! || defined(OPENBSD2) #define SUPPORTED #define _PATH_ACCT "/var/account/acct" #define HAVE_COMP_BLOCK_IO_COUNT --- 7,13 ---- */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ ! || defined(OPENBSD2) || defined(OPENBSD3) #define SUPPORTED #define _PATH_ACCT "/var/account/acct" #define HAVE_COMP_BLOCK_IO_COUNT diff -cr ../tct-1.09/src/major_minor/makedefs ./src/major_minor/makedefs *** ../tct-1.09/src/major_minor/makedefs Thu Oct 4 15:46:24 2001 --- ./src/major_minor/makedefs Fri Mar 22 14:44:11 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/src/misc/makedefs ./src/misc/makedefs *** ../tct-1.09/src/misc/makedefs Thu Oct 4 15:47:05 2001 --- ./src/misc/makedefs Fri Mar 22 14:44:11 2002 *************** *** 10,15 **** --- 10,17 ---- ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + ;; BSD/OS.2*) DEFS="-DBSDI2" ;; BSD/OS.3*) DEFS="-DBSDI3" diff -cr ../tct-1.09/src/pcat/makedefs ./src/pcat/makedefs *** ../tct-1.09/src/pcat/makedefs Thu Oct 4 15:31:47 2001 --- ./src/pcat/makedefs Fri Mar 22 14:44:11 2002 *************** *** 11,16 **** --- 11,19 ---- OpenBSD.2*) DEFS="-DOPENBSD2" SYSLIBS="-lkvm" ;; + OpenBSD.3*) DEFS="-DOPENBSD3" + SYSLIBS="-lkvm" + ;; BSD/OS.2*) DEFS="-DBSDI2" SYSLIBS="-lkvm" ;; diff -cr ../tct-1.09/src/pcat/pcat.c ./src/pcat/pcat.c *** ../tct-1.09/src/pcat/pcat.c Tue Sep 25 13:22:20 2001 --- ./src/pcat/pcat.c Fri Mar 22 14:44:11 2002 *************** *** 161,167 **** * OpenBSD 2.4 ptrace() resumes a stopped process when detaching, so we must * re-suspend upon detach. */ ! #if defined(OPENBSD2) #define SUPPORTED #include #include --- 161,167 ---- * OpenBSD 2.4 ptrace() resumes a stopped process when detaching, so we must * re-suspend upon detach. */ ! #if defined(OPENBSD2) || defined(OPENBSD3) #define SUPPORTED #include #include *************** *** 788,794 **** return (proc); #endif ! #if defined(OPENBSD2) PROC_INFO *proc; MAP_INFO *mp; struct kinfo_proc *procp; --- 788,794 ---- return (proc); #endif ! #if defined(OPENBSD2) || defined(OPENBSD3) PROC_INFO *proc; MAP_INFO *mp; struct kinfo_proc *procp;