Commit graph

5609 commits

Author SHA1 Message Date
s1341 775936e52d Add GETREGS/SETREGS for android 2022-04-11 11:33:49 +03:00
s1341 ac2785e150 Add extra traits for user_fpregs_struct 2022-04-11 11:33:29 +03:00
s1341 fd6475642c Add android x86_64 user struct 2022-04-11 10:58:42 +03:00
bors a0e4f9df3f Auto merge of #2745 - vityafx:add-sched-constants-for-openbsd, r=Amanieu
Add SCHED constants for OpenBSD.

The constants are defined for improving the user experience when calling
the libc functions related to scheduling policies. Also helps with
unifiying the code as all these constants are already defined for other
operating systems.
2022-04-10 22:03:39 +00:00
bors c25369946c Auto merge of #2744 - vityafx:add-pthread-functions-to-freebsd, r=Amanieu
Add pthread_set/get schedparam functions to FreeBSD.

FreeBSD has these functions and this provides an interface to use them.

In particular, the [`thread-priority`](https://github.com/vityafx/thread-priority/runs/5881232298) crate can't be built without those.
2022-04-10 20:43:22 +00:00
bors 5987128633 Auto merge of #2742 - petrochenkov:stabundle, r=Amanieu
Remove use of `feature(static_nobundle)`

It's used in "rustc-dep-of-std" mode and prevents removal of this feature from rustc.

(No need to publish a new libc version right now, the rustc PR is still waiting on some other work being finished.)
2022-04-10 19:41:37 +00:00
bors 6e2de912d4 Auto merge of #2740 - junhochoi:ip_dontfrag_freebsdlike, r=Amanieu
Add IP_DONTFRAG and IPV6_DONTFRAG for FreeBSD-like

FreeBSD: add IP_DONTFRAG
FreeBSD, DragonFlyBSD: add IPV6_DONTFRAG
2022-04-10 18:37:52 +00:00
bors c971d659ff Auto merge of #2747 - Amanieu:disable_semver, r=Amanieu
Disable broken CI jobs

These are temporarily removed until someone comes to fix them.

The semver jobs have been broken for over a year now, but are ignored by bors. Now we just disable them completely since they cause confusion when reading the build logs.

The uclibc targets were recently broken by https://github.com/rust-lang/rust/pull/95688. They are missing a `si_addr()` function on `struct siginfo`.
2022-04-10 13:11:36 +00:00
Amanieu d'Antras 23a301d64b Remove broken uclibc CI targets 2022-04-10 14:11:16 +01:00
Victor Polevoy cdba825048
Add SCHED constants for OpenBSD.
The constants are defined for improving the user experience when calling
the libc functions related to scheduling policies. Also helps with
unifiying the code as all these constants are already defined for other
operating systems.
2022-04-09 21:53:47 +02:00
Amanieu d'Antras a544f6def1 Disable broken semver CI jobs 2022-04-09 19:55:18 +01:00
Victor Polevoy 1d5136a6bb
Add pthread_set/get schedparam functions to FreeBSD.
FreeBSD has these functions and this provides an interface to use them.
2022-04-09 18:23:35 +02:00
Vadim Petrochenkov 7683ea2832 Remove use of feature(static_nobundle) 2022-04-08 19:02:18 +03:00
Junho Choi 9d17b31dfe Add IP_DONTFRAG and IPV6_DONTFRAG for FreeBSD-like
FreeBSD: add IP_DONTFRAG
FreeBSD, DragonFlyBSD: add IPV6_DONTFRAG
2022-04-05 16:29:38 -07:00
bors 53f78cdcd4 Auto merge of #2739 - Gankra:release, r=Amanieu
0.2.122 Release
2022-04-05 23:11:07 +00:00
Aria Beingessner 658e7ee248 0.2.122 Release 2022-04-05 15:27:59 -04:00
bors ce7fd91d8d Auto merge of #2738 - Itus-Shield:master, r=Amanieu
mips64: add missing symbols O_LARGEFILE

Add O_LARGEFILE define to src/unix/linux_like/linux/musl/b64/mips64.rs
Signed-off-by: Donald Hoskins <grommish@gmail.com>
2022-04-05 14:42:55 +00:00
Donald Hoskins 0acce7277d mips64: add missing symbols
Add O_LARGEFILE define to src/unix/linux_like/linux/musl/b64/mips64.rs
Signed-off-by: Donald Hoskins <grommish@gmail.com>
2022-04-04 03:16:44 -04:00
bors 962e262e2d Auto merge of #2737 - devnexen:pr_set_vma_linux, r=Amanieu
Adds to PR_SET_VMA/PR_SET_VMA_ANON_NAME to Linux.
2022-04-03 00:17:09 +00:00
bors 02bdb0a39f Auto merge of #2733 - vityafx:add-pthread-functions-to-bsd, r=Amanieu
Expose more thread bindings for BSD-like OSes.

Fixes https://github.com/rust-lang/libc/issues/2721
2022-04-02 23:14:55 +00:00
David Carlier 2798840ee3 Adds to PR_SET_VMA/PR_SET_VMA_ANON_NAME to Linux. 2022-04-02 18:24:44 +01:00
Victor Polevoy 576f86d26f
Expose more thread bindings for NetBSD-like OSes. 2022-04-01 17:21:23 +02:00
bors f59a970384 Auto merge of #2736 - devnexen:obsd_kve_flags_followup, r=Amanieu
following up on openbsd's kinfo_vmentry flags
2022-04-01 02:19:47 +00:00
David Carlier 5fbf1bd7c7 following up on openbsd's kinfo_vmentry flags 2022-03-31 18:15:50 +01:00
bors 4297ad14bf Auto merge of #2734 - devnexen:pthread_spin_haiku, r=Amanieu
haiku add pthread spinlock api
2022-03-31 11:56:18 +00:00
bors a25c8532ab Auto merge of #2735 - devnexen:openbsd__kve_flags, r=Amanieu
openbsd kinfo_vmentry protection flags
2022-03-31 10:50:09 +00:00
David Carlier 587230ad49 openbsd kinfo_vmentry protection flags 2022-03-30 21:55:48 +01:00
David Carlier ed0b1b93b6 haiku add pthread spinlock api 2022-03-30 18:05:23 +00:00
bors 9d1d40a966 Auto merge of #2732 - est31:master, r=Amanieu
Two improvements of the latest i128 numbers change

Two improvements of #2719:

* First, a typo/grammar fix
* Second, a fix to avoid usage of the anti pattern of `==` inside an `assert` macro. Since a few releases, `assert` is usable inside `const` expressions, but for the purpose of `==`, superior alternatives exist that also work at compile time but print the two values at a mismatch. `assert_eq` is not yet usable in const contexts due to formatting.
2022-03-27 15:54:34 +00:00
est31 e1d9927d53 Use static_assert_eq macro
This macro bases on the static_assert_size macro from the rust compiler.
Its advantage is greater compatibility with older rust versions as well
as better error messages on a mismatch, as both numbers are printed.
The assert macro does not print the mismatching numbers as it only gets
the bool from the == comparison.
2022-03-24 16:02:25 +01:00
est31 6a52bb8cdf Typo fix 2022-03-24 11:47:21 +01:00
bors f00ea00576 Auto merge of #2719 - Gankra:fpsimd, r=Gankra
Create optionally-available __int128 typedefs and use them for ARM64 definitions.

Potentially fixes #2524, see the comments in the patch for details.
2022-03-23 23:02:28 +00:00
Aria Beingessner adfa38507c Create optionally-available __int128 typedefs and use them for ARM64 definitions.
This adds the following types to fixed_width_ints behind appropriate platform cfgs:

* __int128
* __int128_t
* __uint128
* __uint128_t

and user_fpsimd_struct to arm64 android and linux.
2022-03-23 18:21:00 -04:00
bors c8f31c96bb Auto merge of #2730 - devnexen:haiku_find_dir_upd, r=Amanieu
haiku finddirectory api update
2022-03-21 21:46:51 +00:00
David Carlier c9545d0efc haiku finddirectory api update 2022-03-20 10:37:09 +00:00
bors a9176caa19 Auto merge of #2729 - redox-os:0.2.121, r=Amanieu
Bump version to 0.2.121

This will release the Redox OS fixes in #2727  and #2728
2022-03-18 19:07:55 +00:00
bors fe5e6cc5b9 Auto merge of #2726 - devnexen:solarish_general_build_fix_for_rustc, r=Amanieu
fixing illumos build for couple of structs
2022-03-18 17:58:57 +00:00
Jeremy Soller 9ab83aeda9
Bump version to 0.2.121 2022-03-18 11:17:33 -06:00
bors 179242ec7b Auto merge of #2727 - redox-os:redox-0.2.120, r=Amanieu
redox: add siginfo_t and rename sa_handler to sa_sigaction

This improves support for crates like signal_hook_registry
2022-03-18 15:59:51 +00:00
bors 3beb97c01c Auto merge of #2728 - redox-os:redox-stable, r=Amanieu
redox: fix compilation on stable

These features are no longer required by default on Redox
2022-03-18 14:57:15 +00:00
bors f0f4b68990 Auto merge of #2717 - vladimir-ea:watchos, r=Amanieu
Add support for Apple WatchOS

Hi, I am hoping to add Apple WatchOS compile targets and these are prerequisite changes.

Many thanks!
Vlad.
2022-03-17 21:56:39 +00:00
Jeremy Soller 5d69358d6f
redox: fix compilation on stable 2022-03-17 13:06:27 -06:00
Jeremy Soller 20b7e44baa
redox: add siginfo_t and rename sa_handler to sa_sigaction 2022-03-17 12:41:18 -06:00
Vladimir Michael Eatwell 68c988ff64 Use target_pointer_width attribute 2022-03-17 16:19:21 +00:00
David Carlier 8642e84b9b fixing illumos build for couple of structs 2022-03-15 18:58:59 +00:00
bors ea3ab53234 Auto merge of #2725 - Meziu:master, r=Amanieu
Horizon OS Nintendo 3DS - Fixed size of sockaddr_in

The original API for the platform included these zeroed bytes at the end of the `sockaddr_in` struct, but the socket address calls (like `getsockname`) only write 8 bytes inside `sockaddr_storage`, making checks like the one in 95561b336c/library/std/src/sys_common/net.rs (L109) faulty.

Since `sockaddr_in` is a struct *not* used in internal functionality, it shouldn't be a problem to just get rid of them.
2022-03-15 10:22:53 +00:00
Andrea Ciliberti 8c60c9a95f Fixed size of sockaddr_in 2022-03-15 08:03:35 +01:00
bors f05cd2a191 Auto merge of #2723 - solid-rs:libc-02120, r=Amanieu
Bump version to 0.2.120

I'd like a new release because an upcoming PR to `rust-lang/rust` requires the merged PR: #2720
2022-03-14 11:16:57 +00:00
bors 1a311288a8 Auto merge of #2714 - AzureMarker:horizon-getrandom-and-fixes, r=Amanieu
Horizon (Nintendo 3DS) getrandom function and fixes

This PR adds `getrandom`, conforming to the [Linux spec](https://man7.org/linux/man-pages/man2/getrandom.2.html), to the `horizon` OS (Nintendo 3DS).

The 3DS doesn't have a full libc implementation, and its randomness API is pretty complicated: https://github.com/rust-random/getrandom/pull/248. For this reason (see the linked PR for more details), the randomness implementation is abstracted by using the Linux `getrandom` interface.

This PR also fixes some types on the horizon platform. See the commits and diff.

cc: `@ian-h-chamberlain` `@Meziu`
2022-03-14 10:08:37 +00:00
Tomoaki Kawada 4ba9d448db Bump version to 0.2.120 2022-03-14 10:34:53 +09:00