Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!romano!dave From: dave@romano.WISC.EDU (Dave Cohrs) Newsgroups: comp.unix.wizards Subject: Determining the max number of open files on System V Message-ID: <3635@spool.WISC.EDU> Date: Mon, 1-Jun-87 12:26:48 EDT Article-I.D.: spool.3635 Posted: Mon Jun 1 12:26:48 1987 Date-Received: Wed, 3-Jun-87 01:02:53 EDT Sender: news@spool.WISC.EDU Reply-To: dave@romano.WISC.EDU (Dave Cohrs) Distribution: world Organization: U of Wisconsin CS Dept Lines: 26 Keywords: NOFILES, S5R3 I'm trying to port a program from BSD to Sys V Rel. 3. Along the way, it tries to close all of its file descriptors. On BSD you just call getdtablesize() to find how many to close, but I can't seem to find the equivalent on S5R3. Originally I thought, "Oh, that's, easy, just include and close 0 through NOFILE". Well, I looked at and it said, "The following define is here for temporary compatibility and should be removed in the next release. It gives a value for the maximum number of open files per process. However, this value is no longer a constant." So, where do I get the real value? What is "v.v_nofiles" and how do I get at it's value? Please, don't tell me I have to muck around in kernel memory! -- Dave Cohrs Proud member of NOTHING +1 608 262-2196 UW-Madison Computer Sciences Dept. dave@cs.wisc.edu ...!{harvard,ihnp4,seismo,rutgers}!uwvax!dave Dave Cohrs Proud member of NOTHING +1 608 262-2196 UW-Madison Computer Sciences Dept. dave@cs.wisc.edu ...!{harvard,ihnp4,seismo,rutgers}!uwvax!dave