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>
Thu, 19 Jul 2018 00:13:54 +0000 (01:13 +0100)
commitdb4f29068de3f1aaf19788a52cc1bdd4b3c47125
tree494fb2bf987e7858edeecc27b855f40cea29f357
parent4398f16d7120726deac0667aef58ec5431133ec0
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