Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.sys.hp Subject: Re: The "getdtablesize" command Message-ID: Date: 18 Dec 90 02:32:05 GMT References: <28687@mimsy.umd.edu> Organization: University of California, Irvine, USA. Lines: 24 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: preetham@ra.src.umd.edu's message of 17 Dec 90 23:00:17 GMT In article <28687@mimsy.umd.edu> preetham@ra.src.umd.edu (Preetham Gopalaswamy) writes: I am trying to compile a software package that was unfortunately not written for SysV although they claim that it is. The computer being used is an HP800 running HPUX 3.1. One of the problems that I am facing is finding a SysV equivalent for the command "getdtablesize" which is used (so the SUN man pages say) to "get the descriptor table size". What can I use instead of this command since it does not exist on the HPs. Any help would be appreciated. Thanks in advance. getdtablesize() is a BSD command to find (basically) the maximum number of files open at the same time. The corresponding HPUX command is sysconf(_SC_OPEN_MAX). The correct include file for this is . Simply replace getdtablesize by sysconf everywhere, or better, define getdtablesize, compile it, and add this function to your BSD library. Then you will never again have to worry about it. Carl Edman Theorectical 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