summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-22 17:36:34 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-22 17:36:34 -0800
commit33bfefe027b7ccc67225428cfd8203dc380515f4 (patch)
tree66ccd1d5266087f6c6e50a442f40e601c37a2d1b
parentf54b9c90ee68889181472d4d4a5dd9e43d0e5318 (diff)
parent4ff646b494df4558d0acdd0f949933a55cd678bc (diff)
downloadrust-libc-33bfefe027b7ccc67225428cfd8203dc380515f4.tar.gz
Merge pull request #149 from alexcrichton/more-tested
Linkify more docs, add more tested triples
-rw-r--r--README.md11
-rw-r--r--src/unix/notbsd/linux/mod.rs12
-rw-r--r--src/unix/notbsd/linux/other/mod.rs2
3 files changed, 13 insertions, 12 deletions
diff --git a/README.md b/README.md
index 7abaa1484c..801b73d375 100644
--- a/README.md
+++ b/README.md
@@ -105,12 +105,13 @@ Tested:
* [`arm-unknown-linux-gnueabihf`](https://doc.rust-lang.org/libc/arm-unknown-linux-gnueabihf/libc)
* [`arm-linux-androideabi`](https://doc.rust-lang.org/libc/arm-linux-androideabi/libc)
(Android)
+ * [`x86_64-unknown-freebsd`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-freebsd/libc)
+ * [`x86_64-unknown-openbsd`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-openbsd/libc)
+ * [`x86_64-rumprun-netbsd`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-netbsd/libc)
The following may be supported, but are not guaranteed to always work:
- * `x86_64-unknown-freebsd`
* `i686-unknown-freebsd`
- * `x86_64-unknown-bitrig`
- * `x86_64-unknown-dragonfly`
- * `x86_64-unknown-openbsd`
- * `x86_64-unknown-netbsd`
+ * [`x86_64-unknown-bitrig`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-bitrig/libc)
+ * [`x86_64-unknown-dragonfly`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-dragonfly/libc)
+ * [`x86_64-unknown-netbsd`](http://rust-lang-nursery.github.io/libc/x86_64-unknown-netbsd/libc)
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index 45186a055f..e8dec9c68e 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -384,12 +384,12 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1;
pub const NCCS: usize = 32;
-pub const CLONE_NEWUTS: ::c_uint = 0x04000000;
-pub const CLONE_NEWIPC: ::c_uint = 0x08000000;
-pub const CLONE_NEWUSER: ::c_uint = 0x10000000;
-pub const CLONE_NEWPID: ::c_uint = 0x20000000;
-pub const CLONE_NEWNET: ::c_uint = 0x40000000;
-pub const CLONE_IO: ::c_uint = 0x80000000;
+pub const CLONE_NEWUTS: ::c_int = 0x04000000;
+pub const CLONE_NEWIPC: ::c_int = 0x08000000;
+pub const CLONE_NEWUSER: ::c_int = 0x10000000;
+pub const CLONE_NEWPID: ::c_int = 0x20000000;
+pub const CLONE_NEWNET: ::c_int = 0x40000000;
+pub const CLONE_IO: ::c_int = 0x80000000;
extern {
pub fn shm_open(name: *const c_char, oflag: ::c_int,
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index 1c842b24f9..b3df212a94 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -424,7 +424,7 @@ extern {
serv: *mut ::c_char,
sevlen: ::socklen_t,
flags: ::c_int) -> ::c_int;
- pub fn eventfd(init: ::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;
}