wasi-c2: implement a synchronous poll_oneoff in terms of yanix

doesnt work on unix yet! also breaks all the rules about using the
cap-std family instead of rawfds! but this is cool and im happy with it
This commit is contained in:
Pat Hickey
2021-01-14 17:43:53 -08:00
parent b84c4d7488
commit 7f7a0be938
8 changed files with 172 additions and 60 deletions

16
Cargo.lock generated
View File

@@ -2472,6 +2472,7 @@ dependencies = [
"thiserror",
"tracing",
"wiggle",
"yanix 0.22.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -2501,7 +2502,7 @@ dependencies = [
"wiggle",
"winapi",
"winx 0.22.0",
"yanix",
"yanix 0.22.0",
]
[[package]]
@@ -3111,6 +3112,19 @@ dependencies = [
"tracing",
]
[[package]]
name = "yanix"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0504d76a87b9e77f1057d419a51acb4344b9e14eaf37dde22cf1fd0ec28901db"
dependencies = [
"bitflags",
"cfg-if 1.0.0",
"filetime",
"libc",
"tracing",
]
[[package]]
name = "z3"
version = "0.7.1"