sunfishcode / mustang

Rust programs written entirely in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement `fstat`

sunfishcode opened this issue · comments

As mentioned in #22 (comment), the memmap2 crate calls fstat. This is unusual; on Linux most programs use fstat64, which mustang does implement. But memmap2 probably doesn't see problems in practice because 32-bit targets wouldn't be able to mmap 4+ GiB files anyway.

So we can either implement fstat or submit a patch to memmap2 to have it use fstat64 on Linux.

fstat was added in #104.