CLEANUP: Remove obsolote support for Ultrix, Dynix, and some AIX. Minor cleanups
authorRemco Rijnders <remco@webconquest.com>
Tue, 8 Sep 2015 14:03:26 +0000 (16:03 +0200)
committerRemco Rijnders <remco@webconquest.com>
Wed, 9 Sep 2015 09:33:41 +0000 (11:33 +0200)
Config
Makefile.dist
include/patchlevel.h [deleted file]
include/sys.h
src/ircd.c
src/s_debug.c
src/s_misc.c
src/support.c
src/whowas.c

diff --git a/Config b/Config
index cbd82f8bd60775c08b910250e64222eb50eb6b60..bad177aa60d1ff2121b20ef90bd6c847c4adce78 100755 (executable)
--- a/Config
+++ b/Config
@@ -149,17 +149,6 @@ case "$OS" in
        DEFLIBS="-lcrypt -lz"
        OSNAME="FreeBSD"
        ;;
-    *SCO_SV*)
-       DEFCFLAGS="$DEFOPT -DSCOUNIX"
-       DEFLIBS="-lsocket -lz"
-       OSNAME="SCO Openserver"
-       NEEDSKIPNAME="Yep"
-       ;;
-    *OSF1*alpha*)
-       DEFCFLAGS="$DEFOPT"
-       DEFLIBS="-lz"
-       OSNAME="OSF/1 or Digital Unix"
-       ;;
     *Darwin*)
        DEFCFLAGS="$DEFOPT"
        DEFLIBS="-lz"
index bc14d822bda466e082c2464efa56f3354a3d19b4..d6f7f6a239312d737a96f8e86ff098a07f0e98de 100755 (executable)
@@ -50,19 +50,7 @@ IRCDDIR=/usr/local/lib/ircd
 # NEED_U_INT32_T=      -DNEED_U_INT32_T
 NEED_U_INT32_T=
 
-# [CHANGEME]
-# If you get a link-time error dealing with strtoul, comment out
-# this line.
-# STRTOUL=     strtoul.o
-STRTOUL=
-
-# [CHANGEME]
-# If you get crashes around a specific number of clients, and that client
-# load comes close or a little over the system-defined value of FD_SETSIZE,
-# override it here and see what happens.
-FD_SETSIZE=
-
-CFLAGS=-I$(INCLUDEDIR) $(XCFLAGS) $(NEED_U_INT32_T) $(FD_SETSIZE)
+CFLAGS=-I$(INCLUDEDIR) $(XCFLAGS) $(NEED_U_INT32_T) 
 
 SHELL=/bin/sh
 SUBDIRS=src
@@ -80,7 +68,7 @@ MAKEARGS =    'CFLAGS=${CFLAGS}' 'CC=${CC}' 'IRCDLIBS=${IRCDLIBS}' \
                'BINDIR=${BINDIR}' 'INSTALL=${INSTALL}' \
                'INCLUDEDIR=${INCLUDEDIR}' 'IRCDDIR=${IRCDDIR}' \
                'MANDIR=${MANDIR}' 'RM=${RM}' 'CP=${CP}' 'TOUCH=${TOUCH}' \
-               'RES=${RES}' 'SHELL=${SHELL}' 'STRTOUL=${STRTOUL}'
+               'RES=${RES}' 'SHELL=${SHELL}'
 
 server:
 
diff --git a/include/patchlevel.h b/include/patchlevel.h
deleted file mode 100644 (file)
index 013e164..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/************************************************************************
- *   IRC - Internet Relay Chat, include/patchlevel.h
- *
- *   This program is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 1, or (at your option)
- *   any later version.
- *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-/*
- * PATCHes
- *
- * Only put here ADDED special stuff, for instance: ".mu3" or ".ban"
- * Please start the patchlevel with a '.'
- *
- * IMPORTANT: We've copied the patch-scheme from u2.9, note the new
- * format - it isn't neccessary to edit this manually !!!
- * If you do, be sure you know what you are doing!
- * 
- * For patch developers:
- * To make a diff of your patch, edit any of the below lines containing
- * a "" (an EMPTY string). Your patch will then succeed, with only an
- * offset, on the first empty place in the users patchlevel.h.
- * Do not change anyother line, the '\' are to make sure that the 'fuzz'
- * will stay 0. --Run
- *
- */
-
-#define PATCH1 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH2 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH3 \
-               \
-               \
-               \
-               ""      
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH4 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH5 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH6 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH7 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#define PATCH8 \
-               \
-               \
-               \
-               ""
-
-/*
- * Deliberate empty lines
- */
-
-#ifdef DEBUGMODE 
-#define PATCH9 ".debug"
-#else
-#define PATCH9 ""
-#endif
-
-/*
- * Deliberate empty lines
- */
-
index bd214756e7b447b79d62d3db124a81345412b975..3fc2ff44ca3dbfaa76540f120484ae9eb40b3881 100644 (file)
@@ -17,8 +17,6 @@
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#ifndef        __sys_include__
-#define __sys_include__
 #ifdef ISC202
 #include <net/errno.h>
 #else
 #ifndef HAVE_INDEX
 #define   index   strchr
 #define   rindex  strrchr
-/*
-extern char    *index PROTO((char *, char));
-extern char    *rindex PROTO((char *, char));
-*/
 #endif
 
 #ifndef HAVE_BZERO
@@ -92,18 +86,6 @@ extern       char    *rindex PROTO((char *, char));
 #  endif               /* HAVE_BSD_SIGNALS */
 #endif                 /* HAVE_POSIX_SIGNALS */
 
