nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
/// Used by the NTP daemon to adjust the system clock to an externally derived time.
pub unsafe fn ntp_adjtime(time: &mut timex_t) -> Result<i32, Errno> {
    let time_ptr = core::ptr::from_mut(time) as usize;
    unsafe { syscall1(SYS_NTP_ADJTIME, time_ptr).map(|val| val as i32) }
}