Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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.4/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.4/samples/watchdog/
Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/Linux-v5.4/tools/usb/usbip/libsrc/
Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_sysctl.c119 .open_flags = O_WRONLY,
615 .open_flags = O_WRONLY,
685 .open_flags = O_WRONLY,
735 .open_flags = O_WRONLY,
774 .open_flags = O_WRONLY,
843 .open_flags = O_WRONLY,
1355 .open_flags = O_WRONLY,
1506 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/Linux-v5.4/tools/cgroup/
Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/Linux-v5.4/include/linux/
Dfcntl.h9 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/Linux-v5.4/arch/um/drivers/
Dtty.c50 mode = O_WRONLY; in tty_open()
/Linux-v5.4/tools/power/cpupower/utils/helpers/
Dmsr.c62 fd = open(msr_file_name, O_WRONLY); in write_msr()
/Linux-v5.4/include/uapi/asm-generic/
Dfcntl.h21 #define O_WRONLY 00000001 macro
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h20 #define O_WRONLY 00000001 macro
/Linux-v5.4/tools/testing/selftests/efivarfs/
Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/Linux-v5.4/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.4/tools/testing/selftests/timers/
Dclocksource-switch.c91 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()
/Linux-v5.4/net/ceph/
Dceph_fs.c67 case O_WRONLY: in ceph_flags_to_mode()
/Linux-v5.4/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.4/tools/testing/selftests/cgroup/
Dcgroup_util.c42 fd = open(path, O_WRONLY | O_APPEND); in write_text()
399 fd = open(path, O_WRONLY | O_APPEND); in set_oom_adj_score()
/Linux-v5.4/tools/virtio/virtio-trace/
Dtrace-agent-rw.c58 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
/Linux-v5.4/tools/testing/selftests/proc/
Dread.c58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
/Linux-v5.4/kernel/power/
Duser.c85 data->mode = O_WRONLY; in snapshot_open()
268 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
/Linux-v5.4/tools/include/nolibc/
Dnolibc.h442 #define O_WRONLY 1 macro
622 #define O_WRONLY 1 macro
807 #define O_WRONLY 1 macro
1004 #define O_WRONLY 1 macro
1210 #define O_WRONLY 1 macro
1407 #define O_WRONLY 1 macro
/Linux-v5.4/samples/bpf/
Dcpustat_user.c157 fd = open(CPUFREQ_MAX_SYSFS_PATH, O_WRONLY); in cpu_stat_inject_cpu_frequency_event()
Dtest_overhead_user.c39 fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_task_rename()
/Linux-v5.4/Documentation/media/uapi/v4l/
Dvidioc-expbuf.rst61 for open() for details. Currently only O_CLOEXEC, O_RDONLY, O_WRONLY,
154 ``O_RDONLY``, ``O_WRONLY``, and ``O_RDWR`` are supported, refer to
/Linux-v5.4/tools/testing/selftests/ir/
Dir_loopback.c118 protocolfd = open(buf, O_WRONLY); in main()

12345