Lines Matching defs:fmode
485 int fmode, error, type;
502 fmode = FFLAGS(uap->flags);
504 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
544 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
551 if (fmode & FREAD)
553 if (fmode & (FWRITE | O_TRUNC))
558 if ((error = VNOP_OPEN(vp, fmode, ctx)))
560 if ((error = vnode_ref_ext(vp, fmode)))
569 vn_close(vp, fmode & FMASK, ctx);
574 fp->f_fglob->fg_flag = fmode & FMASK;
580 if (fmode & (O_EXLOCK | O_SHLOCK)) {
584 if (fmode & O_EXLOCK)
589 if ((fmode & FNONBLOCK) == 0)