-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[file_utils] Use stat64 explicitly to handle large files on 32-bit sy…
…stems The Rust libc lacks support for 64-bit file offset on 32-bit systems (i.e., the _FILE_OFFSET_BITS=64 definition is not available and libc::off_t is always 4-byte width on those systems). This means libc::stat returns EOVERFLOW when it is called on files greater than 2GB. To avoid this issue, explicitly use libc::stat64 instead.
- Loading branch information
Showing
1 changed file
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters