MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Close

Method Close

Bcore/src/main/cpp/android-base/unique_fd.h:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49struct DefaultCloser {
50 static void Close(int fd) {
51 // Even if close(2) fails with EINTR, the fd will have been closed.
52 // Using TEMP_FAILURE_RETRY will either lead to EBADF or closing someone
53 // else's fd.
54 // http://lkml.indiana.edu/hypermail/linux/kernel/0509.1/0877.html
55 ::close(fd);
56 }
57};
58
59template <typename Closer>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected