Skip to content

Commit

Permalink
Auto merge of #3088 - cppcoffee:largefile, r=JohnTitor
Browse files Browse the repository at this point in the history
uclibc/mips: add missing O_LARGEFILE constant

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>

This add the O_LARGEFILE constant on Linux and uclibc.
It is defined as part of the uclibc in fcntl.h:

https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/libc/sysdeps/linux/mips/bits/fcntl.h#n73
  • Loading branch information
bors committed Jan 25, 2023
2 parents e6496a1 + e4577a7 commit f4d5a66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/uclibc/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub const O_RSYNC: ::c_int = 0x10;
pub const O_DSYNC: ::c_int = 0x10;
pub const O_FSYNC: ::c_int = 0x10;
pub const O_ASYNC: ::c_int = 0x1000;
pub const O_LARGEFILE: ::c_int = 0x2000;
pub const O_NDELAY: ::c_int = 0x80;

pub const SOCK_NONBLOCK: ::c_int = 128;
Expand Down

0 comments on commit f4d5a66

Please sign in to comment.