Skip to content
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

feat: clock_nanosleep() #2277

Merged
merged 1 commit into from Jan 7, 2024
Merged

feat: clock_nanosleep() #2277

merged 1 commit into from Jan 7, 2024

Conversation

SteveLauC
Copy link
Member

What does this PR do

Pick up #1315, add clock_nanosleep().

Closes #1315
Closes #1299

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

src/time.rs Outdated
#[cfg(any(
linux_android,
solarish,
target_os = "freebsd",
Copy link
Contributor

Choose a reason for hiding this comment

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

note: once this is merged, you could change to freebsdlike

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@SteveLauC SteveLauC force-pushed the pick_1315 branch 2 times, most recently from 23613a3 to f0d9703 Compare January 6, 2024 07:44
@SteveLauC
Copy link
Member Author

That DragonFlyBSD CI error, seems to be nightly toolchain bug, I can reproduce it with 1.77.0-nightly (595bc6f00 2024-01-05), but with 1.77.0-nightly (f688dd684 2024-01-04), everything works just fine.

@asomers asomers enabled auto-merge January 6, 2024 22:17
@asomers asomers added this pull request to the merge queue Jan 7, 2024
Merged via the queue into nix-rust:master with commit 0e8efe9 Jan 7, 2024
35 checks passed
@SteveLauC SteveLauC deleted the pick_1315 branch January 7, 2024 02:25
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.

Add wrappers for some time-related syscalls
3 participants