Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 20 of 20) 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.cpp89 tf.fd = open(tf.path, O_RDWR); in TEST()
160 tf.fd = open(tf.path, O_RDWR); in TEST()
168 tf.fd = open(tf.path, O_RDWR); in TEST()
Dfcntl_test.cpp327 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST()
353 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
Dstdlib_test.cpp667 return posix_openpt(O_RDWR|O_NOCTTY); in getpt()
689 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); in TEST()
Ddlext_test.cpp454 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.cpp409 ASSERT_NE(-1, fd = open(tf.path, O_RDWR)); in TestSyncFunction()
Dstdio_test.cpp2603 int fd = open(tf.path, O_RDWR); in TEST()
/bionic/libc/bionic/
Dpty.cpp43 return posix_openpt(O_RDWR|O_NOCTTY); in getpt()
135 *tty = open(name, O_RDWR | O_NOCTTY); in openpty()
Dlibc_init_common.cpp213 if (((fd = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR))) == -1 && in __nullify_closed_stdio()
214 (fd = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR))) == -1) || in __nullify_closed_stdio()
Dtmpfile.cpp94 int fd = open(tmpdir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in tmpfile()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR)) != -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/linker/
Dlinker_crt_pad_segment_test.cpp58 unique_fd fd{TEMP_FAILURE_RETRY(open(path.c_str(), O_CLOEXEC | O_RDWR))}; in GetPadSegment()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h15 #define O_RDWR 00000002 macro
/bionic/tests/headers/posix/
Dfcntl_h.c79 MACRO(O_RDWR); in fcntl_h()
/bionic/libc/system_properties/
Dprop_area.cpp60 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.h371 #define DRM_RDWR O_RDWR
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp1164 int fd = open(file_name, O_RDWR | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0644); in debug_dump_heap()
/bionic/libc/stdio/
Dstdio.cpp280 if (tmp != O_RDWR && (tmp != (mode_flags & O_ACCMODE))) { in fdopen()