File tree Expand file tree Collapse file tree 1 file changed +26
-27
lines changed Expand file tree Collapse file tree 1 file changed +26
-27
lines changed Original file line number Diff line number Diff line change @@ -20,48 +20,39 @@ pub mod event;
20
20
#[ cfg( target_os = "linux" ) ]
21
21
pub mod eventfd;
22
22
23
- #[ cfg( target_os = "linux" ) ]
24
- pub mod memfd;
25
-
26
23
#[ macro_use]
27
24
pub mod ioctl;
28
25
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;
32
28
33
- pub mod signal ;
29
+ pub mod mman ;
34
30
35
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
36
- pub mod signalfd;
31
+ pub mod pthread;
37
32
38
- pub mod socket;
33
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
34
+ pub mod ptrace;
39
35
40
- pub mod stat;
36
+ #[ cfg( target_os = "linux" ) ]
37
+ pub mod quota;
41
38
42
39
#[ cfg( any( target_os = "linux" ) ) ]
43
40
pub mod reboot;
44
41
45
- pub mod termios;
46
-
47
- pub mod utsname;
48
-
49
- pub mod wait;
50
-
51
- pub mod mman;
42
+ pub mod select;
52
43
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;
54
47
55
- pub mod time ;
48
+ pub mod signal ;
56
49
57
50
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
58
- pub mod ptrace;
59
-
60
- pub mod select;
51
+ pub mod signalfd;
61
52
62
- #[ cfg( target_os = "linux" ) ]
63
- pub mod quota;
53
+ pub mod socket;
64
54
55
+ pub mod stat;
65
56
66
57
#[ cfg( all( target_os = "linux" ,
67
58
any( target_arch = "x86" ,
@@ -70,12 +61,20 @@ pub mod quota;
70
61
) ]
71
62
pub mod statfs;
72
63
73
-
74
64
#[ cfg( all( any( target_os = "linux" ,
75
65
target_os = "macos" ) ,
76
66
any( target_arch = "x86" ,
77
67
target_arch = "x86_64" ,
78
68
target_arch = "arm" ) ) ,
79
69
) ]
80
70
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;
You can’t perform that action at this time.
0 commit comments