From owner-freebsd-hackers Sat Dec 14 13:32:04 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA15041 for hackers-outgoing; Sat, 14 Dec 1996 13:32:04 -0800 (PST) Received: from blacklodge.c2.net (root@blacklodge.c2.net [140.174.185.21]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA15035; Sat, 14 Dec 1996 13:32:01 -0800 (PST) Received: from clotho.c2.org (clotho.c2.org [140.174.185.10]) by blacklodge.c2.net (8.7.6/8.7.3) with ESMTP id NAA12111; Sat, 14 Dec 1996 13:33:31 -0800 (PST) From: sameer Received: (from sameer@localhost) by clotho.c2.org (8.7.6/8.7.3) id NAA11065; Sat, 14 Dec 1996 13:32:14 -0800 (PST) Message-Id: <199612142132.NAA11065@clotho.c2.org> Subject: Re: getdtablesize, OPEN_MAX, and sysctl To: bde@zeta.org.au (Bruce Evans) Date: Sat, 14 Dec 1996 13:32:14 -0800 (PST) Cc: bde@zeta.org.au, sameer@c2.net, freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG In-Reply-To: <199612140544.QAA27898@godzilla.zeta.org.au> from "Bruce Evans" at Dec 14, 96 04:44:05 pm X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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 ). 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