fn io_err(errno: wasi::Errno) -> io::Error { // TODO: check if this is valid. io::Error::from_raw_os_error(errno.raw() as i32) } pub(crate) type Events = Vec<Event>; pub(crate) type Event = wasi::Event; pub(crate) mod event { use std::fmt; use crate::sys::Event;...