From db7574f676c2c0f90a48dde0c34a73e9549d955f Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Sun, 7 Jan 2018 18:30:34 -0800 Subject: Refactor the ioctl API and documentation * Split `ioctl!` into separate macros. This makes documentation easier to read. * For every `ioctl_*!` macro include a description of the macro arguments as, the function prototype for the generated wrapper function, and an example if we have one. * Expose `request_code_*!` in the documentation to make the `ioctl_*_bad` macros easier to use. * Reorganize the file hierarchy to be simpler --- src/sys/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sys/mod.rs') diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 972a1b5e..db03dece 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -20,6 +20,14 @@ pub mod event; #[cfg(target_os = "linux")] pub mod eventfd; +#[cfg(any(target_os = "android", + target_os = "dragonfly", + target_os = "freebsd", + target_os = "ios", + target_os = "linux", + target_os = "macos", + target_os = "netbsd", + target_os = "openbsd"))] #[macro_use] pub mod ioctl; -- cgit v1.2.3