/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod06.c | 63 #define FILE_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 90 {TEST_FILE1, FILE_MODE, EPERM, set_nobody, set_root}, 91 {TEST_FILE2, FILE_MODE, EACCES, set_nobody, set_root}, 92 {(char *)-1, FILE_MODE, EFAULT, NULL, NULL}, 93 {(char *)-2, FILE_MODE, EFAULT, NULL, NULL}, 94 {long_path, FILE_MODE, ENAMETOOLONG, NULL, NULL}, 95 {"", FILE_MODE, ENOENT, NULL, NULL}, 96 {TEST_FILE3, FILE_MODE, ENOTDIR, NULL, NULL}, 97 {MNT_POINT, FILE_MODE, EROFS, NULL, NULL}, 98 {TEST_FILE4, FILE_MODE, ELOOP, NULL, NULL}, [all …]
|
D | chmod03.c | 85 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 163 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 166 TESTFILE, FILE_MODE); in setup()
|
D | chmod01.c | 81 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 151 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek02.c | 89 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 222 if ((fd1 = open(TEMP_FILE1, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup1() 225 TEMP_FILE1, FILE_MODE, errno, strerror(errno)); in setup1() 246 if ((fd2 = open(TEMP_FILE2, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup2() 249 TEMP_FILE2, FILE_MODE, errno, strerror(errno)); in setup2()
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown02.c | 84 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 238 if ((fd = open(TESTFILE1, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup1() 241 TESTFILE1, FILE_MODE); in setup1() 260 if ((fd = open(TESTFILE2, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup2() 263 TESTFILE2, FILE_MODE); in setup2()
|
D | chown03.c | 87 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 177 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup() 180 FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat01.c | 35 #define FILE_MODE 0644 macro 80 if ((stat_buf.st_mode & MASK) != FILE_MODE) { in verify() 82 (stat_buf.st_mode & MASK), FILE_MODE); in verify() 130 fd = SAFE_OPEN(tst_rmdir, TESTFILE, O_WRONLY | O_CREAT, FILE_MODE); in setup()
|
D | stat02.c | 82 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 185 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 188 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
D | fstat02.c | 35 #define FILE_MODE 0644 macro 80 if ((stat_buf.st_mode & MASK) != FILE_MODE) { in verify() 82 (stat_buf.st_mode & MASK), FILE_MODE); in verify() 129 fildes = SAFE_OPEN(tst_rmdir, TESTFILE, O_WRONLY | O_CREAT, FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink04.c | 83 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 169 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 172 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink01.c | 79 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 170 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 173 TESTFILE, FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod07.c | 79 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 172 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 175 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
D | fchmod02.c | 92 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 194 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 197 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
D | fchmod03.c | 85 #define FILE_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 162 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) in setup()
|
/external/ltp/testcases/kernel/syscalls/sync/ |
D | sync02.c | 81 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 170 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 173 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup()
|
/external/ltp/testcases/kernel/syscalls/utimes/ |
D | utimes01.c | 59 #define FILE_MODE (S_IRWXU | S_IRGRP | S_IXGRP | \ macro 132 SAFE_TOUCH(cleanup, TESTFILE1, FILE_MODE, NULL); in setup() 137 SAFE_TOUCH(cleanup, TESTFILE2, FILE_MODE, NULL); in setup() 146 SAFE_TOUCH(cleanup, TESTFILE3, FILE_MODE, NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate01.c | 83 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 186 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 189 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
D | truncate02.c | 82 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 252 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 255 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
D | truncate03.c | 64 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 137 SAFE_TOUCH(cleanup, "t_file", FILE_MODE, NULL); in setup() 151 SAFE_TOUCH(cleanup, TEST_FILE3, FILE_MODE, NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/utime/ |
D | utime03.c | 95 #define FILE_MODE S_IRWXU | S_IRGRP | S_IWGRP| S_IROTH | S_IWOTH macro 252 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup() 261 SAFE_CHMOD(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime04.c | 86 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 168 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime05.c | 89 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 178 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown02.c | 42 #define FILE_MODE S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 143 fd1 = SAFE_OPEN(cleanup, TESTFILE1, O_RDWR | O_CREAT, FILE_MODE); in setup() 145 fd2 = SAFE_OPEN(cleanup, TESTFILE2, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/external/ltp/testcases/kernel/syscalls/rmdir/ |
D | rmdir02.c | 61 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO) macro 149 SAFE_TOUCH(cleanup, TESTFILE, FILE_MODE, NULL); in setup() 153 SAFE_TOUCH(cleanup, TESTFILE2, FILE_MODE, NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount02.c | 55 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO) macro 182 SAFE_TOUCH(cleanup, file, FILE_MODE, NULL); in setup() 197 if (mknod(char_dev, S_IFCHR | FILE_MODE, dev)) { in setup()
|