Skip to content

redox: Add semaphore functions#5051

Merged
JohnTitor merged 1 commit intorust-lang:mainfrom
willnode:redox-sema
Apr 11, 2026
Merged

redox: Add semaphore functions#5051
JohnTitor merged 1 commit intorust-lang:mainfrom
willnode:redox-sema

Conversation

@willnode
Copy link
Copy Markdown
Contributor

Description

This adds more semaphore.h functions to Redox. These functions existed since years ago and tested months ago for Golang thread synchronization. Now these are added to fix compilation related to new ctrlc crate.

Added in redox.rs

  • sem_clockwait
  • sem_destroy
  • sem_getvalue
  • sem_init
  • sem_timedwait

Already in unix.rs

  • sem_post
  • sem_trywait
  • sem_wait

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

@rustbot label +stable-nominated

@rustbot rustbot added S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Apr 11, 2026
Copy link
Copy Markdown
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

@JohnTitor JohnTitor added this pull request to the merge queue Apr 11, 2026
Merged via the queue into rust-lang:main with commit 30fd290 Apr 11, 2026
52 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Apr 13, 2026
(backport <rust-lang#5051>)
(cherry picked from commit 30fd290)
@tgross35 tgross35 mentioned this pull request Apr 13, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Apr 13, 2026
(backport <#5051>)
(cherry picked from commit 30fd290)
@JohnTitor JohnTitor added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants