Searched refs:S_ISUID (Results 1 - 9 of 9) sorted by relevance

/darwin-on-arm/xnu/libsyscall/wrappers/unix03/
H A Dchmod.c35 * chmod stub, ignore S_ISUID and/or S_ISGID on EPERM,
45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0)
52 if (mode & S_ISUID) {
53 res = __chmod(path, mode ^ S_ISUID);
57 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID))
58 res = __chmod(path, mode ^ (S_ISUID | S_ISGID));
H A Dfchmod.c35 * fchmod stub, ignore S_ISUID and/or S_ISGID on EPERM,
45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0)
52 if (mode & S_ISUID) {
53 res = __fchmod(fd, mode ^ S_ISUID);
57 if ((mode & (S_ISUID | S_ISGID)) == (S_ISUID | S_ISGID))
58 res = __fchmod(fd, mode ^ (S_ISUID | S_ISGID));
/darwin-on-arm/xnu/bsd/sys/_types/
H A D_s_ifmt.h64 #define S_ISUID 0004000 /* [XSI] set user id on execution */ macro
/darwin-on-arm/xnu/bsd/sys/
H A Dstat.h466 #define S_ISUID 0004000 /* [XSI] set user id on execution */ macro
534 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
H A Dfcntl.h383 #define S_ISUID 0004000 /* [XSI] set user id on execution */ macro
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dmain.c191 if ( my_stat_buf.st_uid != 0 || (my_stat_buf.st_mode & S_ISUID) == 0 ) {
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_readwrite.c759 if (cp->c_mode & (S_ISUID | S_ISGID)) {
766 cp->c_mode &= ~(S_ISUID | S_ISGID);
3114 if (cp->c_mode & (S_ISUID | S_ISGID)) {
3116 cp->c_mode &= ~(S_ISUID | S_ISGID);
4264 if ((cp->c_mode & (S_ISUID | S_ISGID)) &&
4267 cp->c_mode &= ~(S_ISUID | S_ISGID);
H A Dhfs_attrlist.c732 cap->ca_mode & ~(S_ISUID | S_ISGID) : cap->ca_mode;
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_subr.c7195 if ((vap->va_mode & S_ISUID) && (vap->va_uid != kauth_cred_getuid(cred))) {
7479 if (vap->va_mode & S_ISUID) {
7731 if (newmode & (S_ISUID | S_ISGID)) {
7732 VATTR_SET(vap, va_mode, newmode & ~(S_ISUID | S_ISGID));

Completed in 117 milliseconds