/external/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod05.c | 87 #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 …]
|
D | mknod03.c | 87 #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 …]
|
D | mknod04.c | 87 #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 …]
|
D | mknod02.c | 87 #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 …]
|
D | mknod08.c | 86 #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 …]
|
D | mknod07.c | 50 #define DIR_TEMP "testdir_1" macro 141 SAFE_MKDIR(cleanup, DIR_TEMP, DIR_TEMP_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat03.c | 93 #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/ |
D | symlink03.c | 93 #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/ |
D | chmod06.c | 64 #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/ |
D | link07.c | 44 #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/ |
D | lchown02.c | 65 #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/ |
D | readlink03.c | 54 #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/ |
D | chown04.c | 63 #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/ |
D | base_paths.h | 33 DIR_TEMP, // Temporary directory. enumerator
|
D | base_paths.cc | 25 case DIR_TEMP: in PathProvider()
|