mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 15:37:35 +00:00
It uses the file metadata on Unix with a fallback for files incorrectly reported as zero-sized. It uses `GetFileSizeEx` on Windows. This reduces the number of syscalls needed for determining the file size of an open file from 3 to 1.