Release 0.2.115 to crates.io.
Needed by https://github.com/rust-lang/rust/pull/93351.
Should have included this in my prior PR but hadn't finished reading CONTRIBUTING.md. Sorry for the extra traffic!
Define DT_UNKNOWN on Fuchsia.
It looks like this constant is relied on in the new `remove_dir_all` logic and we need to reference it to be able to use the CVE fix correctly on Fuchsia.
Define the `MFD_HUGE_*` macros for Linux and Android.
This defines the `MFD_HUGE_*` flags which can accompany the `MEMFD_HUGETLB`
flag in Linux's [`memfd_create`] call.
[`memfd_create`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
Consolodate the Linux `*_SUPER_MAGIC` constants.
Move the Linux `*_SUPER_MAGIC` constants out of
android/uclibc/gnu-specific directories and into the common `linux_like` directory
so that they're available on all Linux-family platforms, and so that that all
Linux-family platforms have all the constants.
Fix _CMSG_ALIGN on DragonFly
The attempted fix in #2610 originally had `7` hard coded, but it was suggested I replace this with a size_of call. Unfortunately the suggestion omitted a subtraction from the size_of call, and I didn't catch it.
Tested by running the failing `nix` tests on DragonFly (and didn't change the code again after running the tests).
The last fix originally had 3 hard coded, but it was suggested I replace
this with a size_of call. Unfortunately the suggestion omitted a
subtraction from the size_of call, and I didn't catch it.
add CI for armv7-unknown-linux-uclibceabihf
As discussed in https://github.com/rust-lang/libc/pull/2636, this is a framework for CI on targets with no prebuilt std. They will build via `nightly` and `-Zbuild-std`, and run the unit tests via qemu-user (or whatever else the dockerfile specifies).
It seems like I could write some more documentation about how to add more targets of this type, but perhaps I can get a round of feedback on the mechanism here before I go and write that.
Move the Linux `*_SUPER_MAGIC` constants out of
android/uclibc/gnu-specific directories and into the common `linux_like` directory
so that they're available on all Linux-family platforms, and so that that all
Linux-family platforms have all the constants.
Fix the build on the latest FreeBSD 14 snapshot
* KERN_STACKTOP was recently removed upstream, and has never been included in a stable FreeBSD release
* The MNTK_ flags are for kernel use only and aren't visible to userland
cc `@GuillaumeGomez`