Add accept4(), handle fallback from accept() to accept4()
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Jan 2016 02:31:40 +0000 (18:31 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commit56d87c91b607e0878b6795ae81e33f9546af2380
tree317561888b380bb39810d7bcc6de4a8aafa282a9
parent419c2733d5299105188e884c6d2998515acd2006
Add accept4(), handle fallback from accept() to accept4()

Add support for the accept4() system call.

Some architectures now have accept4() but not accept(), so introduce a
standard fallback.  However, since accept() is a socketcall, we have
to do some special hacks.

While we are at it, handle conditional socketcall stubs based on
their existence <linux/net.h>, analogous to <asm/unistd.h>.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Gbp-Pq: Name klibc-add-accept4-handle-fallback-from-accept-to-acc.patch
usr/include/sys/socket.h
usr/klibc/Kbuild
usr/klibc/SOCKETCALLS.def
usr/klibc/accept.c [new file with mode: 0644]
usr/klibc/socketcalls.pl