Next: access
, Previous: abs
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
accept
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html
Gnulib module: accept
Portability problems fixed by Gnulib:
accept
function cannot be used in calls to read
,
write
, and close
; you have to use recv
, send
,
closesocket
in these cases instead.
errno
, and WSAGetLastError
must be used
instead.
_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 socklen_t
entity but in fact
considers it as a pointer to a 32-bit wide unsigned int
entity.
Portability problems not fixed by Gnulib:
socklen_t
type; in this case this function’s
third argument type is ‘int *’.