diff options
author | Corey Richardson <corey@octayn.net> | 2015-07-21 06:06:44 -0400 |
---|---|---|
committer | Paul Osborne <Paul.Osborne@digi.com> | 2015-08-12 19:29:21 -0500 |
commit | 553b51d5bb7a5c2bd3abc26287a60822531aff0d (patch) | |
tree | 41fe1e3608ad4af5744120f15529df9485527585 /src/sys/ioctl/mod.rs | |
parent | a9221b0fe735a52443fd4d41370d161ab7da2291 (diff) | |
download | nix-553b51d5bb7a5c2bd3abc26287a60822531aff0d.zip |
ioctl: remove all but command encoding
Diffstat (limited to 'src/sys/ioctl/mod.rs')
-rw-r--r-- | src/sys/ioctl/mod.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/sys/ioctl/mod.rs b/src/sys/ioctl/mod.rs index 31e8f322..eea3f139 100644 --- a/src/sys/ioctl/mod.rs +++ b/src/sys/ioctl/mod.rs @@ -104,15 +104,8 @@ mod platform; pub use self::platform::*; -// liblibc has the wrong decl for linux :| hack until #26809 lands. -extern "C" { - #[doc(hidden)] - pub fn ioctl(fd: libc::c_int, req: libc::c_ulong, ...) -> libc::c_int; -} - /// A hack to get the macros to work nicely. #[doc(hidden)] pub use ::libc as libc; - -//#[cfg(not(target_os = "linux"))] -//use platform_not_supported; +#[doc(hidden)] +pub use ::libc::funcs::bsd44::ioctl; |