diff --git a/rules/time/src.c b/rules/time/src.c index 7d4f8d2c..90fbbdc3 100644 --- a/rules/time/src.c +++ b/rules/time/src.c @@ -45,3 +45,9 @@ int f8(struct timeval *tv, void *tz) { clockid_t f9() { return CLOCK_REALTIME; } + +clockid_t f10() { return CLOCK_MONOTONIC; } + +#ifdef __linux__ +clockid_t f11() { return CLOCK_MONOTONIC_RAW; } +#endif diff --git a/rules/time/tgt_refcount.rs b/rules/time/tgt_refcount.rs index d8aa4204..8100f0d3 100644 --- a/rules/time/tgt_refcount.rs +++ b/rules/time/tgt_refcount.rs @@ -170,3 +170,12 @@ fn f8(a0: Ptr, a1: AnyPtr) -> i32 { unsafe fn f9() -> nix::time::ClockId { nix::time::ClockId::CLOCK_REALTIME } + +unsafe fn f10() -> nix::time::ClockId { + nix::time::ClockId::CLOCK_MONOTONIC +} + +#[cfg(target_os = "linux")] +unsafe fn f11() -> nix::time::ClockId { + nix::time::ClockId::CLOCK_MONOTONIC_RAW +} diff --git a/rules/time/tgt_unsafe.rs b/rules/time/tgt_unsafe.rs index 58bd70de..b1b41c9e 100644 --- a/rules/time/tgt_unsafe.rs +++ b/rules/time/tgt_unsafe.rs @@ -55,3 +55,12 @@ unsafe fn f8(a0: *mut libc::timeval, a1: *mut libc::c_void) -> i32 { unsafe fn f9() -> libc::clockid_t { libc::CLOCK_REALTIME } + +unsafe fn f10() -> libc::clockid_t { + libc::CLOCK_MONOTONIC +} + +#[cfg(target_os = "linux")] +unsafe fn f11() -> libc::clockid_t { + libc::CLOCK_MONOTONIC_RAW +}