Home
last modified time | relevance | path

Searched refs:S_ISGID (Results 1 – 6 of 6) sorted by relevance

/xnu-11215.81.4/libsyscall/wrappers/unix03/
H A Dfchmod.c45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0) { in fchmod()
48 if (mode & S_ISGID) { in fchmod()
49 res = __fchmod(fd, mode ^ S_ISGID); in fchmod()
60 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID)) { in fchmod()
61 res = __fchmod(fd, mode ^ (S_ISUID | S_ISGID)); in fchmod()
H A Dchmod.c45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0) { in chmod()
48 if (mode & S_ISGID) { in chmod()
49 res = __chmod(path, mode ^ S_ISGID); in chmod()
60 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID)) { in chmod()
61 res = __chmod(path, mode ^ (S_ISUID | S_ISGID)); in chmod()
/xnu-11215.81.4/bsd/sys/_types/
H A D_s_ifmt.h65 #define S_ISGID 0002000 /* [XSI] set group id on execution */ macro
/xnu-11215.81.4/bsd/sys/
H A Dstat.h460 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/xnu-11215.81.4/bsd/vfs/
H A Dvfs_subr.c10613 if (vap->va_mode & S_ISGID) { in vnode_authattr_new_internal()
10887 if (vap->va_mode & S_ISGID) { in vnode_authattr()
11186 if (newmode & (S_ISUID | S_ISGID)) { in vnode_authattr()
11189 newmode, newmode & ~(S_ISUID | S_ISGID)); in vnode_authattr()
11190 newmode &= ~(S_ISUID | S_ISGID); in vnode_authattr()
/xnu-11215.81.4/bsd/nfs/
H A Dnfs_serv.c3910 vap->va_mode &= ~S_ISGID; in nfsrv_mkdir()