sethostname: Port to Windows platforms.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Dec 2011 02:46:40 +0000 (03:46 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Dec 2011 02:46:40 +0000 (03:46 +0100)
commitbb052d4a7416accaad0747e84bd2a0accbfcf923
treed076481f6841f2620aaa5ed68eb5110534a1ad2e
parentc69114d48295481373ee197c72214877b909414e
sethostname: Port to Windows platforms.

* lib/sethostname.c: Provide an alternate implementation for Windows
platforms.
* tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
(main): Skip the test if sethostname() fails with EPERM. On Windows
platforms, don't check the result of gethostname().

2011-12-04  Bruno Haible  <bruno@clisp.org>
ChangeLog
lib/sethostname.c
tests/test-sethostname2.c