From 224a9074d9b07fb6315619711d736b641ddb3cb3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Dec 2010 22:41:16 +0100 Subject: [PATCH] Document some different function declarations on OSF/1 5.1. * doc/posix-functions/gai_strerror.texi: Mention different declaration. * doc/posix-functions/inet_ntop.texi: Likewise. * doc/posix-functions/gethostname.texi: Likewise. * lib/unistd.in.h (gethostname): Update comment. --- ChangeLog | 8 ++++++++ doc/posix-functions/gai_strerror.texi | 3 +++ doc/posix-functions/gethostname.texi | 4 ++++ doc/posix-functions/inet_ntop.texi | 4 ++++ lib/unistd.in.h | 3 ++- 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 68bc4d74b..ab8f234ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2010-12-19 Bruno Haible + Document some different function declarations on OSF/1 5.1. + * doc/posix-functions/gai_strerror.texi: Mention different declaration. + * doc/posix-functions/inet_ntop.texi: Likewise. + * doc/posix-functions/gethostname.texi: Likewise. + * lib/unistd.in.h (gethostname): Update comment. + +2010-12-19 Bruno Haible + doc: Mention vasprintf-posix module. * doc/glibc-functions/asprintf.texi: Mention the workarounds present in the 'vasprintf-posix' module. diff --git a/doc/posix-functions/gai_strerror.texi b/doc/posix-functions/gai_strerror.texi index 9676dbc05..34ecd01ff 100644 --- a/doc/posix-functions/gai_strerror.texi +++ b/doc/posix-functions/gai_strerror.texi @@ -15,4 +15,7 @@ HP-UX 11.11, IRIX 6.5, OSF/1 4.0, Solaris 7, Cygwin 1.5.x, mingw, Interix 3.5, B Portability problems not fixed by Gnulib: @itemize +This function's return type is @code{char *} instead of @code{const char *} +on some platforms: +OSF/1 5.1. @end itemize diff --git a/doc/posix-functions/gethostname.texi b/doc/posix-functions/gethostname.texi index 5c1a9bf0b..1c56df6aa 100644 --- a/doc/posix-functions/gethostname.texi +++ b/doc/posix-functions/gethostname.texi @@ -16,6 +16,10 @@ specified by POSIX, and it is defined only in the ws2_32 library. Portability problems not fixed by Gnulib: @itemize @item +This function's second argument type is @code{int} instead of @code{size_t} +on some platforms: +OSF/1 5.1, Solaris 10. +@item If the given buffer is too small for the host name, some implementations fail with @code{EINVAL}, instead of returning a truncated host name. @end itemize diff --git a/doc/posix-functions/inet_ntop.texi b/doc/posix-functions/inet_ntop.texi index 62326a85c..9cbc2f493 100644 --- a/doc/posix-functions/inet_ntop.texi +++ b/doc/posix-functions/inet_ntop.texi @@ -15,4 +15,8 @@ HP-UX 11.00, OSF/1 4.0, Solaris 2.5.1, mingw, Interix 3.5, BeOS. Portability problems not fixed by Gnulib: @itemize +@item +This function's fourth argument type is @code{size_t} instead of +@code{socklen_t} on some platforms: +OSF/1 5.1. @end itemize diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 6beead8c1..23c8f3f18 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -654,7 +654,8 @@ _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif -/* Need to cast, because on Solaris 10 systems, the second parameter is +/* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second + parameter is int len. */ _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); # endif -- 2.11.0