Lines Matching defs:fmode
8065 vn_open_with_vp(vnode_t vp, int fmode, vfs_context_t ctx)
8074 error = mac_vnode_check_open(ctx, vp, fmode);
8081 if (fmode & FREAD) {
8084 if (fmode & (FWRITE | O_TRUNC)) {
8091 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
8112 fmode |= O_EVTONLY;
8115 if ( (error = VNOP_OPEN(vp, fmode, ctx)) ) {
8118 if ( (error = vnode_ref_ext(vp, fmode, 0)) ) {
8119 VNOP_CLOSE(vp, fmode, ctx);
8127 mac_vnode_notify_open(ctx, vp, fmode);
8184 int32_t indx, fmode;
8188 fmode = nspace_open_flags_for_type(nspace_type);
8195 error = vn_open_with_vp(nspace_items[i].vp, fmode, ctx);
8203 vn_close(nspace_items[i].vp, fmode, ctx);
8209 fp->f_fglob->fg_flag = fmode;
8237 vn_close(nspace_items[i].vp, fmode, ctx);