Searched refs:O_RDONLY (Results 26 - 50 of 357) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c57 procfd = open("/proc/self/comm", O_RDONLY);
60 devfd = open("/dev/urandom", O_RDONLY);
63 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644);
/linux-master/samples/pidfd/
H A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC);
105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC);
/linux-master/tools/laptop/freefall/
H A Dfreefall.c42 int fd = open(unload_heads_path, O_RDONLY);
125 fd = open("/dev/freefall", O_RDONLY);
/linux-master/tools/testing/selftests/proc/
H A Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK);
109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY);
H A Dproc-self-map-files-001.c54 fd = open("/dev/zero", O_RDONLY);
H A Dproc-self-map-files-002.c60 fd = open("/dev/zero", O_RDONLY);
/linux-master/tools/testing/selftests/timers/
H A Drtcpie.c42 fd = open(default_rtc, O_RDONLY);
54 fd = open(rtc, O_RDONLY);
H A Dclocksource-switch.c47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY);
79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY);
/linux-master/tools/testing/selftests/timens/
H A Dprocfs.c42 parent_ns = open(path, O_RDONLY);
52 child_ns = open(path, O_RDONLY);
/linux-master/tools/testing/selftests/mm/
H A Dhugepage-vmemmap.c55 fd = open("/proc/self/pagemap", O_RDONLY);
71 fd = open("/proc/kpageflags", O_RDONLY);
/linux-master/tools/testing/selftests/kvm/lib/
H A Delf.c21 fd = open(filename, O_RDONLY);
121 fd = open(filename, O_RDONLY);
/linux-master/samples/timers/
H A Dhpet_example.c89 fd = open(argv[0], O_RDONLY);
109 fd = open(argv[0], O_RDONLY);
149 fd = open(argv[0], O_RDONLY);
243 fd = open(argv[0], O_RDONLY);
/linux-master/tools/leds/
H A Dled_hw_brightness_mon.c42 fd = open(brightness_file_path, O_RDONLY);
/linux-master/tools/testing/selftests/rtc/
H A Dsetdate.c41 fd = open(rtc, O_RDONLY);
/linux-master/tools/power/cpupower/debug/i386/
H A Dcentrino-decode.c42 fd = open(file, O_RDONLY);
H A Dpowernow-k8-decode.c39 fd = open(file, O_RDONLY);
/linux-master/arch/um/drivers/
H A Dtty.c48 mode = O_RDONLY;
/linux-master/tools/lib/symbol/
H A Dkallsyms.c39 io.fd = open(filename, O_RDONLY, 0);
/linux-master/samples/bpf/
H A Dtest_cgrp2_sock2.c48 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY);
H A Dtest_cgrp2_array_pin.c59 cg2_fd = open(cg2, O_RDONLY);
/linux-master/drivers/infiniband/core/
H A Duverbs_std_types_async_fd.c73 O_RDONLY),
/linux-master/tools/power/cpupower/utils/helpers/
H A Dmsr.c32 fd = open(msr_file_name, O_RDONLY);
/linux-master/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-master/tools/testing/selftests/cgroup/
H A Dwait_inotify.c49 fd = open(file, O_RDONLY);
/linux-master/tools/perf/tests/
H A Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY);

Completed in 207 milliseconds

1234567891011>>