Fix constants of RISC-V32 musl#4335
Merged
tgross35 merged 4 commits intorust-lang:mainfrom Mar 22, 2025
Merged
Conversation
Collaborator
Contributor
|
Has it always been this way, or did this change with musl 1.2's change to 64-bit |
Contributor
Author
|
musl land the support of riscv32 in 1.2.5 |
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Apr 3, 2025
(backport <rust-lang#4335>) (cherry picked from commit 60b8b39)
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Apr 3, 2025
(backport <rust-lang#4335>) (cherry picked from commit 9f7b63f)
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Apr 3, 2025
(backport <rust-lang#4335>) (cherry picked from commit 5c778ef)
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Apr 3, 2025
(backport <rust-lang#4335>) (cherry picked from commit 60a445c)
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix #4331
RISC-V 32 don't define
__ARCH_WANT_NEW_STATand__ARCH_WANT_TIME32_SYSCALLS, and it only has time64 syscall.Sources
https://github.com/torvalds/linux/blob/88d324e69ea9f3ae1c1905ea75d717c08bdb8e15/include/uapi/asm-generic/unistd.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/include/dlfcn.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/arch/generic/bits/fcntl.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/arch/riscv32/bits/signal.h#L77
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
The test is broken
Wait #4283 for fix of test