/kernel/linux/linux-6.6/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 407 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 D | execveat.c | 142 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 D | execveat.c | 142 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 D | openat2_test.c | 57 .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 D | test_sysctl.c | 55 .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 D | test_sysctl.c | 55 .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 D | openat2_test.c | 53 .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 D | fd-002-posix-eq.c | 32 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 D | setns-dcache.c | 95 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 D | setns-sysvipc.c | 94 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 D | fd-003-kthread.c | 48 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 D | fd-002-posix-eq.c | 32 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 D | setns-dcache.c | 95 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 D | setns-sysvipc.c | 94 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 D | fd-003-kthread.c | 48 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 D | proc-empty-vm.c | 185 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 D | open-unlink.c | 20 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 D | open-unlink.c | 20 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 D | hpet_example.c | 89 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 D | madv_populate.c | 137 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 D | hpet_example.c | 89 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 D | It_posix_queue_005.c | 43 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 D | It_posix_queue_008.cpp | 43 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 D | d_path.c | 46 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 D | d_path.c | 57 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()
|