Skip to content

Commit 22a4819

Browse files
author
Bryant Mairs
committed
Alphabetize modules under /sys
1 parent f5dcb3c commit 22a4819

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

src/sys/mod.rs

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,48 +20,39 @@ pub mod event;
2020
#[cfg(target_os = "linux")]
2121
pub mod eventfd;
2222

23-
#[cfg(target_os = "linux")]
24-
pub mod memfd;
25-
2623
#[macro_use]
2724
pub mod ioctl;
2825

29-
// TODO: Add support for dragonfly, freebsd, and ios/macos.
30-
#[cfg(any(target_os = "android", target_os = "linux"))]
31-
pub mod sendfile;
26+
#[cfg(target_os = "linux")]
27+
pub mod memfd;
3228

33-
pub mod signal;
29+
pub mod mman;
3430

35-
#[cfg(any(target_os = "android", target_os = "linux"))]
36-
pub mod signalfd;
31+
pub mod pthread;
3732

38-
pub mod socket;
33+
#[cfg(any(target_os = "android", target_os = "linux"))]
34+
pub mod ptrace;
3935

40-
pub mod stat;
36+
#[cfg(target_os = "linux")]
37+
pub mod quota;
4138

4239
#[cfg(any(target_os = "linux"))]
4340
pub mod reboot;
4441

45-
pub mod termios;
46-
47-
pub mod utsname;
48-
49-
pub mod wait;
50-
51-
pub mod mman;
42+
pub mod select;
5243

53-
pub mod uio;
44+
// TODO: Add support for dragonfly, freebsd, and ios/macos.
45+
#[cfg(any(target_os = "android", target_os = "linux"))]
46+
pub mod sendfile;
5447

55-
pub mod time;
48+
pub mod signal;
5649

5750
#[cfg(any(target_os = "android", target_os = "linux"))]
58-
pub mod ptrace;
59-
60-
pub mod select;
51+
pub mod signalfd;
6152

62-
#[cfg(target_os = "linux")]
63-
pub mod quota;
53+
pub mod socket;
6454

55+
pub mod stat;
6556

6657
#[cfg(all(target_os = "linux",
6758
any(target_arch = "x86",
@@ -70,12 +61,20 @@ pub mod quota;
7061
)]
7162
pub mod statfs;
7263

73-
7464
#[cfg(all(any(target_os = "linux",
7565
target_os = "macos"),
7666
any(target_arch = "x86",
7767
target_arch = "x86_64",
7868
target_arch = "arm")),
7969
)]
8070
pub mod statvfs;
81-
pub mod pthread;
71+
72+
pub mod termios;
73+
74+
pub mod time;
75+
76+
pub mod uio;
77+
78+
pub mod utsname;
79+
80+
pub mod wait;

0 commit comments

Comments
 (0)