[Top][All Lists]

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

Re: gethostname

From: Sam Steingold
Subject: Re: gethostname
Date: Tue, 12 Aug 2008 11:26:07 -0400
User-agent: Thunderbird (X11/20080506)

Simon Josefsson wrote:
Sam Steingold <address@hidden> writes:

1. why aren't you testing for HAVE_SYS_UTSNAME_H instead?

2. are there really systems without uname & <sys/utsname.h>, given
that these are in posix?
I think the right solution here should be to apply the patch below.
If there are problems on any system caused by that, the solution to
that problem should be to create a module for sys/utsname.h and uname.
The gethostname module shouldn't depend on such modules, they need to
be added manually by maintainers who want compatibility with non-POSIX
systems.  Thoughts?
note that gethostname is just as posix as uname,
so the gethostname module is only needed for non-posix systems.

Indeed, so I am less sure my patch is the right thing.  Could you
explain why the current code causes problems for you?

no problems - just questions:

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?

reply via email to

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