From dd563098638ae463af3cb45550e35b2180f193f0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 Sep 2017 08:47:30 +0200 Subject: sys/fuchsia: describe more syscalls --- executor/common_fuchsia.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'executor/common_fuchsia.h') diff --git a/executor/common_fuchsia.h b/executor/common_fuchsia.h index 189e7bc3c..e6ccddffe 100644 --- a/executor/common_fuchsia.h +++ b/executor/common_fuchsia.h @@ -49,3 +49,31 @@ long syz_mmap(size_t addr, size_t size) return status; } #endif + +#if defined(SYZ_EXECUTOR) || defined(__NR_syz_process_self) +long syz_process_self() +{ + return zx_process_self(); +} +#endif + +#if defined(SYZ_EXECUTOR) || defined(__NR_syz_thread_self) +long syz_thread_self() +{ + return zx_thread_self(); +} +#endif + +#if defined(SYZ_EXECUTOR) || defined(__NR_syz_vmar_root_self) +long syz_vmar_root_self() +{ + return zx_vmar_root_self(); +} +#endif + +#if defined(SYZ_EXECUTOR) || defined(__NR_syz_job_default) +long syz_job_default() +{ + return zx_job_default(); +} +#endif -- cgit mrf-deployment