Home
last modified time | relevance | path

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

12345678910>>...21

/openbmc/linux/tools/testing/selftests/landlock/
H A Dfs_test.c407 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK()
410 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY)); in TEST_F_FORK()
413 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY)); in TEST_F_FORK()
416 ASSERT_EQ(0, test_open(dir_s2d1, O_RDONLY)); in TEST_F_FORK()
418 ASSERT_EQ(0, test_open(dir_s2d2, O_RDONLY)); in TEST_F_FORK()
420 ASSERT_EQ(0, test_open(dir_s2d3, O_RDONLY)); in TEST_F_FORK()
423 ASSERT_EQ(0, test_open(dir_s3d1, O_RDONLY)); in TEST_F_FORK()
1521 ASSERT_EQ(0, test_open("/", O_RDONLY)); in TEST_F_FORK()
1762 test_open_rel(dirfd, "..", O_RDONLY)); in test_relative_path()
1785 O_RDONLY)); in test_relative_path()
[all …]
/openbmc/linux/tools/testing/selftests/exec/
H A Dexecveat.c142 int in_fd = open_or_die(src, O_RDONLY); in exe_cp()
194 fd = open(longpath, O_RDONLY); in check_execveat_pathmax()
232 O_DIRECTORY|O_RDONLY); in run_tests()
233 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
234 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
237 int fd = open_or_die("execveat", O_RDONLY); in run_tests()
238 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests()
239 int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); in run_tests()
242 O_RDONLY|O_PATH); in run_tests()
243 int fd_script = open_or_die("script", O_RDONLY); in run_tests()
[all …]
/openbmc/linux/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 …]
/openbmc/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c57 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
61 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
68 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
70 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
75 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
78 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
81 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
196 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
219 .how.flags = O_RDONLY, in test_openat2_flags()
225 .how.flags = O_RDONLY, in test_openat2_flags()
[all …]
/openbmc/linux/tools/testing/selftests/proc/
H A 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()
H A 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()
H A 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()
H A Dproc-empty-vm.c185 int fd = open(buf, O_RDONLY); in test_proc_pid_maps()
207 int fd = open(buf, O_RDONLY); in test_proc_pid_numa_maps()
230 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps()
286 int fd = open(buf, O_RDONLY); in test_proc_pid_smaps_rollup()
H A 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()
H A Dproc-pid-vm.c207 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
309 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
361 fd = open(buf, O_RDONLY); in main()
380 fd = open(buf, O_RDONLY); in main()
436 fd = open(buf, O_RDONLY); in main()
472 fd = open(buf, O_RDONLY); in main()
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch30 - int ifd = safe_open (filename, O_RDONLY|binary_transput, 0);
31 + int flags = O_RDONLY | binary_transput;
45 + int flags = O_RDONLY | binary_transput;
53 - if ((ifd = safe_open (filename, O_RDONLY | binary_transput, 0)) < 0
77 + int from_flags = O_RDONLY | O_BINARY;
81 - if ((fromfd = safe_open (from, O_RDONLY | O_BINARY, 0)) < 0)
/openbmc/linux/tools/testing/selftests/efivarfs/
H A 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()
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.cpp66 if (flags == O_RDONLY) in getPartitionFilePath()
118 if (!(flags == O_RDONLY || flags == O_RDWR)) in fulfil()
121 err << "Require O_RDONLY (0x" << std::hex << O_RDONLY << " or O_RDWR " in fulfil()
146 if (flags == O_RDONLY) in fulfil()
/openbmc/openbmc/poky/meta/recipes-extended/shadow/files/
H A Dcommonio.c-fix-unexpected-open-failure-in-chroot-env.patch31 - (db->readonly ? O_RDONLY : O_RDWR)
36 + (true ? O_RDONLY : O_RDWR)
41 + (false ? O_RDONLY : O_RDWR)
/openbmc/linux/samples/timers/
H A Dhpet_example.c89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
109 fd = open(argv[0], O_RDONLY); in hpet_info()
149 fd = open(argv[0], O_RDONLY); in hpet_poll()
243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
/openbmc/linux/fs/lockd/
H A Dsvcsubs.c76 return (lock->fl_type == F_WRLCK) ? O_WRONLY : O_RDONLY; in lock_to_openmode()
169 if (file->f_file[O_RDONLY]) in nlm_delete_file()
170 nlmsvc_ops->fclose(file->f_file[O_RDONLY]); in nlm_delete_file()
191 lock.fl_file = file->f_file[O_RDONLY]; in nlm_unlock_files()
289 if (file->f_file[O_RDONLY]) in nlm_close_files()
290 nlmsvc_ops->fclose(file->f_file[O_RDONLY]); in nlm_close_files()
/openbmc/qemu/crypto/
H A Drandom-platform.c55 fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
57 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
/openbmc/linux/scripts/
H A Djobserver-exec35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK)
42 os.O_RDONLY | os.O_NONBLOCK)
/openbmc/linux/tools/testing/selftests/mm/
H A Dmadv_populate.c137 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_populated()
151 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_populated()
209 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_softdirty()
223 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_softdirty()
/openbmc/linux/tools/perf/util/
H A Dzlib.c32 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file()
85 int fd = open(input, O_RDONLY); in gzip_is_compressed()
/openbmc/hiomapd/vpnor/test/
H A Dwrite_patch.cpp64 fd = open((root.rw() / "TEST1").c_str(), O_RDONLY); in main()
73 fd = open(patch.c_str(), O_RDONLY); in main()
/openbmc/linux/samples/pidfd/
H A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/openbmc/phosphor-mboxd/vpnor/test/
H A Dwrite_patch.cpp61 fd = open((root.rw() / "TEST1").c_str(), O_RDONLY); in main()
70 fd = open(patch.c_str(), O_RDONLY); in main()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c57 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events()
60 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events()
63 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()
/openbmc/linux/tools/testing/selftests/timers/
H A Drtcpie.c42 fd = open(default_rtc, O_RDONLY); in main()
54 fd = open(rtc, O_RDONLY); in main()

12345678910>>...21