1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#![no_std]

#[cfg(feature = "generic")]
pub mod generic;

#[cfg(any(
    feature = "arm",
    all(any(target_os = "linux", target_os = "android"), target_arch = "arm")
))]
pub mod arm;

#[cfg(any(feature = "mips", all(target_os = "linux", target_arch = "mips")))]
pub mod mips;

#[cfg(any(
    feature = "mips64",
    all(
        target_os = "linux",
        target_arch = "mips64",
        target_pointer_width = "64"
    )
))]
pub mod mips64;

#[cfg(any(
    feature = "mipsn32",
    all(
        target_os = "linux",
        target_arch = "mips64",
        target_pointer_width = "32"
    )
))]
pub mod mipsn32;

#[cfg(any(feature = "powerpc", all(target_os = "linux", target_arch = "powerpc")))]
pub mod powerpc;

#[cfg(any(
    feature = "powerpc64",
    all(target_os = "linux", target_arch = "powerpc64")
))]
pub mod powerpc64;

#[cfg(any(feature = "s390x", all(target_os = "linux", target_arch = "s390x")))]
pub mod s390x;

#[cfg(any(feature = "sparc", all(target_os = "linux", target_arch = "sparc")))]
pub mod sparc;

#[cfg(any(feature = "sparc64", all(target_os = "linux", target_arch = "sparc64")))]
pub mod sparc64;

#[cfg(any(
    feature = "x86",
    all(any(target_os = "linux", target_os = "android"), target_arch = "x86")
))]
pub mod x86;

#[cfg(any(
    feature = "x86_64",
    all(
        any(target_os = "linux", target_os = "android"),
        target_arch = "x86_64",
        target_pointer_width = "64"
    )
))]
pub mod x86_64;

#[cfg(any(
    feature = "x32",
    all(
        target_os = "linux",
        target_arch = "x86_64",
        target_pointer_width = "32"
    )
))]
pub mod x32;

#[cfg(any(
    feature = "aarch64",
    all(
        any(target_os = "linux", target_os = "android"),
        target_arch = "aarch64"
    )
))]
pub mod aarch64;

#[cfg(any(feature = "riscv32", all(target_os = "linux", target_arch = "riscv32")))]
#[path = "generic.rs"]
pub mod riscv32;

#[cfg(any(feature = "riscv64", all(target_os = "linux", target_arch = "riscv64")))]
#[path = "generic.rs"]
pub mod riscv64;

#[cfg(any(feature = "m68k", all(target_os = "linux", target_arch = "m68k")))]
#[path = "generic.rs"]
pub mod m68k;

#[cfg(any(
    feature = "loongarch64",
    all(target_os = "linux", target_arch = "loongarch64")
))]
#[path = "generic.rs"]
pub mod loongarch64;

#[cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "arm"))]
pub use arm::Sysno;

#[cfg(all(target_os = "linux", target_arch = "mips"))]
pub use mips::Sysno;

#[cfg(all(
    target_os = "linux",
    target_arch = "mips64",
    target_pointer_width = "64"
))]
pub use mips64::Sysno;

#[cfg(all(
    target_os = "linux",
    target_arch = "mips64",
    target_pointer_width = "32"
))]
pub use mipsn32::Sysno;

#[cfg(all(target_os = "linux", target_arch = "powerpc"))]
pub use powerpc::Sysno;

#[cfg(all(target_os = "linux", target_arch = "powerpc64"))]
pub use powerpc64::Sysno;

#[cfg(all(target_os = "linux", target_arch = "s390x"))]
pub use s390x::Sysno;

#[cfg(all(target_os = "linux", target_arch = "sparc"))]
pub use sparc::Sysno;

#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
pub use sparc64::Sysno;

#[cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "x86"))]
pub use x86::Sysno;

#[cfg(all(
    any(target_os = "linux", target_os = "android"),
    target_arch = "x86_64",
    target_pointer_width = "64"
))]
pub use x86_64::Sysno;

#[cfg(all(
    target_os = "linux",
    target_arch = "x86_64",
    target_pointer_width = "32"
))]
pub use x32::Sysno;

#[cfg(all(
    any(target_os = "linux", target_os = "android"),
    target_arch = "aarch64"
))]
pub use aarch64::Sysno;

#[cfg(all(target_os = "linux", target_arch = "riscv32"))]
pub use riscv32::Sysno;

#[cfg(all(target_os = "linux", target_arch = "riscv64"))]
pub use riscv64::Sysno;

#[cfg(all(target_os = "linux", target_arch = "m68k"))]
pub use m68k::Sysno;

#[cfg(all(target_os = "linux", target_arch = "loongarch64"))]
pub use loongarch64::Sysno;

#[cfg(test)]
mod tests {
    #[test]
    fn is_present() {
        let _ = super::Sysno::write;
    }
}