Fix CI, Add signal.h constants

This commit is contained in:
Ron Williams
2025-07-11 19:28:45 -07:00
committed by Jeremy Soller
parent b68ff56115
commit 770dc71816
15 changed files with 126 additions and 172 deletions
+7 -3
View File
@@ -124,8 +124,12 @@ impl PalSignal for Sys {
fn sigsuspend(mask: &sigset_t) -> Errno {
unsafe {
e_raw(syscall!(RT_SIGSUSPEND, mask as *const sigset_t, NSIG / 8))
.expect_err("must fail")
e_raw(syscall!(
RT_SIGSUSPEND,
mask as *const sigset_t,
size_of::<sigset_t>()
))
.expect_err("must fail")
}
}
@@ -140,7 +144,7 @@ impl PalSignal for Sys {
set as *const _,
sig.map_or_else(core::ptr::null_mut, |s| s as *mut _),
tp.map_or_else(core::ptr::null, |t| t as *const _),
NSIG / 8
size_of::<sigset_t>()
))
.map(|_| ())
}