From efd9e154c8349ceb2dad6e335bedd51fd81a0799 Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Sun, 14 Jan 2018 11:52:04 -0800 Subject: Alphabetize modules under /sys --- src/sys/mod.rs | 53 ++++++++++++++++++++++++++--------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) (limited to 'src/sys') diff --git a/src/sys/mod.rs b/src/sys/mod.rs index a94b8a06..55c3d5d2 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -20,48 +20,39 @@ pub mod event; #[cfg(target_os = "linux")] pub mod eventfd; -#[cfg(target_os = "linux")] -pub mod memfd; - #[macro_use] pub mod ioctl; -// TODO: Add support for dragonfly, freebsd, and ios/macos. -#[cfg(any(target_os = "android", target_os = "linux"))] -pub mod sendfile; +#[cfg(target_os = "linux")] +pub mod memfd; -pub mod signal; +pub mod mman; -#[cfg(any(target_os = "android", target_os = "linux"))] -pub mod signalfd; +pub mod pthread; -pub mod socket; +#[cfg(any(target_os = "android", target_os = "linux"))] +pub mod ptrace; -pub mod stat; +#[cfg(target_os = "linux")] +pub mod quota; #[cfg(any(target_os = "linux"))] pub mod reboot; -pub mod termios; - -pub mod utsname; - -pub mod wait; - -pub mod mman; +pub mod select; -pub mod uio; +// TODO: Add support for dragonfly, freebsd, and ios/macos. +#[cfg(any(target_os = "android", target_os = "linux"))] +pub mod sendfile; -pub mod time; +pub mod signal; #[cfg(any(target_os = "android", target_os = "linux"))] -pub mod ptrace; - -pub mod select; +pub mod signalfd; -#[cfg(target_os = "linux")] -pub mod quota; +pub mod socket; +pub mod stat; #[cfg(all(target_os = "linux", any(target_arch = "x86", @@ -70,7 +61,6 @@ pub mod quota; )] pub mod statfs; - #[cfg(all(any(target_os = "linux", target_os = "macos"), any(target_arch = "x86", @@ -78,4 +68,13 @@ pub mod statfs; target_arch = "arm")), )] pub mod statvfs; -pub mod pthread; + +pub mod termios; + +pub mod time; + +pub mod uio; + +pub mod utsname; + +pub mod wait; -- cgit v1.2.3