Skip to content

Make __wasi_linkcount_t 64-bit #70

@sunfishcode

Description

@sunfishcode

__wasi_countcount_t is currently a uint32_t. We should change it to uint64_t in order to support hypothetical filesystems with very large link counts. For comparison, the nlink function in Rust returns a 64-bit value.

This will increase the size of __wasi_filestat_t, however that seems negligible.

For comparison, the userspace nlink_t is already a uint64_t: https://github.com/rust-lang/libc/blob/master/src/wasi.rs#L34.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-filesystemProposal: wasi-filesystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions