libc
libc copied to clipboard
Raw bindings to platform APIs for Rust
According to emscripten, the pthread is supported. I quickly went through the [documentation](https://rust-lang.github.io/libc/wasm32-unknown-emscripten/doc/libc/index.html?search=pthread_) and found many things out of it implemented but also a few things which aren't there, for...
The three constants defined in libc are different from those defined in `` on some platforms. ``` libc::RLIM_INFINITY libc::RLIM_SAVED_CUR libc::RLIM_SAVED_MAX ``` Targets ``` arm-unknown-linux-gnueabi arm-unknown-linux-gnueabihf armv5te-unknown-linux-gnueabi armv7-unknown-linux-gnueabihf i586-unknown-linux-gnu i686-unknown-linux-gnu mips-unknown-linux-gnu...
It would be nice to have better timeout granularity.
The constants [POSIX_SPAWN_*](https://docs.rs/libc/0.2.97/src/libc/unix/linux_like/linux/mod.rs.html#1862-1867) are for the `__flags` field in [posix_spawnattr_t](https://docs.rs/libc/0.2.97/src/libc/unix/linux_like/linux/mod.rs.html#461) and are set via [`posix_spawnattr_setflags`](https://docs.rs/libc/0.2.92/libc/fn.posix_spawnattr_setflags.html), both of which use `c_short`. Should they be of type `c_short` as well?
Also discussed in [GSoC Zulip]. Related: [GSoC Idea] [OSPP Idea] [OSPP Zulip]. [GSoC Idea]: https://github.com/rust-lang/google-summer-of-code?tab=readme-ov-file#modernize-the-libc-crate [GSoC Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/421156-gsoc/topic/Idea.3A.20modernize.20the.20libc.20crate [OSPP Idea]: https://summer-ospp.ac.cn/org/prodetail/241170528 [OSPP Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/436418-ospp/topic/Project.3A.20Modernize.20the.20libc.20crate This PR is mainly the rebase...
# Description This change adds some new constants for the DELETE and ACK subset of netlink commands. # Sources [The documentation](https://www.man7.org/linux/man-pages/man7/netlink.7.html) appears to be out of date, but the header...
# Description Adds devmem constants and structs. Devmem was merged recently (6.12). I had also add all the other missing `SO_` constants for completion. As usual, musl is way behind...
# Description Adds missing TLS bindings for linux as mentioned in #3149. Tests should pass as long as the kernel used for testing implements them. # Sources Previously only a...
# Description Some methods required by `nix` crate. # Sources * https://github.com/cygwin/cygwin/blob/a3863bfeb73f3c3832038685498c7c4148a06890/winsup/cygwin/include/pty.h#L11-L14 * https://github.com/cygwin/cygwin/blob/a3863bfeb73f3c3832038685498c7c4148a06890/winsup/cygwin/include/cygwin/grp.h#L19 * https://github.com/cygwin/cygwin/blob/a3863bfeb73f3c3832038685498c7c4148a06890/newlib/libc/include/grp.h#L67-L78 # Checklist - [ ] Relevant tests in `libc-test/semver` have been updated - [x]...
check-cfg was stabilized in 1.80, so there is no longer any need to have a specific job and environment variable to enable it only under certain conditions.