Skip to content

Commit 453cfee

Browse files
committed
allow improper_ctypes for size_t
1 parent adfe59a commit 453cfee

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/mqueue.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ mod ffi {
4141
use super::MQd;
4242
use super::MqAttr;
4343

44+
#[allow(improper_ctypes)]
4445
extern "C" {
4546
pub fn mq_open(name: *const c_char, oflag: c_int, ...) -> MQd;
4647

src/sys/mman.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ mod ffi {
179179

180180
pub use libc::{mmap, munmap};
181181

182-
182+
#[allow(improper_ctypes)]
183183
extern {
184184
pub fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int;
185185
pub fn shm_unlink(name: *const c_char) -> c_int;

src/unistd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod ffi {
1717
pub use libc::{close, read, write, pipe, ftruncate, unlink};
1818
pub use libc::{fork, getpid, getppid};
1919

20+
#[allow(improper_ctypes)]
2021
extern {
2122
// duplicate a file descriptor
2223
// doc: http://man7.org/linux/man-pages/man2/dup.2.html

0 commit comments

Comments
 (0)