| 114 | } // namespace |
| 115 | |
| 116 | void FdHolder::reset() noexcept { |
| 117 | if (likely(ok())) { |
| 118 | if (likely(!isSpecialFd(Fd))) { |
| 119 | close(Fd); |
| 120 | } |
| 121 | Fd = -1; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void DirHolder::reset() noexcept { |
| 126 | if (likely(Dir != nullptr)) { |
nothing calls this directly
no test coverage detected