Commit graph

5120 commits

Author SHA1 Message Date
bors 59e0b57a5c Auto merge of #2512 - devnexen:netbsd_eapi_upd, r=Amanieu
netbsd libutil update
2021-11-05 03:43:31 +00:00
bors 4634afdb37 Auto merge of #2511 - niluxv:freebsd_procctl_data_constants, r=JohnTitor
Add `procctl` data constants on freebsd

The constants to be passed in the `data` argument of `procctl` on freebsd.

Source for the constants: <https://github.com/freebsd/freebsd-src/blob/main/sys/sys/procctl.h>.
2021-11-05 02:41:47 +00:00
bors 48275314c2 Auto merge of #2510 - jessicah:haiku-ifaddrs, r=Amanieu
haiku: add missing ifaddrs definitions
2021-11-04 18:42:28 +00:00
niluxv e4bc20128b Ignore missing constants on old FreeBSDs 2021-11-04 19:09:12 +01:00
bors 50634b9a6d Auto merge of #2506 - hhyhhy:master, r=Amanieu
add SO_*_FILTER for Android

Those constants are used by https://github.com/rust-lang/socket2

From: https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/asm-generic/socket.h

See also: https://www.kernel.org/doc/html/v5.12/networking/filter.html
2021-11-04 17:05:02 +00:00
David Carlier 6ff2d74cfb netbsd libutil update 2021-11-04 17:04:44 +00:00
bors 0e32674d0c Auto merge of #2505 - rtzoeller:bsd_getsetresuid, r=Amanieu
Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD

The functions have the same signatures as on Linux.
2021-11-04 16:01:03 +00:00
bors 3bde54ffef Auto merge of #2272 - 12101111:musl-bundle, r=Amanieu
Use link modifiers -bundle on musl and wasi target

Implement https://github.com/rust-lang/rust/issues/72274

Fix:

- https://github.com/rust-lang/wg-cargo-std-aware/issues/66
- https://github.com/rust-lang/rust/issues/89626

TODO:

- [x] Implement rustbuild side change: https://github.com/rust-lang/rust/pull/90527
2021-11-04 14:53:59 +00:00
bors 072d6de366 Auto merge of #2499 - coolreader18:wasi-clock_gettime, r=Amanieu
Enable clock_gettime on wasi

I think this mostly addresses the issues that were brought up in #1307 regarding clock ids; I made clockid_t a wrapper struct because it needs to be Send and Sync to be used in a constant, and I figured it was opaque in wasi-libc anyway. Instead of static ZSTs, I just made them `u8`s, since I figured it's very unlikely that wasi-libc would change them from `struct __clockid { __wasi_clockid_t id; }` to `struct __clockid {}`, and it'll always be valid to treat a static as a `/(u8)+/`. One thing I was wondering about, should I add a cfg check to `build.rs` checking for `core::ptr::addr_of`? Since I *think*(?) using that would fix any issue of __clockid becoming a "zst" struct in the future.
2021-11-04 13:47:36 +00:00
niluxv 14c82ff7bb Add procctl data constants on freebsd 2021-11-04 14:38:37 +01:00
Jessica Hamilton e89701dfa6 haiku: add missing ifaddrs definitions 2021-11-04 12:55:49 +13:00
hhy 0001ad37b5 add SO_*_FILTER for Android 2021-11-03 21:01:08 +08:00
12101111 fd331f65f2
Use link modifiers -bundle on musl and wasi target 2021-11-03 20:30:23 +08:00
bors d5401c96d3 Auto merge of #2495 - devnexen:netbsd_ai_constants, r=JohnTitor
netbsd/openbsd add AI_* constants
2021-11-03 09:33:59 +00:00
bors 8f79f948db Auto merge of #2504 - JohnTitor:sparc-testing, r=JohnTitor
sparc64: Update debian image to 11 (2021-10-20) to fix segfault on CI

