Home
last modified time | relevance | path

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

123

/external/python/cpython3/Lib/
Dstat.py93 S_ISGID = 0o2000 # set GID bit variable
94 S_ENFMT = S_ISGID # file locking enforcement
145 ((S_IXGRP|S_ISGID, "s"),
146 (S_ISGID, "S"),
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c22 #define MODE_SGID (S_ISGID|0777)
70 if (buf.st_mode & S_ISGID) in file_test()
85 if (buf.st_mode & S_ISGID) in run()
98 if (!(buf.st_mode & S_ISGID)) in run()
Dcreat09.c50 #define MODE_SGID (S_ISGID|0777)
83 if (!(buf.st_mode & S_ISGID)) in setup()
109 if (buf.st_mode & S_ISGID) in file_test()
/external/ltp/testcases/kernel/syscalls/open/
Dopen10.c20 #define MODE_SGID (S_ISGID|0777)
68 if (buf.st_mode & S_ISGID) in file_test()
83 if (buf.st_mode & S_ISGID) in run()
96 if (!(buf.st_mode & S_ISGID)) in run()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c43 #define DIR_MODE (mode_t)(S_ISVTX | S_ISGID | S_IFDIR)
60 if ((PERMS & ~S_ISGID) != dir_mode) { in test_chmod()
63 PERMS & ~S_ISGID); in test_chmod()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat04.c38 #define MODE_SGID (S_ISGID|0777)
69 TEST(openat(dirfd, ".", O_TMPFILE | O_RDWR, S_IXGRP | S_ISGID)); in open_tmpfile_supported()
105 if (!(buf.st_mode & S_ISGID)) in setup()
126 if (buf.st_mode & S_ISGID) in file_test()
/external/ltp/testcases/kernel/syscalls/mknod/
Dmknod05.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO
146 if (!(buf.st_mode & S_ISGID)) { in main()
241 if (!(buf.st_mode & S_ISGID)) { in setup()
Dmknod02.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO
148 if (!(buf.st_mode & S_ISGID)) { in main()
250 if (buf.st_mode & S_ISGID) { in setup()
Dmknod04.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO
147 if (buf.st_mode & S_ISGID) { in main()
250 if (!(buf.st_mode & S_ISGID)) { in setup()
Dmknod03.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO
245 if (!(buf.st_mode & S_ISGID)) { in setup()
Dmknod08.c144 if (buf.st_mode & S_ISGID) { in main()
245 if (buf.st_mode & S_ISGID) { in setup()
/external/strace/
Dprintmode.c58 (mode & S_ISGID) ? "S_ISGID|" : "", in print_symbolic_mode_t()
60 mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)); in print_symbolic_mode_t()
/external/python/cpython3/Modules/
D_stat.c128 #ifndef S_ISGID
129 # define S_ISGID 02000 macro
134 # define S_ENFMT S_ISGID
382 if (mode & S_ISGID) { in fileperm()
521 ADD_INT_MACRO(module, S_ISGID); in stat_exec()
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir02.c40 if (!(statbuf.st_mode & S_ISGID)) { in verify_mkdir()
60 SAFE_CHMOD(TESTDIR1, 0777 | S_ISGID); in setup()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c42 if ((PERMS_DIR & ~S_ISGID) != dir_mode) { in verify_fchmod()
44 TESTDIR, dir_mode & ~S_ISGID, PERMS_DIR); in verify_fchmod()
/external/python/cpython2/Lib/
Dstat.py64 S_ISGID = 02000 variable
65 S_ENFMT = S_ISGID
/external/ltp/testcases/kernel/syscalls/chown/
Dchown02.c20 #define NEW_PERMS1 (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
21 #define NEW_PERMS2 (S_IFREG|S_IRWXU|S_ISGID)
Dchown03.c26 #define NEW_PERMS (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
67 check_mode(&stat_buf, NEW_PERMS & ~(S_ISUID | S_ISGID)); in run()
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown03.c31 #define NEW_PERMS (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
72 check_mode(&stat_buf, NEW_PERMS & ~(S_ISUID | S_ISGID)); in run()
Dfchown02.c27 #define NEW_PERMS1 (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
28 #define NEW_PERMS2 (S_IFREG|S_IRWXU|S_ISGID)
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl06.h24 #define SUID_MODE (S_ISUID|S_ISGID|S_IXUSR|S_IXGRP|S_IXOTH)
/external/bcc/libbpf-tools/
Dstat.h16 #define S_ISGID 0002000 macro
/external/strace/tests-m32/
Dmknod.c62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
/external/strace/tests/
Dmknodat.c62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()
/external/strace/tests-mx32/
Dmknodat.c62 sample, (short) (mode & ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX)), in main()

123