Report readablity/writablility via 9p stat
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 3 May 2016 19:46:51 +0000 (15:46 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 3 May 2016 19:46:51 +0000 (15:46 -0400)
commite1c265bb9fde091b52d22d6ab7d40141906596fe
treef7cac3b8ac970da29d995c7c7f1194123bcb0d49
parentcbc0527721e66d093449d8eba971628963421ddc
Report readablity/writablility via 9p stat

This extends 9p to have bits for readable and writable, in the O_NONBLOCK
sense.  This is required for select().

Pipes and #ip use qio helpers to set the bit.  Other devices will need to
do something similar, if they use queues.  If not, they'll have to do
something else.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/pipe.c
kern/include/ns.h
kern/src/net/devip.c
kern/src/ns/qio.c