libc
libc copied to clipboard
Raw bindings to platform APIs for Rust
More items needed for `sysinfo` to be able to add a new feature.
## 🤖 New release * `libc`: 0.2.170 -> 0.2.171 (✓ API compatible changes) Changelog ## [0.2.171](https://github.com/rust-lang/libc/compare/0.2.170...0.2.171) - 2025-03-07 ### Other - make `stat::st_size` signed --- This PR was generated with...
# Description Adds syslog C macros to all UNIX targets 1. LOG_MASK 2. LOG_UPTO They are re-implemented as Rust functions, and tests are added to ensure our Rust implementations have...
It seems like all of them fail occasionally but i686-linux-android is pretty bad, with an 11% failure rate per GH's metrics. Some sample messages: ```text adb: error: failed to copy...
`linux-s390x.sh` seems to fail somewhat often in CI. Here is one example that failed at `curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20230607/images/generic/kernel.debian` with `curl: (56) Recv failure: Connection timed out`: https://github.com/rust-lang/libc/actions/runs/11918318034/job/33215674952. I'm...
# Description QNX 7.1 supports two network stacks: 1. `io-pkt`, which is default 2. `io-sock`, which is optional and should be default in QNX 8.0 As one can see in...
Pretty minor change, just queries emcc.bat since `emcc` will not work on windows For example this simple script will output this on windows ```rs fn main() { let output =...
`ctest2` will be merged into this crate in https://github.com/rust-lang/libc/pull/4283. We need to migrate this away from `garando_syntax`, which has problems parsing modern Rust, to a more modern solution like [`syn`](https://docs.rs/syn/latest/syn/).
`libc`'s testing is pretty tightly coupled to [`ctest2`](https://crates.io/crates/ctest2), which is a reasonably simple crate that maps Rust syntax to C syntax and creates tests based off of that. `ctest2` itself...
Updated the copyright year from 2020 to 2025 in the LICENSE file