diff options
author | Mattis Marjak <mattis.marjak@gmail.com> | 2015-12-04 01:16:44 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2016-01-18 21:29:38 -0800 |
commit | cafd7c96f18a8beed8e1328bdabdb29f1434689f (patch) | |
tree | 2b9f079a68d8e0192c35f99f93d10597a2aea425 | |
parent | 49798be4d445dc224f81eddb636997c1245cdab3 (diff) | |
download | nix-cafd7c96f18a8beed8e1328bdabdb29f1434689f.zip |
allow improper_ctypes for size_t
-rw-r--r-- | src/mqueue.rs | 1 | ||||
-rw-r--r-- | src/sys/mman.rs | 2 | ||||
-rw-r--r-- | src/unistd.rs | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/mqueue.rs b/src/mqueue.rs index 38834624..e24b6800 100644 --- a/src/mqueue.rs +++ b/src/mqueue.rs @@ -41,6 +41,7 @@ mod ffi { use super::MQd; use super::MqAttr; + #[allow(improper_ctypes)] extern "C" { pub fn mq_open(name: *const c_char, oflag: c_int, ...) -> MQd; diff --git a/src/sys/mman.rs b/src/sys/mman.rs index 0522ab52..f74f0b8e 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -179,7 +179,7 @@ mod ffi { pub use libc::{mmap, munmap}; - + #[allow(improper_ctypes)] extern { pub fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int; pub fn shm_unlink(name: *const c_char) -> c_int; diff --git a/src/unistd.rs b/src/unistd.rs index 506f0ef9..3d210c44 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -16,6 +16,7 @@ mod ffi { use libc::{c_char, c_int, size_t}; pub use libc::{fork, close, read, write, pipe, ftruncate, unlink, setpgid, getegid, geteuid, getgid, getpid, getppid, getuid}; + #[allow(improper_ctypes)] extern { // duplicate a file descriptor // doc: http://man7.org/linux/man-pages/man2/dup.2.html |