Pass fflag to VOP_POLL so vfs fifo functions can get at the file
authormillert <millert@openbsd.org>
Fri, 1 May 2015 01:30:58 +0000 (01:30 +0000)
committermillert <millert@openbsd.org>
Fri, 1 May 2015 01:30:58 +0000 (01:30 +0000)
commit4de3f78ca296b5b748d38aac267c73703f346679
tree467bc96fc76ff0b74007d6a4b0fa0e719283ffa7
parent7295628c47744ea15ed7bc8499b2b2bf57a5c34c
Pass fflag to VOP_POLL so vfs fifo functions can get at the file
flags to check FREAD/FWRITE if needed.  This will be used by fifo_poll
to avoid checking the write end of the fifo when the fd is read-only.
OK guenther@
sys/kern/tty_tty.c
sys/kern/vfs_vnops.c
sys/kern/vfs_vops.c
sys/sys/vnode.h