libc
libc copied to clipboard
Raw bindings to platform APIs for Rust
It looks like the following constants are not defined in DF: * `IP_SENDSRCADDR` * `BPF_ALIGNMENT` * `SF_CACHE` I'll spend a bit more time on this and see if I can...
PR #1235 adds a new test program to ensure that the cmsg(3) family of functions are correctly implemented on all targets. However, when run in QEMU `CMSG_NXTHDR` hits a Bus...
`time`, `localtime`, etc. are only available on Unix even though Windows has them.
AFAICT this should be u8 for the aarch64 and arm iOS, watchOS, etc. targets.
Would be nice to have to not resort to hacks like https://github.com/jwilm/alacritty/pull/2162
We have a couple PRs proposing something that makes platforms more consistent, but isn't exactly true to the C API. Two examples: - `stat` has a field `st_dev` on almost...
https://github.com/rust-lang/libc/issues/641 listed some things that we may want to break when libc gets a 1.0. https://github.com/rust-lang/libc/pull/634 addressed some of it, but I don't believe that is everything since (iiuc) it...
2e3999ddf0fa added `mcontext_t` but not `ucontext_t`. FreeBSD `ucontext_t` is machine-independent but libc crate limits it by `target_arch`. See [ucontext_t definition](https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/sys/_ucontext.h) vs. [mcontext_t definition](https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/arm64/include/ucontext.h) ```rust error[E0412]: cannot find type `ucontext_t` in...