Commit graph

5465 commits

Author SHA1 Message Date
bors 1068fee101 Auto merge of #2655 - anp:release-dt-unknown, r=Amanieu
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!
2022-01-27 11:00:12 +00:00
Adam Perry fffd9cf610 Release 0.2.115 to crates.io.
Needed by https://github.com/rust-lang/rust/pull/93351.
2022-01-27 00:18:48 +00:00
bors 3063aa1b45 Auto merge of #2654 - anp:fuchsia-dt-unknown, r=Amanieu
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.
2022-01-26 22:33:02 +00:00
Adam Perry af308591bd Define DT_UNKNOWN on Fuchsia. 2022-01-26 22:27:39 +00:00
Khem Raj c711fb215d riscv64/mod.rs: Add missing error codes
These are flagged by apps e.g. python3-pyruvate

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-26 11:50:58 -08:00
bors a79788fe68 Auto merge of #2627 - devnexen:audit_fbsd_intro, r=Amanieu
freebsd audit api introduction.
2022-01-26 16:13:42 +00:00
David CARLIER d00987d3a6 freebsd audit api introduction. 2022-01-26 16:12:41 +00:00
bors 526cb13a67 Auto merge of #2653 - devnexen:fbsd_ifreq_ifconf, r=Amanieu
freebsd add ifconf data.
2022-01-26 14:30:22 +00:00
David CARLIER 619119e0e2 freebsd add ifconf data. 2022-01-25 14:42:45 +00:00
bors 7f1da49dd4 Auto merge of #2652 - Mek101:master, r=Amanieu
Fix linux ioctl BLKSSZGET and BLKPBSZGET constants types.

The BLKSSZGET and BLKPBSZGET constants weren't arch dependent as they should have.
2022-01-25 10:14:43 +00:00
Mek101 426dfabea8 Fix linux ioctl BLKSSZGET and BLKPBSZGET constants types. 2022-01-25 10:12:28 +01:00
bors fbe86f81fb Auto merge of #2651 - devnexen:getpagesizes_fbsd, r=Amanieu
getpagesizes for freebsd addition
2022-01-25 08:14:00 +00:00
David CARLIER e491433eee getpagesizes for freebsd addition 2022-01-25 06:37:17 +00:00
bors c9258c3906 Auto merge of #2650 - sunfishcode:sunfishcode/mfd-huge-sizes, r=Amanieu
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
2022-01-25 02:14:37 +00:00
bors a76930062c Auto merge of #2639 - sunfishcode:sunfishcode/linux-super-magic, r=Amanieu
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.
2022-01-25 01:10:30 +00:00
Dan Gohman 338ac98a84 Give android the same special case for FUSE_SUPER_MAGIC that linux has. 2022-01-24 15:54:02 -08:00
Dan Gohman d6422e2ca7 Update mipsel-unknown-linux-musl too. 2022-01-24 15:42:47 -08:00
Dan Gohman 10cdc9fe49 Update the sysinfo_guard.patch patch for the new toolchain. 2022-01-24 15:39:16 -08:00
Dan Gohman 3eddcc6d29 Update more paths for the new toolchain. 2022-01-24 15:39:02 -08:00
Dan Gohman 7015ee9a42 Update the mips-unknown-linux-musl CI toolchain.
Update the mips-unknown-linux-musl CI toolchain to openwrt-sdk-21.02.1,
as suggested [here]. This also switches from ar71xx to ath79, since
[ar71xx is now deprecated] and ath79 is the replacement.

[here]: https://github.com/rust-lang/libc/pull/2633#issuecomment-1016003790
[ar71xx is now deprecated]: https://openwrt.org/docs/techref/targets/ar71xx
2022-01-24 14:57:07 -08:00
Dan Gohman 4875c52f56 Don't define the *_SUPER_MAGIC constants on Emscripten. 2022-01-24 14:45:55 -08:00
Dan Gohman d0891d93f2 Move BINDERFS_SUPER_MAGIC and XFS_SUPER_MAGIC back into ABI-specific mods. 2022-01-24 13:06:09 -08:00
Dan Gohman cafba833e8 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
2022-01-24 12:41:18 -08:00
bors 80f4ca240c Auto merge of #2649 - devnexen:netbsd_ifconf, r=Amanieu
netbsd add ifconf data
2022-01-24 20:09:11 +00:00
bors 831b3a25e8 Auto merge of #2647 - devnexen:solarish_priv_flags_upd, r=Amanieu
solaris based systems priv api flags updates
2022-01-24 19:03:13 +00:00
David Carlier 0ef1e7130d netbsd add ifconf data 2022-01-24 18:33:45 +00:00
bors b2cd590cf3 Auto merge of #2648 - mcginty:openbsd-ip_mreqn, r=Amanieu
Define ip_mreqn on OpenBSD

Essentially an extension of https://github.com/rust-lang/libc/pull/2625

Reference: https://man.openbsd.org/ip.4
2022-01-24 17:55:10 +00:00
Charlie Root 2cfa3e949f Define ip_mreqn on OpenBSD 2022-01-24 10:22:33 -07:00
David Carlier bc405e52b7 solaris based systems priv api flags updates 2022-01-24 16:27:47 +00:00
bors 157bcec987 Auto merge of #2646 - atopia:uclibc-constants, r=Amanieu
add O_NOFOLLOW flag to uclibc

This is needed by the fix for CVE-2022-21658 in the standard library.
2022-01-24 15:31:38 +00:00
Benjamin Lamowski df9df78281 add O_NOFOLLOW flag to uclibc
This is needed by the fix for CVE-2022-21658 in the standard library.
2022-01-24 15:43:47 +01:00
bors 3dd6150905 Auto merge of #2645 - Jakob-Naucke:bump-0.2.114, r=Amanieu
Update crate version to 0.2.114
2022-01-24 14:24:34 +00:00
Jakob Naucke b566c54f04
Update crate version to 0.2.114 2022-01-24 14:54:07 +01:00
bors 78e76aa33f Auto merge of #2644 - rtzoeller:dfly_cmsg_align_again, r=Amanieu
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).
2022-01-24 02:29:50 +00:00
bors 4d0347364e Auto merge of #2642 - tamird:mreqn-all-linux, r=Amanieu
Define ip_mreqn on all Linux platforms

Updates #1558.
2022-01-24 01:24:36 +00:00
Tamir Duberstein da84eefd71
Define ip_mreqn on all Linux platforms
Updates #1558.
2022-01-23 15:52:27 -05:00
Ryan Zoeller a894685dbe Fix _CMSG_ALIGN on DragonFly
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.
2022-01-23 03:19:04 -06:00
Ian Chamberlain 98ef7e73e3 Use c_longlong for time_t on horizon 2022-01-23 00:45:33 +01:00
Andrea Ciliberti cef3b81128 Fixed sockaddr definition 2022-01-23 00:45:33 +01:00
Andrea Ciliberti 63a2ff7028 Fixed conditional programming lint 2022-01-23 00:45:33 +01:00
Meziu 0674d9038d Fixed network implementations 2022-01-23 00:45:33 +01:00
Meziu 616d1ea09e Fixed struct/constants order 2022-01-23 00:45:33 +01:00
Meziu b1f04a69c2 ARMv6K Horizon OS support 2022-01-23 00:45:33 +01:00
bors 8bba79c467 Auto merge of #2640 - skrap:master, r=Amanieu
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.
2022-01-21 22:11:26 +00:00
bors 7600416f1c Auto merge of #2543 - asomers:fspacectl, r=Amanieu
Add fspacectl, new in FreeBSD 14
2022-01-21 20:47:54 +00:00
Jonah Petri bc9e590053 add CI for armv7-unknown-linux-uclibceabihf 2022-01-21 13:25:00 -05:00
Alan Somers be392861b6 Add fspacectl, new in FreeBSD 14 2022-01-20 18:49:54 -07:00
bors 72e41512de Auto merge of #2638 - devnexen:shm_create_largepage_fbsd, r=Amanieu
freebsd 13 non thp userspace fn.
2022-01-21 00:46:52 +00:00
Dan Gohman f7f06565f0 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.
2022-01-20 16:18:48 -08:00
bors 599fa5c8bf Auto merge of #2637 - asomers:no-kern-stacktop, r=Amanieu
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`
2022-01-20 23:43:24 +00:00