linux_sysno/
lib.rs

1#![no_std]
2
3#[cfg(feature = "generic")]
4pub mod generic;
5
6#[cfg(any(
7    feature = "arm",
8    all(any(target_os = "linux", target_os = "android"), target_arch = "arm")
9))]
10pub mod arm;
11
12#[cfg(any(feature = "mips", all(target_os = "linux", target_arch = "mips")))]
13pub mod mips;
14
15#[cfg(any(
16    feature = "mips64",
17    all(
18        target_os = "linux",
19        target_arch = "mips64",
20        target_pointer_width = "64"
21    )
22))]
23pub mod mips64;
24
25#[cfg(any(
26    feature = "mipsn32",
27    all(
28        target_os = "linux",
29        target_arch = "mips64",
30        target_pointer_width = "32"
31    )
32))]
33pub mod mipsn32;
34
35#[cfg(any(feature = "powerpc", all(target_os = "linux", target_arch = "powerpc")))]
36pub mod powerpc;
37
38#[cfg(any(
39    feature = "powerpc64",
40    all(target_os = "linux", target_arch = "powerpc64")
41))]
42pub mod powerpc64;
43
44#[cfg(any(feature = "s390x", all(target_os = "linux", target_arch = "s390x")))]
45pub mod s390x;
46
47#[cfg(any(feature = "sparc", all(target_os = "linux", target_arch = "sparc")))]
48pub mod sparc;
49
50#[cfg(any(feature = "sparc64", all(target_os = "linux", target_arch = "sparc64")))]
51pub mod sparc64;
52
53#[cfg(any(
54    feature = "x86",
55    all(any(target_os = "linux", target_os = "android"), target_arch = "x86")
56))]
57pub mod x86;
58
59#[cfg(any(
60    feature = "x86_64",
61    all(
62        any(target_os = "linux", target_os = "android"),
63        target_arch = "x86_64",
64        target_pointer_width = "64"
65    )
66))]
67pub mod x86_64;
68
69#[cfg(any(
70    feature = "x32",
71    all(
72        target_os = "linux",
73        target_arch = "x86_64",
74        target_pointer_width = "32"
75    )
76))]
77pub mod x32;
78
79#[cfg(any(
80    feature = "aarch64",
81    all(
82        any(target_os = "linux", target_os = "android"),
83        target_arch = "aarch64"
84    )
85))]
86pub mod aarch64;
87
88#[cfg(any(feature = "riscv32", all(target_os = "linux", target_arch = "riscv32")))]
89#[path = "generic.rs"]
90pub mod riscv32;
91
92#[cfg(any(feature = "riscv64", all(target_os = "linux", target_arch = "riscv64")))]
93#[path = "generic.rs"]
94pub mod riscv64;
95
96#[cfg(any(feature = "m68k", all(target_os = "linux", target_arch = "m68k")))]
97#[path = "generic.rs"]
98pub mod m68k;
99
100#[cfg(any(
101    feature = "loongarch64",
102    all(target_os = "linux", target_arch = "loongarch64")
103))]
104#[path = "generic.rs"]
105pub mod loongarch64;
106
107#[cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "arm"))]
108pub use arm::Sysno;
109
110#[cfg(all(target_os = "linux", target_arch = "mips"))]
111pub use mips::Sysno;
112
113#[cfg(all(
114    target_os = "linux",
115    target_arch = "mips64",
116    target_pointer_width = "64"
117))]
118pub use mips64::Sysno;
119
120#[cfg(all(
121    target_os = "linux",
122    target_arch = "mips64",
123    target_pointer_width = "32"
124))]
125pub use mipsn32::Sysno;
126
127#[cfg(all(target_os = "linux", target_arch = "powerpc"))]
128pub use powerpc::Sysno;
129
130#[cfg(all(target_os = "linux", target_arch = "powerpc64"))]
131pub use powerpc64::Sysno;
132
133#[cfg(all(target_os = "linux", target_arch = "s390x"))]
134pub use s390x::Sysno;
135
136#[cfg(all(target_os = "linux", target_arch = "sparc"))]
137pub use sparc::Sysno;
138
139#[cfg(all(target_os = "linux", target_arch = "sparc64"))]
140pub use sparc64::Sysno;
141
142#[cfg(all(any(target_os = "linux", target_os = "android"), target_arch = "x86"))]
143pub use x86::Sysno;
144
145#[cfg(all(
146    any(target_os = "linux", target_os = "android"),
147    target_arch = "x86_64",
148    target_pointer_width = "64"
149))]
150pub use x86_64::Sysno;
151
152#[cfg(all(
153    target_os = "linux",
154    target_arch = "x86_64",
155    target_pointer_width = "32"
156))]
157pub use x32::Sysno;
158
159#[cfg(all(
160    any(target_os = "linux", target_os = "android"),
161    target_arch = "aarch64"
162))]
163pub use aarch64::Sysno;
164
165#[cfg(all(target_os = "linux", target_arch = "riscv32"))]
166pub use riscv32::Sysno;
167
168#[cfg(all(target_os = "linux", target_arch = "riscv64"))]
169pub use riscv64::Sysno;
170
171#[cfg(all(target_os = "linux", target_arch = "m68k"))]
172pub use m68k::Sysno;
173
174#[cfg(all(target_os = "linux", target_arch = "loongarch64"))]
175pub use loongarch64::Sysno;
176
177#[cfg(test)]
178mod tests {
179    #[test]
180    fn is_present() {
181        let _ = super::Sysno::write;
182    }
183}