/linux-master/tools/testing/selftests/proc/ |
H A D | proc-self-wchan.c | 27 fd = open("/proc/self/wchan", O_RDONLY);
|
H A D | setns-dcache.c | 95 nsfd = open(buf, O_RDONLY); 102 (void)open("/proc/net/unix", O_RDONLY); 116 fd = open("/proc/net/unix", O_RDONLY);
|
H A D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); 36 fd1 = open(buf, O_RDONLY); 40 fd2 = open(buf, O_RDONLY);
|
H A D | setns-sysvipc.c | 94 nsfd = open(buf, O_RDONLY); 101 (void)open("/proc/sysvipc/shm", O_RDONLY); 115 fd = open("/proc/sysvipc/shm", O_RDONLY);
|
H A D | proc-uptime-001.c | 33 fd = open("/proc/uptime", O_RDONLY);
|
H A D | proc-self-syscall.c | 37 fd = open("/proc/self/syscall", O_RDONLY);
|
H A D | proc-loadavg-001.c | 44 fd = open("/proc/loadavg" , O_RDONLY);
|
H A D | fd-003-kthread.c | 48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); 56 fd = openat(dir_fd, "stat", O_RDONLY); 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_struct_ops_no_cfi.c | 11 fd = open("bpf_test_no_cfi.ko", O_RDONLY);
|
H A D | fs_kfuncs.c | 20 fd = open(testfile, O_CREAT | O_RDONLY, 0644); 49 fd = open(testfile, O_RDONLY, 0644); 84 fd = open(testfile, O_RDONLY, 0644); 123 fd = open(testfile, O_RDONLY);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 409 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); 410 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); 411 ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY)); 412 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); 413 ASSERT_EQ(0, test_open(file1_s1d2, O_RDONLY)); 414 ASSERT_EQ(0, test_open(file2_s1d2, O_RDONLY)); 415 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); 416 ASSERT_EQ(0, test_open(file1_s1d3, O_RDONLY)); 418 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); 419 ASSERT_EQ(0, test_open(file1_s2d1, O_RDONLY)); [all...] |
/linux-master/tools/testing/selftests/exec/ |
H A D | execveat.c | 156 int in_fd = open_or_die(src, O_RDONLY); 207 fd = open(longpath, O_RDONLY); 246 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); 248 O_DIRECTORY|O_RDONLY); 249 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); 250 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); 251 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); 252 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); 253 int fd = open_or_die("execveat", O_RDONLY); 254 int fd_path = open_or_die("execveat", O_RDONLY|O_PAT [all...] |
/linux-master/tools/testing/selftests/efivarfs/ |
H A D | open-unlink.c | 20 fd = open(path, O_RDONLY); 51 fd = open(path, O_RDONLY); 115 fd = open(path, O_RDONLY);
|
/linux-master/tools/testing/selftests/filesystems/ |
H A D | dnotify_test.c | 26 fd = open(".", O_RDONLY);
|
/linux-master/tools/testing/selftests/intel_pstate/ |
H A D | msr.c | 29 fd = open(msr_file_name, O_RDONLY);
|
/linux-master/tools/testing/selftests/fpu/ |
H A D | test_fpu.c | 21 int fd = open(test_fpu_path, O_RDONLY);
|
/linux-master/scripts/ |
H A D | jobserver-exec | 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 42 os.O_RDONLY | os.O_NONBLOCK)
|
/linux-master/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 57 .arg.inner.flags = O_RDONLY, 61 .arg.inner.flags = O_RDONLY, 68 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, 70 .arg.inner.flags = O_RDONLY, 75 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, 78 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, 81 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, 195 { .name = "non-zero how.mode and O_RDONLY", 196 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, 219 .how.flags = O_RDONLY, [all...] |
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 18 const int devfd = open(DEVPATH, O_RDONLY); 31 const int devfd = open(DEVPATH, O_RDONLY); 70 const int devfd = open(DEVPATH, O_RDONLY); 111 const int devfd = open(DEVPATH, O_RDONLY); 137 const int devfd = open(DEVPATH, O_RDONLY); 156 const int devfd = open(DEVPATH, O_RDONLY); 179 const int devfd = open(DEVPATH, O_RDONLY); 262 const int devfd = open(DEVPATH, O_RDONLY);
|
/linux-master/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...] |
H A D | unpriv_helpers.c | 18 fd = open("/proc/cmdline", O_RDONLY);
|
/linux-master/tools/testing/selftests/splice/ |
H A D | splice_read.c | 23 fd = open(argv[1], O_RDONLY);
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | za-fork.c | 86 ret = open("/proc/sys/abi/sme_default_vector_length", O_RDONLY, 0);
|
/linux-master/tools/testing/selftests/powerpc/papr_sysparm/ |
H A D | papr_sysparm.c | 15 const int devfd = open(DEVPATH, O_RDONLY); 31 const int devfd = open(DEVPATH, O_RDONLY); 50 const int devfd = open(DEVPATH, O_RDONLY); 126 const int devfd = open(DEVPATH, O_RDONLY);
|
/linux-master/tools/perf/util/ |
H A D | zlib.c | 32 input_fd = open(input, O_RDONLY); 85 int fd = open(input, O_RDONLY);
|