git: socket: Add accept4 syscall and bump __DragonFly_version
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Oct 30 00:05:56 PDT 2015
commit 73610d44ed87143945db264816803a31975470b5
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Thu Oct 29 11:20:39 2015 +0800
socket: Add accept4 syscall and bump __DragonFly_version
Suggested-by: zrj on #dragonflybsd at efnet
Summary of changes:
lib/libc/sys/Makefile.inc | 1 +
lib/libc/sys/Symbol.map | 3 +
lib/libc/sys/accept.2 | 87 ++++++++++---
sys/emulation/43bsd/43bsd_socket.c | 4 +-
sys/emulation/linux/linux_socket.c | 3 +-
sys/kern/init_sysent.c | 1 +
sys/kern/syscalls.c | 1 +
sys/kern/syscalls.master | 1 +
sys/kern/uipc_syscalls.c | 62 ++++++++-
sys/sys/kern_syscall.h | 3 +-
sys/sys/param.h | 3 +-
sys/sys/socket.h | 7 +
sys/sys/syscall.h | 3 +-
sys/sys/syscall.mk | 3 +-
sys/sys/sysproto.h | 10 ++
sys/sys/sysunion.h | 1 +
test/socket/Makefile | 4 +
.../checkfd/Makefile => socket/Makefile.inc} | 3 -
test/socket/accept/Makefile | 3 +
.../installer => test/socket/accept}/Makefile.inc | 0
test/socket/accept/block/Makefile | 3 +
test/socket/accept/block/accept_block.c | 135 +++++++++++++++++++
test/socket/accept/nonblock/Makefile | 3 +
test/socket/accept/nonblock/accept_nblock.c | 135 +++++++++++++++++++
test/socket/accept4/Makefile | 3 +
.../installer => test/socket/accept4}/Makefile.inc | 0
test/socket/accept4/block/Makefile | 3 +
test/socket/accept4/block/accept4_block.c | 145 +++++++++++++++++++++
test/socket/accept4/cloexec/Makefile | 3 +
test/socket/accept4/cloexec/accept4_cloexec.c | 130 ++++++++++++++++++
test/socket/accept4/nonblock/Makefile | 3 +
test/socket/accept4/nonblock/accept4_nblock.c | 123 +++++++++++++++++
test/{sockext => socket}/checkfd/Makefile | 0
test/{sockext => socket}/checkfd/checkfd.c | 5 +-
test/socket/socket/Makefile | 3 +
.../installer => test/socket/socket}/Makefile.inc | 0
test/{sockext => socket}/socket/cloexec/Makefile | 3 -
.../socket/cloexec/socket_cloexec.c | 2 +-
test/{sockext => socket}/socket/nonblock/Makefile | 3 -
.../socket/nonblock/socket_nblock.c | 6 +-
test/socket/socketpair/Makefile | 3 +
.../socket/socketpair}/Makefile.inc | 0
.../socketpair/cloexec/Makefile | 3 -
.../socketpair/cloexec/sockpair_cloexec.c | 2 +-
.../socketpair/nonblock/Makefile | 3 -
.../socketpair/nonblock/sockpair_nblock.c | 8 +-
46 files changed, 875 insertions(+), 55 deletions(-)
create mode 100644 test/socket/Makefile
copy test/{sockext/checkfd/Makefile => socket/Makefile.inc} (53%)
create mode 100644 test/socket/accept/Makefile
copy {usr.sbin/installer => test/socket/accept}/Makefile.inc (100%)
create mode 100644 test/socket/accept/block/Makefile
create mode 100644 test/socket/accept/block/accept_block.c
create mode 100644 test/socket/accept/nonblock/Makefile
create mode 100644 test/socket/accept/nonblock/accept_nblock.c
create mode 100644 test/socket/accept4/Makefile
copy {usr.sbin/installer => test/socket/accept4}/Makefile.inc (100%)
create mode 100644 test/socket/accept4/block/Makefile
create mode 100644 test/socket/accept4/block/accept4_block.c
create mode 100644 test/socket/accept4/cloexec/Makefile
create mode 100644 test/socket/accept4/cloexec/accept4_cloexec.c
create mode 100644 test/socket/accept4/nonblock/Makefile
create mode 100644 test/socket/accept4/nonblock/accept4_nblock.c
rename test/{sockext => socket}/checkfd/Makefile (100%)
rename test/{sockext => socket}/checkfd/checkfd.c (81%)
create mode 100644 test/socket/socket/Makefile
copy {usr.sbin/installer => test/socket/socket}/Makefile.inc (100%)
rename test/{sockext => socket}/socket/cloexec/Makefile (50%)
rename test/{sockext => socket}/socket/cloexec/socket_cloexec.c (95%)
rename test/{sockext => socket}/socket/nonblock/Makefile (50%)
rename test/{sockext => socket}/socket/nonblock/socket_nblock.c (92%)
create mode 100644 test/socket/socketpair/Makefile
copy {usr.sbin/installer => test/socket/socketpair}/Makefile.inc (100%)
rename test/{sockext => socket}/socketpair/cloexec/Makefile (51%)
rename test/{sockext => socket}/socketpair/cloexec/sockpair_cloexec.c (95%)
rename test/{sockext => socket}/socketpair/nonblock/Makefile (51%)
rename test/{sockext => socket}/socketpair/nonblock/sockpair_nblock.c (86%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/73610d44ed87143945db264816803a31975470b5
--
DragonFly BSD source repository
More information about the Commits
mailing list