Home
last modified time | relevance | path

Searched refs:MODE_RWX (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/lstat/
Dlstat02.c33 #define MODE_RWX 0777 macro
94 SAFE_MKDIR(TEST_DIR, MODE_RWX); in setup()
95 SAFE_TOUCH(TEST_EACCES, MODE_RWX, NULL); in setup()
96 SAFE_TOUCH(TEST_FILE, MODE_RWX, NULL); in setup()
99 SAFE_MKDIR("test_eloop", MODE_RWX); in setup()
112 SAFE_CHMOD(TEST_DIR, MODE_RWX); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod08.c86 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
121 TEST(mknod(node_name, MODE_RWX, 0)); in main()
127 node_name, MODE_RWX, TEST_ERRNO, in main()
161 node_name, MODE_RWX); in main()
235 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
Dmknod04.c86 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
126 TEST(mknod(node_name, MODE_RWX, 0)); in main()
131 "%s", node_name, MODE_RWX, TEST_ERRNO, in main()
164 node_name, MODE_RWX); in main()
239 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
Dmknod06.c89 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
146 TEST(mknod(node_name, MODE_RWX, 0)); in main()
242 if (mknod("tnode_1", MODE_RWX, 0) < 0) { in setup1()
260 if (mknod("tnode", MODE_RWX, 0) < 0) { in setup3()
Dmknod09.c73 #define MODE_RWX S_IFMT /* mode different from those expected */ macro
101 TEST(mknod(TNODE, MODE_RWX, 0)); in main()
Dmknod05.c86 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
231 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
Dmknod03.c86 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
234 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
Dmknod02.c86 #define MODE_RWX S_IFIFO | S_IRWXU | S_IRWXG | S_IRWXO macro
240 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen10.c19 #define MODE_RWX 0777 macro
79 SAFE_MKDIR(DIR_A, MODE_RWX); in run()
91 SAFE_MKDIR(DIR_B, MODE_RWX); in run()
108 file_test(NOSETGID_A, MODE_RWX, 0, nobody_gid); in run()
113 file_test(NOSETGID_B, MODE_RWX, 0, free_gid); in run()
/third_party/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c21 #define MODE_RWX 0777 macro
81 SAFE_MKDIR(DIR_A, MODE_RWX); in run()
93 SAFE_MKDIR(DIR_B, MODE_RWX); in run()
110 file_test(NOSETGID_A, MODE_RWX, 0, nobody_gid); in run()
115 file_test(NOSETGID_B, MODE_RWX, 0, free_gid); in run()
Dcreat09.c39 #define MODE_RWX 0777 macro
60 SAFE_MKDIR(WORKDIR, MODE_RWX); in setup()
/third_party/ltp/testcases/kernel/syscalls/link/
Dlink04.c27 #define MODE_RWX S_IRWXU | S_IRWXG | S_IRWXO macro
117 SAFE_MKDIR("dir1", MODE_RWX); in setup()
118 SAFE_MKDIR("dir2", MODE_RWX); in setup()
119 SAFE_MKDIR(DIR_TEMP, MODE_RWX); in setup()
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod06.c31 #define MODE_RWX (S_IRWXU|S_IRWXG|S_IRWXO) macro
120 SAFE_MKDIR(DIR_TEMP, MODE_RWX); in setup()
123 SAFE_TOUCH("t_file", MODE_RWX, NULL); in setup()
137 SAFE_CHMOD(DIR_TEMP, MODE_RWX); in cleanup()
Dchmod05.c42 #define MODE_RWX (mode_t)(S_IRWXU | S_IRWXG | S_IRWXO) macro
44 #define PERMS (mode_t)(MODE_RWX | DIR_MODE)
83 SAFE_MKDIR(TESTDIR, MODE_RWX); in setup()
/third_party/ltp/testcases/kernel/syscalls/symlink/
Dsymlink03.c92 #define MODE_RWX S_IRWXU | S_IRWXG | S_IRWXO macro
265 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup1()
328 if ((fd = open("t_file", O_RDWR | O_CREAT, MODE_RWX)) == -1) { in setup3()
348 SAFE_CHMOD(NULL, DIR_TEMP, MODE_RWX); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir09.c56 #define MODE_RWX 07770 macro
142 TEST(mkdir(tmpdir, MODE_RWX)); in runtest()
335 TEST(mkdir(tmpdir, MODE_RWX)); in dochild1()
409 TEST(mkdir(tmpdir, MODE_RWX)); in dochild3()
/third_party/ltp/testcases/kernel/syscalls/lchown/
Dlchown02.c64 #define MODE_RWX S_IRWXU | S_IRWXG | S_IRWXO macro
228 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup_eacces()
266 if ((fd = open(TFILE3, O_RDWR | O_CREAT, MODE_RWX)) == -1) { in setup_enotdir()
/third_party/ltp/testcases/kernel/syscalls/chown/
Dchown04.c40 #define MODE_RWX (S_IRWXU|S_IRWXG|S_IRWXO) macro
91 SAFE_TOUCH("t_file", MODE_RWX, NULL); in setup()