Implement sigsuspend.

This commit is contained in:
4lDO2
2024-08-04 18:31:24 +02:00
parent 33f0df3b27
commit 8e5ddbd654
5 changed files with 34 additions and 22 deletions
+4 -2
View File
@@ -155,8 +155,10 @@ impl PalSignal for Sys {
.map(|_| ())
}
fn sigsuspend(set: &sigset_t) -> c_int {
unsafe { e(syscall!(RT_SIGSUSPEND, set as *const sigset_t, NSIG / 8)) as c_int }
fn sigsuspend(set: &sigset_t) -> Errno {
unsafe {
e_raw(syscall!(RT_SIGSUSPEND, set as *const sigset_t, NSIG / 8)).expect_err("must fail")
}
}
unsafe fn sigtimedwait(