Lines Matching refs:openat

20  *   1)openat() succeeds to open a file in append mode, when
22 * 2)openat() succeeds to enable the close-on-exec flag for a
24 * 3)openat() succeeds to allow files whose sizes cannot be
27 * 4)openat() succeeds to not update the file last access time
30 * 5)openat() succeeds to open the file failed if the file is a
32 * 6)openat() succeeds to truncate the file to length 0 if the file
51 #include "openat.h"
122 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777));
125 tst_resm(TFAIL | TTERRNO, "openat failed");
134 tst_resm(TPASS, "test O_APPEND for openat success");
136 tst_resm(TFAIL, "test O_APPEND for openat failed");
147 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777));
150 tst_resm(TFAIL | TTERRNO, "openat failed");
173 tst_resm(TPASS, "test O_CLOEXEC for openat success");
176 tst_resm(TFAIL, "test O_CLOEXEC for openat failed");
203 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777));
206 tst_resm(TFAIL, "test O_LARGEFILE for openat failed");
208 tst_resm(TPASS, "test O_LARGEFILE for openat success");
222 tst_resm(TCONF, "test O_NOATIME flag for openat needs "
232 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777));
235 tst_resm(TFAIL | TTERRNO, "openat failed");
246 tst_resm(TPASS, "test O_NOATIME for openat success");
248 tst_resm(TFAIL, "test O_NOATIME for openat failed");
253 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777));
256 tst_resm(TPASS, "test O_NOFOLLOW for openat success");
258 tst_resm(TFAIL, "test O_NOFOLLOW for openat failed");
267 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777));
270 tst_resm(TFAIL | TTERRNO, "openat failed");
277 tst_resm(TPASS, "test O_TRUNC for openat success");
279 tst_resm(TFAIL, "test O_TRUNC for openat failed");