socket/socketpair: Add SOCK_{NONBLOCK,CLOEXEC} support.
commit36e1dffed76a1bcea1179feaf2fad92342aae291
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 28 Oct 2015 13:22:47 +0000 (28 21:22 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 30 Oct 2015 03:39:54 +0000 (30 11:39 +0800)
treebb6b4e91bb7dc4345a977a5ef2f886321f52759d
parent9a7343b2a6b09d231adc330c6bf74df89f06d505
socket/socketpair: Add SOCK_{NONBLOCK,CLOEXEC} support.

Obtained-from: FreeBSD
Suggested-by: zrj on #dragonflybsd@efnet
14 files changed:
lib/libc/sys/socket.2
lib/libc/sys/socketpair.2
sys/kern/uipc_syscalls.c
sys/sys/socket.h
test/sockext/checkfd/Makefile [new file with mode: 0644]
test/sockext/checkfd/checkfd.c [new file with mode: 0644]
test/sockext/socket/cloexec/Makefile [new file with mode: 0644]
test/sockext/socket/cloexec/socket_cloexec.c [new file with mode: 0644]
test/sockext/socket/nonblock/Makefile [new file with mode: 0644]
test/sockext/socket/nonblock/socket_nblock.c [new file with mode: 0644]
test/sockext/socketpair/cloexec/Makefile [new file with mode: 0644]
test/sockext/socketpair/cloexec/sockpair_cloexec.c [new file with mode: 0644]
test/sockext/socketpair/nonblock/Makefile [new file with mode: 0644]
test/sockext/socketpair/nonblock/sockpair_nblock.c [new file with mode: 0644]