nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
5
6
7
/// Change file last access and modification time.
pub unsafe fn lutimes<P: AsRef<Path>>(filename: P, times: &[timeval_t; 2]) -> Result<(), Errno> {
    let filename = CString::new(filename.as_ref());
    let filename_ptr = filename.as_ptr() as usize;
    let times_ptr = times.as_ptr() as usize;
    syscall2(SYS_LUTIMES, filename_ptr, times_ptr).map(drop)
}