xref: /relibc/src/header/sys_times/mod.rs (revision be35961d82cd98f2a2e61c4f1869271b9f4af571)
1 //! sys/times.h implementation
2 
3 use platform;
4 use platform::types::*;
5 use platform::{Pal, Sys};
6 
7 #[repr(C)]
8 pub struct tms {
9     tms_utime: clock_t,
10     tms_stime: clock_t,
11     tms_cutime: clock_t,
12     tms_cstime: clock_t,
13 }
14 
15 #[no_mangle]
16 pub extern "C" fn times(out: *mut tms) -> clock_t {
17     Sys::times(out)
18 }
19