Skip to content

Conversation

xingxue-ibm
Copy link
Contributor

Description

This PR changes the type of the buflen argument of the getgrnam_r() routine from c_int to size_t to align with the POSIX specification.

POSIX:

int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result);

Sources

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

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.

Thanks!

@tgross35 tgross35 enabled auto-merge August 14, 2025 21:21
@tgross35 tgross35 added this pull request to the merge queue Aug 14, 2025
Merged via the queue into rust-lang:main with commit 8236b56 Aug 14, 2025
74 of 100 checks passed
@xingxue-ibm
Copy link
Contributor Author

@rustbot label +stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Aug 15, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 19, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 19, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 19, 2025
@tgross35 tgross35 mentioned this pull request Sep 19, 2025
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2025
(backport <#4656>)
(cherry picked from commit 8236b56)
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2025
(backport <#4656>)
(cherry picked from commit 8236b56)
@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 Sep 19, 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.

3 participants