libc/new/glibc/mod.rs
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>
12mod posix {
13 pub(crate) mod unistd;
14}
15
16/// Source directory: `sysdeps/`
17///
18/// <https://github.com/bminor/glibc/tree/master/sysdeps>
19mod 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
26pub(crate) use posix::*;
27// FIXME(pthread): eventually all platforms should use this module
28#[cfg(target_os = "linux")]
29pub(crate) use sysdeps::nptl::*;
30#[cfg(target_os = "linux")]
31pub(crate) use sysdeps::unix::linux::*;