| 764 | } |
| 765 | |
| 766 | WasiExpect<void> INode::pathReadlink(std::string Path, Span<char> Buffer, |
| 767 | __wasi_size_t &NRead) const noexcept { |
| 768 | if (auto Res = ::readlinkat(Fd, Path.c_str(), Buffer.data(), Buffer.size()); |
| 769 | unlikely(Res < 0)) { |
| 770 | return WasiUnexpect(fromErrNo(errno)); |
| 771 | } else { |
| 772 | NRead = EndianValue(static_cast<__wasi_size_t>(Res)).le(); |
| 773 | } |
| 774 | |
| 775 | return {}; |
| 776 | } |
| 777 | |
| 778 | WasiExpect<void> INode::pathRemoveDirectory(std::string Path) const noexcept { |
| 779 | if (auto Res = ::unlinkat(Fd, Path.c_str(), AT_REMOVEDIR); |
nothing calls this directly
no test coverage detected