summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-10 14:23:28 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-10 14:23:28 -0800
commit4506d29557b05d7640396df95ac5b9af5ccb8819 (patch)
tree26a5ac5c6597ac806427195ee6a8ade4580c2b98
parentfc1b0ad67cfbf41d56bd49f8be9a9b7acf814bb1 (diff)
parent6ac75c16b18e3e23b291ac283cefc292e5264c6b (diff)
downloadrust-libc-4506d29557b05d7640396df95ac5b9af5ccb8819.tar.gz
Merge branch 'mips3' of https://github.com/polachok/libc into merge
-rw-r--r--.travis.yml2
-rw-r--r--ci/run.sh2
-rw-r--r--src/unix/notbsd/linux/mips.rs15
-rw-r--r--src/unix/notbsd/linux/mod.rs1
-rw-r--r--src/unix/notbsd/linux/musl.rs1
-rw-r--r--src/unix/notbsd/linux/other/mod.rs1
6 files changed, 12 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 0608b66658..10ef76c65a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,7 +34,7 @@ matrix:
env: TARGET=arm-unknown-linux-gnueabihf
rust: nightly
- os: linux
- env: TARGET=mips-unknown-linux-gnu
+ env: TARGET=mips-unknown-linux-gnu DOCKER=plhk/ubuntu-cross-mips:latest
rust: nightly
- os: linux
env: TARGET=aarch64-unknown-linux-gnu
diff --git a/ci/run.sh b/ci/run.sh
index ee08bc3b4e..14985be912 100644
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -31,7 +31,7 @@ case "$TARGET" in
;;
mips-unknown-linux-gnu)
- qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/libc-test
+ qemu-mips -L /usr/mips-linux-gnu /tmp/$TARGET/debug/libc-test
;;
aarch64-unknown-linux-gnu)
diff --git a/src/unix/notbsd/linux/mips.rs b/src/unix/notbsd/linux/mips.rs
index 41f173687a..b8f74b13ad 100644
--- a/src/unix/notbsd/linux/mips.rs
+++ b/src/unix/notbsd/linux/mips.rs
@@ -63,7 +63,7 @@ s! {
}
pub struct sigaction {
- pub sa_flags: ::c_uint,
+ pub sa_flags: ::c_int,
pub sa_sigaction: ::sighandler_t,
pub sa_mask: sigset_t,
_restorer: *mut ::c_void,
@@ -190,7 +190,7 @@ pub const RLIMIT_AS: ::c_int = 6;
pub const RLIMIT_RSS: ::c_int = 7;
pub const RLIMIT_NPROC: ::c_int = 8;
pub const RLIMIT_MEMLOCK: ::c_int = 9;
-pub const RLIMIT_NLIMITS: ::c_int = 15;
+pub const RLIMIT_NLIMITS: ::c_int = 16;
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
pub const O_APPEND: ::c_int = 8;
@@ -198,10 +198,10 @@ pub const O_CREAT: ::c_int = 256;
pub const O_EXCL: ::c_int = 1024;
pub const O_NOCTTY: ::c_int = 2048;
pub const O_NONBLOCK: ::c_int = 128;
-pub const O_SYNC: ::c_int = 0x10;
-pub const O_RSYNC: ::c_int = 0x10;
+pub const O_SYNC: ::c_int = 0x4010;
+pub const O_RSYNC: ::c_int = 0x4010;
pub const O_DSYNC: ::c_int = 0x10;
-pub const O_FSYNC: ::c_int = 0x10;
+pub const O_FSYNC: ::c_int = 0x4010;
pub const O_ASYNC: ::c_int = 0x1000;
pub const O_NDELAY: ::c_int = 0x80;
@@ -357,6 +357,7 @@ pub const SIG_UNBLOCK: ::c_int = 0x2;
pub const PTHREAD_STACK_MIN: ::size_t = 131072;
pub const MS_VERBOSE: ::c_ulong = 0x8000;
+pub const MS_RMT_MASK: ::c_ulong = 0x2800051;
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
@@ -454,7 +455,7 @@ extern {
hostlen: ::socklen_t,
serv: *mut ::c_char,
sevlen: ::socklen_t,
- flags: ::c_uint) -> ::c_int;
- pub fn eventfd(init: ::c_int, flags: ::c_int) -> ::c_int;
+ flags: ::c_int) -> ::c_int;
+ pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
pub fn ptrace(request: ::c_uint, ...) -> ::c_long;
}
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index b7de02b991..18b7b4f6a2 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -369,7 +369,6 @@ pub const MS_RELATIME: ::c_ulong = 0x200000;
pub const MS_KERNMOUNT: ::c_ulong = 0x400000;
pub const MS_I_VERSION: ::c_ulong = 0x800000;
pub const MS_STRICTATIME: ::c_ulong = 0x01000000;
-pub const MS_RMT_MASK: ::c_ulong = 0x800051;
pub const EPOLLRDHUP: ::c_int = 0x2000;
pub const EPOLLONESHOT: ::c_int = 0x40000000;
diff --git a/src/unix/notbsd/linux/musl.rs b/src/unix/notbsd/linux/musl.rs
index 7a244e49c4..1f1aff2a74 100644
--- a/src/unix/notbsd/linux/musl.rs
+++ b/src/unix/notbsd/linux/musl.rs
@@ -394,6 +394,7 @@ pub const EPOLLWAKEUP: ::c_int = 0x20000000;
pub const MS_NOSEC: ::c_ulong = 0x10000000;
pub const MS_BORN: ::c_ulong = 0x20000000;
+pub const MS_RMT_MASK: ::c_ulong = 0x800051;
pub const MADV_HUGEPAGE: ::c_int = 14;
pub const MADV_NOHUGEPAGE: ::c_int = 15;
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index b2d9643812..1b97fff561 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -284,6 +284,7 @@ pub const ST_RELATIME: ::c_ulong = 4096;
pub const NI_MAXHOST: ::socklen_t = 1025;
pub const MS_VERBOSE: ::c_ulong = 0x8000;
+pub const MS_RMT_MASK: ::c_ulong = 0x800051;
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;