Skip to content

Commit a9679dd

Browse files
committed
Alphabetize some target_os configurations
1 parent e880a04 commit a9679dd

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

src/sys/aio.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ libc_enum! {
1919
/// do it like `fsync`
2020
O_SYNC,
2121
/// on supported operating systems only, do it like `fdatasync`
22-
#[cfg(any(target_os = "openbsd", target_os = "bitrig",
23-
target_os = "netbsd", target_os = "macos", target_os = "ios",
24-
target_os = "linux"))]
22+
#[cfg(any(
23+
target_os = "bitrig",
24+
target_os = "ios",
25+
target_os = "linux",
26+
target_os = "macos",
27+
target_os = "netbsd",
28+
target_os = "openbsd"))]
2529
O_DSYNC
2630
}
2731
}

src/sys/event.rs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,27 @@ libc_enum! {
3939
EVFILT_AIO,
4040
#[cfg(target_os = "dragonfly")]
4141
EVFILT_EXCEPT,
42-
#[cfg(any(target_os = "macos", target_os = "ios",
43-
target_os = "dragonfly",
44-
target_os = "freebsd"))]
42+
#[cfg(any(
43+
target_os = "dragonfly",
44+
target_os = "freebsd",
45+
target_os = "ios",
46+
target_os = "macos"))]
4547
EVFILT_FS,
4648
#[cfg(target_os = "freebsd")]
4749
EVFILT_LIO,
48-
#[cfg(any(target_os = "macos", target_os = "ios"))]
50+
#[cfg(any(target_os = "ios", target_os = "macos"))]
4951
EVFILT_MACHPORT,
5052
EVFILT_PROC,
5153
EVFILT_READ,
5254
EVFILT_SIGNAL,
5355
EVFILT_TIMER,
54-
#[cfg(any(target_os = "macos",
55-
target_os = "ios",
56-
target_os = "dragonfly",
57-
target_os = "freebsd"))]
56+
#[cfg(any(
57+
target_os = "dragonfly",
58+
target_os = "freebsd",
59+
target_os = "ios",
60+
target_os = "macos"))]
5861
EVFILT_USER,
59-
#[cfg(any(target_os = "macos", target_os = "ios"))]
62+
#[cfg(any(target_os = "ios", target_os = "macos"))]
6063
EVFILT_VM,
6164
EVFILT_VNODE,
6265
EVFILT_WRITE,

src/sys/signal.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ libc_enum!{
3333
SIGPIPE,
3434
SIGALRM,
3535
SIGTERM,
36-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
36+
#[cfg(all(
37+
any(target_os = "android", target_os = "emscripten", target_os = "linux"),
38+
not(any(target_arch = "mips", target_arch = "mips64"))))]
3739
SIGSTKFLT,
3840
SIGCHLD,
3941
SIGCONT,
@@ -48,12 +50,12 @@ libc_enum!{
4850
SIGPROF,
4951
SIGWINCH,
5052
SIGIO,
51-
#[cfg(any(target_os = "linux", target_os = "android", target_os = "emscripten"))]
53+
#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux"))]
5254
SIGPWR,
5355
SIGSYS,
54-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
56+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5557
SIGEMT,
56-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
58+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5759
SIGINFO,
5860
}
5961
}

0 commit comments

Comments
 (0)