Ben Walton wrote: > --- a/doc/glibc-functions/sethostname.texi > +++ b/doc/glibc-functions/sethostname.texi > @@ -2,18 +2,24 @@ > @subsection @code{sethostname} > @findex sethostname > > -Gnulib module: --- > +Gnulib module: sethostname > > Portability problems fixed by Gnulib: > @itemize > -@end itemize > - > -Portability problems not fixed by Gnulib: > -@itemize > @item > This function is missing on some platforms: > Minix 3.1.8, Cygwin, mingw, MSVC 9, Interix 3.5, BeOS. > @item > This function is not declared on some platforms: > AIX 7.1, OSF/1 5.1, Solaris 10. > +@item > +On Solaris 10, the first argument is @code{char *} instead of > +@code{const char *} and the second parameter is @code{int} instead of > +@code{size_t}. > +@item > +On some platforms the Gnulib replacement always fails with ENOSYS. > +@end itemize > + > +Portability problems not fixed by Gnulib: > +@itemize > @end itemize
On Solaris 11-2011, I'm getting a gcc warning at test-sethostname1.c:23. Which means, the problem with the declaration's parametere types is not fixed on this version of Solaris. I'm fixing the doc: 2011-12-04 Bruno Haible <br...@clisp.org> sethostname: Fix documentation. * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the "not fixed" section. --- doc/glibc-functions/sethostname.texi.orig Sun Dec 4 15:45:57 2011 +++ doc/glibc-functions/sethostname.texi Sun Dec 4 15:43:42 2011 @@ -13,12 +13,12 @@ @item This function is not declared on some platforms: AIX 7.1, OSF/1 5.1, Solaris 10. -@item -On Solaris 10, the first argument is @code{char *} instead of -@code{const char *} and the second parameter is @code{int} instead of -@code{size_t}. @end itemize Portability problems not fixed by Gnulib: @itemize +@item +On Solaris 11 2010-11, the first argument is @code{char *} instead of +@code{const char *} and the second parameter is @code{int} instead of +@code{size_t}. @end itemize -- In memoriam Fred Hampton <http://en.wikipedia.org/wiki/Fred_Hampton>