Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 - 25 of 320) sorted by relevance

12345678910>>...13

/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
H 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/tools/testing/selftests/landlock/
H A Dfs_test.c842 ASSERT_EQ(0, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
845 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
873 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
879 ASSERT_EQ(0, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
885 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
929 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
935 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
941 ASSERT_EQ(0, test_open(file1_s1d3, O_WRONLY)); in TEST_F_FORK()
954 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_WRONLY)); in TEST_F_FORK()
960 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_WRONLY)); in TEST_F_FORK()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/
H 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()
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/
H 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()
/kernel/linux/linux-6.6/fs/lockd/
H 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()
194 lock.fl_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()
/kernel/linux/linux-6.6/include/linux/
H A Dfilelock.h382 ret = break_deleg(inode, O_WRONLY|O_NONBLOCK); in try_break_deleg()
394 ret = break_deleg(*delegated_inode, O_WRONLY); in break_deleg_wait()
405 wait ? O_WRONLY : O_WRONLY | O_NONBLOCK, in break_layout()
/kernel/linux/linux-5.10/tools/testing/selftests/safesetid/
H 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()
/kernel/linux/linux-5.10/tools/testing/selftests/firmware/
H 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()
/kernel/linux/linux-6.6/tools/testing/selftests/firmware/
H 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()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_user_container_002.cpp52 int uidMap = open(uidMapPath.c_str(), O_WRONLY); in WriteIdMap()
64 int gidMap = open(gidMapPath.c_str(), O_WRONLY); in WriteIdMap()
H A DIt_time_container_007.cpp52 int fd = open(path, O_WRONLY); in WriteProcTime()
/kernel/liteos_m/kal/posix/src/
H A Dpipe.c356 if ((openFlag != O_RDONLY) && (openFlag != O_WRONLY)) { in PipeOpen()
382 } else if (openFlag == O_WRONLY) { in PipeOpen()
443 } else if (openFlag == O_WRONLY) { in PipeClose()
641 if (((openFlag & O_WRONLY) != 0) && (nbytes < (dev->bufferSize - 1))) { in PipePoll()
645 if (((openFlag & O_WRONLY) == 0) && (nbytes > 0)) { in PipePoll()
676 filedes[1] = open(devName, O_WRONLY); in pipe()
/kernel/linux/linux-5.10/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/kernel/linux/linux-6.6/samples/watchdog/
H A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/kernel/linux/linux-5.10/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,
1529 } else if (test->open_flags == O_WRONLY) { in access_sysctl()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
H A Dmkfifo_test_001.cpp58 fd = open("/dev/fifo", O_WRONLY); in TestMkfifo()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_098.cpp43 queue = mq_open(qname, O_CREAT | O_RDWR | O_WRONLY, S_IRUSR | S_IWUSR, NULL); in Testcase()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_devices_007.cpp59 fd = open(test_dev.c_str(), O_WRONLY); in ItProcessPlimitsDevices007()
H A DIt_process_plimits_devices_009.cpp59 fd = open(test_dev.c_str(), O_WRONLY|O_CREAT); in ItProcessPlimitsDevices009()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c58 fd = open(path, O_WRONLY); in write_file()
256 fd = open(testfile, O_CREAT|O_WRONLY); in split_file_backed_thp()

Completed in 14 milliseconds

12345678910>>...13