Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/wireguard/qemu/
A 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/tools/testing/selftests/landlock/
A Dfs_test.c642 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 …]
/linux/tools/testing/selftests/tmpfs/
A 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/tools/testing/selftests/safesetid/
A 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/tools/testing/selftests/firmware/
A 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/tools/testing/selftests/bpf/
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,
1529 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
A Dcgroup_helpers.c159 fd = open(cgroup_procs_path, O_WRONLY); in join_cgroup_from_top()
386 fd = open(cgroup_classid_path, O_WRONLY); in set_classid()
/linux/fs/lockd/
A Dsvcsubs.c76 return (lock->fl_type == F_WRLCK) ? 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()
/linux/samples/watchdog/
A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/linux/tools/usb/usbip/libsrc/
A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/linux/tools/power/cpupower/utils/helpers/
A Dmsr.c61 fd = open(msr_file_name, O_WRONLY); in write_msr()
/linux/fs/nfsd/
A Dlockd.c41 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ; in nlm_fopen()
/linux/tools/cgroup/
A Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/linux/tools/testing/selftests/vm/
A Dsplit_huge_page_test.c83 fd = open(path, O_WRONLY); in write_file()
337 fd = open(testfile, O_CREAT|O_WRONLY); in split_file_backed_thp()
/linux/Documentation/input/
A 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/arch/um/drivers/
A Dtty.c50 mode = O_WRONLY; in tty_open()
/linux/tools/testing/selftests/timens/
A Dtimens.h74 fd = open("/proc/self/timens_offsets", O_WRONLY); in _settime()
A Dfutex.c80 fd = open("/proc/self/timens_offsets", O_WRONLY); in main()
/linux/include/linux/
A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux/kernel/bpf/preload/iterators/
A Diterators.c45 debug_fd = open("/dev/console", O_WRONLY | O_NOCTTY | O_CLOEXEC); in main()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dtest_bprm_opts.c46 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
/linux/include/trace/events/
A Dfs.h26 { O_WRONLY, "O_WRONLY" }, \
/linux/tools/testing/selftests/capabilities/
A 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/kernel/power/
A Duser.c84 data->mode = O_WRONLY; in snapshot_open()
306 if (data->mode != O_WRONLY || !data->frozen || in snapshot_ioctl()
/linux/tools/include/uapi/asm-generic/
A Dfcntl.h20 #define O_WRONLY 00000001 macro

Completed in 47 milliseconds

123456