Commit graph

5526 commits

Author SHA1 Message Date
bors dca3daecfa Auto merge of #2664 - rschulman:master, r=joshtriplett
Add 400-series syscalls to musl riscv64 definitions

This PR adds 19 missing syscalls to the riscv64 musl definitions. The missing calls were copied directly from the riscv64 GNU definitions. The missing definitions (in particular `SYS_clone3`) are preventing compiling `std` for `riscv64gc-unknown-linux-musl`.
2022-02-01 17:14:32 +00:00
Ross Schulman 7b3bc1de0c
Add 400-series syscalls to musl riscv64 definitions 2022-02-01 09:13:16 -05:00
bors f2592e73fb Auto merge of #2662 - michaelgrigoryan25:master, r=Amanieu
Removed Apache License appendix

Related issues: #2660; https://github.com/rust-lang/rust/pull/67734
2022-01-31 23:17:05 +00:00
bors 7a7138d087 Auto merge of #2663 - mkpowers:mkpowers/update-android-if-constants, r=Amanieu
Add IFF_LOWER_UP, IFF_DORMANT, IFF_ECHO constants to Android
2022-01-31 21:02:16 +00:00
Mackenzie Powers f6e0a37551 Add IFF_LOWER_UP, IFF_DORMANT, IFF_ECHO constants to Android 2022-01-31 09:29:32 -08:00
Michael Grigoryan 0aaa193103
Removed Apache License appendix 2022-01-31 18:17:33 +04:00
bors 2dc7cfe3f5 Auto merge of #2659 - tmandry:fix-freebsd-std, r=Amanieu
Gate PartialEq and Eq on freebsd objects behind extra_traits

This fixes the failure in https://github.com/rust-lang/rust/pull/93351#issuecomment-1024049582.

These derives were recently added in #2565. Other PartialEq/Eq derives in the project (and this file) are all behind the `extra_traits` gate.
2022-01-28 18:17:43 +00:00
Tyler Mandry e5f0e5fcfe Bump version to 0.2.116 2022-01-28 17:30:10 +00:00
Tyler Mandry f1f325edd7 Gate PartialEq and Eq on freebsd objects behind extra_traits 2022-01-28 17:26:02 +00:00
bors ba81130767 Auto merge of #2480 - Meziu:master, r=Amanieu
ARMv6K Horizon OS support

Added support for the Horizon OS Nintendo 3DS system `Newlib` declarations.

Edit: after some changes, networking is now stable with standardized API.
2022-01-28 10:02:10 +00:00
bors 9ed71fa716 Auto merge of #2656 - kraj:rv64-musl-defines, r=Amanieu
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-28 07:44:33 +00:00
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