1mod common;
18
19cfg_if! {
44 if #[cfg(target_os = "aix")] {
45 mod aix;
46 pub(crate) use aix::*;
47 } else if #[cfg(target_os = "android")] {
48 mod bionic_libc;
49 pub(crate) use bionic_libc::*;
50 } else if #[cfg(target_vendor = "apple")] {
51 mod apple;
52 pub(crate) use apple::*;
53 } else if #[cfg(target_os = "cygwin")] {
54 mod cygwin;
55 pub(crate) use cygwin::*;
56 } else if #[cfg(target_os = "dragonfly")] {
57 mod dragonfly;
58 pub(crate) use dragonfly::*;
59 } else if #[cfg(target_os = "emscripten")] {
60 mod emscripten;
61 pub use emscripten::sched::*;
62 pub(crate) use emscripten::*;
63 } else if #[cfg(target_os = "espidf")] {
64 mod espidf;
65 } else if #[cfg(target_os = "freebsd")] {
67 mod freebsd;
68 pub(crate) use freebsd::*;
69 } else if #[cfg(target_os = "fuchsia")] {
70 mod fuchsia;
71 pub(crate) use fuchsia::*;
72 } else if #[cfg(target_os = "haiku")] {
73 mod haiku;
74 pub(crate) use haiku::*;
75 } else if #[cfg(target_os = "hermit")] {
76 mod hermit_abi;
77 } else if #[cfg(target_os = "horizon")] {
79 mod horizon;
80 } else if #[cfg(target_os = "hurd")] {
82 mod hurd;
83 } else if #[cfg(target_os = "illumos")] {
85 mod illumos;
86 pub(crate) use illumos::*;
87 } else if #[cfg(target_os = "l4re")] {
88 mod l4re;
89 } else if #[cfg(target_os = "linux")] {
91 mod linux_uapi;
92 pub(crate) use linux_uapi::*;
93 } else if #[cfg(target_os = "netbsd")] {
94 mod netbsd;
95 pub(crate) use netbsd::*;
96 } else if #[cfg(target_os = "nto")] {
97 mod nto;
98 pub(crate) use nto::*;
99 } else if #[cfg(target_os = "nuttx")] {
100 mod nuttx;
101 pub(crate) use nuttx::*;
102 } else if #[cfg(target_os = "openbsd")] {
103 mod openbsd;
104 pub(crate) use openbsd::*;
105 } else if #[cfg(target_os = "qurt")] {
106 mod qurt;
107 pub(crate) use qurt::*;
108 } else if #[cfg(target_os = "redox")] {
109 mod redox;
110 } else if #[cfg(target_os = "rtems")] {
112 mod rtems;
113 } else if #[cfg(target_os = "solaris")] {
115 mod solaris;
116 pub(crate) use solaris::*;
117 } else if #[cfg(target_os = "solid_asp3")] {
118 mod solid;
119 } else if #[cfg(target_os = "teeos")] {
121 mod teeos;
122 } else if #[cfg(target_os = "trusty")] {
124 mod trusty;
125 } else if #[cfg(target_os = "vita")] {
127 mod vita;
128 } else if #[cfg(target_os = "vxworks")] {
130 mod vxworks;
131 pub(crate) use vxworks::*;
132 } else if #[cfg(target_os = "wasi")] {
133 mod wasi;
134 } else if #[cfg(target_os = "windows")] {
136 mod ucrt;
137 } else if #[cfg(target_os = "xous")] {
139 mod xous;
140 }
142}
143
144cfg_if! {
146 if #[cfg(all(
148 target_family = "unix",
149 target_env = "gnu",
150 not(target_os = "vxworks")
151 ))] {
152 mod glibc;
153 pub(crate) use glibc::*;
154 } else if #[cfg(any(target_env = "musl", target_env = "ohos"))] {
155 mod musl;
157 pub use musl::sched::*;
158 pub(crate) use musl::*;
159 } else if #[cfg(target_env = "newlib")] {
160 mod newlib;
161 pub(crate) use newlib::*;
162 } else if #[cfg(target_env = "relibc")] {
163 mod relibc;
164 pub(crate) use relibc::*;
165 } else if #[cfg(target_env = "sgx")] {
166 mod sgx;
167 } else if #[cfg(target_env = "uclibc")] {
169 mod uclibc;
170 pub(crate) use uclibc::*;
171 }
172}
173
174cfg_if! {
176 if #[cfg(target_os = "android")] {
177 pub use sys::socket::*;
178 } else if #[cfg(target_os = "linux")] {
179 pub use linux::can::bcm::*;
180 pub use linux::can::j1939::*;
181 pub use linux::can::raw::*;
182 pub use linux::can::*;
183 pub use linux::keyctl::*;
184 pub use linux::membarrier::*;
185 pub use linux::netlink::*;
186 #[cfg(target_env = "gnu")]
187 pub use net::route::*;
188 } else if #[cfg(target_vendor = "apple")] {
189 pub use pthread::*;
190 pub use pthread_::introspection::*;
191 pub use pthread_::pthread_spis::*;
192 pub use pthread_::spawn::*;
193 pub use pthread_::stack_np::*;
194 pub use signal::*;
195 } else if #[cfg(target_os = "netbsd")] {
196 pub use net::if_::*;
197 pub use sys::ipc::*;
198 pub use sys::statvfs::*;
199 pub use sys::time::*;
200 pub use sys::timex::*;
201 pub use sys::types::*;
202 pub use utmp_::*;
203 pub use utmpx_::*;
204 } else if #[cfg(target_os = "openbsd")] {
205 pub use sys::ipc::*;
206 } else if #[cfg(target_os = "nto")] {
207 pub use net::bpf::*;
208 pub use net::if_::*;
209 }
210}
211
212cfg_if! {
214 if #[cfg(any(target_env = "musl", target_env = "ohos"))] {
215 pub use sys::socket::*;
216 }
217}
218
219cfg_if! {
221 if #[cfg(all(target_family = "unix", not(target_os = "qurt")))] {
222 #[cfg(any(
224 target_os = "android",
225 target_os = "emscripten",
226 target_os = "l4re",
227 target_os = "linux"
228 ))]
229 pub use pthread::*;
230 pub use unistd::*;
231 }
232}