wasi: fix poll_oneoff memory interface
The WASM memory interfacing logic was wrong (particularly around
the size of __wasi_subscription_t
). This commit fixes the logic.
(poll_oneoff()
is still unimplemented in uvwasi. I tested this with a local development implementation of poll_oneoff()
. The implementation worked, but native poll()
doesn't work well cross platform, so I'm currently trying to rewrite it using libuv uv_poll_t
s.)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines