Commit 8eaee819 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added HAVE_GETDTABLESIZE.

parent 360e15bb
/*
* $Id: balance-config.h,v 1.1 1991/08/30 01:28:07 ceder Exp $
* $Id: balance-config.h,v 1.2 1991/08/30 10:00:14 ceder Exp $
*
* This is a generic configuration file for LysKOM.
* This works on a Sequent Balance running Dynix 2.1.1.
*/
/*
* 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 */
/* See config-template.h for comments. */
#define HAVE_GETDTABLESIZE
#define HAVE_STRERROR
/*
* $Id: config-template.h,v 1.2 1991/08/30 03:37:44 ceder Exp $
* $Id: config-template.h,v 1.3 1991/08/30 10:00:13 ceder Exp $
*
* This is a generic configuration file for LysKOM.
*/
......@@ -14,27 +14,31 @@
#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 HAVE_LOCALE if you have it (and want to use it).
*/
#include <limits.h>
#ifdef _POSIX_OPEN_MAX
#define MAX_OPEN_FD _POSIX_OPEN_MAX
#else
#define MAX_OPEN_FD 16
#endif
#define HAVE_LOCALE
/*
* Define HAVE_STRERROR if your libc.a have strerror.
*/
#define HAVE_STRERROR
/*
* Define HAVE_LOCALE if you have it (and want to use it).
* If you have the getdtablesize system call.
*/
#define HAVE_LOCALE
#define HAVE_GETDTABLESIZE
/*
* Define HAVE_STRERROR if your libc.a have strerror.
* 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 HAVE_STRERROR
#include <sys/param.h> /* One way to do it... */
#define MAX_OPEN_FD NOFILE
#include <limits.h> /* Another. (I'm not sure that this */
#define MAX_OPEN_FD _POSIX_OPEN_MAX /* is correct - use at your own risk!*/
/*
* $Id: sun4os4-config.h,v 1.1 1991/08/30 01:27:59 ceder Exp $
* $Id: sun4os4-config.h,v 1.2 1991/08/30 10:00:11 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
......@@ -15,16 +15,7 @@
#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
#define HAVE_GETDTABLESIZE
/* We have LOCALE. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment