Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/libc/src/new/glibc/mod.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / libc / src / new / glibc / mod.rs` 34 lines ยท 1110 bytes Raw Blame History 1 //! GNU libc. 2 //! 3 //! * Headers: (official) 4 //! * Headers: (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 /// 12 mod posix { 13 pub(crate) mod unistd; 14 } 15 16 /// Source directory: `sysdeps/` 17 /// 18 /// 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::*;