]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove support for legacy SGI IRIX
authorOndřej Surý <ondrej@sury.org>
Tue, 21 Aug 2018 09:20:27 +0000 (11:20 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 28 Aug 2018 08:31:47 +0000 (10:31 +0200)
bin/named/unix/os.c
configure
configure.in
lib/isc/unix/file.c
lib/isc/unix/ifiter_sysctl.c

index 2893bb282ac5db3bdca78e7b543f4ebc15f881bc..d462a225eb1d1075f34993c57beb833b26a7d78f 100644 (file)
@@ -23,8 +23,8 @@
 
 #include <ctype.h>
 #include <errno.h>
+#include <grp.h>
 #include <fcntl.h>
-#include <grp.h>               /* Required for initgroups() on IRIX. */
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
index 737fea7f4c2b01990c7cb5b391f20eeb19e97130..6f2d3ea112a241f74feffba47a9ce9f65d7a0d88 100755 (executable)
--- a/configure
+++ b/configure
@@ -773,7 +773,6 @@ MKSYMTBL_PROGRAM
 ISC_PLATFORM_USEBACKTRACE
 PURIFY
 purify_path
-IRIX_DNSSEC_WARNINGS_HACK
 MKDEPPROG
 MKDEPCFLAGS
 MKDEPCC
@@ -17402,7 +17401,6 @@ esac
 #
 MKDEPCC="$CC"
 MKDEPCFLAGS="-M"
-IRIX_DNSSEC_WARNINGS_HACK=""
 
 if test "X$GCC" = "Xyes"; then
        STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
@@ -17477,17 +17475,6 @@ $as_echo "no" >&6; }
        fi
 else
        case $host in
-       *-sgi-irix*)
-               STD_CWARNINGS="-fullwarn -woff 1209"
-               #
-               # Silence more than 250 instances of
-               #   "prototyped function redeclared without prototype"
-               # and 11 instances of
-               #   "variable ... was set but never used"
-               # from lib/dns/sec/openssl.
-               #
-               IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
-               ;;
        *-solaris*)
                MKDEPCFLAGS="-xM"
                ;;
@@ -17498,7 +17485,6 @@ fi
 
 
 
-
 #
 # NLS
 #
@@ -17519,8 +17505,6 @@ fi
 # Use this for now, instead:
 #
 case "$host" in
-       mips-sgi-irix*)
-               ;;
        *-linux*)
                ;;
        *)
index 35934d2b7ff7098e3e28f27aaf55d0b9ef69a745..5fcc85117cf5a4631269a6ab74df8e3dccab53f2 100644 (file)
@@ -1702,7 +1702,6 @@ esac
 #
 MKDEPCC="$CC"
 MKDEPCFLAGS="-M"
-IRIX_DNSSEC_WARNINGS_HACK=""
 
 if test "X$GCC" = "Xyes"; then
        STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
@@ -1740,17 +1739,6 @@ if test "X$GCC" = "Xyes"; then
        fi
 else
        case $host in
-       *-sgi-irix*)
-               STD_CWARNINGS="-fullwarn -woff 1209"
-               #
-               # Silence more than 250 instances of
-               #   "prototyped function redeclared without prototype"
-               # and 11 instances of
-               #   "variable ... was set but never used"
-               # from lib/dns/sec/openssl.
-               #
-               IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
-               ;;
        *-solaris*)
                MKDEPCFLAGS="-xM"
                ;;
@@ -1760,7 +1748,6 @@ fi
 AC_SUBST(MKDEPCC)
 AC_SUBST(MKDEPCFLAGS)
 AC_SUBST(MKDEPPROG)
-AC_SUBST(IRIX_DNSSEC_WARNINGS_HACK)
 
 #
 # NLS
@@ -1777,8 +1764,6 @@ AC_CHECK_FUNC(catgets, AC_DEFINE(HAVE_CATGETS),)
 # Use this for now, instead:
 #
 case "$host" in
-       mips-sgi-irix*)
-               ;;
        *-linux*)
                ;;
        *)
index c43afda7f7d9edd87781b4ae6e37e936513a221b..6f214602d604d6223351efc1060b757acedbd23d 100644 (file)
@@ -198,9 +198,7 @@ isc_file_settime(const char *file, isc_time_t *when) {
 
        /*
         * isc_time_nanoseconds guarantees a value that divided by 1000 will
-        * fit into the minimum possible size tv_usec field.  Unfortunately,
-        * we don't know what that type is so can't cast directly ... but
-        * we can at least cast to signed so the IRIX compiler shuts up.
+        * fit into the minimum possible size tv_usec field.
         */
        times[0].tv_usec = times[1].tv_usec =
                (int32_t)(isc_time_nanoseconds(when) / 1000);
index 33ecc69d5848cedbbf96c318ed9b560add4a924d..f13065623f559e3d9240fc444d2e672efa33b14c 100644 (file)
 #include <isc/print.h>
 
 /* XXX what about Alpha? */
-#ifdef sgi
-#define ROUNDUP(a) ((a) > 0 ? \
-               (1 + (((a) - 1) | (sizeof(__uint64_t) - 1))) : \
-               sizeof(__uint64_t))
-#else
 #define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \
                    : sizeof(long))
-#endif
 
 #define IFITER_MAGIC           ISC_MAGIC('I', 'F', 'I', 'S')
 #define VALID_IFITER(t)                ISC_MAGIC_VALID(t, IFITER_MAGIC)
@@ -218,18 +212,10 @@ internal_current(isc_interfaceiter_t *iter) {
 #ifdef ISC_PLATFORM_HAVESALEN
                        sa = (struct sockaddr *)((char*)(sa)
                                         + ROUNDUP(sa->sa_len));
-#else
-#ifdef sgi
-                       /*
-                        * Do as the contributed SGI code does.
-                        */
-                       sa = (struct sockaddr *)((char*)(sa)
-                                        + ROUNDUP(_FAKE_SA_LEN_DST(sa)));
 #else
                        /* XXX untested. */
                        sa = (struct sockaddr *)((char*)(sa)
                                         + ROUNDUP(sizeof(struct sockaddr)));
-#endif
 #endif
                }