[comp.unix.shell] BASH for HP

hearth@Unify.Com (Donald S. Hearth) (10/11/90)

     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
-- 
***************************************************************************
*    Donald S. Hearth        *   The Sacramento Kings only have one       *
*    UNIFY Corporation       *   thing on their minds, and I don't        *
*    Sacramento, CA          *   know what it is !!                       *

cedman@lynx.ps.uci.edu (Carl Edman) (10/11/90)

In article <t6a14bz@Unify.Com> 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