nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Get value of an interval timer.
pub unsafe fn __getitimer50(which: i32, curr_val: &mut itimerval_t) -> Result<(), Errno> {
    let which = which as usize;
    let curr_val_ptr = core::ptr::from_mut(curr_val) as usize;
    unsafe { syscall2(SYS___GETITIMER50, which, curr_val_ptr).map(drop) }
}