Searched refs:S_ISGID (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-11-stable/lib/libc/string/
H A Dstrmode.c109 switch (mode & (S_IXGRP | S_ISGID)) {
116 case S_ISGID:
119 case S_IXGRP | S_ISGID:
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dstrmode.c108 switch (mode & (S_IXGRP | S_ISGID)) {
115 case S_ISGID:
118 case S_IXGRP | S_ISGID:
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_vfs_setgid.c78 error = chmod(fpath, 0600 | S_ISGID);
98 error = chmod(fpath, 0600 | S_ISGID);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_entry_strmode.c75 if (mode & S_ISGID) {
/freebsd-11-stable/contrib/binutils/binutils/
H A Dfilemode.c230 #ifdef S_ISGID
231 if (bits & S_ISGID)
/freebsd-11-stable/contrib/apr/file_io/unix/
H A Dfileacc.c49 mode |= S_ISGID;
84 if (mode & S_ISGID)
/freebsd-11-stable/contrib/sendmail/libsm/
H A Dmpeix.c457 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID);
488 sendmail_mpe_gidflag = ((mode & S_ISGID) == S_ISGID);
/freebsd-11-stable/usr.sbin/fmtree/
H A Dmtree.h54 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c298 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
335 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
349 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
370 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
379 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742);
450 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742);
461 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742);
H A Dtest_write_disk.c55 /* When verifying a dir, ignore the S_ISGID bit, as some systems set
58 st.st_mode &= ~S_ISGID;
/freebsd-11-stable/bin/cp/
H A Dutils.c136 fs->st_mode & ~(S_ISUID | S_ISGID));
144 fs->st_mode & ~(S_ISUID | S_ISGID));
354 fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
369 ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
386 fs->st_mode &= ~(S_ISUID | S_ISGID);
H A Dcp.c380 if ((mode & (S_ISUID | S_ISGID | S_ISTXT)) ||
/freebsd-11-stable/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_policy.c323 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0) {
326 vap->va_mode &= ~(S_ISUID|S_ISGID);
353 if ((vap->va_mode & S_ISGID) != 0) {
/freebsd-11-stable/lib/libc/gen/
H A Dsetmode.c167 #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
237 who |= S_ISGID|S_IRWXG;
263 perm |= S_ISUID|S_ISGID;
/freebsd-11-stable/contrib/tcsh/
H A Dtc.os.h314 #ifndef S_ISGID
315 # define S_ISGID 0002000 /* setgid */ macro
316 #endif /* S_ISGID */
321 # define S_ENFMT S_ISGID /* record locking enforcement flag */
/freebsd-11-stable/contrib/mtree/
H A Dmtree.h50 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-11-stable/contrib/elftoolchain/ar/
H A Dutil.c144 if (m & S_ISGID)
/freebsd-11-stable/sys/sys/
H A Dstat.h196 #define S_ISGID 0002000 /* set group id on execution */ macro
253 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/freebsd-11-stable/contrib/file/src/
H A Dfsmagic.c179 #ifdef S_ISGID
180 if (sb->st_mode & S_ISGID)
/freebsd-11-stable/bin/mv/
H A Dmv.c318 if (oldmode & (S_ISUID | S_ISGID)) {
322 sbp->st_mode &= ~(S_ISUID | S_ISGID);
/freebsd-11-stable/usr.bin/compress/
H A Dcompress.c366 fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO;
382 fs->st_mode &= ~(S_ISUID|S_ISGID);
/freebsd-11-stable/contrib/amd/amd/
H A Dinfo_exec.c373 if (sb.st_mode & (S_ISUID|S_ISGID)) {
/freebsd-11-stable/contrib/sendmail/libsmutil/
H A Dsafefile.c111 if (bitset(S_ISGID, st->st_mode))
113 if (bitset(S_ISGID, st->st_mode) && st->st_gid != 0)
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_acl.c901 mode = (fmode & (S_IFMT | S_ISUID | S_ISGID | S_ISVTX));
1658 if (dzp->z_mode & S_ISGID) {
1696 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) &&
1698 acl_ids->z_mode |= S_ISGID;
1700 if ((acl_ids->z_mode & S_ISGID) &&
1702 acl_ids->z_mode &= ~S_ISGID;
/freebsd-11-stable/bin/pax/
H A Dfile_subs.c64 #define SETBITS (S_ISUID | S_ISGID)

Completed in 216 milliseconds

12