Searched refs:O_RDONLY (Results 1 – 18 of 18) sorted by relevance
/bionic/tests/ |
D | fcntl_test.cpp | 25 int fd = open("/proc/version", O_RDONLY); in TEST() 45 fd = open("/proc/version", O_RDONLY); in TEST() 49 fd = open64("/proc/version", O_RDONLY); in TEST() 57 fd = openat(AT_FDCWD, "/proc/version", O_RDONLY); in TEST() 61 fd = openat64(AT_FDCWD, "/proc/version", O_RDONLY); in TEST() 142 int fd = open64("/proc/version", O_RDONLY); in TEST() 161 int in = open("/proc/cpuinfo", O_RDONLY); in TEST() 211 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 | dlext_test.cpp | 110 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 124 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 144 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 363 relro_fd = open(relro_file, O_RDONLY); in CreateRelroFile()
|
D | unistd_test.cpp | 201 int fd = open("/proc/version", O_RDONLY); in TEST() 368 ASSERT_NE(-1, fd = open(tf.filename, O_RDONLY)); in TestFsyncFunction() 377 ASSERT_NE(-1, fd = open("/", O_RDONLY)); in TestFsyncFunction() 383 ASSERT_NE(-1, fd = open("/proc/version", O_RDONLY)); in TestFsyncFunction() 820 int fd = open("/proc/version", O_RDONLY); in TEST()
|
D | dirent_test.cpp | 88 int fd = open("/dev/null", O_RDONLY); in TEST() 96 int fd = open("/proc/self", O_RDONLY); in TEST()
|
D | fortify_test.cpp | 629 int fd = open("/dev/null", O_RDONLY); in TEST_F() 637 int fd = open("/dev/null", O_RDONLY); in TEST_F() 645 int fd = open("/dev/null", O_RDONLY); in TEST_F()
|
D | sys_stat_test.cpp | 94 int fd = open("/proc/version", O_RDONLY); in TEST()
|
D | stdio_test.cpp | 833 int fd = open("/proc/version", O_RDONLY); in TEST()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | flags.c | 54 m = O_RDONLY; in __sflags()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | fcntl.h | 24 #define O_RDONLY 00000000 macro
|
/bionic/libc/bionic/ |
D | dirent.cpp | 91 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir()
|
D | fts.c | 166 if (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY, 0)) < 0) in fts_open() 291 if ((p->fts_symfd = open(".", O_RDONLY, 0)) < 0) { in fts_read() 381 open(".", O_RDONLY, 0)) < 0) { in fts_read() 520 if ((fd = open(".", O_RDONLY, 0)) < 0) in fts_children() 1033 if (fd < 0 && (newfd = open(path, O_RDONLY, 0)) < 0) in fts_safe_changedir()
|
D | getentropy_linux.c | 237 flags = O_RDONLY; in getentropy_urandom()
|
D | system_properties.cpp | 265 int fd = open(property_filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in map_prop_area()
|
/bionic/linker/ |
D | linker.cpp | 1112 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in open_library_in_zipfile() 1163 int fd = TEMP_FAILURE_RETRY(open(buf, O_RDONLY | O_CLOEXEC)); in open_library_on_default_path() 1187 fd = TEMP_FAILURE_RETRY(open(buf, O_RDONLY | O_CLOEXEC)); in open_library_on_ld_library_path() 1213 int fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC)); in open_library()
|
/bionic/libc/tzcode/ |
D | localtime.c | 35 #define OPEN_MODE (O_RDONLY | O_BINARY) 38 #define OPEN_MODE O_RDONLY
|
/bionic/libc/upstream-dlmalloc/ |
D | malloc.c | 3173 if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 && in init_mparams()
|