Searched defs:Fd (Results 1 - 3 of 3) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
H A DFd.h29 class Fd { class in namespace:android::netdutils
31 constexpr Fd() = default;
33 constexpr Fd(int fd) : mFd(fd) {} function in class:android::netdutils::Fd
37 bool operator==(const Fd& other) const { return get() == other.get(); }
38 bool operator!=(const Fd& other) const { return get() != other.get(); }
45 inline bool isWellFormed(const Fd fd) {
49 std::ostream& operator<<(std::ostream& os, const Fd& fd);
H A DUniqueFd.h23 #include "netdutils/Fd.h"
31 // *) Uses a strongly typed wrapper (Fd) for the underlying file descriptor
40 UniqueFd(Fd fd) : mFd(fd) {}
55 // Cleanup any currently owned Fd, replacing it with the optional
57 void reset(Fd fd = Fd());
59 // Implict cast to Fd
60 const operator Fd() const { return mFd; }
63 Fd mFd;
/system/extras/mmap-perf/
H A DmmapPerf.cpp21 class Fd { class
26 Fd() {} function in class:Fd
27 explicit Fd(int fd) : m_fd{fd} {} function in class:Fd
28 ~Fd() {
51 Fd m_fileFd;

Completed in 171 milliseconds