1 use crate::platform::types::*; 2 3 pub use self::sys::*; 4 5 #[cfg(target_os = "linux")] 6 #[path = "linux.rs"] 7 pub mod sys; 8 9 #[cfg(target_os = "dragonos")] 10 #[path = "dragonos.rs"] 11 pub mod sys; 12 13 #[cfg(target_os = "redox")] 14 #[path = "redox.rs"] 15 pub mod sys; 16 17 pub(crate) const UTC: *const c_char = b"UTC\0".as_ptr().cast(); 18 19 pub(crate) const DAY_NAMES: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; 20 pub(crate) const MON_NAMES: [&str; 12] = [ 21 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", 22 ]; 23 24 pub const CLOCK_PROCESS_CPUTIME_ID: clockid_t = 2; 25 // Can't be time_t because cbindgen UGH 26 pub const CLOCKS_PER_SEC: c_long = 1_000_000; 27