Skip to content

Populate the wasi-io proposal with very preliminary content. #2

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

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

sunfishcode
Copy link
Member

This adds very simple I/O streams and I/O arrays witx definitions,
which match read/write and pread/pwrite from wasi-filesystem, as a
starting point.

This adds very simple I/O streams and I/O arrays witx definitions,
which match read/write and pread/pwrite from wasi-filesystem, as a
starting point.

Note: This is similar to `size_t` in POSIX.

Size: 4
Copy link
Contributor

@lygstate lygstate Mar 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raise a question, in WebAssembly memory64, does this should be 8 byte?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes; this docs.md is auto-generated from the witx sources, where this type is declared as (@witx usize), specifically to anticipate wasm64.

Extension: Capabilities insufficient.

## <a href="#rights" name="rights"></a> `rights`: `Record`
File descriptor rights, determining which actions may be performed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need add a rights_extended for future usage?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good idea, however it turns out the rights system isn't very useful, so it seems more likely that we'll just remove it altogether.

@sunfishcode
Copy link
Member Author

Merging; this is just prelinary content; I'm planning more to come here.

@sunfishcode sunfishcode merged commit 4c1889a into main Mar 22, 2021
@sunfishcode sunfishcode deleted the sunfishcode/initial branch March 22, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants