From mint-bounce@lists.fishpool.fi Wed Dec 1 08:47:35 2004 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Date: Wed, 1 Dec 2004 08:46:51 +0100 (CET) From: Frank Naumann X-X-Sender: fnaumann@wh58-508.st.uni-magdeburg.de To: mint@fishpool.com Subject: Re: [MiNT] Ammount of file descriptors per process In-Reply-To: <41ACED0E.5070803@seznam.cz> Message-ID: References: <41AC2CD6.6030000@gabo.pl> <41AC50E0.80809@gabo.pl> <41ACED0E.5070803@seznam.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scan-Signature: 68812eb474c71dbd40f24b46a7e5b531 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: fnaumann@cs.uni-magdeburg.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=3.8 tests=BAYES_00 X-Spam-Level: Hello! >>>> 3. Opening (creating) files using system call Fcreate(), the maximum >>>> ammount of files it tries to open is taken from Sysconf(SYS_MAXFILES) >>>> system call. >>> >>> * Sysconf(which): returns information about system configuration. >>> * 2 max. number of open files per process {OPEN_MAX} >>> >>>> Ad 3. Sysconf(SYS_MAXFILES) returns 32. Test fails after opening 26 >>>> files. >>> >>> This is not the number of files you can open, this is the maximum number >>> of files a process can have open. > > Hoops this sentence is where my English fails completely, could you write it > some other way for us (yes, we are more than one here that didn't get it)? Adam said he used Sysconf(SYS_MAXFILES) limit to try to open such a number of files. But Sysconf(SYS_MAXFILES) don't return the number of unused filedescriptors, it return the maximum number of parallel opened filedescriptors. Regards, Frank -- ATARI FALCON 060 // MILAN 060 ----------------------------------------- http://www.cs.uni-magdeburg.de/~fnaumann/ e-Mail: fnaumann@freemint.de