nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Get resource usage.
pub unsafe fn __getrusage50(who: i32, usage: &mut rusage_t) -> Result<(), Errno> {
    let who = who as usize;
    let usage_ptr = core::ptr::from_mut(usage) as usize;
    unsafe { syscall2(SYS___GETRUSAGE50, who, usage_ptr).map(drop) }
}