From 9363510ac81f2309d23dd67c95fead0c13b6efbc Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Fri, 30 Aug 1991 01:28:09 +0000 Subject: [PATCH] Initial revision --- Config | 9 +++++++++ config/Makefile | 15 +++++++++++++++ config/balance-config.h | 27 +++++++++++++++++++++++++++ config/config-template.h | 34 ++++++++++++++++++++++++++++++++++ config/sun4os4-config.h | 31 +++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100755 Config create mode 100644 config/Makefile create mode 100644 config/balance-config.h create mode 100644 config/config-template.h create mode 100644 config/sun4os4-config.h diff --git a/Config b/Config new file mode 100755 index 000000000..44f5b19c2 --- /dev/null +++ b/Config @@ -0,0 +1,9 @@ +#!/bin/sh + +[ -d include ] || mkdir include +case "$1" in +balance) ln -s ../config/balance-config.h include/m-config.h;; +sun4) ln -s ../config/sun4os4-config.h include/m-config.h;; +*) echo Unknown host $1.;; + exit 1 +esac diff --git a/config/Makefile b/config/Makefile new file mode 100644 index 000000000..558ad4f61 --- /dev/null +++ b/config/Makefile @@ -0,0 +1,15 @@ +TOPDIR = /usr/lyskom +SCRIPTDIR = $(TOPDIR)/scripts + +include $(SCRIPTDIR)/import.make + +includes: $(INCLUDE-DIR)/m-config.h + @echo You must run Config before Build or make. + exit 1 + +libraries:; +binaries:; +clean: + $(RM) $(GENERIC-CLEAN) + +depend:; diff --git a/config/balance-config.h b/config/balance-config.h new file mode 100644 index 000000000..57d5e729d --- /dev/null +++ b/config/balance-config.h @@ -0,0 +1,27 @@ +/* + * $Id: balance-config.h,v 1.1 1991/08/30 01:28:07 ceder Exp $ + * + * This is a generic configuration file for LysKOM. + */ + +/* + * Define BUGGY_INET_NTOA if inet_ntoa is buggy. This is the case for + * a Sun Sparc with SunOS 4.1.1. If you define BUGGY_INET_NTOA a + * replacement routine (from libraries/libisc/inet_ntoa.c) will be + * used. + */ + +/* #define BUGGY_INET_NTOA */ + +/* + * Max number of file descriptors that can be opened by a process. + * If this is set too large here, the server will crash when too many + * people try to connect at the same time. + */ + +#define MAX_OPEN_FD 16 + +/* No LOCALE here.. */ + +/* #define HAVE_LOCALE */ + diff --git a/config/config-template.h b/config/config-template.h new file mode 100644 index 000000000..a2d42df35 --- /dev/null +++ b/config/config-template.h @@ -0,0 +1,34 @@ +/* + * $Id: config-template.h,v 1.1 1991/08/30 01:28:04 ceder Exp $ + * + * This is a generic configuration file for LysKOM. + */ + +/* + * Define BUGGY_INET_NTOA if inet_ntoa is buggy. This is the case for + * a Sun Sparc with SunOS 4.1.1. If you define BUGGY_INET_NTOA a + * replacement routine (from libraries/libisc/inet_ntoa.c) will be + * used. + */ + +#define BUGGY_INET_NTOA + +/* + * Max number of file descriptors that can be opened by a process. + * If this is set too large here, the server will crash when too many + * people try to connect at the same time. + */ + +#include <limits.h> +#ifdef _POSIX_OPEN_MAX +#define MAX_OPEN_FD _POSIX_OPEN_MAX +#else +#define MAX_OPEN_FD 16 +#endif + + +/* + * Define HAVE_LOCALE if you have it (and want to use it). + */ + +#define HAVE_LOCALE diff --git a/config/sun4os4-config.h b/config/sun4os4-config.h new file mode 100644 index 000000000..6d9c8cbf0 --- /dev/null +++ b/config/sun4os4-config.h @@ -0,0 +1,31 @@ +/* + * $Id: sun4os4-config.h,v 1.1 1991/08/30 01:27:59 ceder Exp $ + * + * Configure LysKOM for a Sun Sparc-server running SunOS 4.1.1. + * This is the configuration we are running at Lysator, so this is + * fairly well tested. + */ + +/* + * Define BUGGY_INET_NTOA if inet_ntoa is buggy. This is the case for + * a Sun Sparc with SunOS 4.1.1. If you define BUGGY_INET_NTOA a + * replacement routine (from libraries/libisc/inet_ntoa.c) will be + * used. + */ + +#define BUGGY_INET_NTOA + +/* + * Max number of file descriptors that can be opened by a process. + * If this is set too large here, the server will crash when too many + * people try to connect at the same time. + * + * It is possible to boost this value to 256 if you remake the kernel + * (I think). 58 connections is enough. + */ + +#define MAX_OPEN_FD 64 + +/* We have LOCALE. */ + +#define HAVE_LOCALE -- GitLab