diff --git a/Config b/Config new file mode 100755 index 0000000000000000000000000000000000000000..44f5b19c2d9f1a04eadb083f3d54cde441215b89 --- /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 0000000000000000000000000000000000000000..558ad4f619601276183cc08c5276031bf185528b --- /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 0000000000000000000000000000000000000000..57d5e729d6f5391d24e0b9163dcb2924eb4f95a1 --- /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 0000000000000000000000000000000000000000..a2d42df3596c58d1d260aa22ce28dd9932318c12 --- /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 0000000000000000000000000000000000000000..6d9c8cbf06cfc582852dcd452249186373848f36 --- /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