summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2018-12-25 21:02:37 +0100
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2018-12-25 21:02:37 +0100
commit44fd808bcff815e8303528131839b65525b1b961 (patch)
tree0553bef91dd0df9f838383e0b0cdad246d777248
parenta4d41775f3df6db4bbbf91c9eb59c0d78a87038c (diff)
downloadrust-libc-44fd808bcff815e8303528131839b65525b1b961.tar.gz
Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-mips
These are defined in the fcntl.h glibc header on MIPS systems on Linux but missing in the libc crate, so add them as they are required for the file locking API in rustc.
-rw-r--r--src/unix/notbsd/linux/mips/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mips/mod.rs b/src/unix/notbsd/linux/mips/mod.rs
index b000d6df45..8809bef81e 100644
--- a/src/unix/notbsd/linux/mips/mod.rs
+++ b/src/unix/notbsd/linux/mips/mod.rs
@@ -537,6 +537,9 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
pub const EFD_NONBLOCK: ::c_int = 0x80;
+pub const F_RDLCK: ::c_int = 0;
+pub const F_WRLCK: ::c_int = 1;
+pub const F_UNLCK: ::c_int = 2;
pub const F_GETLK: ::c_int = 14;
pub const F_GETOWN: ::c_int = 23;
pub const F_SETOWN: ::c_int = 24;