| /xnu-11215/bsd/vfs/ |
| H A D | vfs_vnops.c | 225 if (fmode & O_EXCL) { in vn_open_auth_do_create() 381 int fmode; in vn_open_auth() local 397 fmode = *fmodep; in vn_open_auth() 408 fmode |= FENCRYPTED; in vn_open_auth() 412 if ((fmode & O_NOFOLLOW_ANY) && (fmode & O_NOFOLLOW)) { in vn_open_auth() 425 if (fmode & O_CREAT) { in vn_open_auth() 508 if (fmode & O_EXCL) { in vn_open_auth() 538 fmode &= ~O_CREAT; in vn_open_auth() 687 fmode |= O_EVTONLY; in vn_open_auth() 701 fmode &= ~O_TRUNC; in vn_open_auth() [all …]
|
| H A D | vfs_subr.c | 2354 if (fmode & FWRITE) { in vnode_ref_ext() 2359 if (fmode & O_EVTONLY) { in vnode_ref_ext() 2687 if (fmode & FWRITE) { in vnode_rele_internal() 2692 if (fmode & O_EVTONLY) { in vnode_rele_internal() 7766 if (fmode & O_NOFOLLOW) { in vnode_open() 7777 fmode |= O_NOFOLLOW_ANY; in vnode_open() 8041 VNOP_CLOSE(vp, fmode, ctx); in vn_create() 8293 ((fmode & FSEARCH) && !(fmode & O_DIRECTORY))) { in vn_authorize_open_existing() 8297 if (fmode & O_DIRECTORY) { in vn_authorize_open_existing() 8344 if (fmode & FREAD) { in vn_authorize_open_existing() [all …]
|
| H A D | kpi_vfs.c | 3468 VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, … in VNOP_COMPOUND_OPEN() argument 3484 a.a_fmode = fmode; in VNOP_COMPOUND_OPEN()
|
| /xnu-11215/bsd/kern/ |
| H A D | posix_shm.c | 346 int fmode; in shm_open() local 379 fmode = FFLAGS(uap->oflag); in shm_open() 380 if ((fmode & (FREAD | FWRITE)) == 0) { in shm_open() 398 if (fmode & O_CREAT) { in shm_open() 433 if ((fmode & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) { in shm_open() 439 if ((fmode & O_TRUNC) && in shm_open() 448 if (!(fmode & O_CREAT)) { in shm_open() 465 if (fmode & O_CREAT) { in shm_open() 470 if ((error = mac_posixshm_check_open(kauth_cred_get(), &pinfo->pshm_hdr, fmode))) { in shm_open() 474 if ((error = pshm_access(pinfo, fmode, kauth_cred_get(), p))) { in shm_open() [all …]
|
| H A D | posix_sem.c | 389 mode_t fmode; in sem_open() local 470 fmode = (mode_t)FFLAGS(uap->oflag); in sem_open() 472 if ((fmode & O_CREAT)) { in sem_open() 513 if (((fmode & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) && incache) { in sem_open() 524 if (((fmode & (O_CREAT | O_EXCL)) == O_CREAT) && incache) { in sem_open() 526 fmode &= ~O_CREAT; in sem_open() 529 if ((fmode & O_CREAT)) { in sem_open() 569 if ((error = psem_access(pinfo, fmode, kauth_cred_get()))) { in sem_open() 604 fp->f_flag = fmode & FMASK; in sem_open()
|
| H A D | kern_symfile.c | 239 int fmode; in kern_open_file_for_direct_io() local 263 fmode = (kIOPolledFileCreate & iflags) ? (O_CREAT | FWRITE) : FWRITE; in kern_open_file_for_direct_io() 271 if ((error = vn_open_auth(&nd, &fmode, &va, NULLVP))) { in kern_open_file_for_direct_io() 272 kprintf("vn_open_auth(fmode: %d, cmode: %d) failed with error: %d\n", fmode, cmode, error); in kern_open_file_for_direct_io()
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_syscalls.c | 433 int fmode, error, type; in fhopen() local 450 fmode = FFLAGS(uap->flags); in fhopen() 452 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) { in fhopen() 510 if (fmode & FREAD) { in fhopen() 513 if (fmode & (FWRITE | O_TRUNC)) { in fhopen() 520 if ((error = VNOP_OPEN(vp, fmode, ctx))) { in fhopen() 533 vn_close(vp, fmode & FMASK, ctx); in fhopen() 538 fp->fp_glob->fg_flag = fmode & FMASK; in fhopen() 543 if (fmode & (O_EXLOCK | O_SHLOCK)) { in fhopen() 547 if (fmode & O_EXLOCK) { in fhopen() [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | vnode_internal.h | 467 int vn_open(struct nameidata *ndp, int fmode, int cmode); 468 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode); 469 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *, vnode_t authvp); 486 int vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t …
|
| H A D | vnode_if.h | 326 int fmode, /* As passed to VNOP */ 354 …(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *status,…
|
| H A D | vnode.h | 2158 errno_t vnode_open(const char *path, int fmode, int cmode, int flags, vnode_t *vpp, vfs_context_t c…
|
| /xnu-11215/bsd/netinet6/ |
| H A D | in6_mcast.c | 1437 uint8_t fmode; in in6p_block_unblock_source() local 1523 fmode = imf->im6f_st[0]; in in6p_block_unblock_source() 1524 if (fmode != MCAST_EXCLUDE) { in in6p_block_unblock_source() 1549 ims = im6f_graft(imf, fmode, ssa); in in6p_block_unblock_source() 3108 uint32_t fmode, ifindex; variable 3155 fmode = inm->in6m_st[1].iss_fmode; 3156 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); 3167 if (fmode != im6s_get_mode(inm, ims, 1)) {
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_mcast.c | 1482 uint8_t fmode; in inp_block_unblock_source() local 1600 fmode = imf->imf_st[0]; in inp_block_unblock_source() 1601 if (fmode != MCAST_EXCLUDE) { in inp_block_unblock_source() 1626 ims = imf_graft(imf, fmode, ssa); in inp_block_unblock_source() 3212 uint32_t fmode, ifindex; variable 3255 fmode = inm->inm_st[1].iss_fmode; 3256 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t)); 3271 if (fmode != ims_get_mode(inm, ims, 1)) {
|