• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/bsd/vfs/

Lines Matching refs:fmode

133 static int vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx);
164 vn_open(struct nameidata *ndp, int fmode, int cmode)
166 return(vn_open_modflags(ndp, &fmode, cmode));
181 vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx)
185 if ((error = vnode_ref_ext(vp, fmode, 0)) != 0) {
193 mac_vnode_notify_open(ctx, vp, fmode);
212 vn_open_auth_do_create(struct nameidata *ndp, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx)
224 if (fmode & O_EXCL)
241 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx);
363 int fmode;
378 fmode = *fmodep;
384 if (fmode & O_CREAT) {
385 if ( (fmode & O_DIRECTORY) ) {
401 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0 && (origcnflags & FOLLOW) != 0)
425 error = vn_open_auth_do_create(ndp, vap, fmode, &did_create, &did_open, ctx);
450 if (((error == EEXIST) && !(fmode & O_EXCL)) ||
451 ((error == ENOENT) && (fmode & O_CREAT))){
462 if (fmode & O_EXCL)
472 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx);
492 fmode &= ~O_CREAT;
512 if (fmode & O_NOFOLLOW || fmode & O_SYMLINK || (origcnflags & FOLLOW) == 0) {
526 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx);
566 error = vn_authorize_open_existing(vp, &ndp->ni_cnd, fmode, ctx, NULL);
584 error = cp_handle_open (vp, fmode);
591 error = VNOP_OPEN(vp, fmode, ctx);
607 fmode |= O_EVTONLY;
613 error = vn_open_auth_finish(vp, fmode, ctx);
621 fmode &= ~O_TRUNC;
623 *fmodep = fmode;
629 VNOP_CLOSE(vp, fmode, ctx);