Searched refs:O_RDONLY (Results 76 - 100 of 357) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/timens/
H A Dgettime_perf.c84 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY);
H A Dclock_nanosleep.c132 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY);
/linux-master/tools/testing/selftests/proc/
H A Dproc-subset-pid.c117 int fd = open("/proc/cpuinfo", O_RDONLY);
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h20 #define O_RDONLY 00000000 macro
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h20 #define O_RDONLY 00000000 macro
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtask_fd_query_tp.c27 efd = open(buf, O_RDONLY, 0);
/linux-master/samples/pfsm/
H A Dpfsm-wakeup.c38 fd_rtc = open(RTC_A, O_RDONLY);
/linux-master/tools/testing/selftests/thermal/intel/power_floor/
H A Dpower_floor_test.c68 fd = open(POWER_FLOOR_STATUS_ATTRIBUTE, O_RDONLY);
/linux-master/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c71 fd = open(path, O_RDONLY);
367 fd = open(CGROUP_MOUNT_PATH, O_RDONLY);
415 fd = open(cgroup_path, O_RDONLY);
706 return open(cgroup_workdir, O_RDONLY);
H A Dtrace_helpers.c209 trace_fd = open(TRACEFS_PIPE, O_RDONLY, 0);
211 trace_fd = open(DEBUGFS_PIPE, O_RDONLY, 0);
345 fd = open(path, O_RDONLY | O_CLOEXEC);
H A Dtest_lirc_mode2_user.c82 inputfd = open(argv[2], O_RDONLY | O_NONBLOCK);
/linux-master/tools/lib/api/fs/
H A Dfs.c296 int fd = open(filename, O_RDONLY), err = -1;
314 int fd = open(filename, O_RDONLY), err = -1;
354 io.fd = open(filename, O_RDONLY);
460 io.fd = open(path, O_RDONLY);
/linux-master/tools/testing/selftests/landlock/
H A Dbase_test.c305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC));
307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
/linux-master/kernel/power/
H A Duser.c72 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) {
75 data->mode = O_RDONLY;
125 pm_notifier_call_chain(data->mode == O_RDONLY ?
306 if (data->mode != O_RDONLY || !data->frozen || data->ready) {
/linux-master/tools/power/cpupower/utils/helpers/
H A Dsysfs.c23 fd = open(path, O_RDONLY);
70 fd = open(path, O_RDONLY);
134 fd = open(path, O_RDONLY);
/linux-master/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c324 ret = open("/proc/self/ns/user", O_RDONLY);
329 ret = open("/proc/self/ns/mnt", O_RDONLY);
334 ret = open(SET_GROUP_A, O_RDONLY);
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c91 fd = open(device_path, O_RDONLY | O_CLOEXEC);
114 fd = open(device_path, O_CLOEXEC | O_RDONLY);
161 fd = open(device_path, O_CLOEXEC | O_RDONLY);
424 fd = open(device_path, O_RDONLY | O_CLOEXEC);
441 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC);
/linux-master/tools/testing/selftests/core/
H A Dclose_range_test.c34 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
98 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
187 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
226 fd = open("/dev/null", O_RDONLY);
294 fd = open("/dev/null", O_RDONLY);
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c93 fd = open("/proc/self/ns/time_for_children", O_RDONLY | O_CLOEXEC);
144 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
237 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
250 self->child_nsfds1[i] = open(p, O_RDONLY | O_CLOEXEC);
263 self->child_nsfds2[i] = open(p, O_RDONLY | O_CLOEXEC);
311 return open(path, O_RDONLY | O_CLOEXEC);
/linux-master/arch/alpha/boot/tools/
H A Dmkbb.c108 fd = open(argv[2], O_RDONLY);
/linux-master/arch/powerpc/boot/
H A Dmktree.c82 if ((in_fd = open(argv[1], O_RDONLY)) < 0) {
/linux-master/tools/laptop/dslm/
H A Ddslm.c147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) {
/linux-master/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c49 rw_ti->in_fd = open(in_path, O_RDONLY);
/linux-master/tools/testing/selftests/intel_pstate/
H A Daperf.c47 fd = open(msr_file_name, O_RDONLY);
/linux-master/samples/fanotify/
H A Dfs-monitor.c123 fd = fanotify_init(FAN_CLASS_NOTIF|FAN_REPORT_FID, O_RDONLY);

Completed in 274 milliseconds

1234567891011>>