Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.wizards Subject: Re: Determining the max number of open files on System V Message-ID: <20599@sun.uucp> Date: Mon, 8-Jun-87 14:18:12 EDT Article-I.D.: sun.20599 Posted: Mon Jun 8 14:18:12 1987 Date-Received: Thu, 11-Jun-87 02:07:56 EDT References: <7730@brl-adm.ARPA> Sender: news@sun.uucp Lines: 18 > Remember guys, this is Unix, we keep forks cheap for a reason, why > reinvent the wheel? Remember guys, this is UNIX where developers forget to document all sorts of useful things, they put "ulimit(4, 0L)" in for a reason. The way you get the max number of open files in S5R3 is int ndescriptors; extern long ulimit(); ndescriptors = ulimit(4, 0L); as indicated in my previous posting, not by various unnecessary kludges involving poking around in "/dev/kmem" or running "/etc/sysdef". Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com