Skip to content

Fix locale values and add RTLD_NOLOAD, and some TCP constants for Redox OS#5025

Merged
tgross35 merged 1 commit intorust-lang:mainfrom
ChihweiLHBird:zhiwei/relibc-constants-update-2
Apr 1, 2026
Merged

Fix locale values and add RTLD_NOLOAD, and some TCP constants for Redox OS#5025
tgross35 merged 1 commit intorust-lang:mainfrom
ChihweiLHBird:zhiwei/relibc-constants-update-2

Conversation

@ChihweiLHBird
Copy link
Copy Markdown
Contributor

@ChihweiLHBird ChihweiLHBird commented Mar 21, 2026

Description

Summary

  • Fix all 7 LC_* locale constants, original values were copied from Linux, but Redox's relibc uses a different numbering (LC_ALL=6 instead of 0)
  • Add RTLD_NOLOAD from dlfcn.h
  • Add TCP_MAXSEG, TCP_KEEPINTVL, TCP_KEEPCNT from netinet/tcp.h

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

@ChihweiLHBird ChihweiLHBird marked this pull request as ready for review March 28, 2026 08:53
Copilot AI review requested due to automatic review settings March 28, 2026 08:53
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This comment was marked as spam.

@JohnTitor
Copy link
Copy Markdown
Member

The changes look good, could squash commits into one? Also, we don't use copilot review in this repo, please refrain using it.

@ChihweiLHBird
Copy link
Copy Markdown
Contributor Author

ChihweiLHBird commented Mar 29, 2026

Hi @JohnTitor, GitHub automatically enabled Copilot review without prior confirmation from me for all my PRs... I just turned it off, sorry about that.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
@ChihweiLHBird ChihweiLHBird force-pushed the zhiwei/relibc-constants-update-2 branch from 48a97b2 to 70051dc Compare March 29, 2026 18:48
@ChihweiLHBird
Copy link
Copy Markdown
Contributor Author

All commits are combined now. Thanks for the review!

Copy link
Copy Markdown
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.

@tgross35 tgross35 added this pull request to the merge queue Apr 1, 2026
Merged via the queue into rust-lang:main with commit 505ad34 Apr 1, 2026
51 checks passed
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Apr 1, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Apr 1, 2026
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>

(backport <rust-lang#5025>)
(cherry picked from commit 505ad34)
@tgross35 tgross35 mentioned this pull request Apr 1, 2026
github-merge-queue bot pushed a commit that referenced this pull request Apr 1, 2026
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>

(backport <#5025>)
(cherry picked from commit 505ad34)
@ChihweiLHBird ChihweiLHBird deleted the zhiwei/relibc-constants-update-2 branch April 1, 2026 11:10
@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 Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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