Searched refs:mFd (Results 1 – 9 of 9) sorted by relevance
/system/netd/libnetdutils/include/netdutils/ |
D | UniqueFd.h | 40 UniqueFd(Fd fd) : mFd(fd) {} in UniqueFd() 49 UniqueFd(UniqueFd&& other) { std::swap(mFd, other.mFd); } in UniqueFd() 51 std::swap(mFd, other.mFd); 60 operator const Fd &() const { return mFd; } 63 Fd mFd;
|
D | Fd.h | 33 constexpr Fd(int fd) : mFd(fd) {} in Fd() 35 int get() const { return mFd; } in get() 41 int mFd = -1;
|
D | DumpWriter.h | 45 int mFd; variable
|
/system/netd/libnetdutils/ |
D | DumpWriter.cpp | 37 DumpWriter::DumpWriter(int fd) : mIndentLevel(0), mFd(fd) {} in DumpWriter() 54 ::write(mFd, kIndentString, kIndentStringLen); in println() 56 ::write(mFd, line.c_str(), line.size()); in println() 58 ::write(mFd, "\n", 1); in println()
|
D | UniqueFd.cpp | 27 std::swap(fd, mFd); in reset()
|
/system/netd/tests/ |
D | tun_interface.cpp | 89 mFd = open(TUN_DEV, O_RDWR | O_NONBLOCK | O_CLOEXEC); in init() 90 if (mFd == -1) return -errno; in init() 92 int ret = ioctl(mFd, TUNSETIFF, &ifr, sizeof(ifr)); in init() 95 close(mFd); in init() 103 close(mFd); in init() 115 if (mFd != -1) { in destroy() 117 close(mFd); in destroy() 118 mFd = -1; in destroy()
|
D | tun_interface.h | 46 int getFdForTesting() const { return mFd; } in getFdForTesting() 49 int mFd = -1;
|
/system/core/libutils/ |
D | Printer.cpp | 99 mFd(fd), mIndent(indent), mPrefix(prefix ?: "") { in FdPrinter() 113 } else if (mFd < 0) { in printLine() 114 ALOGW("%s: File descriptor out of range (%d)", __FUNCTION__, mFd); in printLine() 119 dprintf(mFd, mFormatString, mPrefix, string); in printLine()
|
/system/core/libutils/include/utils/ |
D | Printer.h | 79 int mFd; variable
|