Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 19 of 19) sorted by relevance

/bionic/tests/
Dbug_26110743_test.cpp34 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcSelfReadlinkBody()
77 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcTaskFdReadlinkBody()
Dsys_mman_test.cpp85 tf.fd = open(tf.path, O_RDWR); in TEST()
156 tf.fd = open(tf.path, O_RDWR); in TEST()
164 tf.fd = open(tf.path, O_RDWR); in TEST()
Dfcntl_test.cpp321 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST()
347 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
Dstdlib_test.cpp647 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); in TEST()
Ddlext_test.cpp453 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in CreateRelroFile()
923 open(GetTestlibRoot().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
Dunistd_test.cpp404 ASSERT_NE(-1, fd = open(tf.path, O_RDWR)); in TestSyncFunction()
Dstdio_test.cpp2484 int fd = open(tf.path, O_RDWR); in TEST()
/bionic/libc/bionic/
Dpty.cpp43 return posix_openpt(O_RDWR|O_NOCTTY); in getpt()
135 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
Dlibc_init_common.cpp139 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
142 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
Dtmpfile.cpp82 int fd = open(tmp_dir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in __tmpfile_dir()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c81 m = O_RDWR; in __sflags()
Dmktemp.c72 flags |= O_CREAT | O_EXCL | O_RDWR; in mktemp_internal()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h27 #define O_RDWR 00000002 macro
/bionic/tests/headers/posix/
Dfcntl_h.c79 MACRO(O_RDWR); in fcntl_h()
/bionic/libc/system_properties/
Dprop_area.cpp56 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw()
/bionic/libc/kernel/uapi/drm/
Ddrm.h381 #define DRM_RDWR O_RDWR
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp1006 int fd = open(file_name, O_RDWR | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0644); in debug_dump_heap()
/bionic/libc/stdio/
Dstdio.cpp283 if (tmp != O_RDWR && (tmp != (mode_flags & O_ACCMODE))) { in fdopen()