bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gethostname


From: Ben Pfaff
Subject: Re: gethostname
Date: Tue, 12 Aug 2008 09:33:56 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Sam Steingold <address@hidden> writes:

> Ben Pfaff wrote:
>> Sam Steingold <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]