summaryrefslogtreecommitdiff
path: root/doc/posix-functions/getpeername.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-01-27 10:57:59 +0100
committerBruno Haible <bruno@clisp.org>2018-01-27 10:57:59 +0100
commitd4f6a210f44a2bbfedfc60353758c39fb86f8d7a (patch)
treee6c770cbb8e03e9cd4f379f1a04cd349bf17ea12 /doc/posix-functions/getpeername.texi
parent46e7ff4afee45c1b2b52849bd36b3b258417ec51 (diff)
downloadgnulib-d4f6a210f44a2bbfedfc60353758c39fb86f8d7a.tar.gz
Fix malfunction of socket functions on HP-UX in 64-bit mode.
* m4/socketlib.m4 (gl_SOCKETLIB): Add comment. * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _HPUX_ALT_XOPEN_SOCKET_API. * modules/accept (Depends-on): Add 'extensions'. * modules/getpeername (Depends-on): Likewise. * modules/getsockname (Depends-on): Likewise. * modules/getsockopt (Depends-on): Likewise. * modules/recvfrom (Depends-on): Likewise. * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem. * doc/posix-functions/getpeername.texi: Likewise. * doc/posix-functions/getsockname.texi: Likewise. * doc/posix-functions/getsockopt.texi: Likewise. * doc/posix-functions/recvfrom.texi: Likewise.
Diffstat (limited to 'doc/posix-functions/getpeername.texi')
-rw-r--r--doc/posix-functions/getpeername.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/posix-functions/getpeername.texi b/doc/posix-functions/getpeername.texi
index 5b2776e78f..8476e0a19a 100644
--- a/doc/posix-functions/getpeername.texi
+++ b/doc/posix-functions/getpeername.texi
@@ -12,6 +12,11 @@ Portability problems fixed by Gnulib:
On Windows platforms (excluding Cygwin), error codes from this function
are not placed in @code{errno}, and @code{WSAGetLastError} must be used
instead.
+@item
+On HP-UX 11, in 64-bit mode, when the macro @code{_HPUX_ALT_XOPEN_SOCKET_API}
+is not defined, this function behaves incorrectly because it is declared
+to take a pointer to a 64-bit wide @code{socklen_t} entity but in fact
+considers it as a pointer to a 32-bit wide @code{unsigned int} entity.
@end itemize
Portability problems not fixed by Gnulib: