From 0d10349cf0b4a9f98490378709bd9a83bd0042d6 Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Tue, 16 Jul 2019 17:09:43 -0700 Subject: sys/fuchsia: update zx_clock_get syscall (#1292) * sys/fuchsia: update zx_clock_get. zx_clock_get was deprecated and replaced by zx_clock_get_new. In a recent CL[0], they replaced the zx_clock_get by zx_clock_get_new and moved all client. This commit updates syzkaller to use the new function. [0]: https://fuchsia-review.googlesource.com/c/fuchsia/+/298575 * run make extract && make generate --- executor/common_fuchsia.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor/common_fuchsia.h') diff --git a/executor/common_fuchsia.h b/executor/common_fuchsia.h index 72b578012..5099100d0 100644 --- a/executor/common_fuchsia.h +++ b/executor/common_fuchsia.h @@ -223,6 +223,7 @@ static long syz_job_default(void) static long syz_future_time(volatile long when) { zx_time_t delta_ms; + zx_time_t now; switch (when) { case 0: delta_ms = 5; @@ -234,7 +235,7 @@ static long syz_future_time(volatile long when) delta_ms = 10000; break; } - zx_time_t now = zx_clock_get(ZX_CLOCK_MONOTONIC); + zx_clock_get(ZX_CLOCK_MONOTONIC, &now); return now + delta_ms * 1000 * 1000; } #endif -- cgit mrf-deployment