/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl01.c | 66 open(fname, O_WRONLY | O_CREAT, 0666)) == -1) in main() 98 if ((flags & O_WRONLY) == 0) in main() 100 flags, O_WRONLY); in main() 107 if ((flags & (O_NDELAY | O_WRONLY)) == 0) in main() 109 flags, O_NDELAY | O_WRONLY); in main() 116 if ((flags & (O_APPEND | O_WRONLY)) == 0) in main() 118 flags, O_APPEND | O_WRONLY); in main() 125 if ((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 0) in main() 128 O_NDELAY | O_APPEND | O_SYNC | O_WRONLY); in main() 135 if ((flags & O_WRONLY) in main() [all...] |
H A D | fcntl32.c | 44 {O_RDONLY, O_WRONLY}, 46 {O_WRONLY, O_RDONLY}, 47 {O_WRONLY, O_WRONLY}, 48 {O_WRONLY, O_RDWR}, 50 {O_RDWR, O_WRONLY},
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | tomoyo_rewrite_test.c | 71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test() 81 show_prompt("open(O_WRONLY | O_APPEND)"); in stage_rewrite_test() 82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 87 show_prompt("open(O_WRONLY)"); in stage_rewrite_test() 88 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 92 show_prompt("open(O_WRONLY | O_TRUNC)"); in stage_rewrite_test() 93 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); in stage_rewrite_test() 97 show_prompt("open(O_WRONLY | O_TRUNC | O_APPEND)"); in stage_rewrite_test() 98 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() 105 fd = open(REWRITE_PATH, O_WRONLY | O_APPEN in stage_rewrite_test() [all...] |
H A D | tomoyo_new_file_test.c | 252 fd = open(filename, O_WRONLY); in stage_file_test() 257 fd = open(filename, O_WRONLY); in stage_file_test() 289 fd = open("/dev/null", O_WRONLY); in stage_file_test() 294 fd = open("/dev/null", O_WRONLY); in stage_file_test() 315 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 321 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 334 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 340 fd = open("/tmp/open_test", O_WRONLY | O_CREAT | O_EXCL, 0644); in stage_file_test() 355 fd = open(filename, O_WRONLY | O_TRUNC); in stage_file_test() 360 fd = open(filename, O_WRONLY | O_TRUN in stage_file_test() [all...] |
H A D | tomoyo_new_test.c | 55 result = open("/dev/null", O_WRONLY); in test_write_dev_null() 241 result = open("/tmp/testfile8", O_WRONLY, 0600); in test_file_open_8() 246 result = open("/tmp/testfile9", O_CREAT | O_WRONLY, 0600); in test_file_open_9() 251 result = open("/tmp/testfile10", O_TRUNC | O_WRONLY, 0600); in test_file_open_10() 256 result = open("/tmp/testfile11", O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_11() 261 result = open("/tmp/testfile12", O_APPEND | O_WRONLY, 0600); in test_file_open_12() 266 result = open("/tmp/testfile13", O_APPEND | O_CREAT | O_WRONLY, 0600); in test_file_open_13() 271 result = open("/tmp/testfile14", O_APPEND | O_TRUNC | O_WRONLY, 0600); in test_file_open_14() 277 O_APPEND | O_TRUNC | O_CREAT | O_WRONLY, 0600); in test_file_open_15() 328 close(open(buffer, O_WRONLY | O_CREA in setup_test_file() [all...] |
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/ |
H A D | name_to_handle_at01.c | 35 {&dir_fd, TEST_FILE, 0, O_WRONLY}, 38 {&dir_fd, TEST_FILE, AT_EMPTY_PATH, O_WRONLY}, 41 {&dir_fd, TEST_FILE, AT_SYMLINK_FOLLOW, O_WRONLY}, 44 {&dir_fd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_WRONLY}, 50 {&fd_atcwd, TEST_FILE, 0, O_WRONLY}, 53 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH, O_WRONLY}, 56 {&fd_atcwd, TEST_FILE, AT_SYMLINK_FOLLOW, O_WRONLY}, 59 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_WRONLY},
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open11.c | 10 * 2. Open regular file O_WRONLY 18 * 10. Open hard link file O_WRONLY 21 * 13. Open sym link file O_WRONLY 24 * 16. Open sym link dir O_WRONLY, expect EISDIR 27 * 19. Open device special file O_WRONLY 78 { /* open regular file O_WRONLY */ 79 .desc = "Open regular file O_WRONLY", 81 .flags = O_WRONLY, 136 { /* open hard link file O_WRONLY */ 137 .desc = "Open hard link file O_WRONLY", [all...] |
/third_party/cups-filters/backend/ |
H A D | serial.c | 836 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 876 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 883 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 895 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 979 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 997 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 1005 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 1021 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 1036 if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0) in list_devices() 1051 if ((fd = open(device, O_WRONLY | O_NOCTT in list_devices() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | nftw.c | 113 int fd = open(file, O_WRONLY | O_CREAT, 0644); in nftw_build_testfile() 125 fd = open(file, O_WRONLY | O_CREAT, 0666); in nftw_build_testfile() 137 fd = open(file, O_WRONLY | O_CREAT, 0000); in nftw_build_testfile() 149 fd = open(file, O_WRONLY | O_CREAT, 0644); in nftw_build_testfile() 161 fd = open(file, O_WRONLY | O_CREAT, 0444); in nftw_build_testfile()
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_proxies.c | 110 devnull = open("/dev/null", O_WRONLY); in main() 135 devnull = open("/dev/null", O_WRONLY); in main() 161 devnull = open("/dev/null", O_WRONLY); in main() 190 devnull = open("/dev/null", O_WRONLY); in main()
|
/third_party/toybox/toys/posix/ |
H A D | nohup.c | 28 if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, in nohup_main() 34 xcreate(temp, O_CREAT|O_APPEND|O_WRONLY, 0600); in nohup_main()
|
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | __fmodeflags.c | 17 mode_flags = O_WRONLY; in __fmodeflags() 22 mode_flags = O_WRONLY; in __fmodeflags()
|
/third_party/musl/src/stdio/ |
H A D | __fmodeflags.c | 17 mode_flags = O_WRONLY; in __fmodeflags() 22 mode_flags = O_WRONLY; in __fmodeflags()
|
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/ |
H A D | fortify_openat64_chk_test.cpp | 21 int result1 = __openat64_chk(0, "/dev/null", O_WRONLY); in HWTEST_F() 23 int result3 = __openat64_chk(0, "openat_test", O_WRONLY); in HWTEST_F()
|
H A D | fortify_openat_chk_test.cpp | 21 int result1 = __openat_chk(0, "/dev/null", O_WRONLY); in HWTEST_F() 23 int result3 = __openat_chk(0, "openat_test", O_WRONLY); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
H A D | userns03.c | 148 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run() 161 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run() 167 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run()
|
H A D | userns06.c | 94 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run() 100 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run()
|
/third_party/libdrm/tests/etnaviv/ |
H A D | write_bmp.c | 108 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32() 124 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32_noflip() 140 fd = open(filename, O_WRONLY| O_TRUNC | O_CREAT, 0666); in bmp_dump32_ex()
|
/third_party/ltp/testcases/kernel/syscalls/open_by_handle_at/ |
H A D | open_by_handle_at01.c | 35 {&dir_fd, &d_fhp, O_WRONLY}, 38 {&file_fd, &f_fhp, O_WRONLY}, 41 {&fd_atcwd, &at_fhp, O_WRONLY},
|
/third_party/NuttX/drivers/pipes/ |
H A D | pipe_common.c | 210 if ((filep->f_oflags & O_WRONLY) != 0) in pipecommon_open() 229 if ((filep->f_oflags & O_WRONLY) == 0) in pipecommon_open() 241 if ((filep->f_oflags & O_WRONLY) == 0 && /* Read-only */ in pipecommon_open() 308 if ((filep->f_oflags & O_WRONLY) != 0) in pipecommon_close() 331 if ((filep->f_oflags & O_WRONLY) == 0) in pipecommon_close() 733 if (((filep->f_oflags & O_WRONLY) != 0) && (nbytes < (dev->d_bufsize - 1))) in pipecommon_poll() 740 if (((filep->f_oflags & O_WRONLY) == 0) && (nbytes > 0)) in pipecommon_poll()
|
/third_party/musl/scripts/ |
H A D | print_so_deps.py | 94 with os.fdopen(os.open("dep.dot", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 107 with os.fdopen(os.open("dep.json", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 113 with os.fdopen(os.open("dep.ext", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 119 with os.fdopen(os.open("dep.csv", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f:
|
/third_party/rust/crates/nix/test/ |
H A D | test_mq.rs | 35 let oflag0 = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_send_and_receive() 64 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_getattr() 89 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_setattr() 139 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_set_nonblocking() 166 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_unlink()
|
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/ |
H A D | fcntl_open64_test.cpp | 33 int file = open("/proc/version", O_WRONLY); in HWTEST_F() 36 file = open64("/proc/version", O_WRONLY); in HWTEST_F()
|
/third_party/ffmpeg/libavutil/ |
H A D | file_open.c | 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() 174 access &= ~(O_RDONLY | O_WRONLY); in avpriv_fopen_utf8()
|
/third_party/ltp/lib/ |
H A D | tst_fill_file.c | 79 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_fill_file() 102 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_prealloc_file()
|