relibc/header/time/
constants.rs1use crate::platform::types::{c_char, c_int, c_long, clockid_t};
2
3#[cfg(target_os = "linux")]
4#[path = "linux.rs"]
5pub mod sys;
6
7#[cfg(target_os = "redox")]
8#[path = "redox.rs"]
9pub mod sys;
10
11pub use self::sys::*;
12
13pub(crate) const UTC: *const c_char = c"UTC".as_ptr().cast();
15
16pub(crate) const DAY_NAMES: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
18pub(crate) const MON_NAMES: [&str; 12] = [
20 "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
21];
22
23pub const CLOCK_PROCESS_CPUTIME_ID: clockid_t = 2;
24pub const CLOCKS_PER_SEC: c_long = 1_000_000;
26
27pub const TIMER_ABSTIME: c_int = 1;
28
29pub const TIME_UTC: c_int = CLOCK_REALTIME + 1;
35pub const TIME_MONOTONIC: c_int = CLOCK_MONOTONIC + 1;