| /netbsd-src/lib/libc/string/ |
| H A D | strmode.c | 142 switch (mode & (S_IXGRP | S_ISGID)) { in strmode() 149 case S_ISGID: in strmode() 152 case S_IXGRP | S_ISGID: in strmode()
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/test/ |
| H A D | test_write_disk_perms.c | 297 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST() 334 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST() 348 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST() 369 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST() 378 archive_entry_set_mode(ae, S_IFREG | S_ISGID | 0742); in DEFINE_TEST() 449 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742); in DEFINE_TEST() 460 assertEqualInt(st.st_mode & 07777, S_ISGID | 0742); in DEFINE_TEST()
|
| /netbsd-src/bin/cp/ |
| H A D | utils.c | 161 fs->st_mode & ~(S_ISUID | S_ISGID)); in copy_file() 170 fs->st_mode & ~(S_ISUID | S_ISGID)); in copy_file() 280 (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) in copy_file() 282 && fs->st_mode & (S_ISUID | S_ISGID) && fs->st_uid == myuid) { in copy_file() 370 fs->st_mode &= S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO; in setfile() 384 fs->st_mode &= ~(S_ISUID | S_ISGID); in setfile()
|
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | stat-macros.h | 184 # if !S_ISGID 185 # define S_ISGID 02000 macro 253 (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
|
| /netbsd-src/external/gpl3/binutils/dist/binutils/ |
| H A D | filemode.c | 228 #ifdef S_ISGID in setst() 229 if (bits & S_ISGID) in setst()
|
| /netbsd-src/external/gpl3/binutils.old/dist/binutils/ |
| H A D | filemode.c | 228 #ifdef S_ISGID in setst() 229 if (bits & S_ISGID) in setst()
|
| /netbsd-src/external/cddl/osnet/sys/kern/ |
| H A D | policy.c | 284 if ((vap->va_mode & S_ISGID) != 0) in secpolicy_setid_setsticky_clear() 419 if ((vap->va_mode & (S_ISUID | S_ISGID)) != 0) { in secpolicy_setid_clear() 421 vap->va_mode &= ~(S_ISUID|S_ISGID); in secpolicy_setid_clear()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | chmod.c | 350 new_mode |= S_ISGID; in chmod_internal() 440 file_mode = (file_mode & ~(S_ISGID | S_IRGRP | S_IWGRP | S_IXGRP)) in chmod_internal() 441 | (new_mode & (S_ISGID | S_IRGRP | S_IWGRP | S_IXGRP)); in chmod_internal()
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | chmod.c | 353 new_mode |= S_ISGID; in chmod_internal() 443 file_mode = (file_mode & ~(S_ISGID | S_IRGRP | S_IWGRP | S_IXGRP)) in chmod_internal() 444 | (new_mode & (S_ISGID | S_IRGRP | S_IWGRP | S_IXGRP)); in chmod_internal()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | setmode.c | 177 #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) 254 who |= S_ISGID|S_IRWXG; in setmode() 283 perm |= S_ISUID|S_ISGID; in setmode()
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/ |
| H A D | colors.c | 203 #if defined (S_ISGID) in _rl_print_color_indicator() 204 if ((mode & S_ISGID) != 0 && is_colored (C_SETGID)) in _rl_print_color_indicator()
|
| /netbsd-src/sys/sys/ |
| H A D | stat.h | 112 #define S_ISGID 0002000 /* set group id on execution */ macro 191 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
|
| /netbsd-src/sys/kern/ |
| H A D | exec_script.c | 204 script_sbits = epp->ep_vap->va_mode & (S_ISUID | S_ISGID); in exec_script_makecmds() 325 if (script_sbits & S_ISGID) in exec_script_makecmds()
|
| /netbsd-src/external/bsd/file/dist/src/ |
| H A D | fsmagic.c | 185 #ifdef S_ISGID in file_fsmagic() 186 if (sb->st_mode & S_ISGID) in file_fsmagic()
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/ |
| H A D | archive_entry_strmode.c | 74 if (mode & S_ISGID) { in archive_entry_strmode()
|
| /netbsd-src/bin/ksh/ |
| H A D | c_test.c | 326 #ifdef S_ISGID 328 && (b1.st_mode & S_ISGID) == S_ISGID;
|
| /netbsd-src/usr.bin/compress/ |
| H A D | compress.c | 391 fs->st_mode &= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; in setfile() 407 fs->st_mode &= ~(S_ISUID|S_ISGID); in setfile()
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | chown.c | 144 | S_ISUID | S_ISGID | S_ISVTX)); in rpl_chown()
|
| H A D | sys_stat.in.h | 320 #if !S_ISGID 321 # define S_ISGID 02000
|
| /netbsd-src/usr.sbin/mtree/ |
| H A D | mtree.h | 50 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/sys/ |
| H A D | stat.d | 974 enum S_ISGID = 0x400; // octal 02000 in version() 1032 enum S_ISGID = 0x400; // octal 02000 1116 enum S_ISGID = 0x400; // octal 0002000 1150 enum S_ISGID = 0x400; // octal 0002000 1204 enum S_ISGID = 0x400; // octal 0002000 1235 enum S_ISGID = 0x400; // octal 0002000 1353 enum S_ISGID = 0x400;
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | edit_file.c | 149 (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
|
| /netbsd-src/usr.bin/ldd/ |
| H A D | ldd_elfxx.c | 115 _rtld_trust = (st.st_mode & (S_ISUID | S_ISGID)) == 0; in ELFNAME()
|
| /netbsd-src/sys/compat/linux32/common/ |
| H A D | linux32_exec_elf32.c | 188 a->a_v = ((vap->va_mode & S_ISGID) ? in linux32_elf32_copyargs()
|
| /netbsd-src/lib/libpuffs/ |
| H A D | creds.c | 241 if (!puffs_cred_hasgroup(pcr, group) && (mode & S_ISGID)) in puffs_access_chmod()
|