summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mqueue.rs1
-rw-r--r--src/sys/mman.rs2
-rw-r--r--src/unistd.rs1
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