/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | vfs_vnops.c | 140 vn_open(struct nameidata *ndp, int fmode, int cmode) argument 142 return(vn_open_modflags(ndp, &fmode, cmode)); 208 int fmode; local 214 fmode = *fmodep; 215 if (fmode & O_CREAT) { 216 if ( (fmode & O_DIRECTORY) ) { 228 if ((fmode & O_EXCL) == 0 && (fmode & O_NOFOLLOW) == 0) 255 if (fmode & O_EXCL) 303 if ((error == EEXIST) && !(fmode [all...] |
H A D | vfs_subr.c | 1409 vnode_ref_ext(vnode_t vp, int fmode) argument 1434 if (fmode & FWRITE) { 1438 if (fmode & O_EVTONLY) { 1598 vnode_rele_ext(vnode_t vp, int fmode, int dont_reenter) argument 1600 vnode_rele_internal(vp, fmode, dont_reenter, 0); 1605 vnode_rele_internal(vnode_t vp, int fmode, int dont_reenter, int locked) argument 1613 if (fmode & FWRITE) { 1617 if (fmode & O_EVTONLY) { 4368 vnode_open(const char *path, int fmode, int cmode, int flags, vnode_t *vpp, vfs_context_t ctx) argument 4379 if (fmode [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | posix_shm.c | 370 int fmode ; local 437 fmode = FFLAGS(uap->oflag); 438 if ((fmode & (FREAD | FWRITE))==0) { 459 if (fmode & O_CREAT) { 460 if ((fmode & O_EXCL) && incache) { 517 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) { 542 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) { 547 if (fmode & O_TRUNC) { 553 if (fmode & FWRITE) 555 if (fmode [all...] |
H A D | posix_sem.c | 364 int fmode ; local 431 fmode = FFLAGS(uap->oflag); 442 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) { 454 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) { 456 fmode &= ~O_CREAT; 459 if ( (fmode & O_CREAT) ) { 522 if ( (error = psem_access(pinfo, fmode, kauth_cred_get())) ) { 560 fp->f_flag = fmode & FMASK;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_syscalls.c | 485 int fmode, error, type; local 502 fmode = FFLAGS(uap->flags); 504 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT)) 544 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) { 551 if (fmode & FREAD) 553 if (fmode & (FWRITE | O_TRUNC)) 558 if ((error = VNOP_OPEN(vp, fmode, ctx))) 560 if ((error = vnode_ref_ext(vp, fmode))) 569 vn_close(vp, fmode [all...] |
H A D | nfs_vnops.c | 2830 int error = 0, lockerror = ENOENT, status, wccpostattr = 0, fmode = 0; local 2857 fmode |= O_EXCL; 2872 if (fmode & O_EXCL) { 2945 if ((nfsvers == NFS_VER3) && (fmode & O_EXCL) && (error == NFSERR_NOTSUPP)) { 2946 fmode &= ~O_EXCL; 2953 } else if ((nfsvers == NFS_VER3) && (fmode & O_EXCL)) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/ |
H A D | union_subr.c | 98 static int union_vn_close(struct vnode *vp, int fmode, vfs_context_t ctx); 920 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL); local 1005 if ((error = VNOP_OPEN(uvp, fmode, context)) != 0) { 1012 error = vnode_ref_ext(uvp, fmode); 1015 VNOP_CLOSE(uvp, fmode, context); 1032 VNOP_CLOSE(uvp, fmode, context); 1033 vnode_rele_ext(uvp, fmode, 0); 1232 int fmode = FFLAGS(O_WRONLY|O_CREAT|O_TRUNC|O_EXCL); local 1313 if ((error = VNOP_OPEN(vp, fmode, context)) != 0) { 1335 union_vn_close(struct vnode *vp, int fmode, vfs_context_ argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | vnode_internal.h | 362 int vn_open(struct nameidata *ndp, int fmode, int cmode); 363 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode); 364 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *);
|