Skip to content
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

wasi: adds platform.Dirent in preparation of inode fetching #1154

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

codefromthecrypt
Copy link
Contributor

wasi_snapshot_preview1 recently requires fd_readdir to return actual inode values. On zero, wasi-libc will call fdstat to retrieve them.

This introduces our own platform.Dirent type and Readdir function which a later change will allow fetching of inodes.

See WebAssembly/wasi-libc#345

wasi_snapshot_preview1 recently requires fd_readdir to return actual
inode values. On zero, wasi-libc will call fdstat to retrieve them.

This introduces our own `platform.Dirent` type and `Readdir` function
which a later change will allow fetching of inodes.

See WebAssembly/wasi-libc#345

Signed-off-by: Adrian Cole <[email protected]>
Copy link
Contributor

@evacchi evacchi left a comment

Choose a reason for hiding this comment

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

overall ok, just minor nits about casing and one tiny note about docs

Signed-off-by: Adrian Cole <[email protected]>
@codefromthecrypt codefromthecrypt merged commit bb002c8 into main Feb 23, 2023
@codefromthecrypt codefromthecrypt deleted the dirent branch February 23, 2023 10:56
@codefromthecrypt
Copy link
Contributor Author

thanks for the look @evacchi even though this is internal, we should look more carefully as we near to 1.0!

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