Searched refs:fmode (Results 1 - 13 of 13) sorted by relevance

/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c132 static int vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx);
155 vn_open(struct nameidata *ndp, int fmode, int cmode) argument
157 return(vn_open_modflags(ndp, &fmode, cmode));
172 vn_open_auth_finish(vnode_t vp, int fmode, vfs_context_t ctx) argument
176 if ((error = vnode_ref_ext(vp, fmode, 0)) != 0) {
184 mac_vnode_notify_open(ctx, vp, fmode);
201 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
213 if (fmode & O_EXCL)
230 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx);
358 int fmode; local
[all...]
H A Dvfs_subr.c217 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) {
5014 vnode_open(const char *path, int fmode, in argument
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) argument
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) argument
5386 vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved) argument
[all...]
H A Dvfs_syscalls.c8065 vn_open_with_vp(vnode_t vp, int fmode, vfs_context_t ctx) argument
8074 error = mac_vnode_check_open(ctx, vp, fmode);
8081 if (fmode & FREAD) {
8084 if (fmode & (FWRITE | O_TRUNC)) {
8091 if ((fmode & O_APPEND) && !(fmode & O_TRUNC)) {
8112 fmode |= O_EVTONLY;
8115 if ( (error = VNOP_OPEN(vp, fmode, ctx)) ) {
8118 if ( (error = vnode_ref_ext(vp, fmode, 0)) ) {
8119 VNOP_CLOSE(vp, fmode, ct
8184 int32_t indx, fmode; local
[all...]
H A Dkpi_vfs.c3082 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
3098 a.a_fmode = fmode;
/darwin-on-arm/xnu/bsd/kern/
H A Dposix_shm.c381 int fmode ; local
445 fmode = FFLAGS(uap->oflag);
446 if ((fmode & (FREAD | FWRITE)) == 0) {
494 if (fmode & O_CREAT) {
514 if (fmode & O_CREAT) {
516 if ((fmode & O_EXCL)) {
533 if ((error = mac_posixshm_check_open(kauth_cred_get(), pinfo, fmode))) {
537 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) {
542 if (!(fmode & O_CREAT)) {
553 if ((error = mac_posixshm_check_open(kauth_cred_get(), pinfo, fmode))) {
[all...]
H A Dposix_sem.c365 int fmode ; local
458 fmode = FFLAGS(uap->oflag);
460 if((fmode & O_CREAT)) {
505 if (((fmode & (O_CREAT | O_EXCL))==(O_CREAT | O_EXCL)) && incache) {
516 if (((fmode & (O_CREAT | O_EXCL))== O_CREAT) && incache) {
518 fmode &= ~O_CREAT;
521 if ( (fmode & O_CREAT) ) {
560 if ( (error = psem_access(pinfo, fmode, kauth_cred_get())) ) {
595 fp->f_flag = fmode & FMASK;
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_syscalls.c519 int fmode, error, type; local
536 fmode = FFLAGS(uap->flags);
538 if (((fmode & (FREAD | FWRITE)) == 0) || (fmode & O_CREAT))
578 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
585 if (fmode & FREAD)
587 if (fmode & (FWRITE | O_TRUNC))
592 if ((error = VNOP_OPEN(vp, fmode, ctx)))
594 if ((error = vnode_ref_ext(vp, fmode, 0)))
603 vn_close(vp, fmode
[all...]
H A Dnfs_vnops.c3483 int error = 0, lockerror = ENOENT, busyerror = ENOENT, status, wccpostattr = 0, fmode = 0; local
3512 fmode |= O_EXCL;
3530 if (fmode & O_EXCL) {
3598 if ((nfsvers == NFS_VER3) && (fmode & O_EXCL) && (error == NFSERR_NOTSUPP)) {
3599 fmode &= ~O_EXCL;
3606 } else if ((nfsvers == NFS_VER3) && (fmode & O_EXCL)) {
/darwin-on-arm/xnu/bsd/sys/
H A Dvnode_internal.h399 int vn_open(struct nameidata *ndp, int fmode, int cmode);
400 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode);
401 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *);
418 int vn_authorize_open_existing(vnode_t vp, struct componentname *cnp, int fmode, vfs_context_t ctx, void *reserved);
H A Dvnode_if.h291 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);
/darwin-on-arm/xnu/libkern/zlib/
H A Dgzio.c130 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);
/darwin-on-arm/xnu/bsd/netinet/
H A Din_mcast.c1441 uint16_t fmode; local
1548 fmode = imf->imf_st[0];
1549 if (fmode != MCAST_EXCLUDE) {
1573 ims = imf_graft(imf, fmode, &ssa->sin);
3110 uint32_t fmode, ifindex; variable
3155 fmode = inm->inm_st[1].iss_fmode;
3156 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t));
3171 if (fmode != ims_get_mode(inm, ims, 1)) {
3648 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_mcast.c1397 uint16_t fmode; local
1476 fmode = imf->im6f_st[0];
1477 if (fmode != MCAST_EXCLUDE) {
1502 ims = im6f_graft(imf, fmode, &ssa->sin6);
2947 uint32_t fmode, ifindex; variable
2997 fmode = inm->in6m_st[1].iss_fmode;
2998 retval = SYSCTL_OUT(req, &fmode, sizeof(uint32_t));
3008 if (fmode != im6s_get_mode(inm, ims, 1)) {
3481 printf("t%d: fmode %s asm %u ex %u in %u rec %u\n", t,

Completed in 103 milliseconds