nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
/// Wait for a signal.
pub unsafe fn sigsuspend(mask: &sigset_t) -> Result<(), Errno> {
    let mask_ptr = core::ptr::from_ref(mask) as usize;
    unsafe { syscall1(SYS_SIGSUSPEND, mask_ptr).map(drop) }
}