/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_rewrite_test.c | 71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test() 82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 88 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 93 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); 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_APPEND); in stage_rewrite_test() 127 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test() 132 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test() 137 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC); in stage_rewrite_test() 142 fd = open(REWRITE_PATH, O_WRONLY | O_TRUNC | O_APPEND); in stage_rewrite_test() [all …]
|
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_TRUNC); in stage_file_test() [all …]
|
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_CREAT, 0600)); in setup_test_file() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
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) == 0) in main() [all …]
|
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},
|
/external/ltp/testcases/kernel/syscalls/name_to_handle_at/ |
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},
|
/external/strace/xlat/ |
D | open_access_modes.h | 13 #if defined(O_WRONLY) || (defined(HAVE_DECL_O_WRONLY) && HAVE_DECL_O_WRONLY) 15 static_assert((O_WRONLY) == (1), "O_WRONLY != 1"); 18 # define O_WRONLY 1 41 [O_WRONLY] = XLAT(O_WRONLY),
|
/external/linux-kselftest/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 72 fd = open("/dev/urandom", O_WRONLY); in seed_rng() 113 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging() 119 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging() 125 fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); in enable_logging() 200 fd = open(success_dev, O_WRONLY); in launch_tests() 243 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks() 255 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open11.c | 81 .flags = O_WRONLY, 139 .flags = O_WRONLY, 161 .flags = O_WRONLY, 182 .flags = O_WRONLY, 204 .flags = O_WRONLY, 300 fd = SAFE_OPEN(T_REG, O_WRONLY | O_CREAT, 0644); in setup()
|
/external/linux-kselftest/tools/testing/selftests/landlock/ |
D | fs_test.c | 642 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 645 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() 673 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK() 679 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK() 685 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK() 841 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK() 852 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK() 863 ASSERT_EQ(0, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK() 877 ASSERT_EQ(EACCES, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK() 879 ASSERT_EQ(EACCES, test_open(file2_s1d3, O_WRONLY)); in TEST_F_FORK() [all …]
|
/external/compiler-rt/test/tsan/Darwin/ |
D | gcd-io-cleanup.mm | 17 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666); 29 …channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, … 39 …nnel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, ^(i…
|
/external/libdrm/tests/etnaviv/ |
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()
|
/external/ltp/testcases/kernel/syscalls/open_by_handle_at/ |
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},
|
/external/toybox/toys/posix/ |
D | nohup.c | 27 if (open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, 0600) == -1) { in nohup_main() 31 O_CREAT|O_APPEND|O_WRONLY, 0600); in nohup_main()
|
/external/rust/crates/nix/test/ |
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()
|
/external/strace/tests-mx32/ |
D | open.c | 55 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 61 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/strace/tests/ |
D | open.c | 55 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 61 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/strace/tests-m32/ |
D | open.c | 55 fd = syscall(__NR_open, sample, O_WRONLY|O_NONBLOCK|0x80000000); in main() 61 fd = syscall(__NR_open, sample, O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/linux-kselftest/tools/testing/selftests/tmpfs/ |
D | bug-link-o-tmpfile.c | 49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns03.c | 160 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run() 172 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run() 186 fd = SAFE_OPEN(path, O_WRONLY, 0644); in run()
|
D | userns08.c | 67 TST_EXP_FAIL(open("restricted", O_WRONLY), EACCES, in ns_level2() 119 int fd = SAFE_OPEN("restricted", O_CREAT | O_WRONLY, 0700); in setup()
|
/external/igt-gpu-tools/lib/ |
D | igt_pm.c | 78 fd = open("/sys/module/snd_hda_intel/parameters/power_save", O_WRONLY); in __igt_pm_audio_restore_runtime_pm() 91 fd = open(__igt_pm_audio_runtime_control_path, O_WRONLY); in __igt_pm_audio_restore_runtime_pm() 396 fd = open(file_name, O_WRONLY); in igt_pm_restore_sata_link_power_management() 439 fd = open(POWER_DIR "/autosuspend_delay_ms", O_WRONLY); in __igt_restore_runtime_pm() 452 fd = open(POWER_DIR "/control", O_WRONLY); in __igt_restore_runtime_pm()
|
/external/libgsm/inc/ |
D | toast.h | 54 # define O_WRITE_EXCL O_WRONLY|O_CREAT|O_EXCL|O_BINARY 56 # define O_WRITE_EXCL O_WRONLY|O_CREAT|O_EXCL
|
/external/crosvm/base/src/sys/unix/ |
D | file_flags.rs | 11 use libc::O_WRONLY; 35 O_WRONLY => Ok(FileFlags::Write), in from_file()
|
/external/ltp/lib/ |
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()
|