O_ACCMODE
switch (flags & O_ACCMODE) {
((flags & O_ACCMODE) != O_RDONLY ||
switch (flags & O_ACCMODE) {
if ((flags & O_ACCMODE) != O_RDWR)
if ((flags & O_ACCMODE) == O_WRONLY) {
statbuf.st_size == 0 && (flags & O_ACCMODE) != O_RDONLY;
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
switch (flags & O_ACCMODE) {
switch (flags & O_ACCMODE) {
if ((flags & O_ACCMODE) == O_WRONLY) {
tmp = fdflags & O_ACCMODE;
if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) {
if ((dflags & O_ACCMODE) != O_RDWR && (dflags & O_ACCMODE) !=
(oflags & O_ACCMODE)) {
nflags = FFLAGS(dat->fc_flags & ~O_ACCMODE) & FCNTLFLAGS;
if ((oflag & O_ACCMODE) == (O_WRONLY | O_RDWR)) {
if ((oflags & O_ACCMODE) == O_ACCMODE)