aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_fuchsia.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-24 20:07:56 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-24 20:07:56 -0700
commit9be5aa1d051dea559961cb42d3fa750ca40e2d5e (patch)
tree79fbf84021cd8181cfd3b80232dbe4f70da4965f /executor/executor_fuchsia.h
parent1d9f787ea6eaac5e9241311064cfd30b4721e53f (diff)
executor: update special fuchsia syscalls
zx_clock_get_monotonic was added, zx_debuglog_read was renamed (or we forgot to add it earlier).
Diffstat (limited to 'executor/executor_fuchsia.h')
-rw-r--r--executor/executor_fuchsia.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/executor_fuchsia.h b/executor/executor_fuchsia.h
index 6e7dab0b0..ebd4f678d 100644
--- a/executor/executor_fuchsia.h
+++ b/executor/executor_fuchsia.h
@@ -21,9 +21,11 @@ static long execute_syscall(const call_t* c, long a[kMaxArgs])
long res = c->call(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
if (strncmp(c->name, "zx_", 3) == 0) {
// Convert zircon error convention to the libc convention that executor expects.
+ // The following calls return arbitrary integers instead of error codes.
if (res == ZX_OK ||
- !strcmp(c->name, "zx_log_read") ||
+ !strcmp(c->name, "zx_debuglog_read") ||
!strcmp(c->name, "zx_clock_get") ||
+ !strcmp(c->name, "zx_clock_get_monotonic") ||
!strcmp(c->name, "zx_ticks_get"))
return 0;
errno = (-res) & 0x7f;