Skip to content

make pidfd_info fields pub #4487

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 1 commit into from
Jun 16, 2025
Merged

make pidfd_info fields pub #4487

merged 1 commit into from
Jun 16, 2025

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
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-nominated This PR should be considered for cherry-pick to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants