Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 59) sorted by relevance

123

/tools/testing/selftests/wireguard/qemu/
Dinit.c72 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()
/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c49 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()
/tools/usb/usbip/libsrc/
Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/tools/testing/selftests/firmware/
Dfw_namespace.c43 fd = open(sys_path, O_WRONLY); in trigger_fw()
57 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
/tools/testing/selftests/safesetid/
Dsafesetid-test.c58 fd = open(filename, O_WRONLY); in vmaybe_write_file()
125 int fd = open(add_whitelist_policy_file, O_WRONLY); in ensure_securityfs_mounted()
153 fd = open(add_whitelist_policy_file, O_WRONLY); in write_policies()
/tools/cgroup/
Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/tools/testing/selftests/timens/
Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()
Dfutex.c80 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
Dtimer.c93 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
Dtimerfd.c100 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
/tools/power/cpupower/utils/helpers/
Dmsr.c62 fd = open(msr_file_name, O_WRONLY); in write_msr()
/tools/testing/selftests/bpf/
Dtest_sysctl.c119 .open_flags = O_WRONLY,
142 .open_flags = O_WRONLY,
638 .open_flags = O_WRONLY,
708 .open_flags = O_WRONLY,
758 .open_flags = O_WRONLY,
797 .open_flags = O_WRONLY,
866 .open_flags = O_WRONLY,
1378 .open_flags = O_WRONLY,
1529 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/tools/include/uapi/asm-generic/
Dfcntl.h20 #define O_WRONLY 00000001 macro
/tools/testing/selftests/efivarfs/
Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/tools/testing/selftests/bpf/prog_tests/
Draw_tp_test_run.c38 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
Dtrampoline_count.c20 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
Dtest_overhead.c24 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
/tools/testing/selftests/timers/
Dclocksource-switch.c91 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()
/tools/virtio/virtio-trace/
Dtrace-agent-rw.c58 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
/tools/testing/selftests/proc/
Dread.c58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
/tools/testing/selftests/bpf/benchs/
Dbench_rename.c56 ctx.fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in setup_ctx()
/tools/testing/selftests/capabilities/
Dtest_execve.c49 fd = open(filename, O_WRONLY); in vmaybe_write_file()
160 int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700); in copy_fromat_to()
/tools/testing/selftests/ir/
Dir_loopback.c118 protocolfd = open(buf, O_WRONLY); in main()
/tools/usb/usbip/src/
Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/tools/testing/selftests/mount/
Dnosymfollow-test.c55 fd = open(filename, O_WRONLY); in vmaybe_write_file()

123