Clean up fd_renumber

This commit is contained in:
Jakub Konka
2019-07-18 21:21:17 +02:00
committed by Dan Gohman
parent 310ecb5b5b
commit 13823e2b39
7 changed files with 66 additions and 46 deletions

View File

@@ -152,6 +152,10 @@ impl WasiCtx {
.and_then(|ctx| ctx.build())
}
pub fn contains_fd_entry(&self, fd: host::__wasi_fd_t) -> bool {
self.fds.contains_key(&fd)
}
pub fn get_fd_entry(
&self,
fd: host::__wasi_fd_t,