nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Wait for queued signals (REALTIME)
pub unsafe fn sigtimedwait(
    set: &sigset_t,
    info: &mut siginfo_t,
    timeout: &timespec_t,
) -> Result<i32, Errno> {
    let set_ptr = core::ptr::from_ref(set) as usize;
    let info_ptr = core::ptr::from_mut(info) as usize;
    let timeout_ptr = core::ptr::from_ref(timeout) as usize;
    unsafe { syscall3(SYS_SIGTIMEDWAIT, set_ptr, info_ptr, timeout_ptr).map(|val| val as i32) }
}