Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!cedman From: cedman@lynx.ps.uci.edu (Carl Edman) Newsgroups: comp.unix.shell Subject: Re: BASH for HP Message-ID: Date: 11 Oct 90 03:23:13 GMT References: Distribution: na Organization: non serviam Lines: 24 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: hearth@Unify.Com's message of 10 Oct 90 22:37:04 GMT In article hearth@Unify.Com (Donald S. Hearth) writes: Hello. I have almost completed a port of bash to my HP 9000/375. I have run into one problem, however. One file refers to a function called getdtablesize. Can anyone that has successfully ported bash tell me how they got around this function? Any suggestions would be appreciated! Don Yes, this is a common problem with programms ported from BSD to HPUX. My understanding (gained from analyzing several sources which contain getdtablesize()) is that it returns the size of the file descripitor table i.e. the maximum number of open files. This can (and should) be emulated with a sysconf(_SC_OPEN_MAX) call (try 'man sysconf'). I have put this into my BSD-compatibility library and it works just fine. Carl Edman Theorectial Physicist,N.:A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu