/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | faccessat.c | 35 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0100() 68 int fd = open(ptr, O_RDWR | O_CREAT, 00040); in faccessat_0300() 85 int fd = open(ptr, O_RDWR | O_CREAT, 00020); in faccessat_0400() 102 int fd = open(ptr, O_RDWR | O_CREAT, 00010); in faccessat_0500() 122 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0600() 139 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_0700() 156 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0800() 173 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_0900() 192 int fd = open(ptr, O_RDWR | O_CREAT, 00070); in faccessat_1000() 210 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MOD in faccessat_1100() [all...] |
H A D | lseek.c | 39 int fd = open("lseek64_function_test.c", O_RDWR | O_CREAT, TEST_MODE); in lseek64_0100() 66 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0100() 83 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0200() 100 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0300() 118 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0400() 135 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0500() 152 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0600()
|
H A D | fchown.c | 36 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0100() 53 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0200() 70 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0300() 87 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0400() 101 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0500()
|
H A D | write.c | 34 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0100() 68 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0200() 92 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0300() 136 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0500()
|
/third_party/ltp/testcases/kernel/syscalls/openat2/ |
H A D | openat203.c | 26 {"invalid-dfd", -1, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how), EBADF}, 27 {"invalid-pathname", AT_FDCWD, NULL, O_RDONLY | O_CREAT, S_IRUSR, 0, &how, sizeof(*how), EFAULT}, 29 {"invalid-mode", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, -1, 0, &how, sizeof(*how), EINVAL}, 30 {"invalid-resolve", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, -1, &how, sizeof(*how), EINVAL}, 31 {"invalid-size-zero", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, 0, EINVAL}, 32 {"invalid-size-small", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) - 1, EINVAL}, 33 {"invalid-size-big", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) + 1, EFAULT}, 34 {"invalid-size-big-with-pad", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, (struct open_how **)&phow, sizeof(*how) + 8, E2BIG},
|
/third_party/ltp/testcases/kernel/syscalls/mq_open/ |
H A D | mq_open01.c | 54 .oflag = O_CREAT, 62 .oflag = O_CREAT, 75 .oflag = O_CREAT, 88 .oflag = O_CREAT, 96 .oflag = O_CREAT, 111 .oflag = O_CREAT | O_EXCL, 120 .oflag = O_CREAT, 136 .oflag = O_CREAT, 146 fd2 = SAFE_MQ_OPEN(QUEUE_NAME, O_CREAT | O_EXCL | O_RDWR, S_IRWXU, NULL); in create_queue() 198 fd3 = SAFE_MQ_OPEN(QUEUE_INIT, O_CREAT | O_EXC in setup() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/ |
H A D | fcntl_fcntl_test.cpp | 24 int fd = open("test_fcntl_001.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F() 41 int fd = open("test_fcntl_002.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F() 58 int fd = open("test_fcntl_003.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F() 79 int fd = open("test_fcntl_004.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F() 101 int fd = open("test_fcntl_005.txt", O_RDWR | O_CREAT, 0666); in HWTEST_F() 120 int fd = open("test_fcntl_006.txt", O_RDWR | O_CREAT, 0666); in HWTEST_F() 141 int fd = open("test_fcntl_007.txt", O_CREAT | O_RDWR, S_IRWXU); in HWTEST_F() 161 int fd = open("test_fcntl_008.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F() 184 int fd = open("test_fcntl_009.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F() 206 int fd = open("test_fcntl_010.txt", O_RDWR | O_CREAT, 064 in HWTEST_F() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | flock.c | 28 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0100() 46 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0200() 64 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0300() 82 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0400() 100 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0500() 129 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0700()
|
H A D | copy_file_range.c | 38 fd_in = open(path_in, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100() 53 fd_out = open(path_out, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100() 117 fd_in = open(path_in, O_WRONLY | O_CREAT, TEST_MODE); in copy_file_range_0300() 132 fd_out = open(path_out, O_RDONLY | O_CREAT, TEST_MODE); in copy_file_range_0300()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | posix_spawn_file_actions_addopen.c | 36 int ret = posix_spawn_file_actions_addopen(&fa, fd, "/data", O_RDWR | O_CREAT, S_IXGRP); in posix_spawn_file_actions_addopen_0100() 42 EXPECT_EQ("posix_spawn_file_actions_addopen_0100", ptr->oflag, O_RDWR | O_CREAT); in posix_spawn_file_actions_addopen_0100() 61 int ret = posix_spawn_file_actions_addopen(&fa, fd, "/data", O_RDONLY | O_CREAT, S_IXGRP | S_IROTH | S_IWOTH); in posix_spawn_file_actions_addopen_0200() 67 EXPECT_EQ("posix_spawn_file_actions_addopen_0200", ptr->oflag, O_RDONLY | O_CREAT); in posix_spawn_file_actions_addopen_0200() 86 int ret = posix_spawn_file_actions_addopen(&fa, fd, "/data", O_WRONLY | O_CREAT, S_IXGRP | S_IROTH | S_IWOTH); in posix_spawn_file_actions_addopen_0300() 92 EXPECT_EQ("posix_spawn_file_actions_addopen_0300", ptr->oflag, O_WRONLY | O_CREAT); in posix_spawn_file_actions_addopen_0300()
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_new_test.c | 205 result = open("/tmp/testfile1", O_CREAT | O_RDONLY, 0600); in test_file_open_1() 215 result = open("/tmp/testfile3", O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_3() 225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); in test_file_open_5() 236 O_APPEND | O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_7() 246 result = open("/tmp/testfile9", O_CREAT | O_WRONLY, 0600); in test_file_open_9() 256 result = open("/tmp/testfile11", O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_11() 266 result = open("/tmp/testfile13", O_APPEND | O_CREAT | O_WRONLY, 0600); in test_file_open_13() 277 O_APPEND | O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_15() 287 result = open("/tmp/testfile17", O_CREAT | O_RDWR, 0600); in test_file_open_17() 297 result = open("/tmp/testfile19", O_TRUNC | O_CREAT | O_RDW in test_file_open_19() [all...] |
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/ |
H A D | copy_file_range02.c | 205 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in setup() 206 fd_dest = SAFE_OPEN(FILE_DEST_PATH, O_RDWR | O_CREAT, 0664); in setup() 207 fd_rdonly = SAFE_OPEN(FILE_RDONL_PATH, O_RDONLY | O_CREAT, 0664); in setup() 211 O_RDWR | O_CREAT | O_APPEND, 0664); in setup() 212 fd_immutable = SAFE_OPEN(FILE_IMMUTABLE_PATH, O_RDWR | O_CREAT, 0664); in setup() 213 fd_swapfile = SAFE_OPEN(FILE_SWAP_PATH, O_RDWR | O_CREAT, 0600); in setup() 226 fd_dup = SAFE_OPEN(FILE_SRC_PATH, O_WRONLY|O_CREAT, 0666); in setup() 228 fd_copy = SAFE_OPEN(FILE_COPY_PATH, O_RDWR | O_CREAT | O_TRUNC, 0664); in setup()
|
/third_party/musl/libc-test/src/functionalext/fortify/ |
H A D | fcntl_ext.c | 42 int fd = open("/proc/version", O_RDWR | O_CREAT, FILE_MODE_ALL); in open_0010() 51 * @tc.desc : test open O_CREAT without mode 61 int flags = O_CREAT; in open_0020() 138 int fd = openat(AT_FDCWD, "/proc/version", O_RDWR | O_CREAT, FILE_MODE_ALL); in openat_0010() 147 * @tc.desc : test openat O_CREAT without mode 157 int flags = O_CREAT; in openat_0020() 235 int fd = open64("/proc/version", O_RDWR | O_CREAT, FILE_MODE_ALL); in open64_0010() 244 * @tc.desc : test open64 O_CREAT without mode 254 int flags = O_CREAT; in open64_0020() 331 int fd = openat64(AT_FDCWD, "/proc/version", O_RDWR | O_CREAT, FILE_MODE_AL in openat64_0010() [all...] |
H A D | unistd.c | 74 int fd = open("/proc/version", O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_002() 114 int fd = open("/proc/version", O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_003() 155 int fd = open("/proc/version", O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_004() 195 int fd = open("/proc/version", O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_005() 230 int fd = open(fileName, O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_006() 269 int fd = open(fileName, O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_007() 310 int fd = open(fileName, O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_008() 350 int fd = open(fileName, O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_009() 393 int fd = open("/proc/version", O_RDWR | O_CREAT, 0777); in unistd_dynamic_chk_010() 431 int fd = open("/proc/version", O_RDWR | O_CREAT, 077 in unistd_dynamic_chk_011() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | functionalext_shm_open.c | 31 int fd = shm_open(shm_name, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in shm_open_0100() 39 * @tc.desc : Test if shm_open can successfully open an existing shared memory object without the O_CREAT flag. 45 int fd1 = shm_open(shm_name, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in shm_open_0200() 58 * object already exists and O_CREAT and O_EXCL flags are set. 64 int fd1 = shm_open(shm_name, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in shm_open_0300() 67 int fd2 = shm_open(shm_name, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR); in shm_open_0300() 78 * shared memory object without the O_CREAT flag.
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | sem_open.c | 73 flags &= (O_CREAT|O_EXCL); in sem_open() 79 if (flags == (O_CREAT|O_EXCL) && access(name, F_OK) == 0) { in sem_open() 87 if (flags != (O_CREAT|O_EXCL)) { in sem_open() 100 if (!(flags & O_CREAT)) in sem_open() 118 fd = open(tmp, O_CREAT|O_EXCL|FLAGS, mode); in sem_open() 136 if (e != EEXIST || flags == (O_CREAT|O_EXCL)) in sem_open()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open11.c | 30 * 22. Open link file O_RDONLY | O_CREAT 31 * 23. Open symlink file O_RDONLY | O_CREAT 32 * 24. Open regular file O_RDONLY | O_CREAT 33 * 25. Open symlink dir O_RDONLY | O_CREAT, expect EISDIR 34 * 26. Open dir O_RDONLY | O_CREAT, expect EISDIR 219 .flags = O_RDWR | O_CREAT, 223 /* test open(2) with O_CREAT */ 224 { /* open hard link file O_RDONLY | O_CREAT */ 225 .desc = "Open link file O_RDONLY | O_CREAT", 227 .flags = O_RDONLY | O_CREAT, [all...] |
/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest5.c | 217 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in main() 221 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main() 239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main() 243 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) < 0) { in main() 260 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main() 264 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main() 295 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0) { in setup()
|
H A D | diotest2.c | 182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main() 201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 204 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) == -1) in main() 220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 222 "open(%s, O_DIRECT|O_WRONLY|O_CREAT, ..) failed", in main() 224 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) == -1) in main() 226 "open(%s, O_DIRECT|O_RDONLY|O_CREAT, ..) failed", in main() 254 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) == -1) in setup() 256 "open(%s, O_CREAT|O_EXCL, ..) failed", filename); in setup()
|
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/ |
H A D | open.c | 32 int fd = open(path, O_RDONLY + O_CREAT, TEST_MODE); in open_0100() 63 int fd = open(path, O_WRONLY + O_CREAT, TEST_MODE); in open_0300() 93 int fd = open(path, O_RDWR | O_APPEND + O_CREAT, TEST_MODE); in open_0500() 134 * @tc.desc : Verify file open mode is O_RDWR | O_CREAT 141 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in open_0800() 160 int fd = open(path, O_RDWR | O_CLOEXEC + O_CREAT, TEST_MODE); in open_0900()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | lockf.c | 30 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in lockf_0100() 53 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in lockf_0200() 76 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in lockf_0300() 101 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in lockf_0400()
|
/third_party/musl/src/thread/ |
H A D | sem_open.c | 73 flags &= (O_CREAT|O_EXCL); in sem_open() 79 if (flags == (O_CREAT|O_EXCL) && access(name, F_OK) == 0) { in sem_open() 87 if (flags != (O_CREAT|O_EXCL)) { in sem_open() 103 if (!(flags & O_CREAT)) in sem_open() 121 fd = open(tmp, O_CREAT|O_EXCL|FLAGS, mode); in sem_open() 142 if (e != EEXIST || flags == (O_CREAT|O_EXCL)) in sem_open()
|
/third_party/ffmpeg/libavutil/ |
H A D | file_open.c | 56 if (fd != -1 || (oflag & O_CREAT)) in win32_open() 73 if (flags & O_CREAT) in avpriv_open() 137 fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600); in avpriv_tempfile() 166 case 'w': access = O_CREAT|O_WRONLY|O_TRUNC; break; in avpriv_fopen_utf8() 167 case 'a': access = O_CREAT|O_WRONLY|O_APPEND; break; in avpriv_fopen_utf8()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/ |
H A D | mman_mmap_test.cpp | 63 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F() 78 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F() 94 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F() 113 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F() 134 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | fstatat.c | 36 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in fstatat_0100() 60 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in fstatat_0200() 92 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in fstatat_0300() 115 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in fstatat_time64_0100()
|