Home
last modified time | relevance | path

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

12345678

/linux-6.15/tools/testing/selftests/wireguard/qemu/
H A Dinit.c66 fd = open("/dev/random", O_WRONLY); in seed_rng()
114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
195 fd = open(success_dev, O_WRONLY); in launch_tests()
238 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks()
250 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
/linux-6.15/tools/testing/selftests/landlock/
H A Dfs_test.c944 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
947 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
981 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
987 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
3859 fd_layer0 = open(path, O_WRONLY); in TEST_F_FORK()
3867 fd_layer1 = open(path, O_WRONLY); in TEST_F_FORK()
3876 fd_layer2 = open(path, O_WRONLY); in TEST_F_FORK()
3886 fd_layer3 = open(path, O_WRONLY); in TEST_F_FORK()
3984 fd = open(path, O_WRONLY); in TEST_F_FORK()
4024 fd = open(path, O_WRONLY); in TEST_F_FORK()
[all …]
/linux-6.15/fs/lockd/
H A Dsvcsubs.c76 return lock_is_write(lock) ? O_WRONLY : O_RDONLY; in lock_to_openmode()
171 if (file->f_file[O_WRONLY]) in nlm_delete_file()
172 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_delete_file()
194 lock.c.flc_file = file->f_file[O_WRONLY]; in nlm_unlock_files()
291 if (file->f_file[O_WRONLY]) in nlm_close_files()
292 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_close_files()
/linux-6.15/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c59 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
71 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
/linux-6.15/tools/testing/selftests/firmware/
H A Dfw_namespace.c39 fd = open(sys_path, O_WRONLY); in trigger_fw()
53 fd = open(fw_path, O_WRONLY | O_CREAT, 0600); in setup_fw()
/linux-6.15/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c70 fd = open(filename, O_WRONLY); in vmaybe_write_file()
165 int fd = open(add_uid_whitelist_policy_file, O_WRONLY); in ensure_securityfs_mounted()
189 fd = open(add_uid_whitelist_policy_file, O_WRONLY); in write_uid_policies()
213 fd = open(add_gid_whitelist_policy_file, O_WRONLY); in write_gid_policies()
/linux-6.15/include/linux/
H A Dfilelock.h468 ret = break_deleg(inode, O_WRONLY|O_NONBLOCK); in try_break_deleg()
480 ret = break_deleg(*delegated_inode, O_WRONLY); in break_deleg_wait()
491 wait ? O_WRONLY : O_WRONLY | O_NONBLOCK, in break_layout()
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-6.15/tools/perf/bench/
H A Dsched-pipe.c130 fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY); in enter_cgroup()
132 fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY); in enter_cgroup()
136 fd = openat(cgrp->fd, "tasks", O_WRONLY); in enter_cgroup()
/linux-6.15/tools/testing/selftests/bpf/
H A 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,
1523 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/linux-6.15/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/linux-6.15/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/linux-6.15/rust/kernel/fs/
H A Dfile.rs95 pub const O_WRONLY: u32 = bindings::O_WRONLY; constant
/linux-6.15/tools/perf/tests/
H A Dpmu.c88 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
113 file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
132 file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
/linux-6.15/tools/testing/selftests/sched_ext/
H A Dutil.c38 fd = open(path, O_WRONLY | O_APPEND); in write_text()
/linux-6.15/tools/power/cpupower/utils/helpers/
H A Dmsr.c61 fd = open(msr_file_name, O_WRONLY); in write_msr()
/linux-6.15/samples/cgroup/
H A Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/linux-6.15/fs/nfsd/
H A Dlockd.c50 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ; in nlm_fopen()
/linux-6.15/arch/um/drivers/
H A Dtty.c50 mode = O_WRONLY; in tty_open()
/linux-6.15/tools/testing/selftests/timens/
H A Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()
H A Dfutex.c80 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
/linux-6.15/scripts/
H A Djobserver-exec36 writer = os.open(path, os.O_WRONLY)
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bprm_opts.c38 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
/linux-6.15/include/trace/misc/
H A Dfs.h26 { O_WRONLY, "O_WRONLY" }, \
/linux-6.15/include/uapi/asm-generic/
H A Dfcntl.h20 #define O_WRONLY 00000001 macro

12345678