syzkaller/sys/fuchsia/time.txt
Marco Vanotti 0d10349cf0
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
2019-07-16 17:09:43 -07:00

21 lines
578 B
Plaintext

# Copyright 2017 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
include <zircon/syscalls.h>
resource zx_time[int64]: 0, ZX_TIME_INFINITE
zx_nanosleep(deadline zx_time)
zx_clock_get(clock_id flags[clock_id], zx_time ptr[out, intptr])
zx_clock_get_monotonic()
zx_ticks_get()
zx_ticks_per_second()
zx_deadline_after(ns int64) zx_time
# TODO: undocumented
# zx_clock_adjust?
syz_future_time(when intptr[0:1]) zx_time
clock_id = ZX_CLOCK_MONOTONIC, ZX_CLOCK_UTC, ZX_CLOCK_THREAD