diff options
author | Bryant Mairs <bryantmairs@google.com> | 2018-01-07 18:30:34 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2018-04-10 08:28:39 -0700 |
commit | db7574f676c2c0f90a48dde0c34a73e9549d955f (patch) | |
tree | ac10b3b6704a736115093fcb2e5fa444b497dcb1 /src/sys/mod.rs | |
parent | 31e901b4bf36be5a4b27f28ae43105913c5d6245 (diff) | |
download | nix-db7574f676c2c0f90a48dde0c34a73e9549d955f.zip |
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
Diffstat (limited to 'src/sys/mod.rs')
-rw-r--r-- | src/sys/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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; |