constants.rs 623 B

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