Lines Matching refs:fmode

217 		struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx);
1525 vnode_ref_ext(vnode_t vp, int fmode, int flags)
1552 if (fmode & FWRITE) {
1556 if (fmode & O_EVTONLY) {
1771 vnode_rele_ext(vnode_t vp, int fmode, int dont_reenter)
1773 vnode_rele_internal(vp, fmode, dont_reenter, 0);
1778 vnode_rele_internal(vnode_t vp, int fmode, int dont_reenter, int locked)
1790 if (fmode & FWRITE) {
1794 if (fmode & O_EVTONLY) {
5014 vnode_open(const char *path, int fmode, int cmode, int flags, vnode_t *vpp, vfs_context_t ctx)
5025 if (fmode & O_NOFOLLOW)
5042 if ((error = vn_open(&nd, fmode, cmode)))
5094 vn_create_reg(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx)
5099 return VNOP_COMPOUND_OPEN(dvp, vpp, ndp, VNOP_COMPOUND_OPEN_DO_CREATE, fmode, statusp, vap, ctx);
5147 vn_create(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx)
5173 if (vap->va_type != VREG && (fmode != 0 || (flags & VN_CREATE_DOOPEN) || statusp)) {
5176 if ((fmode != 0) && ((flags & VN_CREATE_DOOPEN) == 0)) {
5185 error = vn_create_reg(dvp, vpp, ndp, vap, flags, fmode, statusp, ctx);
5230 VNOP_CLOSE(vp, fmode, ctx);
5386 vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved)
5408 if ( (fmode & O_DIRECTORY) && vp->v_type != VDIR ) {
5416 if (vp->v_type == VLNK && (fmode & O_NOFOLLOW) != 0) {
5421 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
5438 error = mac_vnode_check_open(ctx, vp, fmode);
5447 if (fmode & FREAD) {
5450 if (fmode & (FWRITE | O_TRUNC)) {
5457 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {