BASH for HP

Carl Edman cedman at lynx.ps.uci.edu
Thu Oct 11 13:23:13 AEST 1990


In article <t6a14bz at Unify.Com> hearth at 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 at golem.ps.uci.edu
in the laboratory.                           | edmanc at uciph0.ps.uci.edu



More information about the Comp.unix.shell mailing list