libc
libc copied to clipboard
Raw bindings to platform APIs for Rust
This PR fixes some constants and structs which were wrong for ESP-IDF targets. I created an app that compares all the constants in `src/unix/newlib` and `src/unix/newlib/espidf` modules with the ones...
This PR adds support for: CLOCK_PROCESS_CPUTIME_ID CLOCK_THREAD_CPUTIME_ID sysctlnametomib It replaces the following closed PRs: https://github.com/rust-lang/libc/pull/3926 https://github.com/rust-lang/libc/pull/3923 Sorry for the back and forward actions.
Update the musl headers in CI to use alpine-linux instead of sabotage-linux. Alpine also uses musl but follows the linux stable releases, providing more up-to-date headers. I also took the...
Remove the comment of these socket options. Reference: https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/socket.h
Corresponding C library change: https://gitlab.redox-os.org/redox-os/relibc/-/commit/4935b981800d978d433cec06e5a371e8c3a2f464
Corresponding C library change: https://gitlab.redox-os.org/redox-os/relibc/-/commit/4935b981800d978d433cec06e5a371e8c3a2f464 Based on main, but a version for libc-0.2 branch is here: https://github.com/rust-lang/libc/pull/3918
I'm interested in these socket options which are commented out: https://docs.rs/libc/latest/src/libc/unix/linux_like/linux/arch/generic/mod.rs.html#109 Digging through the git history and issues I did not see any specific issue with these constants when they...
Snippet from `host_info.h`: ``` struct host_cpu_load_info { /* number of ticks while running... */ natural_t cpu_ticks[CPU_STATE_MAX]; /* ... in the given mode */ }; typedef struct host_cpu_load_info host_cpu_load_info_data_t; typedef struct...