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/common/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 / common / mod.rs` 39 lines ยท 1249 bytes Raw Blame History 1 //! Interfaces that are common across multiple platforms 2 //! 3 //! We make these available everywhere but each platform must opt in to reexporting. 4 //! 5 //! There shouldn't be any repeated definitions or complex configuration in this module. On 6 //! platforms that don't use common APIs it is fine to use `#[cfg(not(...))]`, but if a platform 7 //! needs a custom definition then it should be defined in the platform-specific module. 8 //! 9 //! The goal is that platforms need to opt in to the definitions here, so that worst case we have 10 //! an unused warning on untested platforms (rather than exposing incorrect API). 11 12 #[cfg(any( 13 target_vendor = "apple", 14 target_os = "dragonfly", 15 target_os = "freebsd", 16 target_os = "netbsd", 17 target_os = "openbsd", 18 ))] 19 pub(crate) mod bsd; 20 21 #[cfg(any( 22 target_os = "android", 23 target_os = "emscripten", 24 target_os = "l4re", 25 target_os = "linux", 26 ))] 27 pub(crate) mod linux_like; 28 29 #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] 30 pub(crate) mod freebsd_like; 31 32 #[cfg(any(target_os = "netbsd", target_os = "openbsd"))] 33 pub(crate) mod netbsd_like; 34 35 #[cfg(any(target_os = "illumos", target_os = "solaris"))] 36 pub(crate) mod solarish; 37 38 #[cfg(target_family = "unix")] 39 pub(crate) mod posix;