Lines Matching refs:unique_fd_impl
88 class unique_fd_impl final {
90 unique_fd_impl() {} in unique_fd_impl() function
92 explicit unique_fd_impl(int fd) { reset(fd); } in unique_fd_impl() function
93 ~unique_fd_impl() { reset(); } in ~unique_fd_impl()
95 unique_fd_impl(const unique_fd_impl&) = delete;
96 void operator=(const unique_fd_impl&) = delete;
97 unique_fd_impl(unique_fd_impl&& other) noexcept { reset(other.release()); } in unique_fd_impl() function
98 unique_fd_impl& operator=(unique_fd_impl&& s) noexcept {
119 bool operator==(const unique_fd_impl& rhs) const { return get() == rhs.get(); }
120 bool operator!=(const unique_fd_impl& rhs) const { return get() != rhs.get(); }
178 using unique_fd = unique_fd_impl<DefaultCloser>;
184 inline bool Pipe(unique_fd_impl<Closer>* read, unique_fd_impl<Closer>* write,
222 inline bool Socketpair(int domain, int type, int protocol, unique_fd_impl<Closer>* left, in Socketpair()
223 unique_fd_impl<Closer>* right) { in Socketpair()
234 inline bool Socketpair(int type, unique_fd_impl<Closer>* left, unique_fd_impl<Closer>* right) { in Socketpair()
266 /* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
282 int close(const android::base::unique_fd_impl<T>&)
286 FILE* fdopen(const android::base::unique_fd_impl<T>&, const char* mode)
291 DIR* fdopendir(const android::base::unique_fd_impl<T>&) __attribute__((