Home
last modified time | relevance | path

Searched refs:DIR_TEMP (Results 1 – 15 of 15) sorted by relevance

/external/ltp/testcases/kernel/syscalls/mknod/
Dmknod05.c87 #define DIR_TEMP "testdir_5" macro
230 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup()
231 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup()
233 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) { in setup()
234 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup()
236 if (chmod(DIR_TEMP, MODE_SGID) < 0) { in setup()
237 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup()
244 if (stat(DIR_TEMP, &buf) < 0) { in setup()
245 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup()
250 "%s: Incorrect modes, setgid bit not set", DIR_TEMP); in setup()
[all …]
Dmknod03.c87 #define DIR_TEMP "testdir_3" macro
236 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup()
237 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup()
239 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) { in setup()
240 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup()
242 if (chmod(DIR_TEMP, MODE_SGID) < 0) { in setup()
243 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup()
250 if (stat(DIR_TEMP, &buf) < 0) { in setup()
251 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup()
257 "%s: Incorrect modes, setgid bit not set", DIR_TEMP); in setup()
[all …]
Dmknod04.c87 #define DIR_TEMP "testdir_4" macro
238 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup()
239 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup()
241 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) { in setup()
242 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup()
244 if (chmod(DIR_TEMP, MODE_SGID) < 0) { in setup()
245 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup()
252 if (stat(DIR_TEMP, &buf) < 0) { in setup()
253 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup()
259 "%s: Incorrect modes, setgid bit not set", DIR_TEMP); in setup()
[all …]
Dmknod02.c87 #define DIR_TEMP "testdir_2" macro
239 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup()
240 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup()
242 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) { in setup()
243 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup()
250 if (stat(DIR_TEMP, &buf) < 0) { in setup()
251 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup()
257 "%s: Incorrect modes, setgid bit set", DIR_TEMP); in setup()
262 tst_brkm(TBROK, cleanup, "%s: Incorrect group", DIR_TEMP); in setup()
282 if (chdir(DIR_TEMP) < 0) { in setup()
[all …]
Dmknod08.c86 #define DIR_TEMP "testdir_1" macro
234 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup()
235 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup()
237 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) { in setup()
238 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup()
245 if (stat(DIR_TEMP, &buf) < 0) { in setup()
246 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup()
252 "%s: Incorrect modes, setgid bit set", DIR_TEMP); in setup()
257 tst_brkm(TBROK, cleanup, "%s: Incorrect group", DIR_TEMP); in setup()
277 if (chdir(DIR_TEMP) < 0) { in setup()
[all …]
Dmknod07.c50 #define DIR_TEMP "testdir_1" macro
141 SAFE_MKDIR(cleanup, DIR_TEMP, DIR_TEMP_MODE); in setup()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat03.c93 #define DIR_TEMP "testdir_1" macro
281 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup1()
282 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup1()
299 if (chmod(DIR_TEMP, FILE_MODE) < 0) { in setup1()
300 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup1()
362 if (chmod(DIR_TEMP, MODE_RWX) < 0) { in cleanup()
363 tst_brkm(TFAIL, NULL, "chmod(2) of %s failed", DIR_TEMP); in cleanup()
/external/ltp/testcases/kernel/syscalls/symlink/
Dsymlink03.c93 #define DIR_TEMP "testdir_1" macro
284 if (mkdir(DIR_TEMP, MODE_RWX) < 0) { in setup1()
285 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup1()
300 if (chmod(DIR_TEMP, FILE_MODE) < 0) { in setup1()
301 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup1()
386 if (chmod(DIR_TEMP, MODE_RWX) < 0) { in cleanup()
387 tst_brkm(TBROK, NULL, "chmod(2) of %s failed", DIR_TEMP); in cleanup()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod06.c64 #define DIR_TEMP "testdir_1" macro
190 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
192 SAFE_CHMOD(cleanup, DIR_TEMP, FILE_MODE); in setup()
220 if (chmod(DIR_TEMP, MODE_RWX) == -1) in cleanup()
221 tst_resm(TBROK | TERRNO, "chmod(%s) failed", DIR_TEMP); in cleanup()
/external/ltp/testcases/kernel/syscalls/link/
Dlink07.c44 #define DIR_TEMP "testdir_1" macro
102 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
106 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_TE); in setup()
/external/ltp/testcases/kernel/syscalls/lchown/
Dlchown02.c65 #define DIR_TEMP "testdir_1" macro
232 if (mkdir(DIR_TEMP, MODE_RWX) == -1) in setup_eacces()
249 if (chmod(DIR_TEMP, FILE_MODE) < 0) { in setup_eacces()
251 DIR_TEMP); in setup_eacces()
/external/ltp/testcases/kernel/syscalls/readlink/
Dreadlink03.c54 #define DIR_TEMP "testdir_1" macro
131 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
134 SAFE_CHMOD(cleanup, DIR_TEMP, FILE_MODE); in setup()
/external/ltp/testcases/kernel/syscalls/chown/
Dchown04.c63 #define DIR_TEMP "testdir_1" macro
65 #define TEST_FILE2 (DIR_TEMP "/tfile_2")
171 SAFE_MKDIR(cleanup, DIR_TEMP, S_IRWXU); in setup()
/external/libmojo/base/
Dbase_paths.h33 DIR_TEMP, // Temporary directory. enumerator
Dbase_paths.cc25 case DIR_TEMP: in PathProvider()