diff options
author | des <des@FreeBSD.org> | 1999-04-09 16:28:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1999-04-09 16:28:11 +0000 |
commit | f9cbfc392adf0516b667d4c5a97d05789a821565 (patch) | |
tree | f77dd3dcd39fc457b9502f9c7346691b3e3e6a78 /sys/kern | |
parent | e35119550e9142eb4be6ce80eab506e95a9ac0f8 (diff) | |
download | FreeBSD-src-f9cbfc392adf0516b667d4c5a97d05789a821565.zip FreeBSD-src-f9cbfc392adf0516b667d4c5a97d05789a821565.tar.gz |
Allow setting MAXFILES in the kernel config.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_param.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index ef98c59..ce003d9 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)param.c 8.3 (Berkeley) 8/20/94 - * $Id: param.c,v 1.31 1998/11/05 14:28:17 dg Exp $ + * $Id: param.c,v 1.32 1998/12/14 08:34:54 dillon Exp $ */ #include <stddef.h> @@ -74,7 +74,9 @@ int hz = HZ; int tick = 1000000 / HZ; int tickadj = howmany(30000, 60 * HZ); /* can adjust 30ms in 60s */ #define NPROC (20 + 16 * MAXUSERS) +#ifndef MAXFILES #define MAXFILES (NPROC*2) +#endif int maxproc = NPROC; /* maximum # of processes */ int maxprocperuid = NPROC-1; /* maximum # of processes per user */ int maxfiles = MAXFILES; /* system wide open files limit */ |