accept4 and friends
Hello,
This page [0] states that accept4, SOCK_CLOEXEC and SOCK_NONBLOCK are
implemented only in FreeBSD 10, but libc on gnu/kfreebsd has prototype
for accept4.
It seems to me that even if debian's kfreebsd supports accept4 (I
doubt) it will be better to remove that prototype because:
1) it's useless without SOCK_CLOEXEC or SOCK_NONBLOCK
2) some software assumes that accept4 and SOCK_CLOEXEC go together so
they check only for accept4 but not for SOCK_CLOEXEC, it's the reason
why ruby2.0 build is failed on kfreebsd.
[0]: https://wiki.freebsd.org/AtomicCloseOnExec
Reply to: