Searched refs:O_RDONLY (Results 101 - 125 of 357) sorted by relevance

1234567891011>>

/linux-master/tools/perf/tests/
H A Dopenat-syscall-tp-fields.c40 int flags = O_RDONLY | O_DIRECTORY;
H A Dopenat-syscall-all-cpus.c85 fd = openat(0, "/etc/passwd", O_RDONLY);
/linux-master/samples/hid/
H A Dhid_mouse.c64 fd = open(uevent, O_RDONLY | O_NONBLOCK);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmodule_attach.c17 fd = open(BPF_TESTMOD_TEST_FILE, O_RDONLY);
H A Dverify_pkcs7_sig.c160 fd = open(path, O_RDONLY);
220 fd = open(mod_path, O_RDONLY);
427 fd = open(sig_path, O_RDONLY);
452 ret = open(data_path, O_RDONLY);
/linux-master/tools/testing/selftests/filelock/
H A Dofdlocks.c40 int fd2 = open("/tmp/aa", O_RDONLY);
/linux-master/tools/perf/util/
H A Dlzma.c110 int fd = open(input, O_RDONLY);
H A Dcopyfile.c115 fromfd = open(from, O_RDONLY);
/linux-master/tools/objtool/
H A Dobjtool.c44 s = open(_objname, O_RDONLY);
H A Dorc_dump.c34 fd = open(objname, O_RDONLY);
/linux-master/tools/bpf/bpftool/
H A Dcgroup.c316 cgroup_fd = open(path, O_RDONLY);
378 cgroup_fd = open(fpath, O_RDONLY);
525 cgroup_fd = open(argv[0], O_RDONLY);
583 cgroup_fd = open(argv[0], O_RDONLY);
/linux-master/samples/bpf/
H A Dsyscall_tp_user.c109 fd = open(filename, O_RDONLY);
H A Dtask_fd_query_user.c55 fd = open(buf, O_RDONLY);
77 fd = open(buf, O_RDONLY);
257 efd = open(buf, O_RDONLY, 0);
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c111 fd = open(WORKLOAD_TYPE_INDEX_ATTRIBUTE, O_RDONLY);
/linux-master/tools/testing/selftests/mm/
H A Dksm_functional_tests.c620 ksm_full_scans_fd = open("/sys/kernel/mm/ksm/full_scans", O_RDONLY);
623 pagemap_fd = open("/proc/self/pagemap", O_RDONLY);
626 proc_self_ksm_stat_fd = open("/proc/self/ksm_stat", O_RDONLY);
628 O_RDONLY);
/linux-master/arch/um/os-Linux/
H A Dprocess.c34 fd = open(proc_stat, O_RDONLY, 0);
69 fd = open(stat, O_RDONLY, 0);
/linux-master/tools/testing/selftests/wireguard/qemu/
H A Dinit.c179 fd = open("/proc/cmdline", O_RDONLY);
258 fd = open("/sys/kernel/debug/kmemleak", O_RDONLY);
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c55 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
63 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC);
/linux-master/tools/power/cpupower/lib/
H A Dpowercap.c23 fd = open(path, O_RDONLY);
47 fd = open(path, O_RDONLY);
/linux-master/drivers/tty/serial/
H A Dkgdb_nmi.c277 if (!ret && (mode == O_RDONLY || mode == O_RDWR))
288 if (mode == O_RDONLY || mode == O_RDWR)
/linux-master/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c37 int random_fd = open("/dev/urandom", O_RDONLY);
280 4, O_RDONLY, 0400) == KSFT_PASS)
/linux-master/tools/testing/selftests/landlock/
H A Dptrace_test.c57 fd = open(procenv_path, O_RDONLY | O_CLOEXEC);
73 const int fd = open("/proc/sys/kernel/yama/ptrace_scope", O_RDONLY);
/linux-master/tools/mm/
H A Dpage-types.c792 kpageflags_fd = checked_open(opt_kpageflags, O_RDONLY);
898 pagemap_fd = checked_open(buf, O_RDONLY);
1051 fd = checked_open(name, O_RDONLY|O_NOATIME|O_NOFOLLOW);
1082 kpageflags_fd = checked_open(opt_kpageflags, O_RDONLY);
1083 pagemap_fd = checked_open("/proc/self/pagemap", O_RDONLY);
1342 kpagecgroup_fd = checked_open(PROC_KPAGECGROUP, O_RDONLY);
1345 kpagecount_fd = checked_open(PROC_KPAGECOUNT, O_RDONLY);
/linux-master/arch/arm/vdso/
H A Dvdsomunge.c138 infd = open(infile, O_RDONLY);
/linux-master/arch/sparc/boot/
H A Dpiggyback.c255 if ((tail = open(argv[4], O_RDONLY)) < 0)

Completed in 166 milliseconds

1234567891011>>