Skip to content

Conversation

the8472
Copy link
Member

@the8472 the8472 commented Jun 14, 2025

Description

This marks the fields of pidfd_info pub.
This seems to have been an oversight, most of the other fields in module are also pub. I also mark it as non_exhaustive since the struct is extensible, new fields have been added recently.

Sources

https://github.com/torvalds/linux/blob/19272b37aa4f83ca52bdf9c16d5d81bdd1354494/include/uapi/linux/pidfd.h#L109-L110

Checklist

  • Relevant tests in libc-test/semver have been updated
  • 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

@rustbot label +stable-nominated

@rustbot rustbot added O-linux O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jun 14, 2025
@the8472
Copy link
Member Author

the8472 commented Jun 14, 2025

Considering that this is also hitting freebsd I think those failures are unrelated.

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, CI needs #4489

the struct appers to be extensible, so also mark it as non_exhaustive
@tgross35 tgross35 enabled auto-merge June 15, 2025 23:47
@tgross35 tgross35 added this pull request to the merge queue Jun 16, 2025
Merged via the queue into main with commit f38f30c Jun 16, 2025
49 of 51 checks passed
@the8472 the8472 deleted the pidfd-info-pub branch June 16, 2025 08:50
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jun 17, 2025
the struct appers to be extensible, so also mark it as non_exhaustive

(backport <rust-lang#4487>)
(cherry picked from commit 4dc50eb)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jun 17, 2025
the struct appers to be extensible, so also mark it as non_exhaustive

(backport <rust-lang#4487>)
(cherry picked from commit 4dc50eb)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jun 17, 2025
the struct appers to be extensible, so also mark it as non_exhaustive

(backport <rust-lang#4487>)
(cherry picked from commit 4dc50eb)
DorianNiemiecSVRJS pushed a commit to DorianNiemiecSVRJS/rust-libc that referenced this pull request Jun 21, 2025
the struct appers to be extensible, so also mark it as non_exhaustive

(backport <rust-lang#4487>)
(cherry picked from commit 4dc50eb)
@tgross35 tgross35 mentioned this pull request Jul 29, 2025
@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 Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux O-unix S-waiting-on-review 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.

3 participants