Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

a st_blksize analog for filestat #21

Open
sunfishcode opened this issue Mar 2, 2021 · 0 comments
Open

a st_blksize analog for filestat #21

sunfishcode opened this issue Mar 2, 2021 · 0 comments

Comments

@sunfishcode
Copy link
Member

Some applications rely on struct stat to contain a st_blksize field to determine what size buffer to use. filestat doesn't currently provide this information.

It may also be useful to have a field providing the size of the file without any "holes" included, which would let libc implement a st_blocks field. POSIX's st_blocks is in 512-byte units (regardless of the st_blksize value), which is awkward, but if WASI itself simply provides the size in bytes, libc can divide by 512 to satisfy POSIX.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant