Skip to content

Commit

Permalink
Replace CLOCK_REALTIME with CLOCK_BOOTTIME
Browse files Browse the repository at this point in the history
  • Loading branch information
randomPoison committed Oct 7, 2024
1 parent edf2ec3 commit 1b6fc19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trusty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ s! {
pub const PROT_READ: i32 = 1;
pub const PROT_WRITE: i32 = 2;

pub const CLOCK_REALTIME: clockid_t = 0;
// Trusty only supports `CLOCK_BOOTTIME`.
pub const CLOCK_BOOTTIME: clockid_t = 7;

pub const STDOUT_FILENO: ::c_int = 1;
pub const STDERR_FILENO: ::c_int = 2;
Expand Down

0 comments on commit 1b6fc19

Please sign in to comment.