diff options
author | bors <bors@rust-lang.org> | 2021-09-13 05:10:46 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-09-13 05:10:46 +0000 |
commit | b1c89cc918728998f70f12dc559d210b409bfc63 (patch) | |
tree | badfc909a30e93c584f2191cf8ce3b6f4e719534 | |
parent | 82a3396a23c0d5128b7f860eebb31d9cbac0696e (diff) | |
parent | 85f2502ced4c373177e59961bba26cdedbd138d3 (diff) | |
download | rust-libc-b1c89cc918728998f70f12dc559d210b409bfc63.tar.gz |
Auto merge of #2398 - coolreader18:redox-clock, r=Amanieu
Add more redox clock constants
-rw-r--r-- | src/unix/redox/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 747d98cc8f..f2a2d62958 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -819,6 +819,8 @@ pub const __WCLONE: ::c_int = 0x8000_0000; // time.h pub const CLOCK_REALTIME: ::c_int = 1; pub const CLOCK_MONOTONIC: ::c_int = 4; +pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2; +pub const CLOCKS_PER_SEC: ::clock_t = 1_000_000; // unistd.h // POSIX.1 { |