nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Examine and change blocked signals.
pub unsafe fn __sigprocmask14(
    how: i32,
    newset: &mut sigset_t,
    oldset: &mut sigset_t,
) -> Result<(), Errno> {
    let how = how as usize;
    let newset_ptr = core::ptr::from_mut(newset) as usize;
    let oldset_ptr = core::ptr::from_mut(oldset) as usize;
    unsafe { syscall3(SYS___SIGPROCMASK14, how, newset_ptr, oldset_ptr).map(drop) }
}