I was looking into some detail of a WASI call and there is… basically nothing.
Also the latest version of the docs is called something like “snapshot3” or whatever. I thought “wait this is it? that’s the whole definition”? apparently it is.
edit: here. The actual latest definition is in "legacy/preview1". Yes that is the latest WASI definition.
https://github.com/WebAssembly/WASI/blob/main/legacy/preview...
What do the inputs mean? How should it behave in some extreme conditions? Eh YOLO who knows. All implementation dependent. This document is literally all there is. That's it, that's the WASI definition.