Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!sgiblab!swrinde!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!news.funet.fi!ajk.tele.fi!funic!nntp.hut.fi!vipunen.hut.fi!tlukka From: tlukka@vipunen.hut.fi (Tuomas Lukka) Newsgroups: comp.unix.bsd Subject: Re: getdtablesize Message-ID: <tlukka.717938541@vipunen.hut.fi> Date: 1 Oct 92 11:22:21 GMT References: <tlukka.717504312@vipunen.hut.fi> <Bv7Dz7.C2o@BitBlocks.com> <1992Sep29.142535.21001@nntp.hut.fi> <1992Sep30.164745.13200@fcom.cc.utah.edu> Sender: usenet@nntp.hut.fi (Usenet pseudouser id) Organization: Helsinki University of Technology, Finland Lines: 27 Nntp-Posting-Host: vipunen.hut.fi In <1992Sep30.164745.13200@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes: >In article <1992Sep29.142535.21001@nntp.hut.fi> alo@kampi.hut.fi (Antti Louko) writes: >>In article <Bv7Dz7.C2o@BitBlocks.com> bvs@BitBlocks.com (Bakul Shah) writes: >>>tlukka@vipunen.hut.fi (Tuomas Lukka) writes: >>>>for(i=getdtablesize(); --i>2; close(i)); >>>>and getdtablesize returned something like 2000000000 and this >>>>naturally would take a while to run... >> >Obviously, the value you are seeing for getdtablesize() is wrong... are >you sure it is either undeclared or declared as an external int? I get >64 ...of course, my kernel is patched to all get out, but I don't believe >any of them effected the open files tables. >I tried declaring the function extern short, int, and double, but always >got 64. I AM sure, and the real weirdness of the problem is, that WHEN I'M RUNNING THE THING UNDER CSH, IT WORKS!! I.E. getdtablesize returns a reasonable value, and everything works out. TJL -- /--\ TJL -- Tuomas J. Lukka tlukka@vipunen.hut.fi IIIIIIIII ------- Just /-\ o\ Puistokaari 1E18 _________--------------------+ I J go \o \-/ 00200 Helsinki --------I GONE FISHING AGAIN -> I to \__/ SIGh.. Finland T. +358-0-6923924 /--------------------- L___ sleep..