nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Set value of an interval timer.
pub unsafe fn __setitimer50(
    which: i32,
    new_val: &itimerval_t,
    old_val: &mut itimerval_t,
) -> Result<(), Errno> {
    let which = which as usize;
    let new_val_ptr = core::ptr::from_ref(new_val) as usize;
    let old_val_ptr = core::ptr::from_mut(old_val) as usize;
    unsafe { syscall3(SYS___SETITIMER50, which, new_val_ptr, old_val_ptr).map(drop) }
}