Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 1996 13:32:14 -0800 (PST)
From:      sameer <sameer@c2.net>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        bde@zeta.org.au, sameer@c2.net, freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: getdtablesize, OPEN_MAX, and sysctl
Message-ID:  <199612142132.NAA11065@clotho.c2.org>
In-Reply-To: <199612140544.QAA27898@godzilla.zeta.org.au> from "Bruce Evans" at Dec 14, 96 04:44:05 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> This option sets the soft resource limit for the maximum number of open
> files for the init process.  The limit is inherited by all processes
> but may be changed.  Processes should change it using setrlimit() if
> they or their children need a larger limit.

	I see.

> 
> In 2.1-stable, you can't do a select on more than FD_SETSIZE fd's, where
> FD_SETSIZE is whatever it is when the kernel is compiled (default 256).
> In later versions, there is no limit in the kernel; if you want more
> than the default FD_SETSIZE number of fds, you just have to define
> FD_SETSIZE consistently before including any headers (since any header
> might include <sys/types.h>).

	That makes sense, thanks a lot.

-- 
Sameer Parekh					Voice:   510-986-8770
President					FAX:     510-986-8777
C2Net
http://www.c2.net/				sameer@c2.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612142132.NAA11065>