Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.unix.wizards Subject: Re: shell file descriptor programming (was: Unlinked temp files) Message-ID: <11572@ulysses.homer.nj.att.com> Date: 21 May 89 19:23:01 GMT References: <871@marvin.Solbourne.COM> <1015@philmds.UUCP> <296@tree.UUCP> <11566@ulysses.homer.nj.att.com> <1508@murtoa.cs.mu.oz.au> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector.UUCP (Eduardo Krell) Organization: AT&T Bell Laboratories Lines: 15 In article <1508@murtoa.cs.mu.oz.au> kre@cs.mu.oz.au (Robert Elz) writes: >Not that I really suppose that anything really badly breaks if the shell >is misconfigured this way, but making this kind of information be a >compiled in constant in any program is just asking for trouble. The problem is that not all systems ksh runs on have a way of asking for the maximum number of file descriptors at run time (like getdtablesize() ). 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. Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {att,decvax,ucbvax}!ulysses!ekrell Internet: ekrell@ulysses.att.com