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"
# 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
'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:
+++ /dev/null
-/************************************************************************
- * 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
- */
-
* 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
# 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)
#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 */
# 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();
#if (NICKNAMEHISTORYLENGTH < 100)
# define NICKNAMEHISTORYLENGTH 100
#endif
-
-
-#endif /* __sys_include__ */
#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)
#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
#include <sys/times.h>
#endif
#endif
-#ifdef PCS
-#include <time.h>
-#endif
#include "h.h"
#ifndef ssize_t
#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)
/*
** 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)
* 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"