Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: shell file descriptor programming (was: Unlinked temp files) Message-ID: <1682@auspex.auspex.com> Date: 22 May 89 19:04:38 GMT References: <871@marvin.Solbourne.COM> <1015@philmds.UUCP> <296@tree.UUCP> <11566@ulysses.homer.nj.att.com> <1508@murtoa.cs.mu.oz.au> <11572@ulysses.homer.nj.att.com> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 12 >If you know of a portable way to do this (ie, one that works on BSD 4.x, >System V Release 1 through 4, POSIX, etc.), please let me know. You don't need a portable one. All you need is a way to tell what kind of system you have (something that, as far as I know, the "ksh" configuration script already *has*), so you know whether to: 1) compile the number in; 2) fetch it with "getdtablesize" (BSD4.2 and later); 3) fetch it with "ulimit(4, 0L)" (S5R3.0 and later).