diff -cr /tmp/tct-1.11/CHANGES ./CHANGES *** /tmp/tct-1.11/CHANGES Sat Oct 5 13:48:52 2002 --- ./CHANGES Sat Aug 30 20:11:22 2003 *************** *** 1,3 **** --- 1,11 ---- + Sat Aug 30 19:21:29 EDT 2003 + + o Preliminary FreeBSD 5.0 port. UFS2 support is still to be done. + + Fri Aug 1 10:07:39 EDT 2003 + + o RedHat 9.0 fix by Florin Andrei for the file command. + Sat Oct 5 13:47:29 EDT 2002 o Restored tctutils compatibility, which broke with 20020916. diff -cr /tmp/tct-1.11/extras/entropy/makedefs ./extras/entropy/makedefs *** /tmp/tct-1.11/extras/entropy/makedefs Fri Mar 22 14:44:10 2002 --- ./extras/entropy/makedefs Sat Aug 30 19:16:41 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" diff -cr /tmp/tct-1.11/extras/findkey/makedefs ./extras/findkey/makedefs *** /tmp/tct-1.11/extras/findkey/makedefs Fri Mar 22 14:44:10 2002 --- ./extras/findkey/makedefs Sat Aug 30 19:16:51 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" diff -cr /tmp/tct-1.11/lib/ostype.pl ./lib/ostype.pl *** /tmp/tct-1.11/lib/ostype.pl Sat Mar 23 18:50:28 2002 --- ./lib/ostype.pl Sat Aug 30 19:17:11 2003 *************** *** 12,17 **** --- 12,18 ---- "FREEBSD2", "FreeBSD.2", "FREEBSD3", "FreeBSD.3", "FREEBSD4", "FreeBSD.4", + "FREEBSD5", "FreeBSD.5", "OPENBSD2", "OpenBSD.2", "OPENBSD3", "OpenBSD.3", "BSDI2", "BSD\/OS.2", diff -cr /tmp/tct-1.11/src/aux/makedefs ./src/aux/makedefs *** /tmp/tct-1.11/src/aux/makedefs Fri Mar 22 14:44:10 2002 --- ./src/aux/makedefs Sat Aug 30 19:17:20 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" diff -cr /tmp/tct-1.11/src/file/file.h ./src/file/file.h *** /tmp/tct-1.11/src/file/file.h Sun Jul 30 19:39:20 2000 --- ./src/file/file.h Fri Aug 1 10:04:49 2003 *************** *** 102,108 **** --- 102,112 ---- + #ifdef NEED_ERRNO_H + #include + #else extern int errno; /* Some unixes don't define this.. */ + #endif extern char *progname; /* the program name */ extern char *magicfile; /* name of the magic file */ diff -cr /tmp/tct-1.11/src/file/makedefs ./src/file/makedefs *** /tmp/tct-1.11/src/file/makedefs Fri Mar 22 14:44:10 2002 --- ./src/file/makedefs Sat Aug 30 20:02:52 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" *************** *** 26,34 **** SunOS.5*) DEFS="-DSUNOS5" RANLIB=":" ;; ! Linux.2.4*) DEFS="-DLINUX2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;; ! Linux.2*) DEFS="-DLINUX2" ;; *) echo unsupported system: $SYSTEM.$RELEASE 1>&2; exit 1 ;; --- 28,36 ---- SunOS.5*) DEFS="-DSUNOS5" RANLIB=":" ;; ! Linux.2.[0-3].*) DEFS="-DLINUX2" ;; ! Linux.2.*) DEFS="-DLINUX2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNEED_ERRNO_H" ;; *) echo unsupported system: $SYSTEM.$RELEASE 1>&2; exit 1 ;; diff -cr /tmp/tct-1.11/src/fstools/fs_tools.h ./src/fstools/fs_tools.h *** /tmp/tct-1.11/src/fstools/fs_tools.h Sat Oct 5 13:46:39 2002 --- ./src/fstools/fs_tools.h Sat Aug 30 19:44:39 2003 *************** *** 96,102 **** #define INO_TO_CG ino_to_cg #endif ! #if defined(FREEBSD3) || defined(FREEBSD4) #define SUPPORTED #define HAVE_UFS_FFS #include --- 96,102 ---- #define INO_TO_CG ino_to_cg #endif ! #if defined(FREEBSD3) || defined(FREEBSD4) || defined(FREEBSD5) #define SUPPORTED #define HAVE_UFS_FFS #include *************** *** 113,118 **** --- 113,127 ---- #define UFS_TYPE "ufs" #define DEF_FSTYPE UFS_TYPE #define INO_TO_CG ino_to_cg + + /* + * Preliminary: legacy UFS support for FreeBSD 5.x. Still need to do UFS2. + */ + #ifdef FS_UFS1_MAGIC + #define FS_MAGIC FS_UFS1_MAGIC + #define SBOFF SBLOCK_UFS1 + #define dinode ufs1_dinode + #endif #endif /* diff -cr /tmp/tct-1.11/src/fstools/makedefs ./src/fstools/makedefs *** /tmp/tct-1.11/src/fstools/makedefs Fri Mar 22 14:44:10 2002 --- ./src/fstools/makedefs Sat Aug 30 19:18:04 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" diff -cr /tmp/tct-1.11/src/lastcomm/Makefile ./src/lastcomm/Makefile *** /tmp/tct-1.11/src/lastcomm/Makefile Sun Jul 30 19:39:20 2000 --- ./src/lastcomm/Makefile Sat Aug 30 19:58:32 2003 *************** *** 2,8 **** CC = gcc OPT = -O DEBUG = -g ! INCL = CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) OBJS = lastcomm.o $(MISSING_OBJS) BIN_DIR = ../../bin --- 2,8 ---- CC = gcc OPT = -O DEBUG = -g ! INCL = -I. CFLAGS = $(DEFS) $(INCL) $(OPT) $(DEBUG) OBJS = lastcomm.o $(MISSING_OBJS) BIN_DIR = ../../bin diff -cr /tmp/tct-1.11/src/lastcomm/makedefs ./src/lastcomm/makedefs *** /tmp/tct-1.11/src/lastcomm/makedefs Fri Mar 22 14:44:10 2002 --- ./src/lastcomm/makedefs Sat Aug 30 19:49:13 2003 *************** *** 4,12 **** case "$SYSTEM.$RELEASE" in FreeBSD.2*) DEFS="-DFREEBSD2" ;; - FreeBSD.4*) DEFS="-DFREEBSD3" - ;; FreeBSD.3*) DEFS="-DFREEBSD3" ;; OpenBSD.3*) DEFS="-DOPENBSD3" ;; --- 4,14 ---- case "$SYSTEM.$RELEASE" in FreeBSD.2*) DEFS="-DFREEBSD2" ;; FreeBSD.3*) DEFS="-DFREEBSD3" + ;; + FreeBSD.4*) DEFS="-DFREEBSD4" + ;; + FreeBSD.5*) DEFS="-DFREEBSD5" ;; OpenBSD.3*) DEFS="-DOPENBSD3" ;; diff -cr /tmp/tct-1.11/src/lastcomm/sys_defs.h ./src/lastcomm/sys_defs.h *** /tmp/tct-1.11/src/lastcomm/sys_defs.h Fri Mar 22 14:44:10 2002 --- ./src/lastcomm/sys_defs.h Sat Aug 30 19:18:31 2003 *************** *** 6,11 **** --- 6,12 ---- * This software is distributed under the IBM Public License. */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ + || defined(FREEBSD5) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ || defined(OPENBSD2) || defined(OPENBSD3) #define SUPPORTED diff -cr /tmp/tct-1.11/src/major_minor/makedefs ./src/major_minor/makedefs *** /tmp/tct-1.11/src/major_minor/makedefs Fri Mar 22 14:44:11 2002 --- ./src/major_minor/makedefs Sat Aug 30 19:59:37 2003 *************** *** 6,12 **** ;; FreeBSD.3*) DEFS="-DFREEBSD3" ;; ! FreeBSD.4*) DEFS="-DFREEBSD3" ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; --- 6,14 ---- ;; FreeBSD.3*) DEFS="-DFREEBSD3" ;; ! FreeBSD.4*) DEFS="-DFREEBSD4" ! ;; ! FreeBSD.5*) DEFS="-DFREEBSD5" ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; diff -cr /tmp/tct-1.11/src/misc/makedefs ./src/misc/makedefs *** /tmp/tct-1.11/src/misc/makedefs Fri Mar 22 14:44:11 2002 --- ./src/misc/makedefs Sat Aug 30 19:18:41 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" ;; OpenBSD.3*) DEFS="-DOPENBSD3" diff -cr /tmp/tct-1.11/src/pcat/makedefs ./src/pcat/makedefs *** /tmp/tct-1.11/src/pcat/makedefs Fri Mar 22 14:44:11 2002 --- ./src/pcat/makedefs Sat Aug 30 19:18:48 2003 *************** *** 8,13 **** --- 8,15 ---- ;; FreeBSD.4*) DEFS="-DFREEBSD4" ;; + FreeBSD.5*) DEFS="-DFREEBSD5" + ;; OpenBSD.2*) DEFS="-DOPENBSD2" SYSLIBS="-lkvm" ;; diff -cr /tmp/tct-1.11/src/pcat/pcat.c ./src/pcat/pcat.c *** /tmp/tct-1.11/src/pcat/pcat.c Fri Mar 22 14:44:11 2002 --- ./src/pcat/pcat.c Sat Aug 30 19:19:33 2003 *************** *** 104,110 **** /* * FreeBSD 2.x and later have /proc, which immensely simplifies our task. */ ! #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) #define SUPPORTED #define HAVE_PROC_MEM #endif --- 104,111 ---- /* * FreeBSD 2.x and later have /proc, which immensely simplifies our task. */ ! #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ ! || defined(FREEBSD5) #define SUPPORTED #define HAVE_PROC_MEM #endif *************** *** 526,532 **** static PROC_INFO *open_process(pid_t pid) { ! #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) PROC_INFO *proc = (PROC_INFO *) mymalloc(sizeof(*proc)); char buf[READ_BUFSIZ_CHARS]; MAP_INFO *mp; --- 527,534 ---- static PROC_INFO *open_process(pid_t pid) { ! #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ ! || defined(FREEBSD5) PROC_INFO *proc = (PROC_INFO *) mymalloc(sizeof(*proc)); char buf[READ_BUFSIZ_CHARS]; MAP_INFO *mp;