Debian Codegraph @

debian/rust-vendor/libc/src/new/musl/mod.rs

raw
1 //! Musl libc.
2 //!
3 //! * Headers: <https://git.musl-libc.org/cgit/musl> (official)
4 //! * Headers: <https://github.com/kraj/musl> (mirror)
5
6 // The musl build system includes `arch/$(ARCH)` (preferred if it exists) and `arch/generic` (used
7 // as the fallback). We can't exactly mirror this with glob exports, so instead we selectively
8 // reexport in a new module.
9 mod arch;
10
11 pub(crate) mod bits {
12 cfg_if! {
13 if #[cfg(target_arch = "mips")] {
14 pub(crate) use super::arch::mips::bits::socket;
15 } else if #[cfg(target_arch = "mips64")] {
16 pub(crate) use super::arch::mips64::bits::socket;
17 } else {
18 // Reexports from generic will live here once we need them.
19 }
20 }
21 }
22
23 pub(crate) mod pthread;
24
25 /// Directory: `sys/`
26 ///
27 /// <https://github.com/kraj/musl/tree/kraj/master/include/sys>
28 pub(crate) mod sys {
29 pub(crate) mod socket;
30 }
31
32 pub(crate) mod sched;
33 pub(crate) mod unistd;