~mirabilos/klibc/master

Viewing all changes in revision 2038.

  • Committer: H. Peter Anvin
  • Date: 2016-01-06 02:35:16 UTC
  • Revision ID: git-v1:cf8147c43a60d9eb6a6713d16f30364a698a6936
[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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: