commit | cf8147c43a60d9eb6a6713d16f30364a698a6936 | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Tue Jan 05 18:31:40 2016 -0800 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue Jan 05 18:35:16 2016 -0800 |
tree | 0060aa600ef88e900329b69575e77b77685c2e49 | |
parent | 4a7ac3d2d9602d06b301cca62e2382f17fa6d43b [diff] |
[klibc] 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>