| 273 | } |
| 274 | |
| 275 | WasiExpect<void> VINode::pathUnlinkFile(std::shared_ptr<VINode> Fd, |
| 276 | std::string_view Path) { |
| 277 | if (!Fd->can(__WASI_RIGHTS_PATH_UNLINK_FILE)) { |
| 278 | return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE); |
| 279 | } |
| 280 | EXPECTED_TRY(auto Buffer, |
| 281 | resolvePath(Fd, Path, static_cast<__wasi_lookupflags_t>(0))); |
| 282 | |
| 283 | return Fd->Node.pathUnlinkFile(std::string(Path)); |
| 284 | } |
| 285 | |
| 286 | WasiExpect<void> |
| 287 | VINode::getAddrinfo(std::string_view Node, std::string_view Service, |
no test coverage detected