2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Remove support for legacy SGI IRIX

This commit is contained in:
Ondřej Surý 2018-08-21 11:20:27 +02:00
parent 9f4528c623
commit c19713aa51
5 changed files with 2 additions and 49 deletions

View File

@ -23,8 +23,8 @@
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <grp.h>
#include <fcntl.h> #include <fcntl.h>
#include <grp.h> /* Required for initgroups() on IRIX. */
#include <pwd.h> #include <pwd.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

16
configure vendored
View File

@ -773,7 +773,6 @@ MKSYMTBL_PROGRAM
ISC_PLATFORM_USEBACKTRACE ISC_PLATFORM_USEBACKTRACE
PURIFY PURIFY
purify_path purify_path
IRIX_DNSSEC_WARNINGS_HACK
MKDEPPROG MKDEPPROG
MKDEPCFLAGS MKDEPCFLAGS
MKDEPCC MKDEPCC
@ -17402,7 +17401,6 @@ esac
# #
MKDEPCC="$CC" MKDEPCC="$CC"
MKDEPCFLAGS="-M" MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
@ -17477,17 +17475,6 @@ $as_echo "no" >&6; }
fi fi
else else
case $host in 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*) *-solaris*)
MKDEPCFLAGS="-xM" MKDEPCFLAGS="-xM"
;; ;;
@ -17498,7 +17485,6 @@ fi
# #
# NLS # NLS
# #
@ -17519,8 +17505,6 @@ fi
# Use this for now, instead: # Use this for now, instead:
# #
case "$host" in case "$host" in
mips-sgi-irix*)
;;
*-linux*) *-linux*)
;; ;;
*) *)

View File

@ -1702,7 +1702,6 @@ esac
# #
MKDEPCC="$CC" MKDEPCC="$CC"
MKDEPCFLAGS="-M" MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 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 fi
else else
case $host in 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*) *-solaris*)
MKDEPCFLAGS="-xM" MKDEPCFLAGS="-xM"
;; ;;
@ -1760,7 +1748,6 @@ fi
AC_SUBST(MKDEPCC) AC_SUBST(MKDEPCC)
AC_SUBST(MKDEPCFLAGS) AC_SUBST(MKDEPCFLAGS)
AC_SUBST(MKDEPPROG) AC_SUBST(MKDEPPROG)
AC_SUBST(IRIX_DNSSEC_WARNINGS_HACK)
# #
# NLS # NLS
@ -1777,8 +1764,6 @@ AC_CHECK_FUNC(catgets, AC_DEFINE(HAVE_CATGETS),)
# Use this for now, instead: # Use this for now, instead:
# #
case "$host" in case "$host" in
mips-sgi-irix*)
;;
*-linux*) *-linux*)
;; ;;
*) *)

View 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 * isc_time_nanoseconds guarantees a value that divided by 1000 will
* fit into the minimum possible size tv_usec field. Unfortunately, * fit into the minimum possible size tv_usec field.
* 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.
*/ */
times[0].tv_usec = times[1].tv_usec = times[0].tv_usec = times[1].tv_usec =
(int32_t)(isc_time_nanoseconds(when) / 1000); (int32_t)(isc_time_nanoseconds(when) / 1000);

View File

@ -29,14 +29,8 @@
#include <isc/print.h> #include <isc/print.h>
/* XXX what about Alpha? */ /* 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))) \ #define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \
: sizeof(long)) : sizeof(long))
#endif
#define IFITER_MAGIC ISC_MAGIC('I', 'F', 'I', 'S') #define IFITER_MAGIC ISC_MAGIC('I', 'F', 'I', 'S')
#define VALID_IFITER(t) ISC_MAGIC_VALID(t, IFITER_MAGIC) #define VALID_IFITER(t) ISC_MAGIC_VALID(t, IFITER_MAGIC)
@ -218,18 +212,10 @@ internal_current(isc_interfaceiter_t *iter) {
#ifdef ISC_PLATFORM_HAVESALEN #ifdef ISC_PLATFORM_HAVESALEN
sa = (struct sockaddr *)((char*)(sa) sa = (struct sockaddr *)((char*)(sa)
+ ROUNDUP(sa->sa_len)); + 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 #else
/* XXX untested. */ /* XXX untested. */
sa = (struct sockaddr *)((char*)(sa) sa = (struct sockaddr *)((char*)(sa)
+ ROUNDUP(sizeof(struct sockaddr))); + ROUNDUP(sizeof(struct sockaddr)));
#endif
#endif #endif
} }