-#ifdef AIX
-#  include <sys/select.h>
-#  include <sys/machine.h>
-#  define BSD_INCLUDES
-#  if BYTE_ORDER == BIG_ENDIAN
-#  define BIT_ZERO_ON_LEFT
-# endif
-# if BYTE_ORDER == LITTLE_ENDIAN
-#  define BIT_ZERO_ON_RIGHT
-# endif
-#endif
-
 #include <sys/time.h>
 
 #if !defined(DEBUGMODE)
@@ -112,11 +94,7 @@ extern      char    *rindex PROTO((char *, char));
 #define        free(x)         MyFree(x)
 #endif
 
-#ifdef NEXT
-#define VOIDSIG int    /* whether signal() returns int of void */
-#else
 #define VOIDSIG void   /* whether signal() returns int of void */
-#endif
 
 #define OPT_TYPE void  /* opt type for get/setsockopt */
 
@@ -130,43 +108,7 @@ extern     char    *rindex PROTO((char *, char));
 #  endif
 #endif
 
-
-#ifdef _SEQUENT_                /* Dynix 1.4 or 2.0 Generic Define.. */
-#undef BSD
-#define SYSV                    /* Also #define SYSV */
-#endif
-
-#ifdef  ultrix
-#define ULTRIX
-#endif
-
-#ifdef  sgi
-#define SGI
-#endif
-
-#if defined(mips) || defined(PCS)
-#undef SYSV
-#endif
-
-#ifdef MIPS
-#undef BSD
-#define BSD             1       /* mips only works in bsd43 environment */
-#endif
-
-#ifdef sequent                   /* Dynix (sequent OS) */
-#define SEQ_NOFILE    128        /* set to your current kernel impl, */
-#endif                           /* max number of socket connections */
-
-#ifdef _SEQUENT_
-#define DYNIXPTX
-#endif
-
-/*
- * Different name on NetBSD, FreeBSD, BSDI, OpenBSD and Linux
- */
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__OpenBSD__) ||  defined(__linux__) || defined(__Darwin__)
 #define dn_skipname  __dn_skipname
-#endif
 
 extern VOIDSIG dummy();
 
@@ -223,6 +165,3 @@ error CLIENT_FLOOD undefined
 #if (NICKNAMEHISTORYLENGTH < 100)
 #  define NICKNAMEHISTORYLENGTH 100
 #endif
-   
-   
-#endif /* __sys_include__ */
index cdf15a5a6eccdb22985acf9d64b6971743b72339..49fd9f9898e05cd2cd15743d495f2d60f0f3244a 100644 (file)
@@ -582,10 +582,8 @@ int main (argc, argv)
 #endif
 
 #if (!defined(CHROOTDIR) || (defined(IRC_UID) && defined(IRC_GID)))
-#ifndef        AIX
     (void) setuid ((uid_t) uid);
     (void) setuid ((uid_t) euid);
-#endif
 
     if ((int) getuid () == 0) {
 #if defined(IRC_UID) && defined(IRC_GID)
index 315eb4730f520958120a1dea3c549abc119a17c4..072a9afc2e4f54c582c612549aa7253f2e9e9a69 100644 (file)
@@ -68,10 +68,7 @@ char serveropts[] = {
 #include "whowas.h"
 #include "hash.h"
 #include <sys/file.h>
-#if !defined(ULTRIX) && !defined(SGI) && !defined(sequent) && \
-    !defined(__convex__)
 #include <sys/param.h>
-#endif
 #ifdef GETRUSAGE_2
 #include <sys/resource.h>
 #else
@@ -79,9 +76,6 @@ char serveropts[] = {
 #include <sys/times.h>
 #endif
 #endif
-#ifdef PCS
-#include <time.h>
-#endif
 #include "h.h"
 
 #ifndef ssize_t
index 6f3b092f1733d83b6c1e7c7359321a230cc379e6..2c2dd701fac2350f4e3fe19d2c0282e69c9de32f 100644 (file)
 #include "userload.h"
 #include <sys/stat.h>
 #include <fcntl.h>
-#if !defined(ULTRIX) && !defined(SGI) && !defined(sequent) && \
-    !defined(__convex__)
 #include <sys/param.h>
-#endif
-#if defined(PCS) || defined(AIX) || defined(SVR3)
-#include <time.h>
-#endif
-#ifdef DYNIXPTX
-#include <sys/types.h>
-#include <time.h>
-#endif
 #include "h.h"
 
 #define        _1MEG   (1024.0)
index d2e66201d9a6dbd3e831eaf4f50e6d70c0541415..f569babe6d3148099c301364b9e459b981d7c69b 100644 (file)
@@ -114,12 +114,8 @@ char *strerror (err_no)
 
 /*
    **   inetntoa  --    changed name to remove collision possibility and
-   **           so behaviour is gaurunteed to take a pointer arg.
+   **           so behaviour is guaranteed to take a pointer arg.
    **           -avalon 23/11/92
-   **   inet_ntoa --    returned the dotted notation of a given
-   **           internet number (some ULTRIX don't have this)
-   **           argv 11/90).
-   **   inet_ntoa --    its broken on some Ultrix/Dynix too. -avalon
  */
 
 char *inetntoa (in)
index 86cc49efea4ee23eb0d8cc1bd983433ba2b4c0dd..6e2c4c1d5c981dcc18fb78c503e0ada9e4ed7fa2 100644 (file)
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-/*
- * --- avalon --- 6th April 1992
- * rewritten to scrap linked lists and use a table of structures which
- * is referenced like a circular loop. Should be faster and more efficient.
- */
-
 #include "struct.h"
 #include "common.h"
 #include "sys.h"