use libc::{c_int, time_t, timespec, timeval, timezone};
#[no_mangle]
pub unsafe extern "C" fn gettimeofday(tv: *mut timeval, tz: *mut timezone) -> c_int {
libc::syscall(libc::SYS_gettimeofday, tv, tz) as c_int
}
#[no_mangle]
pub unsafe extern "C" fn clock_getres(clk_id: c_int, tp: *mut timespec) -> c_int {
libc::syscall(libc::SYS_clock_getres, clk_id, tp) as c_int
}
#[no_mangle]
pub unsafe extern "C" fn clock_gettime(clk_id: c_int, tp: *mut timespec) -> c_int {
libc::syscall(libc::SYS_clock_gettime, clk_id, tp) as c_int
}
#[no_mangle]
pub unsafe extern "C" fn time(tloc: *mut time_t) -> time_t {
libc::syscall(libc::SYS_time, tloc) as time_t
}