Skip to content

Conversation

neuschaefer
Copy link
Contributor

Description

This PR fixes two minor incompatibilities that I found by running libc-test on FreeBSD 15-CURRENT on ppc64 (big endian).

Sources

freebsd/freebsd-src@c9e9a0f

Checklist

  • Relevant tests in libc-test/semver have been updated (no symbols changed)
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@tgross35
Copy link
Contributor

This lgtm, @asomers could you also review?

@asomers
Copy link
Contributor

asomers commented Jul 24, 2025

Check with @kostikbel . I think he may have chosen "gennum" instead of "gen" for a good reason.

@neuschaefer
Copy link
Contributor Author

Check with @kostikbel . I think he may have chosen "gennum" instead of "gen" for a good reason.

I'd be interested in hearing the reason (and preferably having it documented in freebsd/mod.rs) for deviating from the upstream field name.

@kostikbel
Copy link
Contributor

Check with @kostikbel . I think he may have chosen "gennum" instead of "gen" for a good reason.

I'd be interested in hearing the reason (and preferably having it documented in freebsd/mod.rs) for deviating from the upstream field name.

Because gen is the reserved keyword in rust since 2024 edition?

@tgross35 tgross35 added this pull request to the merge queue Aug 10, 2025
Merged via the queue into rust-lang:main with commit e2404b4 Aug 10, 2025
48 of 52 checks passed
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
For the upstream definition, see:

freebsd/freebsd-src@c9e9a0f

(backport <rust-lang#4552>)
(cherry picked from commit 985d95b)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
<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)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
@tgross35 tgross35 mentioned this pull request Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
For the upstream definition, see:

freebsd/freebsd-src@c9e9a0f

(backport <rust-lang#4552>)
(cherry picked from commit 985d95b)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
<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)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Aug 11, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2025
For the upstream definition, see:

freebsd/freebsd-src@c9e9a0f

(backport <#4552>)
(cherry picked from commit 985d95b)
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2025
(backport <#4552>)
(cherry picked from commit 99e3373)
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2025
<sys/ktls.h> is necessary in order to find the xktls_* structs.

See also:

freebsd/freebsd-src@c9e9a0f

(backport <#4552>)
(cherry picked from commit 4147a8b)
github-merge-queue bot pushed a commit that referenced this pull request Aug 11, 2025
Upstream commit:

freebsd/freebsd-src@7212b37

(backport <#4552>)
(cherry picked from commit e2404b4)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-unix stable-applied This PR has been cherry-picked to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants