ioctl 0.1.0

IO Control for POSIX-and-beyond systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate libc;
#[macro_use]
extern crate bitflags;

#[cfg(target_os = "linux")]
#[path = "platform/linux.rs"]
#[macro_use]
mod platform;

pub use platform::*;

extern "C" {
    pub fn ioctl(fd: libc::c_int, req: libc::c_ulong, ...) -> libc::c_int;
}

#[cfg(not(target_os = "linux"))]
use platform_not_supported;