__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.
__wasi_countcount_tis currently auint32_t. We should change it touint64_tin 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_tis already auint64_t: https://github.com/rust-lang/libc/blob/master/src/wasi.rs#L34.