Date: Fri, 27 Sep 1996 15:42:22 +0930 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: mark@quickweb.com (Mark Mayo) Cc: hackers@FreeBSD.ORG Subject: Re: OPEN_MAX => which #define counts? Message-ID: <199609270612.PAA19209@genesis.atrad.adelaide.edu.au> In-Reply-To: <Pine.BSF.3.94.960927010912.7256A-100000@scooter.quickweb.com> from "Mark Mayo" at Sep 27, 96 01:14:34 am
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Mayo stands accused of saying: > > 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. 'sysctl kern.maxfiles' will tell you how many files the system can have open. 'limit descriptors' (csh) getrlimit()/setrlimit() (system calls) let you frob on a per-process basis. > -Mark -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609270612.PAA19209>