Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 9 of 9) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DUniqueFd.h40 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 const operator Fd() const { return mFd; } in Fd()
63 Fd mFd;
DFd.h33 constexpr Fd(int fd) : mFd(fd) {} in Fd()
35 int get() const { return mFd; } in get()
41 int mFd = -1;
/system/netd/tests/
Dtun_interface.cpp67 mFd = open(TUN_DEV, O_RDWR | O_NONBLOCK | O_CLOEXEC); in init()
68 if (mFd == -1) return -errno; in init()
70 int ret = ioctl(mFd, TUNSETIFF, &ifr, sizeof(ifr)); in init()
73 close(mFd); in init()
80 close(mFd); in init()
88 if (mFd != -1) { in destroy()
89 close(mFd); in destroy()
90 mFd = -1; in destroy()
Dtun_interface.h40 int mFd = -1;
/system/netd/server/
DDumpWriter.cpp37 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()
DDumpWriter.h40 int mFd; variable
/system/core/libutils/
DPrinter.cpp99 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/netd/libnetdutils/
DUniqueFd.cpp27 std::swap(fd, mFd); in reset()
/system/core/libutils/include/utils/
DPrinter.h79 int mFd; variable