nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Fetch state of per-process timer>
pub unsafe fn __timer_gettime50(timer_id: timer_t, curr: &mut itimerspec_t) -> Result<(), Errno> {
    let timer_id = timer_id as usize;
    let curr_ptr = core::ptr::from_mut(curr) as usize;
    unsafe { syscall2(SYS___TIMER_GETTIME50, timer_id, curr_ptr).map(drop) }
}