Home
last modified time | relevance | path

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

12

/bionic/tests/
Dfdsan_test.cpp53 int fd = open("/dev/null", O_RDONLY); in TEST_F()
60 int fd = open("/dev/null", O_RDONLY); in TEST_F()
67 int fd = open("/dev/null", O_RDONLY); in TEST_F()
74 int fd = open("/dev/null", O_RDONLY); in TEST_F()
82 int fd = open("/dev/null", O_RDONLY); in TEST_F()
90 int fd = open("/dev/null", O_RDONLY); in TEST_F()
98 int fd = open("/dev/null", O_RDONLY); in TEST_F()
106 int fd = open("/dev/null", O_RDONLY); in TEST_F()
133 int fd = open("/dev/null", O_RDONLY); in TEST_F()
147 int fd = open("/dev/null", O_RDONLY); in TEST_F()
[all …]
Dfcntl_test.cpp35 int fd = open("/proc/version", O_RDONLY); in TEST()
55 fd = open("/proc/version", O_RDONLY); in TEST()
59 fd = open64("/proc/version", O_RDONLY); in TEST()
67 fd = openat(AT_FDCWD, "/proc/version", O_RDONLY); in TEST()
71 fd = openat64(AT_FDCWD, "/proc/version", O_RDONLY); in TEST()
152 int fd = open("/proc/version", O_RDONLY); in TEST()
166 int fd = open64("/proc/version", O_RDONLY); in TEST()
183 int in = open("/proc/cpuinfo", O_RDONLY); in TEST()
233 int in = open("/proc/version", O_RDONLY); in TEST()
Dsys_statvfs_test.cpp54 int fd = open("/proc", O_RDONLY); in TEST()
62 int fd = open("/proc", O_RDONLY); in TEST()
Dsys_vfs_test.cpp55 int fd = open("/proc", O_RDONLY); in TEST()
63 int fd = open("/proc", O_RDONLY); in TEST()
Dclang_fortify_tests.cpp111 int devnull = open("/dev/null", O_RDONLY); in SetUp()
308 EXPECT_NO_DEATH(open(target, O_RDONLY, 0777)); in FORTIFY_TEST()
310 EXPECT_NO_DEATH(open64(target, O_RDONLY, 0777)); in FORTIFY_TEST()
312 EXPECT_NO_DEATH(openat(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST()
314 EXPECT_NO_DEATH(openat64(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST()
Ddirent_test.cpp131 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST()
141 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST()
154 int fd = open("/dev/null", O_RDONLY); in TEST()
162 int fd = open("/proc/self", O_RDONLY); in TEST()
D_FILE_OFFSET_BITS_test.cpp36 int fd = open("/proc/version", O_RDONLY); in TEST()
Dunistd_test.cpp236 int fd = open("/proc/version", O_RDONLY); in TEST()
400 ASSERT_NE(-1, fd = open(tf.path, O_RDONLY)); in TestSyncFunction()
409 ASSERT_NE(-1, fd = open("/data/local/tmp", O_RDONLY)); in TestSyncFunction()
419 int fd = open("/proc/version", O_RDONLY); in TestFsyncFunction()
1159 int fd = open("/proc/version", O_RDONLY); in TEST()
1171 int fd = open("/proc/version", O_RDONLY); in TEST()
1513 int fd = open("/", O_RDONLY); in TEST()
1529 int echo_fd = open(BIN_DIR "echo", O_RDONLY | O_CLOEXEC); in TEST()
1537 int printenv_fd = open(BIN_DIR "printenv", O_RDONLY | O_CLOEXEC); in TEST()
/bionic/libfdtrack/
Dfdtrack_test.cpp82 auto result = RunFdtrack([]() { fd = open("/dev/null", O_RDONLY | O_CLOEXEC); }); in TEST()
95 fd1 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
96 fd2 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
97 fd3 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
/bionic/libc/bionic/
Dandroid_profiling_dynamic.cpp142 ScopedFd maps_fd{ open("/proc/self/maps", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal()
148 ScopedFd mem_fd{ open("/proc/self/mem", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal()
Dgetentropy.cpp37 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0))); in getentropy_urandom()
Dpthread_setname_np.cpp65 int fd = __open_task_comm_fd(t, O_RDONLY, "pthread_getname_np"); in pthread_getname_np()
Dfts.c161 if (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) in __fts_open()
284 if ((p->fts_symfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) { in fts_read()
373 if ((p->fts_symfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) { in fts_read()
511 if ((fd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) in fts_children()
1021 if (fd < 0 && (newfd = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0)) < 0) in fts_safe_changedir()
Dscandir.cpp103 int dir_fd = openat(parent_fd, dir_name, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in scandirat()
Ddirent.cpp103 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir()
Dgrp_pwd_file.cpp234 ScopedFd fd(open(filename_, O_CLOEXEC | O_NOFOLLOW | O_RDONLY)); in DoMmap()
Dmalloc_heapprofd.cpp161 int fd = open("/proc/self/cmdline", O_RDONLY | O_CLOEXEC); in GetHeapprofdProgramProperty()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c54 m = O_RDONLY; in __sflags()
/bionic/benchmarks/
Dget_heap_size_benchmark.cpp77 int statm_fd = open("/proc/self/statm", O_RDONLY); in BM_read_statm()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h25 #define O_RDONLY 00000000 macro
/bionic/tools/versioner/src/
DVFS.cpp52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC)); in addDirectoryToVFS()
/bionic/tests/headers/posix/
Dfcntl_h.c78 MACRO(O_RDONLY); in fcntl_h()
/bionic/libc/stdio/
Dfmemopen.cpp134 (flags & O_RDONLY) ? nullptr : fmemopen_write, in fmemopen()
/bionic/libc/tzcode/
Dbionic.cpp115 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC)); in __bionic_open_tzdata_path()
/bionic/libc/arch-arm/
Ddynamic_function_dispatch.cpp71 register long r2 __asm__("r2") = O_RDONLY; in ifunc_open()

12