/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek07.c | 82 #define TEMP_FILE "tmp_file" macro 120 TEMP_FILE); in main() 150 " errno = %d", TEMP_FILE, errno); in main() 154 if ((fildes = open(TEMP_FILE, O_RDWR)) < 0) { in main() 157 TEMP_FILE, errno); in main() 167 "error=%d", TEMP_FILE, errno); in main() 177 "file %s", TEMP_FILE); in main() 183 "file %s", TEMP_FILE); in main() 186 "lseek() on %s successful", TEMP_FILE); in main() 216 if ((fildes = open(TEMP_FILE, O_WRONLY | O_CREAT, FILE_MODE)) == -1) { in setup() [all …]
|
D | lseek09.c | 83 #define TEMP_FILE "tmp_file" macro 116 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 137 TEMP_FILE, errno); in main() 146 "from file %s", TEMP_FILE); in main() 150 TEMP_FILE); in main() 187 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 190 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup() 196 TEMP_FILE, errno, strerror(errno)); in setup() 202 TEMP_FILE, errno, strerror(errno)); in setup() 228 TEMP_FILE, errno, strerror(errno)); in cleanup()
|
D | lseek08.c | 81 #define TEMP_FILE "tmp_file" macro 113 "lseek of %s failed", TEMP_FILE); in main() 134 TEMP_FILE); in main() 137 "%s successful", TEMP_FILE); in main() 167 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 170 TEMP_FILE, FILE_MODE); in setup() 176 "writing to %s failed", TEMP_FILE); in setup() 182 "fstat of %s failed", TEMP_FILE); in setup() 200 TEMP_FILE, errno, strerror(errno)); in cleanup()
|
D | lseek06.c | 82 #define TEMP_FILE "tmp_file" macro 113 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 132 "on %s, error=%d", TEMP_FILE, errno); in main() 140 "from file %s", TEMP_FILE); in main() 144 "successful", TEMP_FILE); in main() 173 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 176 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup() 182 TEMP_FILE, errno, strerror(errno)); in setup() 197 TEMP_FILE, errno, strerror(errno)); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/sync/ |
D | sync02.c | 80 #define TEMP_FILE "temp_file" macro 117 TEMP_FILE, errno); in main() 127 TEMP_FILE); in main() 135 TEMP_FILE, errno); in main() 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() 181 TEMP_FILE); in setup() 199 TEMP_FILE, errno, strerror(errno)); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/utime/ |
D | utime03.c | 94 #define TEMP_FILE "tmp_file" macro 166 TEST(utime(TEMP_FILE, NULL)); in main() 170 "utime(%s) failed", TEMP_FILE); in main() 190 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main() 201 "not set", TEMP_FILE); in main() 206 TEMP_FILE); in main() 257 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup() 266 SAFE_CHMOD(cleanup, TEMP_FILE, FILE_MODE); in setup() 279 SAFE_CHOWN(cleanup, TEMP_FILE, user_uid, group_gid); in setup()
|
D | utime04.c | 85 #define TEMP_FILE "tmp_file" macro 117 TEST(utime(TEMP_FILE, ×)); in main() 120 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main() 126 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main() 135 TEMP_FILE); in main() 139 TEMP_FILE); in main() 168 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime05.c | 88 #define TEMP_FILE "tmp_file" macro 123 TEST(utime(TEMP_FILE, ×)); in main() 126 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main() 132 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main() 141 TEMP_FILE); in main() 145 TEMP_FILE); in main() 178 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime01.c | 86 #define TEMP_FILE "tmp_file" macro 130 TEST(utime(TEMP_FILE, NULL)); in main() 133 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main() 152 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main() 163 TEMP_FILE); in main() 167 TEMP_FILE); in main() 196 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime02.c | 89 #define TEMP_FILE "tmp_file" macro 136 TEST(utime(TEMP_FILE, NULL)); in main() 139 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main() 158 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main() 169 TEMP_FILE); in main() 173 TEMP_FILE); in main() 211 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime06.c | 55 #define TEMP_FILE "tmp_file" macro 73 {TEMP_FILE, EACCES, NULL, setup_nobody, cleanup_nobody}, 75 {TEMP_FILE, EPERM, ×, setup_nobody, cleanup_nobody}, 115 SAFE_TOUCH(cleanup, TEMP_FILE, 0644, NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek01.c | 88 #define TEMP_FILE "tmp_file" macro 121 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 166 "successful", TEMP_FILE); in main() 199 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 202 TEMP_FILE, errno, strerror(errno)); in setup()
|
/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount03.c | 57 #define TEMP_FILE "temp_file" macro 200 snprintf(file, PATH_MAX, "%s%s", path_name, TEMP_FILE); in test_rwflag()
|