Fixes #2503
r? `@ghost`
2021-11-03 07:26:07 +00:00
Yuki Okushi 3e65f555d7
sparc64: Update debian image to 11 (2021-10-20) to fix segfault on CI
I'm not sure why, but this certainly fixes the segfault.
2021-11-03 16:24:14 +09:00
Ryan Zoeller 804f4bfd4b Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD 2021-11-02 22:17:48 -05:00
bors 89d0bd51d9 Auto merge of #2501 - devnexen:cmsg_test_fix_sparc64, r=JohnTitor
fix cmsg test proposal
2021-11-03 00:28:46 +00:00
bors fa6f26beaf Auto merge of #2496 - DimitrisJim:macos_settime, r=JohnTitor
Declare clock_settime for macOS.

Looking at [time.h for macOS 11.5](https://opensource.apple.com/source/Libc/Libc-1439.141.1/include/time.h.auto.html) `clock_settime` still doesn't seem to be exported for iOS. Declaring it only for macOS (using #2208 as an example of how).
2021-11-02 23:31:40 +00:00
bors 5e7cda08b8 Auto merge of #2489 - rtzoeller:dfly_devname_r, r=JohnTitor
DragonFly's devname_r takes a size_t len parameter

#2435 introduced this function on DragonFly BSD with FreeBSD's signature, which is incorrect. Deprecate it, to be fixed in a subsequent release.

c163a4d7ee/include/stdlib.h (L285)
2021-11-02 22:31:52 +00:00
bors daea21338b Auto merge of #2503 - JohnTitor:skip-sparc, r=JohnTitor
Skip CI on `sparc64-unknown-linux-gnu` for now

cc #2502
r? `@ghost`
2021-11-02 21:38:31 +00:00
Yuki Okushi 6248bf60c3
Skip CI on sparc64-unknown-linux-gnu for now 2021-11-03 06:37:20 +09:00
David Carlier 387a67a04b fix cmsg test proposal 2021-11-02 19:09:58 +00:00
Ryan Zoeller 1501cadb15 DragonFly's devname_r takes a size_t len parameter 2021-11-02 13:04:00 -05:00
Noa cd57a938cf
Use ptr::addr_of when available 2021-11-01 19:58:12 -05:00
Noa bbbb5d8b0d
Enable clock_gettime on wasi 2021-11-01 19:38:51 -05:00
bors fc22d2c7d0 Auto merge of #2497 - devnexen:solarish_sendfilev, r=Amanieu
solarish sendfilev fn flavor
2021-11-01 00:04:52 +00:00
bors eae7b489ef Auto merge of #2494 - joshtriplett:one-oh-six, r=Amanieu
Release 0.2.106 to incorporate build fix for #2484
2021-10-31 19:33:01 +00:00
dc d03ea10837 solarish sendfilev fn flavor 2021-10-31 19:01:54 +00:00
jfh 7a270820da Declare clock_settime for macOS. 2021-10-31 15:11:19 +02:00
David Carlier 319aed005b netbsd/openbsd add AI_* constants 2021-10-31 08:52:37 +00:00
Josh Triplett 3d54432144 Release 0.2.106 to incorporate build fix for #2484 2021-10-31 01:32:28 +02:00
bors 09fdbccf41 Auto merge of #2493 - devnexen:fbsd_lwpinfo, r=Amanieu
freebsd add ptrace_lwpinfo struct
2021-10-30 22:04:28 +00:00
bors e69f0c1940 Auto merge of #2492 - devnexen:netbsd_lwpinfo, r=JohnTitor
netbsd ptrace sig/lwpinfo additions
2021-10-30 21:04:05 +00:00
bors 9ae849a665 Auto merge of #2491 - devnexen:solarish_sendfile, r=JohnTitor
sendfile fn for solarish systems
2021-10-30 20:03:58 +00:00
bors a230d2e272 Auto merge of #2488 - rtzoeller:dfly_FIODNAME, r=JohnTitor
Deprecate FIODGNAME on DragonFly, add FIODNAME

`FIODGNAME` is FreeBSD specific, but `FIODNAME` exists on DragonFly which appears to provide similar functionality.

[FreeBSD definition](dc6dd769de/sys/sys/filio.h (L60))
[DragonFly definition](20f6ddd0df/sys/sys/filio.h (L59))

`FIODGNAME` is appearing in the `libc-test` failures on DragonFly. Deprecate it, to be removed in a subsequent release.
2021-10-30 18:40:51 +00:00
bors 6cb6f69ae6 Auto merge of #2490 - devnexen:macos_build_fix, r=JohnTitor
malloc_zone darwin build fix.

closes #2484
2021-10-30 17:36:16 +00:00
bors abbfad2683 Auto merge of #2483 - sunfishcode:sunfishcode/linux-pollrdhup, r=JohnTitor
Move Linux's `POLLRDHUP` into `linux_like` and fix its type.

This was originally posted as #2390, but since it was a breaking change,
that PR instead just added `deprecated` warnings. There haven't been any
concerns for a while, so this is now a PR to do the change actually, per
the [breaking-change-policy].

This fixes two errors in #2247.

 - It moves the definitions of `POLLRDHUP` out of `linux_like/linux`
   and into `linux_like`, so that they're available on Android as well.

 - It changes the type from `c_int` to `c_short` to match the other
   `POLL*` flags.

[breaking-change-policy]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md#breaking-change-policy
2021-10-30 16:33:00 +00:00
David Carlier ad6e1bef9e freebsd add ptrace_lwpinfo struct 2021-10-30 15:27:52 +01:00
David Carlier 802ad47d4e netbsd ptrace sig/lwpinfo additions 2021-10-30 14:51:18 +01:00
dc b86b7dcbfb sendfile fn for solarish systems 2021-10-30 11:59:40 +01:00
David Carlier 72c8a305c1 malloc_zone darwin build fix.
closes #2484
2021-10-30 11:36:05 +01:00
Ryan Zoeller 4123992704 Deprecate FIODGNAME on DragonFly, add FIODNAME 2021-10-30 00:25:43 -05:00
bors 90ebf43bb6 Auto merge of #2485 - DimitrisJim:freebsd_ai_consts, r=Amanieu
Add AI_* constants to freebdslike platforms.

For dragonfly, some of the constants (`AI_MASK`, `AI_V4MAPPED_CFG` and `AI_DEFAULT`) are behind a `__BSD_VISIBLE` define. What's the best way to handle these?

Header files for [dragonfly](https://git.quantumachine.net/mirror/DragonFlyBSD/src/branch/master/include/netdb.h) and [freebsd](https://cgit.freebsd.org/src/tree/include/netdb.h).

For now, I've just added all common names to `freebdslike`.
2021-10-28 00:11:47 +00:00
bors 5fe832a8f5 Auto merge of #2486 - devnexen:strtonum_big_sur, r=Amanieu
darwin add strtonum from Big Sur
2021-10-27 23:10:37 +00:00
David CARLIER c8f19634f1 darwin add strtonum from Big Sur 2021-10-27 20:22:03 +01:00
jfh a5da2c2816 Add AI_* constants to freebdslike platforms. 2021-10-27 18:40:33 +03:00
Dan Gohman 1f657fc1bc Move Linux's POLLRDHUP into linux_like and fix its type.
This was originally posted as #2390, but since it was a breaking change,
that PR instead just added `deprecated` warnings. There haven't been any
concerns for a while, so this is now a PR to do the change actually, per
the [breaking-change-policy].

This fixes two errors in #2247.

 - It moves the definitions of `POLLRDHUP` out of `linux_like/linux`
   and into `linux_like`, so that they're available on Android as well.

 - It changes the type from `c_int` to `c_short` to match the other
   `POLL*` flags.

[breaking-change-policy]: https://github.com/rust-lang/libc/blob/master/CONTRIBUTING.md#breaking-change-policy
2021-10-27 03:58:29 -07:00
bors 89d8c5e7d0 Auto merge of #2482 - devnexen:macos_big_sur_univ_posix_spawnattr_update, r=Amanieu
darwin add posix_spawn specific extensions for universal binaries

purpose.
2021-10-26 22:23:34 +00:00
David CARLIER 799f3dfd8b darwin add posix_spawn specific extensions for universal binaries
purpose.
2021-10-26 21:02:13 +01:00