Skip to content

Commit

Permalink
document that O_LARGEFILE is accepted, but now redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
inglorion committed Jun 30, 2023
1 parent d80ea77 commit 2d57f93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ libc_bitflags!(
target_os = "redox"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
O_FSYNC;
/// Allow files whose sizes can't be represented in an `off_t` to be opened.
/// On 32-bit Linux, O_LARGEFILE allows the use of file
/// offsets greater than 32 bits. Nix accepts the flag for
/// compatibility, but always opens files in large file mode
/// even if it isn't specified.
#[cfg(any(target_os = "android", target_os = "linux"))]
#[cfg_attr(docsrs, doc(cfg(all())))]
O_LARGEFILE;
Expand Down

0 comments on commit 2d57f93

Please sign in to comment.