[PATCH] Hide sethostname() in unistd.h

Christian Franke Christian.Franke@t-online.de
Wed Jun 17 05:39:00 GMT 2015

Corinna Vinschen wrote:
> On Jun 16 18:27, Christian Franke wrote:
>> Found during an experimental build of busybox:
>> The sethostname() prototype in /usr/include/sys/unistd.h is enabled also on
>> Cygwin.
>> It should be disabled because Cygwin does not provide this function.
>> Christian
> What about implementing sethostname instead?
>    extern "C" int
>    sethostname (const char *name, size_t len)
> ...

I didn't consider this as an alternative because I guessed that it is 
intentional that sethostname is missing.
(it is not a typical that someone wants to use Cygwin to change the name 
of a Windows machine)


More information about the Cygwin-patches mailing list