Skip to content

Commit 2d57f93

Browse files
committed
document that O_LARGEFILE is accepted, but now redundant
1 parent d80ea77 commit 2d57f93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fcntl.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ libc_bitflags!(
122122
target_os = "redox"))]
123123
#[cfg_attr(docsrs, doc(cfg(all())))]
124124
O_FSYNC;
125-
/// Allow files whose sizes can't be represented in an `off_t` to be opened.
125+
/// On 32-bit Linux, O_LARGEFILE allows the use of file
126+
/// offsets greater than 32 bits. Nix accepts the flag for
127+
/// compatibility, but always opens files in large file mode
128+
/// even if it isn't specified.
126129
#[cfg(any(target_os = "android", target_os = "linux"))]
127130
#[cfg_attr(docsrs, doc(cfg(all())))]
128131
O_LARGEFILE;

0 commit comments

Comments
 (0)