Home
last modified time | relevance | path

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

1234567

/linux-5.19.10/tools/testing/selftests/wireguard/qemu/
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-5.19.10/tools/testing/selftests/landlock/
Dfs_test.c721 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
724 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
752 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
758 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
764 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
808 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
814 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
820 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
833 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
839 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
[all …]
/linux-5.19.10/fs/lockd/
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()
191 if (file->f_file[O_WRONLY] && in nlm_unlock_files()
192 vfs_lock_file(file->f_file[O_WRONLY], F_SETLK, &lock, NULL)) in nlm_unlock_files()
288 if (file->f_file[O_WRONLY]) in nlm_close_files()
289 nlmsvc_ops->fclose(file->f_file[O_WRONLY]); in nlm_close_files()
/linux-5.19.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-5.19.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-5.19.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-5.19.10/samples/watchdog/
Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/linux-5.19.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,
1523 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
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-5.19.10/tools/usb/usbip/libsrc/
Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/linux-5.19.10/tools/testing/selftests/vm/
Dsplit_huge_page_test.c58 fd = open(path, O_WRONLY); in write_file()
260 fd = open(testfile, O_CREAT|O_WRONLY); in split_file_backed_thp()
Dvm_util.c35 int fd = open("/proc/self/clear_refs", O_WRONLY); in clear_softdirty()
/linux-5.19.10/tools/power/cpupower/utils/helpers/
Dmsr.c61 fd = open(msr_file_name, O_WRONLY); in write_msr()
/linux-5.19.10/tools/cgroup/
Dcgroup_event_listener.c43 event_control = open(event_control_path, O_WRONLY); in main()
/linux-5.19.10/fs/nfsd/
Dlockd.c41 access = (mode == O_WRONLY) ? NFSD_MAY_WRITE : NFSD_MAY_READ; in nlm_fopen()
/linux-5.19.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()
/linux-5.19.10/include/linux/
Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-5.19.10/arch/um/drivers/
Dtty.c50 mode = O_WRONLY; in tty_open()
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dtest_bprm_opts.c46 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()
/linux-5.19.10/include/trace/events/
Dfs.h26 { O_WRONLY, "O_WRONLY" }, \
/linux-5.19.10/tools/include/uapi/asm-generic/
Dfcntl.h21 #define O_WRONLY 00000001 macro
/linux-5.19.10/include/uapi/asm-generic/
Dfcntl.h21 #define O_WRONLY 00000001 macro
/linux-5.19.10/tools/testing/selftests/efivarfs/
Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/linux-5.19.10/fs/ceph/
Dutil.c65 case O_WRONLY: in ceph_flags_to_mode()

1234567