Document some different function declarations on OSF/1 5.1.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 21:41:16 +0000 (22:41 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 21:41:16 +0000 (22:41 +0100)
* 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
doc/posix-functions/gai_strerror.texi
doc/posix-functions/gethostname.texi
doc/posix-functions/inet_ntop.texi
lib/unistd.in.h

index 68bc4d74b5381c1fa3eb65a0eb593a9d1c325ee9..ab8f234ed51e7451dc0c667a7f2d76f7175fa18d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-12-19  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        doc: Mention vasprintf-posix module.
index 9676dbc0518a2ed1953308b898fa9c785d950337..34ecd01ffcf8ea21acf24de0ff3712f1eb9ad947 100644 (file)
@@ -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
index 5c1a9bf0b509e1395e8bb7c7d9f73ac5ac3efd03..1c56df6aa5fcec192751d09bffcfc1a0eb2f9ed3 100644 (file)
@@ -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
index 62326a85c173ddcd61af207a155c6fba9e448f0c..9cbc2f4938f5d838ab2bce1f135e880fc47c03b3 100644 (file)
@@ -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
index 6beead8c1cd812061c8c97af2fd56bc30b5f754c..23c8f3f188f445c313669ba5bb099d7118538c91 100644 (file)
@@ -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