diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-29 18:15:07 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-29 18:15:07 +0200 |
| commit | b6b4ddad63ed7b7b39939079c23d708c9d45e15b (patch) | |
| tree | 646c75e6a3214de401d69c46f935b875c180153e /executor | |
| parent | 9dd8cf63e09242d6e3fcf84628f412585fccf057 (diff) | |
executor: improve fuchsia fallback coverage
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor_fuchsia.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/executor_fuchsia.cc b/executor/executor_fuchsia.cc index 2377ad475..c240f3bff 100644 --- a/executor/executor_fuchsia.cc +++ b/executor/executor_fuchsia.cc @@ -38,9 +38,9 @@ long execute_syscall(const call_t* c, long a0, long a1, long a2, long a3, long a NONFAILING(res = c->call(a0, a1, a2, a3, a4, a5, a6, a7, a8)); if (strncmp(c->name, "zx_", 3) == 0) { // Convert zircon error convention to the libc convention that executor expects. - if (res == ZX_OK) + if (res == ZX_OK || !strcmp(c->name, "zx_clock_get") || !strcmp(c->name, "zx_ticks_get")) return 0; - errno = res; + errno = (-res) & 0x7f; return -1; } // We cast libc functions to signature returning long, |
