Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 15 of 15) 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.cpp389 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); in TEST()
Dunistd_test.cpp384 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestFsyncFunction()
Ddlext_test.cpp427 int relro_fd = open(relro_file, O_RDWR | O_TRUNC); in CreateRelroFile()
/bionic/libc/bionic/
Dpty.cpp45 return posix_openpt(O_RDWR|O_NOCTTY); in getpt()
138 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
Dlibc_init_common.cpp127 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
130 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
Dsystem_properties.cpp229 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 ScopedFd fd(open(file, O_RDWR)); in main()
/bionic/libc/stdio/
Dstdio.cpp236 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()