Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 25 of 129) sorted by relevance

123456

/tools/testing/selftests/exec/
Dexecveat.c140 int in_fd = open_or_die(src, O_RDONLY); in exe_cp()
192 fd = open(longpath, O_RDONLY); in check_execveat_pathmax()
228 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
230 O_DIRECTORY|O_RDONLY); in run_tests()
231 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
232 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
233 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
234 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
235 int fd = open_or_die("execveat", O_RDONLY); in run_tests()
236 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests()
[all …]
/tools/testing/selftests/proc/
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()
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()
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()
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()
Dproc-pid-vm.c205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
269 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
321 fd = open(buf, O_RDONLY); in main()
340 fd = open(buf, O_RDONLY); in main()
396 fd = open(buf, O_RDONLY); in main()
432 fd = open(buf, O_RDONLY); in main()
Dproc-self-wchan.c27 fd = open("/proc/self/wchan", O_RDONLY); in main()
Dproc-uptime-001.c31 fd = open("/proc/uptime", O_RDONLY); in main()
Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
Dproc-self-syscall.c37 fd = open("/proc/self/syscall", O_RDONLY); in main()
Dproc-loadavg-001.c44 fd = open("/proc/loadavg" , O_RDONLY); in main()
/tools/testing/selftests/bpf/
Dtest_sysctl.c55 .open_flags = O_RDONLY,
66 .open_flags = O_RDONLY,
77 .open_flags = O_RDONLY,
98 .open_flags = O_RDONLY,
135 .open_flags = O_RDONLY,
156 .open_flags = O_RDONLY,
183 .open_flags = O_RDONLY,
199 .open_flags = O_RDONLY,
241 .open_flags = O_RDONLY,
283 .open_flags = O_RDONLY,
[all …]
Durandom_read.c22 int fd = open("/dev/urandom", O_RDONLY); in main()
/tools/testing/selftests/efivarfs/
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()
/tools/perf/util/
Dzlib.c32 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file()
85 int fd = open(input, O_RDONLY); in gzip_is_compressed()
/tools/laptop/freefall/
Dfreefall.c42 int fd = open(unload_heads_path, O_RDONLY); in valid_disk()
125 fd = open("/dev/freefall", O_RDONLY); in main()
/tools/testing/selftests/timers/
Dclocksource-switch.c47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources()
79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
Drtcpie.c42 fd = open(default_rtc, O_RDONLY); in main()
54 fd = open(rtc, O_RDONLY); in main()
/tools/testing/selftests/intel_pstate/
Dmsr.c29 fd = open(msr_file_name, O_RDONLY); in main()
/tools/testing/selftests/filesystems/
Ddnotify_test.c26 fd = open(".", O_RDONLY); in main()
/tools/testing/selftests/kvm/lib/
Delf.c22 fd = open(filename, O_RDONLY); in elfhdr_get()
122 fd = open(filename, O_RDONLY); in kvm_vm_elf_load()
/tools/bpf/bpftool/
Dcgroup.c209 cgroup_fd = open(path, O_RDONLY); in do_show()
268 cgroup_fd = open(fpath, O_RDONLY); in do_show_tree_fn()
409 cgroup_fd = open(argv[0], O_RDONLY); in do_attach()
467 cgroup_fd = open(argv[0], O_RDONLY); in do_detach()
/tools/leds/
Dled_hw_brightness_mon.c42 fd = open(brightness_file_path, O_RDONLY); in main()
/tools/power/cpupower/lib/
Dcpupower.c22 fd = open(path, O_RDONLY); in cpupower_read_sysfs()
69 fd = open(path, O_RDONLY); in cpupower_is_cpu_online()
/tools/power/cpupower/utils/helpers/
Dsysfs.c23 fd = open(path, O_RDONLY); in sysfs_read_file()
70 fd = open(path, O_RDONLY); in sysfs_is_cpu_online()
134 fd = open(path, O_RDONLY); in sysfs_idlestate_read_file()

123456