-
Notifications
You must be signed in to change notification settings - Fork 1.2k
musl: 64-bit time support #4463
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
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5383a4d
musl: riscv: fix public padding fields in `stat/stat64`
xbjfk a1c27ef
musl: Merge stat64 and stat with `stat`
xbjfk 08bd83c
musl: add musl_time64 feature
xbjfk cb722b4
musl: time64: adjust struct timespec definition
xbjfk dea3254
musl: time64: set link names for symbols
xbjfk dc62309
musl: time64: update struct sched_param
xbjfk 067f2c2
musl: convert inline timespecs to timespec
xbjfk 0334b72
musl: time64: change time_t type and structs
xbjfk 754b888
musl: time64: update {IPC,MSG,SEM}_STAT definitions
xbjfk 8673f86
semver: linux powerpc: split GNU-specific symbols into own file.
xbjfk 7447403
libc-test: add allowlist for positive s! marco configs
xbjfk 6b4f34e
libc-test: delete handle_s_macro_no_attrs
xbjfk b5153ba
Revert "test: Skip `input_event.time` on recent musl"
xbjfk 89b5220
Revert "test: musl: Skip time64-dependent API on new musl"
xbjfk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| KEYCTL_CAPABILITIES | ||
| KEYCTL_CAPS0_BIG_KEY | ||
| KEYCTL_CAPS0_CAPABILITIES | ||
| KEYCTL_CAPS0_DIFFIE_HELLMAN | ||
| KEYCTL_CAPS0_INVALIDATE | ||
| KEYCTL_CAPS0_MOVE | ||
| KEYCTL_CAPS0_PERSISTENT_KEYRINGS | ||
| KEYCTL_CAPS0_PUBLIC_KEY | ||
| KEYCTL_CAPS0_RESTRICT_KEYRING | ||
| KEYCTL_CAPS1_NS_KEYRING_NAME | ||
| KEYCTL_CAPS1_NS_KEY_TAG | ||
| KEYCTL_MOVE | ||
| PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP | ||
| PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP | ||
| PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP | ||
| sysctl |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| use crate::prelude::*; | ||
|
|
||
| cfg_if! { | ||
| if #[cfg(musl_v1_2_3)] { | ||
| s! { | ||
| struct __c_anon_sched_param__reserved2 { | ||
| __reserved1: crate::time_t, | ||
| __reserved2: c_long, | ||
| } | ||
|
|
||
| pub struct sched_param { | ||
| pub sched_priority: c_int, | ||
|
|
||
| __reserved1: Padding<c_int>, | ||
| #[cfg(musl32_time64)] | ||
| __reserved2: Padding<[c_long; 4]>, | ||
| #[cfg(not(musl32_time64))] | ||
| __reserved2: Padding<[__c_anon_sched_param__reserved2; 2]>, | ||
| __reserved3: Padding<c_int>, | ||
| } | ||
| } | ||
| } else { | ||
| s! { | ||
| pub struct sched_param { | ||
| pub sched_priority: c_int, | ||
|
|
||
| #[deprecated(since = "0.2.173", note = "This field has been removed upstream")] | ||
| pub sched_ss_low_priority: c_int, | ||
| #[deprecated(since = "0.2.173", note = "This field has been removed upstream")] | ||
| pub sched_ss_repl_period: crate::timespec, | ||
| #[deprecated(since = "0.2.173", note = "This field has been removed upstream")] | ||
| pub sched_ss_init_budget: crate::timespec, | ||
| #[deprecated(since = "0.2.173", note = "This field has been removed upstream")] | ||
| pub sched_ss_max_repl: c_int, | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
Comment on lines
+3
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This cfg isn't ever set on emscripten right? It just needs the old defs with |
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,4 +29,5 @@ pub(crate) mod sys { | |
| pub(crate) mod socket; | ||
| } | ||
|
|
||
| pub(crate) mod sched; | ||
| pub(crate) mod unistd; | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.