Skip to content

[0.2] Backports #4595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Aug 11, 2025
Merged

[0.2] Backports #4595

merged 27 commits into from
Aug 11, 2025

Conversation

@rustbot
Copy link
Collaborator

rustbot commented Jul 29, 2025

Some changes occurred in OpenBSD module

cc @semarie

Some changes occurred in OpenBSD module

cc @semarie

Some changes occurred in the Android module

cc @maurer

@rustbot
Copy link
Collaborator

rustbot commented Jul 29, 2025

⚠️ Warning ⚠️

  • Pull requests are usually filed against the main branch for this repo, but this one is against libc-0.2. Please double check that you specified the right target!

@tgross35 tgross35 enabled auto-merge July 29, 2025 10:51
devnexen and others added 4 commits August 10, 2025 20:59
Enable this lint with the expectation that we will eventually be
upgrading editions. There are some exceptions needed, and
`unsafe_op_in_unsafe_fn` will take a while to go through.

(backport <rust-lang#4585>)
(cherry picked from commit 2fe8b17)
Resolve the `improper_ctypes` warning on l4re-uclibc that we are getting
in CI. The current version was added in e412497 ("Move
L4Re-specific code into separate module.") and doesn't seem to have been
intentional.

(backport <rust-lang#4584>)
(cherry picked from commit 95c1400)
@rustbot
Copy link
Collaborator

rustbot commented Aug 11, 2025

Some changes occurred in solarish module

cc @jclulow, @pfmooney

tgross35 and others added 2 commits August 10, 2025 21:12
Partial cherry pick of a541bf4 ("libc: remove uses of enum as per rust-lang#4419").

Co-authored-by: mbyx <mbyx.dev@gmail.com>
The enums used on Haiku are currently broken: they have no `repr`
attribute so Rust is treating them as a `u8` when they need to be
`c_int`. This is flagged by `improper_ctypes`, which only shows up now
that this lint got removed.

Since this is broken anyway, we may as well just switch to `c_enum!`.
This is a user-visible breaking change, but allowed as the target is
tier 3.

Partially cherry picked from commit a541bf4 ("libc: remove uses of
enum as per rust-lang#4419").

Co-authored-by: mbyx <mbyx.dev@gmail.com>
tgross35 and others added 7 commits August 10, 2025 21:47
Most of what this crate does is interact with C, so the lint should be
useful. It can be disabled on a case-by-case basis as needed.

There are a few fixes needed for enums, which will be going away anyway
(rust-lang#4419).

Additionally, switch the `bad_style` lint to the newer name
`nonstandard_style`.

(backport <rust-lang#4584>)
(cherry picked from commit 38bb46e)
(backport <rust-lang#4578>)
(cherry picked from commit 925eb0c)
Resolve an instance of `improper_ctypes`.
0-wiz-0 and others added 14 commits August 10, 2025 21:47
(backport <rust-lang#4608>)
(cherry picked from commit e634372)
(backport <rust-lang#4619>)
(cherry picked from commit a43bdc3)
RISCV32 is "time64-only" from the beginning on the kernel side.

Based on musl change [1]

[1] https://git.musl-libc.org/cgit/musl/commit/?id=4bbd7baea7c8538b3fb8e30f7b022a1eee071450

(backport <rust-lang#4612>)
(cherry picked from commit 458c5a0)
Version 1.2.5 of musl-libc added support for the statx system call[1].

[1]: https://musl.libc.org/releases.html

(backport <rust-lang#3976>)
(cherry picked from commit ef3c046)
Haiku implements various parts of the (non-POSIX) BSD API. This moves it to a
separate file, for easier future maintenance.

No functional change intended; the changes are synchronized with R1Beta5

(backport <rust-lang#4221>)
(cherry picked from commit f1091a7)
This includes:
 * sys/event.h: `kevent()`, `kqueue()`, data structure and constants
 * sys/iocomm.h: constants that are also defined for other platforms
 * stdlib.h: `mkstemps()` and `strtonum()`
 * sys/uov.h: `preadv()` and `pwritev()`
 * sys/wait.h: `wait4()`

(backport <rust-lang#4221>)
(cherry picked from commit 7fd1b1a)
For the upstream definition, see:

freebsd/freebsd-src@c9e9a0f

(backport <rust-lang#4552>)
(cherry picked from commit 985d95b)
<sys/ktls.h> is necessary in order to find the xktls_* structs.

See also:

freebsd/freebsd-src@c9e9a0f

(backport <rust-lang#4552>)
(cherry picked from commit 4147a8b)
Make it more obvious what this test is about.

(backport <rust-lang#4625>)
(cherry picked from commit fef089c)
Also start validating formatting in CI for files in `ci/`.

(backport <rust-lang#4630>)
(cherry picked from commit c0071cc)
@tgross35 tgross35 disabled auto-merge August 11, 2025 03:05
@tgross35 tgross35 enabled auto-merge August 11, 2025 03:05
@tgross35 tgross35 added this pull request to the merge queue Aug 11, 2025
Merged via the queue into rust-lang:libc-0.2 with commit 94a7f32 Aug 11, 2025
46 of 50 checks passed
@tgross35 tgross35 deleted the backport-anaheim branch August 11, 2025 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.