Skip to content

redox: clock_settime, pause - #5363

Open
joshuamegnauth54 wants to merge 1 commit into
rust-lang:mainfrom
joshuamegnauth54:redox-misc-01
Open

redox: clock_settime, pause#5363
joshuamegnauth54 wants to merge 1 commit into
rust-lang:mainfrom
joshuamegnauth54:redox-misc-01

Conversation

@joshuamegnauth54

@joshuamegnauth54 joshuamegnauth54 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Related: bytecodealliance/rustix#1638

Sources:

Description

I unmasked clock_settime and pause on Redox as both have been supported for a while.

Checklist

  • Relevant tests in libc-test/semver have been updated
  • Commit messages permalink to headers for added or changed API
  • Placeholder or unstable values like *LAST or *MAX have the standard
    doc comment
  • Tested locally (cargo test -p libc-test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot label +stable-nominated

@rustbot rustbot added O-redox O-unix stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Aug 3, 2026
@tgross35

Copy link
Copy Markdown
Contributor

Looks reasonable enough, any reason this is a draft?

@joshuamegnauth54

Copy link
Copy Markdown
Contributor Author

Hi again! And no - there isn't anything wrong with the PR itself, but I assume Jeremy still has to take a look so I set it as a draft until then.

@joshuamegnauth54
joshuamegnauth54 marked this pull request as ready for review August 11, 2026 19:46

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this should be changed but LGTM. @jackpot51 if you'd like to review as well.

Also: if you happen to have any redox knowledge, it would be nice to get our CI job going. #5355 is an attempt but I think it could use some help.

View changes since this review

Comment thread src/unix/redox/mod.rs Outdated
pub fn gettimeofday(tp: *mut crate::timeval, tz: *mut crate::timezone) -> c_int;
pub fn clock_getres(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
pub fn clock_gettime(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
pub fn clock_settime(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks const from the linked source

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. 😁 I've contributed to Redox but my CI and toolchain knowledge is paltry. However, I'll ask around because there are very smart people contributing to Redox who could likely fix it.

My current goal is to ensure libc, nix, and Rustix are up to date with respect to Redox so that downstream consumers don't have to feature gate Redox. Working CI for libc is definitely a step in the right direction for that goal.

@rustbot

rustbot commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot

rustbot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

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.

@joshuamegnauth54

Copy link
Copy Markdown
Contributor Author

@rustbot ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-redox O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants