Lines Matching defs:fmode
7897 static int vn_open_with_vp(vnode_t vp, int fmode, vfs_context_t ctx);
8236 vn_open_with_vp(vnode_t vp, int fmode, vfs_context_t ctx)
8245 error = mac_vnode_check_open(ctx, vp, fmode);
8252 if (fmode & FREAD) {
8255 if (fmode & (FWRITE | O_TRUNC)) {
8262 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
8283 fmode |= O_EVTONLY;
8286 if ( (error = VNOP_OPEN(vp, fmode, ctx)) ) {
8289 if ( (error = vnode_ref_ext(vp, fmode, 0)) ) {
8290 VNOP_CLOSE(vp, fmode, ctx);
8298 mac_vnode_notify_open(ctx, vp, fmode);
8355 int32_t indx, fmode;
8365 fmode = nspace_open_flags_for_type(nspace_type);
8371 error = vn_open_with_vp(nspace_items[i].vp, fmode, ctx);
8379 vn_close(nspace_items[i].vp, fmode, ctx);
8385 fp->f_fglob->fg_flag = fmode;
8438 vn_close(nspace_items[i].vp, fmode, ctx);