#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
Go to the source code of this file.
|
template<typename Closer > |
bool | android::base::Pipe (unique_fd_impl< Closer > *read, unique_fd_impl< Closer > *write, int flags=O_CLOEXEC) |
|
template<typename Closer > |
bool | android::base::Socketpair (int domain, int type, int protocol, unique_fd_impl< Closer > *left, unique_fd_impl< Closer > *right) |
|
template<typename Closer > |
bool | android::base::Socketpair (int type, unique_fd_impl< Closer > *left, unique_fd_impl< Closer > *right) |
|
FILE * | android::base::Fdopen (unique_fd &&ufd, const char *mode) |
|
DIR * | android::base::Fdopendir (unique_fd &&ufd) |
|
template<typename T > |
int | close (const android::base::unique_fd_impl< T > &) __attribute__((__unavailable__("close called on unique_fd"))) |
|
template<typename T > |
FILE * | fdopen (const android::base::unique_fd_impl< T > &, const char *mode) __attribute__((__unavailable__("fdopen takes ownership of the fd passed in |
|
template<typename T > |
DIR * | fdopendir (const android::base::unique_fd_impl< T > &) __attribute__((__unavailable__("fdopendir takes ownership of the fd passed in |
|
◆ close()
◆ fdopen()
◆ fdopendir()
◆ ownership
◆ unique_fd