From owner-freebsd-hackers Thu Sep 26 22:17:24 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA19205 for hackers-outgoing; Thu, 26 Sep 1996 22:17:24 -0700 (PDT) Received: from scooter.quickweb.com (scooter.quickweb.com [199.212.134.8]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA19128 for ; Thu, 26 Sep 1996 22:17:12 -0700 (PDT) Received: from localhost (mark@localhost) by scooter.quickweb.com (8.6.12/8.6.12) with SMTP id BAA07280 for ; Fri, 27 Sep 1996 01:14:34 -0400 Date: Fri, 27 Sep 1996 01:14:34 -0400 (EDT) From: Mark Mayo To: hackers@freebsd.org Subject: OPEN_MAX => which #define counts? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I was poking around /usr/src/sys wondering about OPEN_MAX ... I'm just learning about file descriptors and such and I figured out that OPEN_MAX determines the max num. of files a process can open. My question is that which #define actually sets the limit: ./conf/options:OPEN_MAX opt_rlimit.h ---> which contains nothing.. ./i386/conf/LINT:options OPEN_MAX=128 ./sys/syslimits.h:#define OPEN_MAX 64 The other question I have is how OPEN_MAX relates to the max. number of file secriptors the System can have open at a time. TIA for any insight, -Mark ------------------------------------------- | Mark Mayo mark@quickweb.com | | C-Soft www.quickweb.com | ------------------------------------------- "To iterate is human, to recurse divine." - L. Peter Deutsch