]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Retire Tru64 UNIX support.
authorDenis Ovsienko <[email protected]>
Sun, 28 Jan 2024 11:06:00 +0000 (11:06 +0000)
committerDenis Ovsienko <[email protected]>
Sun, 28 Jan 2024 11:35:15 +0000 (11:35 +0000)
See also commit 6008cb8.

CMakeLists.txt
INSTALL.md
Makefile.in
aclocal.m4
configure.ac
machdep.c [deleted file]
machdep.h [deleted file]
parsenfsfh.c
print-wb.c
tcpdump.1.in
tcpdump.c

index 8f6014f041a2d2f0039178dd1dfa24113b4f4ab2..ce1d21e346a7362614f350af151d57e7bd81e5c3 100644 (file)
@@ -1066,7 +1066,6 @@ set(NETDISSECT_SOURCE_LIST_C
     in_cksum.c
     ipproto.c
     l2vpn.c
     in_cksum.c
     ipproto.c
     l2vpn.c
-    machdep.c
     netdissect.c
     netdissect-alloc.c
     nlpid.c
     netdissect.c
     netdissect-alloc.c
     nlpid.c
@@ -1308,15 +1307,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "IRIX" OR CMAKE_SYSTEM_NAME STREQUAL "IRIX64")
     #
     set(MAN_FILE_FORMATS 4)
     set(MAN_MISC_INFO 5)
     #
     set(MAN_FILE_FORMATS 4)
     set(MAN_MISC_INFO 5)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "OSF1")
-    #
-    # DEC OSF/1, a/k/a Digital UNIX, a/k/a Tru64 UNIX.
-    # Use Tru64 UNIX conventions for man pages; they're the same as the
-    # System V conventions except that they use section 8 for
-    # administrative commands and daemons.
-    #
-    set(MAN_FILE_FORMATS 4)
-    set(MAN_MISC_INFO 5)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
     #
     # SunOS 5.x.
 elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
     #
     # SunOS 5.x.
index 384ab81ac490f2e813ec28ae408ec86783795f2b..be0786c29159ec3a6b213e495b7263493ff5398b 100644 (file)
@@ -105,8 +105,6 @@ l2vpn.c             - L2VPN encapsulation value-to-name table
 l2vpn.h                - L2VPN encapsulation definitions
 lbl/os-*.h     - OS-dependent defines and prototypes (currently none)
 llc.h          - LLC definitions
 l2vpn.h                - L2VPN encapsulation definitions
 lbl/os-*.h     - OS-dependent defines and prototypes (currently none)
 llc.h          - LLC definitions
