Now that we have a_fflag in struct vop_poll_args we can handle
authormillert <millert@openbsd.org>
Tue, 5 May 2015 20:14:10 +0000 (20:14 +0000)
committermillert <millert@openbsd.org>
Tue, 5 May 2015 20:14:10 +0000 (20:14 +0000)
commit71568b6250cfa8757564e524bae7074da5bb72b4
tree84cdfe2b9611245dc1169a57e569a3d6593c1c30
parentd6498094fb4253391e89919577d1c3aac74bfa7c
Now that we have a_fflag in struct vop_poll_args we can handle
things like POLLOUT on a read-only fd more sensibly.  Previously,
any poll events could be used regardless of the actual file flags
of the descriptor.  The new fifo_poll() is effectively a pared down
soo_poll() with slightly different semantics to batter match FIFOs.
OK and feedback from guenther@
sys/miscfs/fifofs/fifo_vnops.c