poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / getpeername.texi
blob43ae10771ca7fb2e95e9f64ee6582146e620eddf
1 @node getpeername
2 @section @code{getpeername}
3 @findex getpeername
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html}
7 Gnulib module: getpeername
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), error codes from this function
13 are not placed in @code{errno}, and @code{WSAGetLastError} must be used
14 instead.
15 @item
16 On HP-UX 11, in 64-bit mode, when the macro @code{_HPUX_ALT_XOPEN_SOCKET_API}
17 is not defined, this function behaves incorrectly because it is declared
18 to take a pointer to a 64-bit wide @code{socklen_t} entity but in fact
19 considers it as a pointer to a 32-bit wide @code{unsigned int} entity.
20 @end itemize
22 Portability problems not fixed by Gnulib:
23 @itemize
24 @item
25 Some platforms don't have a @code{socklen_t} type; in this case this function's
26 third argument type is @samp{int *}.
27 @end itemize