-machdep.c      - machine dependent routines
-machdep.h      - machine dependent definitions
 makemib                - mib to header script
 mib.h          - mib definitions
 missing/*      - replacements for missing library functions
 makemib                - mib to header script
 mib.h          - mib definitions
 missing/*      - replacements for missing library functions
index c72945e8a789d0f57ac00f5718f30393b1230ff8..5896da9d29706c9d52db66ad747319e48b20fdd2 100644 (file)
@@ -84,7 +84,6 @@ LIBNETDISSECT_SRC=\
        in_cksum.c \
        ipproto.c \
        l2vpn.c \
        in_cksum.c \
        ipproto.c \
        l2vpn.c \
-       machdep.c \
        netdissect.c \
        netdissect-alloc.c \
        nlpid.c \
        netdissect.c \
        netdissect-alloc.c \
        nlpid.c \
@@ -293,7 +292,6 @@ HDR = \
        ipproto.h \
        l2vpn.h \
        llc.h \
        ipproto.h \
        l2vpn.h \
        llc.h \
-       machdep.h \
        mib.h \
        mpls.h \
        nameser.h \
        mib.h \
        mpls.h \
        nameser.h \
index 2df9fef6adcf74a65b1e84268f06b46cdd447118..4c21721172a6c8f102381931b619189f8018ab69 100644 (file)
@@ -148,28 +148,6 @@ AC_DEFUN(AC_LBL_C_INIT,
                    $1="$$1 -xansi -signed -g3"
                    ;;
 
                    $1="$$1 -xansi -signed -g3"
                    ;;
 
-           osf*)
-                   #
-                   # Presumed to be DEC OSF/1, Digital UNIX, or
-                   # Tru64 UNIX.
-                   #
-                   # The DEC C compiler, which is what we presume we're
-                   # using, doesn't exit with a non-zero exit status if we
-                   # hand it an invalid -W flag, can't be forced to do
-                   # so, and doesn't handle GCC-style -W flags, so we
-                   # don't want to try using GCC-style -W flags.
-                   #
-                   ac_lbl_cc_dont_try_gcc_dashW=yes
-                   #
-                   # -g is equivalent to -g2, which turns off
-                   # optimization; we choose -g3, which generates
-                   # debugging information but doesn't turn off
-                   # optimization (even if the optimization would
-                   # cause inaccuracies in debugging).
-                   #
-                   $1="$$1 -g3"
-                   ;;
-
            solaris*)
                    #
                    # Assumed to be Sun C, which requires -errwarn to force
            solaris*)
                    #
                    # Assumed to be Sun C, which requires -errwarn to force
@@ -271,9 +249,9 @@ AC_DEFUN(AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT,
                #
                case "$host_os" in
 
                #
                case "$host_os" in
 
-               irix*|osf*|darwin*)
+               irix*|darwin*)
                        #
                        #
-                       # MIPS C for IRIX, DEC C, and clang all use -M.
+                       # MIPS C for IRIX and Clang use -M.
                        #
                        ac_lbl_dependency_flag="-M"
                        ;;
                        #
                        ac_lbl_dependency_flag="-M"
                        ;;
index 4e0dc2dee302e7cc39ad6ed21e9ee053db57c9bd..0f1c08b80f3a410fab586685542f11d24384695f 100644 (file)
@@ -734,16 +734,6 @@ irix*)
        MAN_MISC_INFO=5
        ;;
 
        MAN_MISC_INFO=5
        ;;
 
-osf*)
-       V_GROUP=system
-
-       #
-       # Use System V conventions for man pages.
-       #
-       MAN_FILE_FORMATS=4
-       MAN_MISC_INFO=5
-       ;;
-
 solaris*)
        V_GROUP=sys
 
 solaris*)
        V_GROUP=sys
 
diff --git a/machdep.c b/machdep.c
deleted file mode 100644 (file)
index 2578b73..0000000
--- a/machdep.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 1996, 1997
- *     The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that: (1) source code distributions
- * retain the above copyright notice and this paragraph in its entirety, (2)
- * distributions including binary code include the above copyright notice and
- * this paragraph in its entirety in the documentation or other materials
- * provided with the distribution, and (3) all advertising materials mentioning
- * features or use of this software display the following acknowledgement:
- * ``This product includes software developed by the University of California,
- * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
- * the University nor the names of its contributors may be used to endorse
- * or promote products derived from this software without specific prior
- * written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stddef.h>
-
-#ifdef __osf__
-#include <stdio.h>
-#include <sys/sysinfo.h>
-#include <sys/proc.h>
-#endif /* __osf__ */
-
-#include "varattrs.h"
-#include "machdep.h"
-
-/*
- * On platforms where the CPU doesn't support unaligned loads, force
- * unaligned accesses to abort with SIGBUS, rather than being fixed
- * up (slowly) by the OS kernel; on those platforms, misaligned accesses
- * are bugs, and we want tcpdump to crash so that the bugs are reported.
- *
- * The only OS on which this is necessary is DEC OSF/1^W^WDigital
- * UNIX^W^WTru64 UNIX.
- */
-int
-abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
-{
-#ifdef __osf__
-       static int buf[2] = { SSIN_UACPROC, UAC_SIGBUS };
-
-       if (setsysinfo(SSI_NVPAIRS, (caddr_t)buf, 1, 0, 0) < 0) {
-               (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
-               return (-1);
-       }
-#endif
-       return (0);
-}
diff --git a/machdep.h b/machdep.h
deleted file mode 100644 (file)
index ba8ed38..0000000
--- a/machdep.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 1996
- *     The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that: (1) source code distributions
- * retain the above copyright notice and this paragraph in its entirety, (2)
- * distributions including binary code include the above copyright notice and
- * this paragraph in its entirety in the documentation or other materials
- * provided with the distribution, and (3) all advertising materials mentioning
- * features or use of this software display the following acknowledgement:
- * ``This product includes software developed by the University of California,
- * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
- * the University nor the names of its contributors may be used to endorse
- * or promote products derived from this software without specific prior
- * written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-#ifndef netdissect_machdep_h
-#define netdissect_machdep_h
-
-int abort_on_misalignment(char *, size_t);
-#endif
index 79f7614cfbfddc15df7445713282182dcd361efd..f73aa4630377d23aca166661236d8a76671dffcc 100644 (file)
@@ -118,9 +118,6 @@ Parse_fh(netdissect_options *ndo, const unsigned char *fh, u_int len,
 #if    defined(SUNOS5)
                    fhtype = FHT_SUNOS5;
 #endif
 #if    defined(SUNOS5)
                    fhtype = FHT_SUNOS5;
 #endif
-#if    defined(__osf__)
-                   fhtype = FHT_DECOSF;
-#endif
 #if    defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) \
      || defined(__OpenBSD__)
                    fhtype = FHT_BSD44;
 #if    defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) \
      || defined(__OpenBSD__)
                    fhtype = FHT_BSD44;
index 35b5a196d8bfe6096a9711fe8c4e612db01c6009..dd3e21292d717819abfe8ad669fad1a4f323802e 100644 (file)
@@ -73,10 +73,6 @@ struct pkt_hdr {
 #define PT_PREP         7       /* page vector reply */
 
 #if 0
 #define PT_PREP         7       /* page vector reply */
 
 #if 0
-#ifdef PF_USER
-#undef PF_USER                 /* {Digital,Tru64} UNIX define this, alas */
-#endif
-
 /* flags */
 #define PF_USER                0x01    /* hint that packet has interactive data */
 #define PF_VIS         0x02    /* only visible ops wanted */
 /* flags */
 #define PF_USER                0x01    /* hint that packet has interactive data */
 #define PF_VIS         0x02    /* only visible ops wanted */
index 536fe75fce961840b90e363887f064fb95e81a61..c18ac3a9b1d8f3d35601a7b1f387ec0d45c8e986 100644 (file)
@@ -222,7 +222,7 @@ is running, if the OS reports that information to applications; if not,
 it will be reported as 0).
 .LP
 On platforms that support the SIGINFO signal, such as most BSDs
 it will be reported as 0).
 .LP
 On platforms that support the SIGINFO signal, such as most BSDs
-(including macOS) and Digital/Tru64 UNIX, it will report those counts
+(including macOS), it will report those counts
 when it receives a SIGINFO signal (generated, for example, by typing
 your ``status'' character, typically control-T, although on some
 platforms, such as macOS, the ``status'' character is not set by
 when it receives a SIGINFO signal (generated, for example, by typing
 your ``status'' character, typically control-T, although on some
 platforms, such as macOS, the ``status'' character is not set by
index d8c494323f5cad832040b24e08a008c9b3232b61..5e23219718619344c94543b8102e34e3ad54fbdf 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -157,7 +157,6 @@ The Regents of the University of California.  All rights reserved.\n";
 #include "netdissect.h"
 #include "interface.h"
 #include "addrtoname.h"
 #include "netdissect.h"
 #include "interface.h"
 #include "addrtoname.h"
-#include "machdep.h"
 #include "pcap-missing.h"
 #include "ascii_strcasecmp.h"
 
 #include "pcap-missing.h"
 #include "ascii_strcasecmp.h"
 
@@ -1567,16 +1566,6 @@ main(int argc, char **argv)
                error("Attempting to initialize Winsock failed");
 #endif
 
                error("Attempting to initialize Winsock failed");
 #endif
 
-       /*
-        * On platforms where the CPU doesn't support unaligned loads,
-        * force unaligned accesses to abort with SIGBUS, rather than
-        * being fixed up (slowly) by the OS kernel; on those platforms,
-        * misaligned accesses are bugs, and we want tcpdump to crash so
-        * that the bugs are reported.
-        */
-       if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0)
-               error("%s", ebuf);
-
        /*
         * An explicit tzset() call is usually not needed as it happens
         * implicitly the first time we call localtime() or mktime(),
        /*
         * An explicit tzset() call is usually not needed as it happens
         * implicitly the first time we call localtime() or mktime(),