Home
last modified time | relevance | path

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

/bionic/tests/
Dfcntl_test.cpp25 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()
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()
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()
Dunistd_test.cpp216 int fd = open("/proc/version", O_RDONLY); in TEST()
380 ASSERT_NE(-1, fd = open(tf.filename, O_RDONLY)); in TestFsyncFunction()
389 ASSERT_NE(-1, fd = open("/data/local/tmp", O_RDONLY)); in TestFsyncFunction()
395 ASSERT_NE(-1, fd = open("/proc/version", O_RDONLY)); in TestFsyncFunction()
857 int fd = open("/proc/version", O_RDONLY); in TEST()
Dsys_stat_test.cpp94 int fd = open("/proc/version", O_RDONLY); in TEST()
Dfortify_test.cpp643 int fd = open("/dev/null", O_RDONLY); in TEST_F()
651 int fd = open("/dev/null", O_RDONLY); in TEST_F()
675 int fd = open("/dev/null", O_RDONLY); in TEST_F()
Ddlext_test.cpp113 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
131 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
161 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
449 relro_fd = open(relro_file, O_RDONLY); in CreateRelroFile()
Dstdio_test.cpp879 int fd = open("/proc/version", O_RDONLY); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c54 m = O_RDONLY; in __sflags()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h24 #define O_RDONLY 00000000 macro
/bionic/libc/bionic/
Dscandir.cpp103 int dir_fd = openat(parent_fd, dir_name, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in scandirat()
Ddirent.cpp91 int fd = open(path, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in opendir()
Dfts.c166 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()
Dgetentropy_linux.c237 flags = O_RDONLY; in getentropy_urandom()
Dsystem_properties.cpp318 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in map_prop_area()
/bionic/linker/
Dlinker.cpp1458 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in get_or_open()
1510 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in open_library_in_zipfile()
1575 fd = TEMP_FAILURE_RETRY(open(buf, O_RDONLY | O_CLOEXEC)); in open_library_on_paths()
1608 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC)); in open_library()
/bionic/libc/tzcode/
Dlocaltime.c55 #define OPEN_MODE (O_RDONLY | O_BINARY)
58 #define OPEN_MODE O_RDONLY