Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 18 of 18) 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()
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()
Dfcntl_test.cpp310 int fd = open(dir.dirname, O_TMPFILE | O_RDWR, perms); in TEST()
336 fd = open(dir.dirname, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
Dstdlib_test.cpp571 int fd = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC); in TEST()
Ddlext_test.cpp428 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in CreateRelroFile()
827 open(get_testlib_root().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
Dunistd_test.cpp396 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestSyncFunction()
Dstdio_test.cpp2333 int fd = open(tf.filename, 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.cpp148 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
151 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h25 #define O_RDWR 00000002 macro
/bionic/tests/headers/posix/
Dfcntl_h.c79 MACRO(O_RDWR); in fcntl_h()
/bionic/tools/relocation_packer/src/
Dmain.cc97 android::base::unique_fd fd(open(file, O_RDWR)); in main()
/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.h376 #define DRM_RDWR O_RDWR
/bionic/libc/stdio/
Dstdio.cpp244 if (tmp != O_RDWR && (tmp != (mode_flags & O_ACCMODE))) { in fdopen()