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

1234567891011>>

/linux-master/tools/testing/selftests/proc/
H A Dproc-self-wchan.c27 fd = open("/proc/self/wchan", O_RDONLY);
H A Dsetns-dcache.c95 nsfd = open(buf, O_RDONLY);
102 (void)open("/proc/net/unix", O_RDONLY);
116 fd = open("/proc/net/unix", O_RDONLY);
H A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY);
36 fd1 = open(buf, O_RDONLY);
40 fd2 = open(buf, O_RDONLY);
H A Dsetns-sysvipc.c94 nsfd = open(buf, O_RDONLY);
101 (void)open("/proc/sysvipc/shm", O_RDONLY);
115 fd = open("/proc/sysvipc/shm", O_RDONLY);
H A Dproc-uptime-001.c33 fd = open("/proc/uptime", O_RDONLY);
H A Dproc-self-syscall.c37 fd = open("/proc/self/syscall", O_RDONLY);
H A Dproc-loadavg-001.c44 fd = open("/proc/loadavg" , O_RDONLY);
H A Dfd-003-kthread.c48 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 Dtest_struct_ops_no_cfi.c11 fd = open("bpf_test_no_cfi.ko", O_RDONLY);
H A Dfs_kfuncs.c20 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 Dfs_test.c409 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 Dexecveat.c156 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 Dopen-unlink.c20 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 Ddnotify_test.c26 fd = open(".", O_RDONLY);
/linux-master/tools/testing/selftests/intel_pstate/
H A Dmsr.c29 fd = open(msr_file_name, O_RDONLY);
/linux-master/tools/testing/selftests/fpu/
H A Dtest_fpu.c21 int fd = open(test_fpu_path, O_RDONLY);
/linux-master/scripts/
H A Djobserver-exec35 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 Dopenat2_test.c57 .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 Dpapr_vpd.c18 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 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...]
H A Dunpriv_helpers.c18 fd = open("/proc/cmdline", O_RDONLY);
/linux-master/tools/testing/selftests/splice/
H A Dsplice_read.c23 fd = open(argv[1], O_RDONLY);
/linux-master/tools/testing/selftests/arm64/fp/
H A Dza-fork.c86 ret = open("/proc/sys/abi/sme_default_vector_length", O_RDONLY, 0);
/linux-master/tools/testing/selftests/powerpc/papr_sysparm/
H A Dpapr_sysparm.c15 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 Dzlib.c32 input_fd = open(input, O_RDONLY);
85 int fd = open(input, O_RDONLY);

Completed in 366 milliseconds

1234567891011>>