In Cosmopolitan, the values of many system constants (syscalls, errno, etc) are different for different systems and only available at runtime. The Rust target definition in this repo specifies "os":"linux", "env": "musl", which is what the libc crate uses (via #[cfg(..)]) to determine what it thinks the values of these constants is. Naturally, these will match only on Linux platforms, so libc's dependents, including std, will be broken everywhere else.