| 1 |
//! GNU libc. |
| 2 |
//! |
| 3 |
//! * Headers: <https://sourceware.org/git/?p=glibc.git> (official) |
| 4 |
//! * Headers: <https://github.com/bminor/glibc> (mirror) |
| 5 |
//! |
| 6 |
//! This module structure is modeled after glibc's source tree. Its build system selects headers |
| 7 |
//! from different locations based on the platform, which we mimic here with reexports. |
| 8 |
|
| 9 |
/// Source directory: `posix/` |
| 10 |
/// |
| 11 |
/// <https://github.com/bminor/glibc/tree/master/posix> |
| 12 |
mod posix { |
| 13 |
pub(crate) mod unistd; |
| 14 |
} |
| 15 |
|
| 16 |
/// Source directory: `sysdeps/` |
| 17 |
/// |
| 18 |
/// <https://github.com/bminor/glibc/tree/master/sysdeps> |
| 19 |
mod sysdeps { |
| 20 |
// FIXME(pthread): eventually all platforms should use this module |
| 21 |
#[cfg(target_os = "linux")] |
| 22 |
pub(crate) mod nptl; |
| 23 |
pub(crate) mod unix; |
| 24 |
|
| 25 |
// You'll notice some directories that provide a `bits` module. These are included via |
| 26 |
// `path = "..."` wherever the generic implementation lives. |
| 27 |
} |
| 28 |
|
| 29 |
pub(crate) use posix::*; |
| 30 |
// FIXME(pthread): eventually all platforms should use this module |
| 31 |
#[cfg(target_os = "linux")] |
| 32 |
pub(crate) use sysdeps::nptl::*; |
| 33 |
#[cfg(target_os = "linux")] |
| 34 |
pub(crate) use sysdeps::unix::linux::*; |