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>
Sat, 30 Dec 2017 22:09:36 +0000 (22:09 +0000)
commit94b2a5088a42275d911c2c47241cfe1fef95a198
tree03df294b056526dc4adc27fae341f535edda85b7
parentd248306b29a7520dd75607338ed0b193e977e24a
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