Skip to content

Conversation

tgross35 and others added 11 commits December 2, 2025 04:37
Move `pthread_*` API in `linux_like/linux.rs` to a module in `new` and
reexport via `glibc` and `musl`. Eventually other platforms will be
ported as well.

(backport <rust-lang#4833>)
(cherry picked from commit 04c5805)
These jobs almost always fail with a segfault so unfortunately aren't
very useful. There isn't anything we can do to fix them on the libc
side, given the issue comes from a kernel bug. The failing jobs have
been a source of contributor confusion, so remove them here.

Link: rust-lang#4740
Link: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285873

(backport <rust-lang#4838>)
(cherry picked from commit 7b1449a)
This is imperfect but should get things closer to what is available on
l4re's uclibc fork. Based on work by Marius Melzer [rust-lang#4479].

[rust-lang#4479]: rust-lang#4479

(backport <rust-lang#4836>)
(cherry picked from commit 34d8ce7)
We will eventually add `libpthread`, so accommodate for that.

(backport <rust-lang#4840>)
(cherry picked from commit 4e698ae)
@rustbot
Copy link
Collaborator

rustbot commented Dec 2, 2025

Some changes occurred in solarish module

cc @jclulow, @pfmooney

Some changes occurred in OpenBSD module

cc @semarie

Some changes occurred in the Android module

cc @maurer

@rustbot
Copy link
Collaborator

rustbot commented Dec 2, 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 force-pushed the backport-black-eyed-peas branch 2 times, most recently from 12394c7 to 0eca029 Compare December 2, 2025 10:11
tgross35 and others added 12 commits December 2, 2025 05:13
This sets up the basic structure but does not yet move all `pthread_*`
API.

(backport <rust-lang#4839>)
(cherry picked from commit ce5dc81)
It isn't worth keeping a separate rustfmt.toml only for ctest, so switch
to using the vertical formatting everywhere.

(backport <rust-lang#4842>)
(cherry picked from commit 04ab55d)
We need a bit more flexibility in the formatting, which would be
difficult to achieve with bash. Rewrite the style check to a python
script that will be easier to extend. This is also faster than using
inplace perl, an now prints a diff when semver files aren't sorted.

(backport <rust-lang#4842>)
(cherry picked from commit 9713fd1)
Accept a visibility so we are able to make some variants nonpublic. This
means that `pub` needs to be added on all variants we want to be
visible: it is more verbose, but matches how everything else works.

(backport <rust-lang#4841>)
(cherry picked from commit ba6357e)

[ Needed to drop changes to a lot of types that still use Rust `enum`s -
  Trevor ]
E.g. the following can now be formatted correctly:

    c_enum! {
        #[repr(c_uint)]
        pub enum #anon {
            pub PTHREAD_INTROSPECTION_THREAD_CREATE = 1,
            pub PTHREAD_INTROSPECTION_THREAD_START,
            pub PTHREAD_INTROSPECTION_THREAD_TERMINATE,
            pub PTHREAD_INTROSPECTION_THREAD_DESTROY,
        }
    }

(backport <rust-lang#4841>)
(cherry picked from commit d58c1f4)
(backport <rust-lang#4827>)
(cherry picked from commit eb871eb)
Like FreeBSD but unlike OpenBSD, NetBSD supports eventfd since version
10 (September 2021, see http://netbsd.org/changes/changes-10.0.html).

I don't know enough about NetBSD to know whether all systems running
10 can be expected to have eventfd, but it's probably fine. Our GitHub
actions CI only tests NetBSD 10.1.

Ref: https://man.netbsd.org/eventfd.2
Ref: https://github.com/NetBSD/src/blob/d04b0c735abc997743bb3faa74464524cbe7becd/sys/sys/eventfd.h

(backport <rust-lang#4830>)
(cherry picked from commit 3e82c57)
This is defined in termios-c_iflag.h (or termbits.h) and it's shared
across all the linux archs, even though it's not POSIX

(backport <rust-lang#4846>)
(cherry picked from commit fb8c00e)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

(backport <rust-lang#4848>)
(cherry picked from commit 71e04e1)
(backport <rust-lang#4850>)
(cherry picked from commit b841a78)
@tgross35 tgross35 force-pushed the backport-black-eyed-peas branch from 0eca029 to 589ecc1 Compare December 2, 2025 10:13
Fixes: 8ff5e7e ("NetBSD: Increase the size of sockaddr_dl.sdl_data from 12 to 24")

(backport <rust-lang#4855>)
(cherry picked from commit 4684598)
@tgross35 tgross35 enabled auto-merge December 2, 2025 10:35
@tgross35 tgross35 added this pull request to the merge queue Dec 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 2, 2025
@tgross35 tgross35 added this pull request to the merge queue Dec 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 2, 2025
@tgross35 tgross35 added this pull request to the merge queue Dec 2, 2025
Merged via the queue into rust-lang:libc-0.2 with commit bc25dfc Dec 2, 2025
49 checks passed
@tgross35 tgross35 deleted the backport-black-eyed-peas branch December 2, 2025 11:48
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.

7 participants