4. Unfinished Business

Currently I don't know exactly how to tell whether a pipe can be written to or read from. A patch to sys/kern/sys_pipe.c:pipe_stat() would be much appreciated.