Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O mode
authormpi <mpi@openbsd.org>
Mon, 30 Jul 2018 12:22:14 +0000 (12:22 +0000)
committermpi <mpi@openbsd.org>
Mon, 30 Jul 2018 12:22:14 +0000 (12:22 +0000)
commit4a4dc3ea4c4158dccd297c17b5ac5a6ff2af5515
tree4a11f24020f8f6d31dc59785b8a6e5164aa5a5c0
parenta14419a2ec036dbdb52ede9136099d0b228f66b5
Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O mode
for sockets is non-blocking.

This allows us to G/C SS_NBIO.  Having to keep the two flags in sync
in a mp-safe way is complicated.

This change introduce a behavior change in sosplice(), it can now
always block.  However this should not matter much due to the socket
lock being taken beforhand.

ok bluhm@, benno@, visa@
12 files changed:
share/man/man9/socreate.9
sys/kern/subr_log.c
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_syscalls.c
sys/miscfs/fifofs/fifo_vnops.c
sys/net/bfd.c
sys/net/if_pflow.c
sys/nfs/krpc_subr.c
sys/nfs/nfs_boot.c
sys/nfs/nfs_socket.c
sys/sys/socketvar.h