Fixes OREAD / omode checks
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Jan 2014 22:08:40 +0000 (14:08 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Jan 2014 22:08:40 +0000 (14:08 -0800)
commit159737f01b0d0170413ddd4c066cd78c72fe21c5
treed27783643dc6c4bc29e154cc45c645fc6fc5fd46
parent19b8a73894e1f5e2520ac18c6230495315c1b84f
Fixes OREAD / omode checks

The idea behind 424240126 was alright, but when we masked with OREAD, we
were just zeroing everything out.  Did I mention having OREAD/O_RDONLY
the value zero is a bad idea?

Now, we can use the more clear helper IS_RDONLY().  Which we can change
later if so desired.
kern/drivers/dev/alarm.c
kern/drivers/dev/dev.c
kern/drivers/dev/pipe.c
kern/drivers/dev/vm.c
kern/include/ros/fs.h
kern/src/net/devip.c
kern/src/net/netif.c
kern/src/ns/sysfile.c