-
Notifications
You must be signed in to change notification settings - Fork 302
wasi_unstable_preview0.witx: fixes to match current implementations #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b74967f to
867841b
Compare
867841b to
14d2ac3
Compare
|
My sense here is that it's early enough that we can go ahead and change |
sunfishcode
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
|
Agreed, this is a special case because we're trying to get the starting point of the witx spec to match reality (where wasi was specified by the libc's Should we also port these fixes into |
|
Yes, I think it makes sense to update |
|
Put the patches into |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* wasi_unstable_preview0.witx: fixes to match current implementations * old/wasi_unstable.witx: fixes to match current implementations * wasi_ephemeral_preview0.witx: fixes to match current implementations
* wasi_unstable_preview0.witx: fixes to match current implementations * old/wasi_unstable.witx: fixes to match current implementations * wasi_ephemeral_preview0.witx: fixes to match current implementations
…ebAssembly#100) * Fix the extra argument to `append-via-stream`, and misc. doc updates Fix a spurious extra argument to `append-via-stream`. Also, add some miscellaneous documentation updates, including: - Describing filesystem path separators and sandboxing behavior - Clarifying that streams are independent of each other. - Remove stale references to the `append` flag. * More minor formatting fixes. * Document that `symlink-at` can't create absolute-path symlinks.
…bly#110) Remove the spurious second argument in `append-via-stream`, which is an oversight from the conversion from resources to standalone functions. I meant to do this in WebAssembly#100 but apparently lost that part of the diff. This PR reinstatates it.
refactor the imports to its own world
* wasi_unstable_preview0.witx: fixes to match current implementations * old/wasi_unstable.witx: fixes to match current implementations * wasi_ephemeral_preview0.witx: fixes to match current implementations
This PR makes changes to
wasi_unstable_preview0.witxto align with the current implementations (wasi-libc, wasi-common, and the wasi rust crate)environ_sizes_getreturns anerrno_tas its first resultpath_opentakes afdflags_targument.proc_sched_yieldis actually calledsched_yieldOpen question: These changes are seeking to make the witx document descriptive, rather than prescriptive.
wasi_unstable_preview0.witxis also out of sync with current implementations by using thewasi_unstable_preview0module name, where current implementations usewasi_unstable.Should we instead make
phases/old/witx/wasi_unstable.witxthat describes current (pre-preview0) implementations? Or shouldpreview0?