Home
last modified time | relevance | path

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

/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()
Dfmemopen.c133 if (buf == NULL && ((oflags & O_RDWR) == 0)) { in fmemopen()
149 st->update = oflags & O_RDWR; in fmemopen()
Dmktemp.c72 flags |= O_CREAT | O_EXCL | O_RDWR; in mktemp_internal()
/bionic/tests/
Dbug_26110743_test.cpp32 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcSelfReadlinkBody()
74 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcTaskFdReadlinkBody()
DTemporaryFile.h47 fd = open(filename, O_RDWR); in reopen()
Dstdlib_test.cpp444 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); in TEST()
Ddlext_test.cpp427 int relro_fd = open(relro_file, O_RDWR | O_TRUNC); in CreateRelroFile()
826 open(get_testlib_root().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL)); in TEST()
Dunistd_test.cpp396 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestFsyncFunction()
/bionic/libc/bionic/
Dpty.cpp42 return posix_openpt(O_RDWR|O_NOCTTY); in getpt()
137 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
Dlibc_init_common.cpp142 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
145 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
Dsystem_properties.cpp216 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/asm-generic/
Dfcntl.h26 #define O_RDWR 00000002 macro
/bionic/tools/relocation_packer/src/
Dmain.cc97 android::base::unique_fd fd(open(file, O_RDWR)); in main()
/bionic/libc/kernel/uapi/drm/
Ddrm.h462 #define DRM_RDWR O_RDWR
/bionic/libc/stdio/
Dstdio.cpp246 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()