Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 - 25 of 680) sorted by relevance

12345678910>>...28

/kernel/linux/linux-6.6/tools/testing/selftests/landlock/
H A Dfs_test.c407 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
408 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK()
409 ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY)); in TEST_F_FORK()
410 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
411 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); in TEST_F_FORK()
412 ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY)); in TEST_F_FORK()
413 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
414 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); in TEST_F_FORK()
416 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
417 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); in TEST_F_FORK()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
H A Dexecveat.c142 int in_fd = open_or_die(src, O_RDONLY); in exe_cp()
194 fd = open(longpath, O_RDONLY); in check_execveat_pathmax()
230 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
232 O_DIRECTORY|O_RDONLY); in run_tests()
233 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
234 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
236 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
237 int fd = open_or_die("execveat", O_RDONLY); in run_tests()
238 int fd_path = open_or_die("execveat", O_RDONLY|O_PAT in run_tests()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/exec/
H A Dexecveat.c142 int in_fd = open_or_die(src, O_RDONLY); in exe_cp()
194 fd = open(longpath, O_RDONLY); in check_execveat_pathmax()
230 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
232 O_DIRECTORY|O_RDONLY); in run_tests()
233 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
234 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
236 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
237 int fd = open_or_die("execveat", O_RDONLY); in run_tests()
238 int fd_path = open_or_die("execveat", O_RDONLY|O_PAT in run_tests()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dopenat2_test.c57 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
61 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
68 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
70 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
75 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
78 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
81 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
195 { .name = "non-zero how.mode and O_RDONLY", in test_openat2_flags()
196 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
219 .how.flags = O_RDONLY, in test_openat2_flags()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_sysctl.c55 .open_flags = O_RDONLY,
66 .open_flags = O_RDONLY,
77 .open_flags = O_RDONLY,
98 .open_flags = O_RDONLY,
158 .open_flags = O_RDONLY,
179 .open_flags = O_RDONLY,
206 .open_flags = O_RDONLY,
222 .open_flags = O_RDONLY,
264 .open_flags = O_RDONLY,
306 .open_flags = O_RDONLY,
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_sysctl.c55 .open_flags = O_RDONLY,
66 .open_flags = O_RDONLY,
77 .open_flags = O_RDONLY,
98 .open_flags = O_RDONLY,
158 .open_flags = O_RDONLY,
179 .open_flags = O_RDONLY,
206 .open_flags = O_RDONLY,
222 .open_flags = O_RDONLY,
264 .open_flags = O_RDONLY,
306 .open_flags = O_RDONLY,
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dopenat2_test.c53 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
57 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
64 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
66 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
71 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
74 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
77 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
191 { .name = "non-zero how.mode and O_RDONLY", in test_openat2_flags()
192 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
214 { .name = "invalid how.resolve and O_RDONLY", in test_openat2_flags()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
H A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
36 fd1 = open(buf, O_RDONLY); in main()
40 fd2 = open(buf, O_RDONLY); in main()
H A Dsetns-dcache.c95 nsfd = open(buf, O_RDONLY); in main()
102 (void)open("/proc/net/unix", O_RDONLY); in main()
116 fd = open("/proc/net/unix", O_RDONLY); in main()
H A Dsetns-sysvipc.c94 nsfd = open(buf, O_RDONLY); in main()
101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main()
115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
H A Dfd-003-kthread.c48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
/kernel/linux/linux-6.6/tools/testing/selftests/proc/
H A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
36 fd1 = open(buf, O_RDONLY); in main()
40 fd2 = open(buf, O_RDONLY); in main()
H A Dsetns-dcache.c95 nsfd = open(buf, O_RDONLY); in main()
102 (void)open("/proc/net/unix", O_RDONLY); in main()
116 fd = open("/proc/net/unix", O_RDONLY); in main()
H A Dsetns-sysvipc.c94 nsfd = open(buf, O_RDONLY); in main()
101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main()
115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
H A Dfd-003-kthread.c48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
H A Dproc-empty-vm.c185 int fd = open(buf, O_RDONLY); in test_proc_pid_maps()
207 int fd = open(buf, O_RDONLY); in test_proc_pid_numa_maps()
230 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps()
286 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps_rollup()
/kernel/linux/linux-5.10/tools/testing/selftests/efivarfs/
H A Dopen-unlink.c20 fd = open(path, O_RDONLY); in set_immutable()
51 fd = open(path, O_RDONLY); in get_immutable()
115 fd = open(path, O_RDONLY); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/efivarfs/
H A Dopen-unlink.c20 fd = open(path, O_RDONLY); in set_immutable()
51 fd = open(path, O_RDONLY); in get_immutable()
115 fd = open(path, O_RDONLY); in main()
/kernel/linux/linux-5.10/samples/timers/
H A Dhpet_example.c89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
109 fd = open(argv[0], O_RDONLY); in hpet_info()
149 fd = open(argv[0], O_RDONLY); in hpet_poll()
243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmadv_populate.c137 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_populated()
151 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_populated()
209 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_softdirty()
223 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_softdirty()
/kernel/linux/linux-6.6/samples/timers/
H A Dhpet_example.c89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
109 fd = open(argv[0], O_RDONLY); in hpet_info()
149 fd = open(argv[0], O_RDONLY); in hpet_poll()
243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
/kernel/liteos_m/testsuites/sample/posix/mqueue/
H A DIt_posix_queue_005.c43 roqueue = mq_open(mqname, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR, NULL); in Testcase()
46 roqueue2 = mq_open(mqname, O_RDONLY, S_IRUSR | S_IWUSR, NULL); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_008.cpp43 roqueue = mq_open(mqname, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR, NULL); in Testcase()
46 roqueue2 = mq_open(mqname, O_RDONLY, S_IRUSR | S_IWUSR, NULL); in Testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c46 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events()
49 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events()
52 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c57 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events()
60 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events()
63 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()

Completed in 11 milliseconds

12345678910>>...28