From 3a374d00164d02194e7ecbecd9a571af3bdd7465 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 24 Oct 2019 10:55:30 +0200 Subject: [PATCH] Update poll_oneoff API This commit updates `poll_oneoff`'s API in a potentially least invasive way. That is, it adds unused `WasiCtx` argument to the syscall which will be required by #137. I am hopeful that this way #137 can pass all tests and hence this commit should aid the review process. --- src/hostcalls/misc.rs | 1 + src/hostcalls_impl/misc.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/hostcalls/misc.rs b/src/hostcalls/misc.rs index 207d854f37..1a633b42e4 100644 --- a/src/hostcalls/misc.rs +++ b/src/hostcalls/misc.rs @@ -72,6 +72,7 @@ hostcalls! { ) -> wasm32::__wasi_errno_t; pub unsafe fn poll_oneoff( + wasi_ctx: &WasiCtx, memory: &mut [u8], input: wasm32::uintptr_t, output: wasm32::uintptr_t, diff --git a/src/hostcalls_impl/misc.rs b/src/hostcalls_impl/misc.rs index bd6ddeb3fd..3d6827155d 100644 --- a/src/hostcalls_impl/misc.rs +++ b/src/hostcalls_impl/misc.rs @@ -183,6 +183,7 @@ pub(crate) fn clock_time_get( } pub(crate) fn poll_oneoff( + _wasi_ctx: &WasiCtx, memory: &mut [u8], input: wasm32::uintptr_t, output: wasm32::uintptr_t,