CLEANUP: Remove obsolete Solaris support
authorRemco Rijnders <remco@webconquest.com>
Tue, 8 Sep 2015 13:55:13 +0000 (15:55 +0200)
committerRemco Rijnders <remco@webconquest.com>
Tue, 8 Sep 2015 13:55:13 +0000 (15:55 +0200)
Config
include/sys.h
src/dbuf.c
src/s_bsd.c
src/s_debug.c

diff --git a/Config b/Config
index dc72474ab23f859937b7ea0123c5499c11c9b6bf..cbd82f8bd60775c08b910250e64222eb50eb6b60 100755 (executable)
--- a/Config
+++ b/Config
@@ -160,18 +160,6 @@ case "$OS" in
        DEFLIBS="-lz"
        OSNAME="OSF/1 or Digital Unix"
        ;;
-    *SunOS*4.*)
-       DEFCFLAGS="$DEFOPT"
-       DEFLIBS="-lz"
-       OSNAME="SunOS 4.x"
-        LOCALD=undef
-       ;;
-    *SunOS*5.*)
-       DEFCFLAGS="$DEFOPT -DSOL20"
-       DEFLIBS="-lsocket -lnsl -lresolv -lz"
-       OSNAME="Solaris 2.x (or SunOS 5.x)"
-        LOCALD=undef
-       ;;
     *Darwin*)
        DEFCFLAGS="$DEFOPT"
        DEFLIBS="-lz"
index 94bc863151bb9c194ec125693f4f3ead5ad55d10..bd214756e7b447b79d62d3db124a81345412b975 100644 (file)
@@ -118,11 +118,7 @@ extern     char    *rindex PROTO((char *, char));
 #define VOIDSIG void   /* whether signal() returns int of void */
 #endif
 
-#ifdef SOL20
-#define OPT_TYPE char  /* opt type for get/setsockopt */
-#else
-#define OPT_TYPE void
-#endif
+#define OPT_TYPE void  /* opt type for get/setsockopt */
 
 #ifdef  __osf__
 #  define OSF
@@ -168,7 +164,7 @@ extern      char    *rindex PROTO((char *, char));
 /*
  * Different name on NetBSD, FreeBSD, BSDI, OpenBSD and Linux
  */
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__OpenBSD__) ||  defined(__linux__) || defined(SOL20) || defined(__Darwin__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__OpenBSD__) ||  defined(__linux__) || defined(__Darwin__)
 #define dn_skipname  __dn_skipname
 #endif
 
index bb3ffcf36e4aff8548a5eef6e5ae6af9470435f1..cc6ee8b5925e75ad7bbc6cd593b751ecae2a67a7 100644 (file)
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-/* -- Jto -- 20 Jun 1990
- * extern void free() fixed as suggested by
- * gruner@informatik.tu-muenchen.de
- */
-
-/* -- Jto -- 10 May 1990
- * Changed memcpy into bcopy and removed the declaration of memset
- * because it was unnecessary.
- * Added the #includes for "struct.h" and "sys.h" to get bcopy/memcpy
- * work
- */
-
 /*
    ** For documentation of the *global* functions implemented here,
    ** see the header file (dbuf.h).
@@ -79,7 +67,7 @@ static dbufbuf *dbuf_alloc ()
        return NULL;
     }
 #if defined(VALLOC) && !defined(DEBUGMODE)
-#if defined(SOL20) || defined(_SC_PAGESIZE)
+#if defined(_SC_PAGESIZE)
     num = sysconf (_SC_PAGESIZE) / sizeof (dbufbuf);
 #else
     num = getpagesize () / sizeof (dbufbuf);
index 485a49f2ea5d6b45dc0f156dadcda43991ad47f3..2e44523a758970452c07e8f23aaefae9af255d1e 100644 (file)
@@ -871,16 +871,6 @@ static void set_sock_opts (fd, cptr)
        (fd, SOL_SOCKET, SO_REUSEADDR, (OPT_TYPE *) & opt, sizeof (opt)) < 0)
        report_error ("setsockopt(SO_REUSEADDR) %s:%s", cptr);
 #endif
-#if  defined(SO_DEBUG) && defined(DEBUGMODE) && 0
-/* Solaris with SO_DEBUG writes to syslog by default */
-#if !defined(SOL20) || defined(USE_SYSLOG)
-    opt = 1;
-    if (setsockopt
-       (fd, SOL_SOCKET, SO_DEBUG, (OPT_TYPE *) & opt, sizeof (opt))
-       < 0)
-       report_error ("setsockopt(SO_DEBUG) %s:%s", cptr);
-#endif /* SOL20 */
-#endif
 #if defined(SO_USELOOPBACK)
     opt = 1;
     if (setsockopt
index 7c06c776184731420e4900f288934bb63340cbfb..315eb4730f520958120a1dea3c549abc119a17c4 100644 (file)
@@ -73,12 +73,6 @@ char serveropts[] = {
 #include <sys/param.h>
 #endif
 #ifdef GETRUSAGE_2
-#ifdef SOL20
-#include <sys/time.h>
-#ifdef RUSAGEH
-#include <sys/rusage.h>
-#endif
-#endif
 #include <sys/resource.h>
 #else
 #ifdef TIMES_2