Skip to content

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

Draft
ChihweiLHBird wants to merge 2 commits intorust-lang:mainfrom
ChihweiLHBird:zhiwei/relibc-constants-update-2
Draft

Fix locale values and add RTLD_NOLOAD, and some TCP constants for Redox OS#5025
ChihweiLHBird wants to merge 2 commits intorust-lang:mainfrom
ChihweiLHBird:zhiwei/relibc-constants-update-2

Conversation

@ChihweiLHBird
Copy link
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

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant