Update to cap-std 0.17.0. (#3198)

This completes the posish->rsix rename, and contains a number of other
minor cleanups, including avoiding the `cstr` dependency.
This commit is contained in:
Dan Gohman
2021-08-17 16:08:03 -07:00
committed by GitHub
parent e8aa7bb53b
commit fde767fedc
9 changed files with 79 additions and 91 deletions

View File

@@ -1,6 +1,6 @@
use cap_std::time::Duration;
use io_lifetimes::{AsFd, BorrowedFd};
use posish::io::{PollFd, PollFdVec, PollFlags};
use rsix::io::{PollFd, PollFdVec, PollFlags};
use std::convert::TryInto;
use wasi_common::{
file::WasiFile,
@@ -51,7 +51,7 @@ pub async fn poll_oneoff<'a>(poll: &mut Poll<'a>) -> Result<(), Error> {
);
match pollfds.poll(poll_timeout) {
Ok(ready) => break ready,
Err(posish::io::Error::INTR) => continue,
Err(rsix::io::Error::INTR) => continue,
Err(err) => return Err(err.into()),
}
};