/bionic/tests/ |
D | fdsan_test.cpp | 53 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 …]
|
D | fcntl_test.cpp | 35 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()
|
D | sys_statvfs_test.cpp | 54 int fd = open("/proc", O_RDONLY); in TEST() 62 int fd = open("/proc", O_RDONLY); in TEST()
|
D | sys_vfs_test.cpp | 55 int fd = open("/proc", O_RDONLY); in TEST() 63 int fd = open("/proc", O_RDONLY); in TEST()
|
D | clang_fortify_tests.cpp | 111 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()
|
D | dirent_test.cpp | 131 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.cpp | 36 int fd = open("/proc/version", O_RDONLY); in TEST()
|
D | unistd_test.cpp | 236 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/ |
D | fdtrack_test.cpp | 82 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/ |
D | android_profiling_dynamic.cpp | 142 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()
|
D | getentropy.cpp | 37 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0))); in getentropy_urandom()
|
D | pthread_setname_np.cpp | 65 int fd = __open_task_comm_fd(t, O_RDONLY, "pthread_getname_np"); in pthread_getname_np()
|
D | fts.c | 161 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()
|
D | scandir.cpp | 103 int dir_fd = openat(parent_fd, dir_name, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in scandirat()
|
D | dirent.cpp | 103 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir()
|
D | grp_pwd_file.cpp | 234 ScopedFd fd(open(filename_, O_CLOEXEC | O_NOFOLLOW | O_RDONLY)); in DoMmap()
|
D | malloc_heapprofd.cpp | 161 int fd = open("/proc/self/cmdline", O_RDONLY | O_CLOEXEC); in GetHeapprofdProgramProperty()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | flags.c | 54 m = O_RDONLY; in __sflags()
|
/bionic/benchmarks/ |
D | get_heap_size_benchmark.cpp | 77 int statm_fd = open("/proc/self/statm", O_RDONLY); in BM_read_statm()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | fcntl.h | 25 #define O_RDONLY 00000000 macro
|
/bionic/tools/versioner/src/ |
D | VFS.cpp | 52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC)); in addDirectoryToVFS()
|
/bionic/tests/headers/posix/ |
D | fcntl_h.c | 78 MACRO(O_RDONLY); in fcntl_h()
|
/bionic/libc/stdio/ |
D | fmemopen.cpp | 134 (flags & O_RDONLY) ? nullptr : fmemopen_write, in fmemopen()
|
/bionic/libc/tzcode/ |
D | bionic.cpp | 115 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC)); in __bionic_open_tzdata_path()
|
/bionic/libc/arch-arm/ |
D | dynamic_function_dispatch.cpp | 71 register long r2 __asm__("r2") = O_RDONLY; in ifunc_open()
|