OpenBSD doesn't allow setting /dev/null to nonblocking mode.
Other BSDs behave differently. What is the correct behaviour?

OpenBSD, in mmioctl()
http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/arch/i386/i386/mem.c?rev=1.37;content-type=text%2Fplain

NetBSD, in mm_ioctl()
http://cvsweb.NetBSD.org/bsdweb.cgi/~checkout~/src/sys/dev/mm.c?rev=1.17&content-type=text/plain&only_with_tag=MAIN

FreeBSD, in null_ioctl() and zero_ioctl()
http://svnweb.FreeBSD.org/base/head/sys/dev/null/null.c?revision=242439&view=co


Thanks,

Stu

Reply via email to