Sam Steingold <[EMAIL PROTECTED]> writes:

> Ben Pfaff wrote:
>> Sam Steingold <[EMAIL PROTECTED]> writes:
>>
>>> 1. is this module ever needed on a unix system?
>>> i.e., are there any unix systems still in use that lack gethostname?
>>>
>>> 2. are there any unix systems still in use that lack uname?
>>
>> Among the platforms represented in Bruno Haible's collection of
>> library symbols, only mingw and nsk-G06 lack either one (and they
>> lack both of them).  Solaris has gethostname in libnsl, BeOS has
>> it in libnet, and other platforms have it in libc.  BeoS has
>> uname in libnet, and other platforms have it in libc.
>
> but this makes the gethostname module completely useless, doesn't it?

To me, it looks like it has limited value: on mingw and nsk-G06
it provides a gethostname function that is otherwise missing.  I
don't think it will ever fall back on uname on the systems that
we know about, though, except possibly on Solaris (because the m4
code doesn't check for gethostname in libnsl).

Probably gethostname.m4 should check for gethostname in libnsl
and in libnet?
-- 
"The sound of peacocks being shredded can't possibly be
 any worse than the sound of peacocks not being shredded."
Tanuki the Raccoon-dog in the Monastery


Reply via email to