Home
last modified time | relevance | path

Searched refs:MODE_SGID (Results 1 – 8 of 8) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod03.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO macro
125 TEST(mknod(node_name, MODE_SGID, 0)); in main()
130 "%s", node_name, MODE_SGID, TEST_ERRNO, in main()
161 node_name, MODE_SGID); in main()
236 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_SGID); in setup()
Dmknod05.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO macro
125 TEST(mknod(node_name, MODE_SGID, 0)); in main()
130 "%s", node_name, MODE_SGID, TEST_ERRNO, in main()
163 node_name, MODE_SGID); in main()
233 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_SGID); in setup()
Dmknod04.c87 #define MODE_SGID S_IFIFO | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO macro
241 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_SGID); in setup()
Dmknod02.c22 #define MODE_SGID 02000 macro
/third_party/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c22 #define MODE_SGID (S_ISGID|0777) macro
95 SAFE_CHMOD(DIR_B, MODE_SGID); in run()
111 file_test(SETGID_A, MODE_SGID, 1, nobody_gid); in run()
120 file_test(SETGID_B, MODE_SGID, -1, free_gid); in run()
125 file_test(ROOT_SETGID, MODE_SGID, 1, free_gid); in run()
Dcreat09.c50 #define MODE_SGID (S_ISGID|0777) macro
80 SAFE_CHMOD(WORKDIR, MODE_SGID); in setup()
122 fd = SAFE_CREAT(CREAT_FILE, MODE_SGID); in run()
126 fd = SAFE_OPEN(OPEN_FILE, O_CREAT | O_EXCL | O_RDWR, MODE_SGID); in run()
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen10.c20 #define MODE_SGID (S_ISGID|0777) macro
93 SAFE_CHMOD(DIR_B, MODE_SGID); in run()
109 file_test(SETGID_A, MODE_SGID, 1, nobody_gid); in run()
118 file_test(SETGID_B, MODE_SGID, -1, free_gid); in run()
123 file_test(ROOT_SETGID, MODE_SGID, 1, free_gid); in run()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat04.c38 #define MODE_SGID (S_ISGID|0777) macro
102 SAFE_CHMOD(WORKDIR, MODE_SGID); in setup()
142 tmpfile_fd = SAFE_OPENAT(dir_fd, ".", O_TMPFILE | O_RDWR, MODE_SGID); in run()