/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_vnops.c | 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) argument 166 return(vn_open_modflags(ndp, &fmode, cmode)); 181 vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx) argument 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) argument 224 if (fmode & O_EXCL) 241 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx); 363 int fmode; local [all...] |
H A D | vfs_subr.c | 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) argument 1552 if (fmode & FWRITE) { 1556 if (fmode & O_EVTONLY) { 1771 vnode_rele_ext(vnode_t vp, int fmode, int dont_reenter) argument 1773 vnode_rele_internal(vp, fmode, dont_reenter, 0); 1778 vnode_rele_internal(vnode_t vp, int fmode, int dont_reenter, int locked) argument 1790 if (fmode & FWRITE) { 1794 if (fmode & O_EVTONLY) { 5004 vnode_open(const char *path, int fmode, in argument 5098 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) argument 5151 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) argument 5393 vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved) argument [all...] |
H A D | vfs_syscalls.c | 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) argument 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, 8355 int32_t indx, fmode; local [all...] |
H A D | kpi_vfs.c | 2794 VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *statusp, struct vnode_attr *vap, vfs_context_t ctx) argument 2810 a.a_fmode = fmode;
|
/xnu-2422.115.4/bsd/kern/ |
H A D | posix_shm.c | 389 int fmode ; local 453 fmode = FFLAGS(uap->oflag); 454 if ((fmode & (FREAD | FWRITE)) == 0) { 502 if (fmode & O_CREAT) { 522 if (fmode & O_CREAT) { 524 if ((fmode & O_EXCL)) { 541 if ((error = mac_posixshm_check_open(kauth_cred_get(), pinfo, fmode))) { 545 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) { 550 if (!(fmode & O_CREAT)) { 561 if ((error = mac_posixshm_check_open(kauth_cred_get(), pinfo, fmode))) { [all...] |
H A D | posix_sem.c | 373 int fmode ; local 466 fmode = FFLAGS(uap->oflag); 468 if((fmode & O_CREAT)) { 513 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) { 524 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) { 526 fmode &= ~O_CREAT; 529 if ( (fmode & O_CREAT) ) { 569 if ( (error = psem_access(pinfo, fmode, kauth_cred_get())) ) { 604 fp->f_flag = fmode & FMASK;
|
/xnu-2422.115.4/bsd/nfs/ |
H A D | nfs_syscalls.c | 521 int fmode, error, type; local 538 fmode = FFLAGS(uap->flags); 540 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) 580 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) { 587 if (fmode & FREAD) 589 if (fmode & (FWRITE | O_TRUNC)) 594 if ((error = VNOP_OPEN(vp, fmode, ctx))) 596 if ((error = vnode_ref_ext(vp, fmode, 0))) 605 vn_close(vp, fmode [all...] |
H A D | nfs_vnops.c | 3572 int error = 0, lockerror = ENOENT, busyerror = ENOENT, status, wccpostattr = 0, fmode = 0; local 3601 fmode |= O_EXCL; 3619 if (fmode & O_EXCL) { 3687 if ((nfsvers == NFS_VER3) && (fmode & O_EXCL) && (error == NFSERR_NOTSUPP)) { 3688 fmode &= ~O_EXCL; 3695 } else if ((nfsvers == NFS_VER3) && (fmode & O_EXCL)) {
|
/xnu-2422.115.4/bsd/sys/ |
H A D | vnode_internal.h | 385 int vn_open(struct nameidata *ndp, int fmode, int cmode); 386 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode); 387 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *); 404 int vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved);
|
H A D | vnode_if.h | 291 int fmode, /* As passed to VNOP */ 322 extern int VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *status, struct vnode_attr *vap, vfs_context_t ctx);
|
/xnu-2422.115.4/libkern/zlib/ |
H A D | gzio.c | 130 char fmode[80]; /* copy of mode, without the compression level */ local 131 char *m = fmode; 175 } while (*p++ && m != fmode + sizeof(fmode)); 208 s->file = fd < 0 ? F_OPEN(path, fmode) : (FILE*)fdopen(fd, fmode);
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | in_mcast.c | 1465 uint16_t fmode; local 1575 fmode = imf->imf_st[0]; 1576 if (fmode != MCAST_EXCLUDE) { 1601 ims = imf_graft(imf, fmode, &ssa->sin); 3165 uint32_t fmode, ifindex; variable 3211 fmode = inm->inm_st[1].iss_fmode; 3212 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); 3227 if (fmode != ims_get_mode(inm, ims, 1)) { 3707 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
|
/xnu-2422.115.4/bsd/netinet6/ |
H A D | in6_mcast.c | 1413 uint16_t fmode; local 1494 fmode = imf->im6f_st[0]; 1495 if (fmode != MCAST_EXCLUDE) { 1520 ims = im6f_graft(imf, fmode, &ssa->sin6); 2989 uint32_t fmode, ifindex; variable 3039 fmode = inm->in6m_st[1].iss_fmode; 3040 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); 3051 if (fmode != im6s_get_mode(inm, ims, 1)) { 3525 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
|