fcntl(F_SETFL) invokes the FIONBIO and FIOASYNC ioctls internally, so
authorguenther <guenther@openbsd.org>
Thu, 14 Dec 2017 03:30:43 +0000 (03:30 +0000)
committerguenther <guenther@openbsd.org>
Thu, 14 Dec 2017 03:30:43 +0000 (03:30 +0000)
commitc2a35b387f9d3ccb845c838c1eb887d74221f42f
tree09f688d79925d482435a3dcc5544dc1839800bd7
parent671f325843c625391c74f6267efaacd699652226
fcntl(F_SETFL) invokes the FIONBIO and FIOASYNC ioctls internally, so
the memory devices (/dev/null, /dev/zero, etc) need to permit them.

problem noted, tweak, and testing by jeremy@
ok deraadt@
12 files changed:
sys/arch/alpha/alpha/mem.c
sys/arch/amd64/amd64/mem.c
sys/arch/arm/arm/mem.c
sys/arch/arm64/arm64/mem.c
sys/arch/hppa/hppa/mem.c
sys/arch/i386/i386/mem.c
sys/arch/m88k/m88k/mem.c
sys/arch/macppc/macppc/mem.c
sys/arch/mips64/mips64/mem.c
sys/arch/sh/sh/mem.c
sys/arch/socppc/socppc/mem.c
sys/arch/sparc64/sparc64/mem.c