mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(), as they are the only documented ones, and passing others may trigger EINVAL (seen on FreeBSD 10.1-RELEASE). * doc/glibc-functions/accept4.texi: Mention that we don't provide the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
23 lines
663 B
Plaintext
23 lines
663 B
Plaintext
@node accept4
|
|
@subsection @code{accept4}
|
|
@findex accept4
|
|
|
|
Gnulib module: accept4
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function is missing on many non-glibc platforms:
|
|
Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11,
|
|
IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, Cygwin 1.7.1, mingw, MSVC 9, Interix 3.5, BeOS.
|
|
But the replacement function is not atomic; this matters in multi-threaded
|
|
programs that spawn child processes.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
SOCK_CLOEXEC and SOCK_NONBLOCK may not be defined
|
|
as they're also significant to the socket() function.
|
|
@end itemize
|