Re: [PATCH 2/3] Add a new sethostname module

2011-11-30 Thread Bruno Haible
Ben Walton wrote: > --- a/doc/glibc-functions/sethostname.texi > +++ b/doc/glibc-functions/sethostname.texi > @@ -2,10 +2,15 @@ > @subsection @code{sethostname} > @findex sethostname > > -Gnulib module: --- > +Gnulib module: sethostname Good. > Portability problems fixed by Gnulib: > @itemi

[PATCH 2/3] Add a new sethostname module

2011-11-29 Thread Ben Walton
Define sethostname on platforms that do not provide the declaration. Provide a function for platforms that lack it. The general handling of the provided function is to simply return -1 and set errno to ENOSYS. A handler is provided for Minix. Signed-off-by: Ben Walton --- doc/glibc-functions/s