Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rules/time/src.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions rules/time/tgt_refcount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,12 @@ fn f8(a0: Ptr<Timeval>, 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
}
9 changes: 9 additions & 0 deletions rules/time/tgt_unsafe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Loading