[Top][All Lists]

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

Re: gethostname

From: Sam Steingold
Subject: Re: gethostname
Date: Mon, 11 Aug 2008 20:50:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> * Simon Josefsson <address@hidden> [2008-08-11 23:23:24 +0200]:
> Sam Steingold <address@hidden> writes:
>> gnulib/lib/gethostname.c says:
>> #ifdef HAVE_UNAME
>> # include <sys/utsname.h>
>> #endif
>> 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?
>> http://www.opengroup.org/onlinepubs/009695399/functions/uname.html
> 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.

Sam Steingold (http://sds.podval.org/) on Fedora release 9 (Sulphur)
http://israelunderattack.slide.com http://camera.org http://memri.org
http://jihadwatch.org http://mideasttruth.com
Are you smart enough to use Lisp?

reply via email to

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