Home
last modified time | relevance | path

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

12345

/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/samples/watchdog/
Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/Linux-v5.10/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()
/Linux-v5.10/tools/usb/usbip/libsrc/
Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/Linux-v5.10/tools/cgroup/
Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/Linux-v5.10/arch/um/drivers/
Dtty.c50 mode = O_WRONLY; in tty_open()
/Linux-v5.10/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()
/Linux-v5.10/include/linux/
Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/Linux-v5.10/tools/power/cpupower/utils/helpers/
Dmsr.c62 fd = open(msr_file_name, O_WRONLY); in write_msr()
/Linux-v5.10/kernel/bpf/preload/iterators/
Diterators.c45 debug_fd = open("/dev/console", O_WRONLY | O_NOCTTY | O_CLOEXEC); in main()
/Linux-v5.10/tools/include/uapi/asm-generic/
Dfcntl.h20 #define O_WRONLY 00000001 macro
/Linux-v5.10/include/uapi/asm-generic/
Dfcntl.h21 #define O_WRONLY 00000001 macro
/Linux-v5.10/fs/ceph/
Dutil.c65 case O_WRONLY: in ceph_flags_to_mode()
/Linux-v5.10/tools/testing/selftests/efivarfs/
Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/Linux-v5.10/Documentation/input/
Duinput.rst66 int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
129 int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
198 fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
/Linux-v5.10/tools/testing/selftests/timers/
Dclocksource-switch.c91 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()
/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/kernel/power/
Duser.c84 data->mode = O_WRONLY; in snapshot_open()
306 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()

12345