pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt-netbsd: Update to SVN r. 325249



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Feb 15 17:03:31 2018 +0100
Changeset:	96532481e730cf4c43bc0dcc9b8a20fc7a3a1993

Modified Files:
	compiler-rt-netbsd/Makefile
	compiler-rt-netbsd/distinfo
	compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc
Removed Files:
	compiler-rt-netbsd/patches/patch-include_sanitizer_netbsd__syscall__hooks.h
	compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
	compiler-rt-netbsd/patches/patch-utils_generate__netbsd__ioctls.awk
	compiler-rt-netbsd/patches/patch-utils_generate__netbsd__syscalls.awk

Log Message:
compiler-rt-netbsd: Update to SVN r. 325249

Patches merged upstream:

r325245 - Enable syscall-specific functions in TSan/NetBSD
r325246 - Enable test/asan for NetBSD
r325248 - Implement a large part of NetBSD syscalls of netbsd_syscall_hooks.h

I've helped to land FreeBSD code for XRay, NetBSD will follow it soon.

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=96532481e730cf4c43bc0dcc9b8a20fc7a3a1993

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-netbsd/Makefile                        |    2 +-
 compiler-rt-netbsd/distinfo                        |    6 +-
 ...atch-include_sanitizer_netbsd__syscall__hooks.h | 4741 --------------------
 .../patch-lib_tsan_rtl_tsan__interceptors.cc       |   11 -
 compiler-rt-netbsd/patches/patch-test_asan_lit.cfg |   13 -
 .../patch-utils_generate__netbsd__ioctls.awk       |  766 ----
 .../patch-utils_generate__netbsd__syscalls.awk     | 2673 -----------
 7 files changed, 2 insertions(+), 8210 deletions(-)

diffs:
diff --git a/compiler-rt-netbsd/Makefile b/compiler-rt-netbsd/Makefile
index b37a47261d..b878526c8a 100644
--- a/compiler-rt-netbsd/Makefile
+++ b/compiler-rt-netbsd/Makefile
@@ -5,7 +5,7 @@ CATEGORIES=	lang devel
 
 SVN_REPOSITORIES=		compiler-rt
 SVN_REPO.compiler-rt=		http://llvm.org/svn/llvm-project/compiler-rt/trunk
-SVN_REVISION.compiler-rt=	325212
+SVN_REVISION.compiler-rt=	325249
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://compiler-rt.llvm.org/
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index f562522a76..7696ad221d 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -1,7 +1,6 @@
 $NetBSD: distinfo,v 1.35 2015/09/11 01:21:57 tnn Exp $
 
 SHA1 (patch-cmake_config-ix.cmake) = 7425d12d9601544fe12d5f4e242682c085893b71
-SHA1 (patch-include_sanitizer_netbsd__syscall__hooks.h) = 3d29c19b1d91d05093316cdff6953036b7859af8
 SHA1 (patch-lib_fuzzer_tests_CMakeLists.txt) = 766b817c2ede73ca90d6e25a4b8330ed3d38b84b
 SHA1 (patch-lib_msan_msan__interceptors.cc) = 5d206fc01d0617659377ef041941ebbfe65860c5
 SHA1 (patch-lib_msan_msan__linux.cc) = 6fd2ada4a84d1e1cc47ec8f4e1f0608861c73c1a
@@ -13,11 +12,8 @@ SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = 9404
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.h) = 946334e112397be07298d6683f3b19b503bb3e7c
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__freebsd.cc) = c6459f21789a5ef13e37714487c09110062c9c5d
 SHA1 (patch-lib_scudo_scudo__platform.h) = 119d7ad8f8ca9d3e846dbdd7f805ca771e30e410
-SHA1 (patch-lib_tsan_rtl_tsan__interceptors.cc) = faa30981da0298f9caae5b393170e37dc41468de
-SHA1 (patch-test_asan_lit.cfg) = e36362ff6a14efbb54452fd3699ad00f0d9bba1c
+SHA1 (patch-lib_tsan_rtl_tsan__interceptors.cc) = adc83b19e793491b1c6ea0fd8b46cd9f32e592fc
 SHA1 (patch-test_lsan_lit.common.cfg) = b09b4ab3a97dc881b701a3583b0b126b8206cfe2
 SHA1 (patch-test_sanitizer__common_TestCases_NetBSD_kvm__open.cc) = a4469c2d0979f2927d7a60f1aa055bc2ef3c6aa9
 SHA1 (patch-test_sanitizer__common_TestCases_NetBSD_kvm__openfiles.cc) = 3cac676582afd316695fe26e5980bc3cb5403e41
 SHA1 (patch-test_scudo_lit.cfg) = 35e4f0524a8fd26e90e5d968b73d75f277da3779
-SHA1 (patch-utils_generate__netbsd__ioctls.awk) = df4b45e9b985ec9b36c82fe97c17ca204297622c
-SHA1 (patch-utils_generate__netbsd__syscalls.awk) = b43c50d5ab936f16d68d75976c8fe30fa35279be
diff --git a/compiler-rt-netbsd/patches/patch-include_sanitizer_netbsd__syscall__hooks.h b/compiler-rt-netbsd/patches/patch-include_sanitizer_netbsd__syscall__hooks.h
deleted file mode 100644
index 1e0937d54a..0000000000
--- a/compiler-rt-netbsd/patches/patch-include_sanitizer_netbsd__syscall__hooks.h
+++ /dev/null
@@ -1,4741 +0,0 @@
-$NetBSD$
-
---- include/sanitizer/netbsd_syscall_hooks.h.orig	2018-02-15 04:24:48.878299210 +0000
-+++ include/sanitizer/netbsd_syscall_hooks.h
-@@ -21,6 +21,4736 @@
- // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
- //
- // Generated with: generate_netbsd_syscalls.awk
-+// Generated date: 2017-12-26
-+// Generated from: syscalls.master,v 1.290 2017/12/19 19:40:03 kamil Exp
-+//
-+//===----------------------------------------------------------------------===//
-+#ifndef SANITIZER_NETBSD_SYSCALL_HOOKS_H
-+#define SANITIZER_NETBSD_SYSCALL_HOOKS_H
-+
-+#define __sanitizer_syscall_pre_syscall(code, arg0, arg1, arg2, arg3, arg4,    \
-+                                        arg5, arg6, arg7)                      \
-+  __sanitizer_syscall_pre_impl_syscall(                                        \
-+      (long long)(code), (long long)(arg0), (long long)(arg1),                 \
-+      (long long)(arg2), (long long)(arg3), (long long)(arg4),                 \
-+      (long long)(arg5), (long long)(arg6), (long long)(arg7))
-+#define __sanitizer_syscall_post_syscall(res, code, arg0, arg1, arg2, arg3,    \
-+                                         arg4, arg5, arg6, arg7)               \
-+  __sanitizer_syscall_post_impl_syscall(                                       \
-+      res, (long long)(code), (long long)(arg0), (long long)(arg1),            \
-+      (long long)(arg2), (long long)(arg3), (long long)(arg4),                 \
-+      (long long)(arg5), (long long)(arg6), (long long)(arg7))
-+#define __sanitizer_syscall_pre_exit(rval)                                     \
-+  __sanitizer_syscall_pre_impl_exit((long long)(rval))
-+#define __sanitizer_syscall_post_exit(res, rval)                               \
-+  __sanitizer_syscall_post_impl_exit(res, (long long)(rval))
-+#define __sanitizer_syscall_pre_fork() __sanitizer_syscall_pre_impl_fork()
-+#define __sanitizer_syscall_post_fork(res)                                     \
-+  __sanitizer_syscall_post_impl_fork(res)
-+#define __sanitizer_syscall_pre_read(fd, buf, nbyte)                           \
-+  __sanitizer_syscall_pre_impl_read((long long)(fd), (long long)(buf),         \
-+                                    (long long)(nbyte))
-+#define __sanitizer_syscall_post_read(res, fd, buf, nbyte)                     \
-+  __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf),   \
-+                                     (long long)(nbyte))
-+#define __sanitizer_syscall_pre_write(fd, buf, nbyte)                          \
-+  __sanitizer_syscall_pre_impl_write((long long)(fd), (long long)(buf),        \
-+                                     (long long)(nbyte))
-+#define __sanitizer_syscall_post_write(res, fd, buf, nbyte)                    \
-+  __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf),  \
-+                                      (long long)(nbyte))
-+#define __sanitizer_syscall_pre_open(path, flags, mode)                        \
-+  __sanitizer_syscall_pre_impl_open((long long)(path), (long long)(flags),     \
-+                                    (long long)(mode))
-+#define __sanitizer_syscall_post_open(res, path, flags, mode)                  \
-+  __sanitizer_syscall_post_impl_open(res, (long long)(path),                   \
-+                                     (long long)(flags), (long long)(mode))
-+#define __sanitizer_syscall_pre_close(fd)                                      \
-+  __sanitizer_syscall_pre_impl_close((long long)(fd))
-+#define __sanitizer_syscall_post_close(res, fd)                                \
-+  __sanitizer_syscall_post_impl_close(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_compat_50_wait4(pid, status, options, rusage)  \
-+  __sanitizer_syscall_pre_impl_compat_50_wait4(                                \
-+      (long long)(pid), (long long)(status), (long long)(options),             \
-+      (long long)(rusage))
-+#define __sanitizer_syscall_post_compat_50_wait4(res, pid, status, options,    \
-+                                                 rusage)                       \
-+  __sanitizer_syscall_post_impl_compat_50_wait4(                               \
-+      res, (long long)(pid), (long long)(status), (long long)(options),        \
-+      (long long)(rusage))
-+#define __sanitizer_syscall_pre_compat_43_ocreat(path, mode)                   \
-+  __sanitizer_syscall_pre_impl_compat_43_ocreat((long long)(path),             \
-+                                                (long long)(mode))
-+#define __sanitizer_syscall_post_compat_43_ocreat(res, path, mode)             \
-+  __sanitizer_syscall_post_impl_compat_43_ocreat(res, (long long)(path),       \
-+                                                 (long long)(mode))
-+#define __sanitizer_syscall_pre_link(path, link)                               \
-+  __sanitizer_syscall_pre_impl_link((long long)(path), (long long)(link))
-+#define __sanitizer_syscall_post_link(res, path, link)                         \
-+  __sanitizer_syscall_post_impl_link(res, (long long)(path), (long long)(link))
-+#define __sanitizer_syscall_pre_unlink(path)                                   \
-+  __sanitizer_syscall_pre_impl_unlink((long long)(path))
-+#define __sanitizer_syscall_post_unlink(res, path)                             \
-+  __sanitizer_syscall_post_impl_unlink(res, (long long)(path))
-+/* syscall 11 has been skipped */
-+#define __sanitizer_syscall_pre_chdir(path)                                    \
-+  __sanitizer_syscall_pre_impl_chdir((long long)(path))
-+#define __sanitizer_syscall_post_chdir(res, path)                              \
-+  __sanitizer_syscall_post_impl_chdir(res, (long long)(path))
-+#define __sanitizer_syscall_pre_fchdir(fd)                                     \
-+  __sanitizer_syscall_pre_impl_fchdir((long long)(fd))
-+#define __sanitizer_syscall_post_fchdir(res, fd)                               \
-+  __sanitizer_syscall_post_impl_fchdir(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_compat_50_mknod(path, mode, dev)               \
-+  __sanitizer_syscall_pre_impl_compat_50_mknod(                                \
-+      (long long)(path), (long long)(mode), (long long)(dev))
-+#define __sanitizer_syscall_post_compat_50_mknod(res, path, mode, dev)         \
-+  __sanitizer_syscall_post_impl_compat_50_mknod(                               \
-+      res, (long long)(path), (long long)(mode), (long long)(dev))
-+#define __sanitizer_syscall_pre_chmod(path, mode)                              \
-+  __sanitizer_syscall_pre_impl_chmod((long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_post_chmod(res, path, mode)                        \
-+  __sanitizer_syscall_post_impl_chmod(res, (long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_pre_chown(path, uid, gid)                          \
-+  __sanitizer_syscall_pre_impl_chown((long long)(path), (long long)(uid),      \
-+                                     (long long)(gid))
-+#define __sanitizer_syscall_post_chown(res, path, uid, gid)                    \
-+  __sanitizer_syscall_post_impl_chown(res, (long long)(path),                  \
-+                                      (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_pre_break(nsize)                                   \
-+  __sanitizer_syscall_pre_impl_break((long long)(nsize))
-+#define __sanitizer_syscall_post_break(res, nsize)                             \
-+  __sanitizer_syscall_post_impl_break(res, (long long)(nsize))
-+#define __sanitizer_syscall_pre_compat_20_getfsstat(buf, bufsize, flags)       \
-+  __sanitizer_syscall_pre_impl_compat_20_getfsstat(                            \
-+      (long long)(buf), (long long)(bufsize), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_20_getfsstat(res, buf, bufsize, flags) \
-+  __sanitizer_syscall_post_impl_compat_20_getfsstat(                           \
-+      res, (long long)(buf), (long long)(bufsize), (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_43_olseek(fd, offset, whence)           \
-+  __sanitizer_syscall_pre_impl_compat_43_olseek(                               \
-+      (long long)(fd), (long long)(offset), (long long)(whence))
-+#define __sanitizer_syscall_post_compat_43_olseek(res, fd, offset, whence)     \
-+  __sanitizer_syscall_post_impl_compat_43_olseek(                              \
-+      res, (long long)(fd), (long long)(offset), (long long)(whence))
-+#define __sanitizer_syscall_pre_getpid() __sanitizer_syscall_pre_impl_getpid()
-+#define __sanitizer_syscall_post_getpid(res)                                   \
-+  __sanitizer_syscall_post_impl_getpid(res)
-+#define __sanitizer_syscall_pre_compat_40_mount(type, path, flags, data)       \
-+  __sanitizer_syscall_pre_impl_compat_40_mount(                                \
-+      (long long)(type), (long long)(path), (long long)(flags),                \
-+      (long long)(data))
-+#define __sanitizer_syscall_post_compat_40_mount(res, type, path, flags, data) \
-+  __sanitizer_syscall_post_impl_compat_40_mount(                               \
-+      res, (long long)(type), (long long)(path), (long long)(flags),           \
-+      (long long)(data))
-+#define __sanitizer_syscall_pre_unmount(path, flags)                           \
-+  __sanitizer_syscall_pre_impl_unmount((long long)(path), (long long)(flags))
-+#define __sanitizer_syscall_post_unmount(res, path, flags)                     \
-+  __sanitizer_syscall_post_impl_unmount(res, (long long)(path),                \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_pre_setuid(uid)                                    \
-+  __sanitizer_syscall_pre_impl_setuid((long long)(uid))
-+#define __sanitizer_syscall_post_setuid(res, uid)                              \
-+  __sanitizer_syscall_post_impl_setuid(res, (long long)(uid))
-+#define __sanitizer_syscall_pre_getuid() __sanitizer_syscall_pre_impl_getuid()
-+#define __sanitizer_syscall_post_getuid(res)                                   \
-+  __sanitizer_syscall_post_impl_getuid(res)
-+#define __sanitizer_syscall_pre_geteuid() __sanitizer_syscall_pre_impl_geteuid()
-+#define __sanitizer_syscall_post_geteuid(res)                                  \
-+  __sanitizer_syscall_post_impl_geteuid(res)
-+#define __sanitizer_syscall_pre_ptrace(req, pid, addr, data)                   \
-+  __sanitizer_syscall_pre_impl_ptrace((long long)(req), (long long)(pid),      \
-+                                      (long long)(addr), (long long)(data))
-+#define __sanitizer_syscall_post_ptrace(res, req, pid, addr, data)             \
-+  __sanitizer_syscall_post_impl_ptrace(res, (long long)(req),                  \
-+                                       (long long)(pid), (long long)(addr),    \
-+                                       (long long)(data))
-+#define __sanitizer_syscall_pre_recvmsg(s, msg, flags)                         \
-+  __sanitizer_syscall_pre_impl_recvmsg((long long)(s), (long long)(msg),       \
-+                                       (long long)(flags))
-+#define __sanitizer_syscall_post_recvmsg(res, s, msg, flags)                   \
-+  __sanitizer_syscall_post_impl_recvmsg(res, (long long)(s), (long long)(msg), \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_pre_sendmsg(s, msg, flags)                         \
-+  __sanitizer_syscall_pre_impl_sendmsg((long long)(s), (long long)(msg),       \
-+                                       (long long)(flags))
-+#define __sanitizer_syscall_post_sendmsg(res, s, msg, flags)                   \
-+  __sanitizer_syscall_post_impl_sendmsg(res, (long long)(s), (long long)(msg), \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_pre_recvfrom(s, buf, len, flags, from,             \
-+                                         fromlenaddr)                          \
-+  __sanitizer_syscall_pre_impl_recvfrom(                                       \
-+      (long long)(s), (long long)(buf), (long long)(len), (long long)(flags),  \
-+      (long long)(from), (long long)(fromlenaddr))
-+#define __sanitizer_syscall_post_recvfrom(res, s, buf, len, flags, from,       \
-+                                          fromlenaddr)                         \
-+  __sanitizer_syscall_post_impl_recvfrom(                                      \
-+      res, (long long)(s), (long long)(buf), (long long)(len),                 \
-+      (long long)(flags), (long long)(from), (long long)(fromlenaddr))
-+#define __sanitizer_syscall_pre_accept(s, name, anamelen)                      \
-+  __sanitizer_syscall_pre_impl_accept((long long)(s), (long long)(name),       \
-+                                      (long long)(anamelen))
-+#define __sanitizer_syscall_post_accept(res, s, name, anamelen)                \
-+  __sanitizer_syscall_post_impl_accept(res, (long long)(s), (long long)(name), \
-+                                       (long long)(anamelen))
-+#define __sanitizer_syscall_pre_getpeername(fdes, asa, alen)                   \
-+  __sanitizer_syscall_pre_impl_getpeername(                                    \
-+      (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_post_getpeername(res, fdes, asa, alen)             \
-+  __sanitizer_syscall_post_impl_getpeername(                                   \
-+      res, (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_pre_getsockname(fdes, asa, alen)                   \
-+  __sanitizer_syscall_pre_impl_getsockname(                                    \
-+      (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_post_getsockname(res, fdes, asa, alen)             \
-+  __sanitizer_syscall_post_impl_getsockname(                                   \
-+      res, (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_pre_access(path, flags)                            \
-+  __sanitizer_syscall_pre_impl_access((long long)(path), (long long)(flags))
-+#define __sanitizer_syscall_post_access(res, path, flags)                      \
-+  __sanitizer_syscall_post_impl_access(res, (long long)(path),                 \
-+                                       (long long)(flags))
-+#define __sanitizer_syscall_pre_chflags(path, flags)                           \
-+  __sanitizer_syscall_pre_impl_chflags((long long)(path), (long long)(flags))
-+#define __sanitizer_syscall_post_chflags(res, path, flags)                     \
-+  __sanitizer_syscall_post_impl_chflags(res, (long long)(path),                \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_pre_fchflags(fd, flags)                            \
-+  __sanitizer_syscall_pre_impl_fchflags((long long)(fd), (long long)(flags))
-+#define __sanitizer_syscall_post_fchflags(res, fd, flags)                      \
-+  __sanitizer_syscall_post_impl_fchflags(res, (long long)(fd),                 \
-+                                         (long long)(flags))
-+#define __sanitizer_syscall_pre_sync() __sanitizer_syscall_pre_impl_sync()
-+#define __sanitizer_syscall_post_sync(res)                                     \
-+  __sanitizer_syscall_post_impl_sync(res)
-+#define __sanitizer_syscall_pre_kill(pid, signum)                              \
-+  __sanitizer_syscall_pre_impl_kill((long long)(pid), (long long)(signum))
-+#define __sanitizer_syscall_post_kill(res, pid, signum)                        \
-+  __sanitizer_syscall_post_impl_kill(res, (long long)(pid), (long long)(signum))
-+#define __sanitizer_syscall_pre_compat_43_stat43(path, ub)                     \
-+  __sanitizer_syscall_pre_impl_compat_43_stat43((long long)(path),             \
-+                                                (long long)(ub))
-+#define __sanitizer_syscall_post_compat_43_stat43(res, path, ub)               \
-+  __sanitizer_syscall_post_impl_compat_43_stat43(res, (long long)(path),       \
-+                                                 (long long)(ub))
-+#define __sanitizer_syscall_pre_getppid() __sanitizer_syscall_pre_impl_getppid()
-+#define __sanitizer_syscall_post_getppid(res)                                  \
-+  __sanitizer_syscall_post_impl_getppid(res)
-+#define __sanitizer_syscall_pre_compat_43_lstat43(path, ub)                    \
-+  __sanitizer_syscall_pre_impl_compat_43_lstat43((long long)(path),            \
-+                                                 (long long)(ub))
-+#define __sanitizer_syscall_post_compat_43_lstat43(res, path, ub)              \
-+  __sanitizer_syscall_post_impl_compat_43_lstat43(res, (long long)(path),      \
-+                                                  (long long)(ub))
-+#define __sanitizer_syscall_pre_dup(fd)                                        \
-+  __sanitizer_syscall_pre_impl_dup((long long)(fd))
-+#define __sanitizer_syscall_post_dup(res, fd)                                  \
-+  __sanitizer_syscall_post_impl_dup(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_pipe() __sanitizer_syscall_pre_impl_pipe()
-+#define __sanitizer_syscall_post_pipe(res)                                     \
-+  __sanitizer_syscall_post_impl_pipe(res)
-+#define __sanitizer_syscall_pre_getegid() __sanitizer_syscall_pre_impl_getegid()
-+#define __sanitizer_syscall_post_getegid(res)                                  \
-+  __sanitizer_syscall_post_impl_getegid(res)
-+#define __sanitizer_syscall_pre_profil(samples, size, offset, scale)           \
-+  __sanitizer_syscall_pre_impl_profil((long long)(samples), (long long)(size), \
-+                                      (long long)(offset), (long long)(scale))
-+#define __sanitizer_syscall_post_profil(res, samples, size, offset, scale)     \
-+  __sanitizer_syscall_post_impl_profil(res, (long long)(samples),              \
-+                                       (long long)(size), (long long)(offset), \
-+                                       (long long)(scale))
-+#define __sanitizer_syscall_pre_ktrace(fname, ops, facs, pid)                  \
-+  __sanitizer_syscall_pre_impl_ktrace((long long)(fname), (long long)(ops),    \
-+                                      (long long)(facs), (long long)(pid))
-+#define __sanitizer_syscall_post_ktrace(res, fname, ops, facs, pid)            \
-+  __sanitizer_syscall_post_impl_ktrace(res, (long long)(fname),                \
-+                                       (long long)(ops), (long long)(facs),    \
-+                                       (long long)(pid))
-+#define __sanitizer_syscall_pre_compat_13_sigaction13(signum, nsa, osa)        \
-+  __sanitizer_syscall_pre_impl_compat_13_sigaction13(                          \
-+      (long long)(signum), (long long)(nsa), (long long)(osa))
-+#define __sanitizer_syscall_post_compat_13_sigaction13(res, signum, nsa, osa)  \
-+  __sanitizer_syscall_post_impl_compat_13_sigaction13(                         \
-+      res, (long long)(signum), (long long)(nsa), (long long)(osa))
-+#define __sanitizer_syscall_pre_getgid() __sanitizer_syscall_pre_impl_getgid()
-+#define __sanitizer_syscall_post_getgid(res)                                   \
-+  __sanitizer_syscall_post_impl_getgid(res)
-+#define __sanitizer_syscall_pre_compat_13_sigprocmask13(how, mask)             \
-+  __sanitizer_syscall_pre_impl_compat_13_sigprocmask13((long long)(how),       \
-+                                                       (long long)(mask))
-+#define __sanitizer_syscall_post_compat_13_sigprocmask13(res, how, mask)       \
-+  __sanitizer_syscall_post_impl_compat_13_sigprocmask13(res, (long long)(how), \
-+                                                        (long long)(mask))
-+#define __sanitizer_syscall_pre___getlogin(namebuf, namelen)                   \
-+  __sanitizer_syscall_pre_impl___getlogin((long long)(namebuf),                \
-+                                          (long long)(namelen))
-+#define __sanitizer_syscall_post___getlogin(res, namebuf, namelen)             \
-+  __sanitizer_syscall_post_impl___getlogin(res, (long long)(namebuf),          \
-+                                           (long long)(namelen))
-+#define __sanitizer_syscall_pre___setlogin(namebuf)                            \
-+  __sanitizer_syscall_pre_impl___setlogin((long long)(namebuf))
-+#define __sanitizer_syscall_post___setlogin(res, namebuf)                      \
-+  __sanitizer_syscall_post_impl___setlogin(res, (long long)(namebuf))
-+#define __sanitizer_syscall_pre_acct(path)                                     \
-+  __sanitizer_syscall_pre_impl_acct((long long)(path))
-+#define __sanitizer_syscall_post_acct(res, path)                               \
-+  __sanitizer_syscall_post_impl_acct(res, (long long)(path))
-+#define __sanitizer_syscall_pre_compat_13_sigpending13()                       \
-+  __sanitizer_syscall_pre_impl_compat_13_sigpending13()
-+#define __sanitizer_syscall_post_compat_13_sigpending13(res)                   \
-+  __sanitizer_syscall_post_impl_compat_13_sigpending13(res)
-+#define __sanitizer_syscall_pre_compat_13_sigaltstack13(nss, oss)              \
-+  __sanitizer_syscall_pre_impl_compat_13_sigaltstack13((long long)(nss),       \
-+                                                       (long long)(oss))
-+#define __sanitizer_syscall_post_compat_13_sigaltstack13(res, nss, oss)        \
-+  __sanitizer_syscall_post_impl_compat_13_sigaltstack13(res, (long long)(nss), \
-+                                                        (long long)(oss))
-+#define __sanitizer_syscall_pre_ioctl(fd, com, data)                           \
-+  __sanitizer_syscall_pre_impl_ioctl((long long)(fd), (long long)(com),        \
-+                                     (long long)(data))
-+#define __sanitizer_syscall_post_ioctl(res, fd, com, data)                     \
-+  __sanitizer_syscall_post_impl_ioctl(res, (long long)(fd), (long long)(com),  \
-+                                      (long long)(data))
-+#define __sanitizer_syscall_pre_compat_12_oreboot(opt)                         \
-+  __sanitizer_syscall_pre_impl_compat_12_oreboot((long long)(opt))
-+#define __sanitizer_syscall_post_compat_12_oreboot(res, opt)                   \
-+  __sanitizer_syscall_post_impl_compat_12_oreboot(res, (long long)(opt))
-+#define __sanitizer_syscall_pre_revoke(path)                                   \
-+  __sanitizer_syscall_pre_impl_revoke((long long)(path))
-+#define __sanitizer_syscall_post_revoke(res, path)                             \
-+  __sanitizer_syscall_post_impl_revoke(res, (long long)(path))
-+#define __sanitizer_syscall_pre_symlink(path, link)                            \
-+  __sanitizer_syscall_pre_impl_symlink((long long)(path), (long long)(link))
-+#define __sanitizer_syscall_post_symlink(res, path, link)                      \
-+  __sanitizer_syscall_post_impl_symlink(res, (long long)(path),                \
-+                                        (long long)(link))
-+#define __sanitizer_syscall_pre_readlink(path, buf, count)                     \
-+  __sanitizer_syscall_pre_impl_readlink((long long)(path), (long long)(buf),   \
-+                                        (long long)(count))
-+#define __sanitizer_syscall_post_readlink(res, path, buf, count)               \
-+  __sanitizer_syscall_post_impl_readlink(res, (long long)(path),               \
-+                                         (long long)(buf), (long long)(count))
-+#define __sanitizer_syscall_pre_execve(path, argp, envp)                       \
-+  __sanitizer_syscall_pre_impl_execve((long long)(path), (long long)(argp),    \
-+                                      (long long)(envp))
-+#define __sanitizer_syscall_post_execve(res, path, argp, envp)                 \
-+  __sanitizer_syscall_post_impl_execve(res, (long long)(path),                 \
-+                                       (long long)(argp), (long long)(envp))
-+#define __sanitizer_syscall_pre_umask(newmask)                                 \
-+  __sanitizer_syscall_pre_impl_umask((long long)(newmask))
-+#define __sanitizer_syscall_post_umask(res, newmask)                           \
-+  __sanitizer_syscall_post_impl_umask(res, (long long)(newmask))
-+#define __sanitizer_syscall_pre_chroot(path)                                   \
-+  __sanitizer_syscall_pre_impl_chroot((long long)(path))
-+#define __sanitizer_syscall_post_chroot(res, path)                             \
-+  __sanitizer_syscall_post_impl_chroot(res, (long long)(path))
-+#define __sanitizer_syscall_pre_compat_43_fstat43(fd, sb)                      \
-+  __sanitizer_syscall_pre_impl_compat_43_fstat43((long long)(fd),              \
-+                                                 (long long)(sb))
-+#define __sanitizer_syscall_post_compat_43_fstat43(res, fd, sb)                \
-+  __sanitizer_syscall_post_impl_compat_43_fstat43(res, (long long)(fd),        \
-+                                                  (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_43_ogetkerninfo(op, where, size, arg)   \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo(                         \
-+      (long long)(op), (long long)(where), (long long)(size),                  \
-+      (long long)(arg))
-+#define __sanitizer_syscall_post_compat_43_ogetkerninfo(res, op, where, size,  \
-+                                                        arg)                   \
-+  __sanitizer_syscall_post_impl_compat_43_ogetkerninfo(                        \
-+      res, (long long)(op), (long long)(where), (long long)(size),             \
-+      (long long)(arg))
-+#define __sanitizer_syscall_pre_compat_43_ogetpagesize()                       \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetpagesize()
-+#define __sanitizer_syscall_post_compat_43_ogetpagesize(res)                   \
-+  __sanitizer_syscall_post_impl_compat_43_ogetpagesize(res)
-+#define __sanitizer_syscall_pre_compat_12_msync(addr, len)                     \
-+  __sanitizer_syscall_pre_impl_compat_12_msync((long long)(addr),              \
-+                                               (long long)(len))
-+#define __sanitizer_syscall_post_compat_12_msync(res, addr, len)               \
-+  __sanitizer_syscall_post_impl_compat_12_msync(res, (long long)(addr),        \
-+                                                (long long)(len))
-+#define __sanitizer_syscall_pre_vfork() __sanitizer_syscall_pre_impl_vfork()
-+#define __sanitizer_syscall_post_vfork(res)                                    \
-+  __sanitizer_syscall_post_impl_vfork(res)
-+/* syscall 67 has been skipped */
-+/* syscall 68 has been skipped */
-+/* syscall 69 has been skipped */
-+/* syscall 70 has been skipped */
-+#define __sanitizer_syscall_pre_compat_43_ommap(addr, len, prot, flags, fd,    \
-+                                                pos)                           \
-+  __sanitizer_syscall_pre_impl_compat_43_ommap(                                \
-+      (long long)(addr), (long long)(len), (long long)(prot),                  \
-+      (long long)(flags), (long long)(fd), (long long)(pos))
-+#define __sanitizer_syscall_post_compat_43_ommap(res, addr, len, prot, flags,  \
-+                                                 fd, pos)                      \
-+  __sanitizer_syscall_post_impl_compat_43_ommap(                               \
-+      res, (long long)(addr), (long long)(len), (long long)(prot),             \
-+      (long long)(flags), (long long)(fd), (long long)(pos))
-+/* syscall 72 has been skipped */
-+#define __sanitizer_syscall_pre_munmap(addr, len)                              \
-+  __sanitizer_syscall_pre_impl_munmap((long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_post_munmap(res, addr, len)                        \
-+  __sanitizer_syscall_post_impl_munmap(res, (long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_pre_mprotect(addr, len, prot)                      \
-+  __sanitizer_syscall_pre_impl_mprotect((long long)(addr), (long long)(len),   \
-+                                        (long long)(prot))
-+#define __sanitizer_syscall_post_mprotect(res, addr, len, prot)                \
-+  __sanitizer_syscall_post_impl_mprotect(res, (long long)(addr),               \
-+                                         (long long)(len), (long long)(prot))
-+#define __sanitizer_syscall_pre_madvise(addr, len, behav)                      \
-+  __sanitizer_syscall_pre_impl_madvise((long long)(addr), (long long)(len),    \
-+                                       (long long)(behav))
-+#define __sanitizer_syscall_post_madvise(res, addr, len, behav)                \
-+  __sanitizer_syscall_post_impl_madvise(res, (long long)(addr),                \
-+                                        (long long)(len), (long long)(behav))
-+/* syscall 76 has been skipped */
-+/* syscall 77 has been skipped */
-+#define __sanitizer_syscall_pre_mincore(addr, len, vec)                        \
-+  __sanitizer_syscall_pre_impl_mincore((long long)(addr), (long long)(len),    \
-+                                       (long long)(vec))
-+#define __sanitizer_syscall_post_mincore(res, addr, len, vec)                  \
-+  __sanitizer_syscall_post_impl_mincore(res, (long long)(addr),                \
-+                                        (long long)(len), (long long)(vec))
-+#define __sanitizer_syscall_pre_getgroups(gidsetsize, gidset)                  \
-+  __sanitizer_syscall_pre_impl_getgroups((long long)(gidsetsize),              \
-+                                         (long long)(gidset))
-+#define __sanitizer_syscall_post_getgroups(res, gidsetsize, gidset)            \
-+  __sanitizer_syscall_post_impl_getgroups(res, (long long)(gidsetsize),        \
-+                                          (long long)(gidset))
-+#define __sanitizer_syscall_pre_setgroups(gidsetsize, gidset)                  \
-+  __sanitizer_syscall_pre_impl_setgroups((long long)(gidsetsize),              \
-+                                         (long long)(gidset))
-+#define __sanitizer_syscall_post_setgroups(res, gidsetsize, gidset)            \
-+  __sanitizer_syscall_post_impl_setgroups(res, (long long)(gidsetsize),        \
-+                                          (long long)(gidset))
-+#define __sanitizer_syscall_pre_getpgrp() __sanitizer_syscall_pre_impl_getpgrp()
-+#define __sanitizer_syscall_post_getpgrp(res)                                  \
-+  __sanitizer_syscall_post_impl_getpgrp(res)
-+#define __sanitizer_syscall_pre_setpgid(pid, pgid)                             \
-+  __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid))
-+#define __sanitizer_syscall_post_setpgid(res, pid, pgid)                       \
-+  __sanitizer_syscall_post_impl_setpgid(res, (long long)(pid),                 \
-+                                        (long long)(pgid))
-+#define __sanitizer_syscall_pre_compat_50_setitimer(which, itv, oitv)          \
-+  __sanitizer_syscall_pre_impl_compat_50_setitimer(                            \
-+      (long long)(which), (long long)(itv), (long long)(oitv))
-+#define __sanitizer_syscall_post_compat_50_setitimer(res, which, itv, oitv)    \
-+  __sanitizer_syscall_post_impl_compat_50_setitimer(                           \
-+      res, (long long)(which), (long long)(itv), (long long)(oitv))
-+#define __sanitizer_syscall_pre_compat_43_owait()                              \
-+  __sanitizer_syscall_pre_impl_compat_43_owait()
-+#define __sanitizer_syscall_post_compat_43_owait(res)                          \
-+  __sanitizer_syscall_post_impl_compat_43_owait(res)
-+#define __sanitizer_syscall_pre_compat_12_oswapon(name)                        \
-+  __sanitizer_syscall_pre_impl_compat_12_oswapon((long long)(name))
-+#define __sanitizer_syscall_post_compat_12_oswapon(res, name)                  \
-+  __sanitizer_syscall_post_impl_compat_12_oswapon(res, (long long)(name))
-+#define __sanitizer_syscall_pre_compat_50_getitimer(which, itv)                \
-+  __sanitizer_syscall_pre_impl_compat_50_getitimer((long long)(which),         \
-+                                                   (long long)(itv))
-+#define __sanitizer_syscall_post_compat_50_getitimer(res, which, itv)          \
-+  __sanitizer_syscall_post_impl_compat_50_getitimer(res, (long long)(which),   \
-+                                                    (long long)(itv))
-+#define __sanitizer_syscall_pre_compat_43_ogethostname(hostname, len)          \
-+  __sanitizer_syscall_pre_impl_compat_43_ogethostname((long long)(hostname),   \
-+                                                      (long long)(len))
-+#define __sanitizer_syscall_post_compat_43_ogethostname(res, hostname, len)    \
-+  __sanitizer_syscall_post_impl_compat_43_ogethostname(                        \
-+      res, (long long)(hostname), (long long)(len))
-+#define __sanitizer_syscall_pre_compat_43_osethostname(hostname, len)          \
-+  __sanitizer_syscall_pre_impl_compat_43_osethostname((long long)(hostname),   \
-+                                                      (long long)(len))
-+#define __sanitizer_syscall_post_compat_43_osethostname(res, hostname, len)    \
-+  __sanitizer_syscall_post_impl_compat_43_osethostname(                        \
-+      res, (long long)(hostname), (long long)(len))
-+#define __sanitizer_syscall_pre_compat_43_ogetdtablesize()                     \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize()
-+#define __sanitizer_syscall_post_compat_43_ogetdtablesize(res)                 \
-+  __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(res)
-+#define __sanitizer_syscall_pre_dup2(from, to)                                 \
-+  __sanitizer_syscall_pre_impl_dup2((long long)(from), (long long)(to))
-+#define __sanitizer_syscall_post_dup2(res, from, to)                           \
-+  __sanitizer_syscall_post_impl_dup2(res, (long long)(from), (long long)(to))
-+/* syscall 91 has been skipped */
-+#define __sanitizer_syscall_pre_fcntl(fd, cmd, arg)                            \
-+  __sanitizer_syscall_pre_impl_fcntl((long long)(fd), (long long)(cmd),        \
-+                                     (long long)(arg))
-+#define __sanitizer_syscall_post_fcntl(res, fd, cmd, arg)                      \
-+  __sanitizer_syscall_post_impl_fcntl(res, (long long)(fd), (long long)(cmd),  \
-+                                      (long long)(arg))
-+#define __sanitizer_syscall_pre_compat_50_select(nd, in, ou, ex, tv)           \
-+  __sanitizer_syscall_pre_impl_compat_50_select(                               \
-+      (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex),      \
-+      (long long)(tv))
-+#define __sanitizer_syscall_post_compat_50_select(res, nd, in, ou, ex, tv)     \
-+  __sanitizer_syscall_post_impl_compat_50_select(                              \
-+      res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
-+      (long long)(tv))
-+/* syscall 94 has been skipped */
-+#define __sanitizer_syscall_pre_fsync(fd)                                      \
-+  __sanitizer_syscall_pre_impl_fsync((long long)(fd))
-+#define __sanitizer_syscall_post_fsync(res, fd)                                \
-+  __sanitizer_syscall_post_impl_fsync(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_setpriority(which, who, prio)                  \
-+  __sanitizer_syscall_pre_impl_setpriority(                                    \
-+      (long long)(which), (long long)(who), (long long)(prio))
-+#define __sanitizer_syscall_post_setpriority(res, which, who, prio)            \
-+  __sanitizer_syscall_post_impl_setpriority(                                   \
-+      res, (long long)(which), (long long)(who), (long long)(prio))
-+#define __sanitizer_syscall_pre_compat_30_socket(domain, type, protocol)       \
-+  __sanitizer_syscall_pre_impl_compat_30_socket(                               \
-+      (long long)(domain), (long long)(type), (long long)(protocol))
-+#define __sanitizer_syscall_post_compat_30_socket(res, domain, type, protocol) \
-+  __sanitizer_syscall_post_impl_compat_30_socket(                              \
-+      res, (long long)(domain), (long long)(type), (long long)(protocol))
-+#define __sanitizer_syscall_pre_connect(s, name, namelen)                      \
-+  __sanitizer_syscall_pre_impl_connect((long long)(s), (long long)(name),      \
-+                                       (long long)(namelen))
-+#define __sanitizer_syscall_post_connect(res, s, name, namelen)                \
-+  __sanitizer_syscall_post_impl_connect(                                       \
-+      res, (long long)(s), (long long)(name), (long long)(namelen))
-+#define __sanitizer_syscall_pre_compat_43_oaccept(s, name, anamelen)           \
-+  __sanitizer_syscall_pre_impl_compat_43_oaccept(                              \
-+      (long long)(s), (long long)(name), (long long)(anamelen))
-+#define __sanitizer_syscall_post_compat_43_oaccept(res, s, name, anamelen)     \
-+  __sanitizer_syscall_post_impl_compat_43_oaccept(                             \
-+      res, (long long)(s), (long long)(name), (long long)(anamelen))
-+#define __sanitizer_syscall_pre_getpriority(which, who)                        \
-+  __sanitizer_syscall_pre_impl_getpriority((long long)(which), (long long)(who))
-+#define __sanitizer_syscall_post_getpriority(res, which, who)                  \
-+  __sanitizer_syscall_post_impl_getpriority(res, (long long)(which),           \
-+                                            (long long)(who))
-+#define __sanitizer_syscall_pre_compat_43_osend(s, buf, len, flags)            \
-+  __sanitizer_syscall_pre_impl_compat_43_osend(                                \
-+      (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_43_osend(res, s, buf, len, flags)      \
-+  __sanitizer_syscall_post_impl_compat_43_osend(                               \
-+      res, (long long)(s), (long long)(buf), (long long)(len),                 \
-+      (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_43_orecv(s, buf, len, flags)            \
-+  __sanitizer_syscall_pre_impl_compat_43_orecv(                                \
-+      (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_43_orecv(res, s, buf, len, flags)      \
-+  __sanitizer_syscall_post_impl_compat_43_orecv(                               \
-+      res, (long long)(s), (long long)(buf), (long long)(len),                 \
-+      (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_13_sigreturn13(sigcntxp)                \
-+  __sanitizer_syscall_pre_impl_compat_13_sigreturn13((long long)(sigcntxp))
-+#define __sanitizer_syscall_post_compat_13_sigreturn13(res, sigcntxp)          \
-+  __sanitizer_syscall_post_impl_compat_13_sigreturn13(res,                     \
-+                                                      (long long)(sigcntxp))
-+#define __sanitizer_syscall_pre_bind(s, name, namelen)                         \
-+  __sanitizer_syscall_pre_impl_bind((long long)(s), (long long)(name),         \
-+                                    (long long)(namelen))
-+#define __sanitizer_syscall_post_bind(res, s, name, namelen)                   \
-+  __sanitizer_syscall_post_impl_bind(res, (long long)(s), (long long)(name),   \
-+                                     (long long)(namelen))
-+#define __sanitizer_syscall_pre_setsockopt(s, level, name, val, valsize)       \
-+  __sanitizer_syscall_pre_impl_setsockopt((long long)(s), (long long)(level),  \
-+                                          (long long)(name), (long long)(val), \
-+                                          (long long)(valsize))
-+#define __sanitizer_syscall_post_setsockopt(res, s, level, name, val, valsize) \
-+  __sanitizer_syscall_post_impl_setsockopt(                                    \
-+      res, (long long)(s), (long long)(level), (long long)(name),              \
-+      (long long)(val), (long long)(valsize))
-+#define __sanitizer_syscall_pre_listen(s, backlog)                             \
-+  __sanitizer_syscall_pre_impl_listen((long long)(s), (long long)(backlog))
-+#define __sanitizer_syscall_post_listen(res, s, backlog)                       \
-+  __sanitizer_syscall_post_impl_listen(res, (long long)(s),                    \
-+                                       (long long)(backlog))
-+/* syscall 107 has been skipped */
-+#define __sanitizer_syscall_pre_compat_43_osigvec(signum, nsv, osv)            \
-+  __sanitizer_syscall_pre_impl_compat_43_osigvec(                              \
-+      (long long)(signum), (long long)(nsv), (long long)(osv))
-+#define __sanitizer_syscall_post_compat_43_osigvec(res, signum, nsv, osv)      \
-+  __sanitizer_syscall_post_impl_compat_43_osigvec(                             \
-+      res, (long long)(signum), (long long)(nsv), (long long)(osv))
-+#define __sanitizer_syscall_pre_compat_43_osigblock(mask)                      \
-+  __sanitizer_syscall_pre_impl_compat_43_osigblock((long long)(mask))
-+#define __sanitizer_syscall_post_compat_43_osigblock(res, mask)                \
-+  __sanitizer_syscall_post_impl_compat_43_osigblock(res, (long long)(mask))
-+#define __sanitizer_syscall_pre_compat_43_osigsetmask(mask)                    \
-+  __sanitizer_syscall_pre_impl_compat_43_osigsetmask((long long)(mask))
-+#define __sanitizer_syscall_post_compat_43_osigsetmask(res, mask)              \
-+  __sanitizer_syscall_post_impl_compat_43_osigsetmask(res, (long long)(mask))
-+#define __sanitizer_syscall_pre_compat_13_sigsuspend13(mask)                   \
-+  __sanitizer_syscall_pre_impl_compat_13_sigsuspend13((long long)(mask))
-+#define __sanitizer_syscall_post_compat_13_sigsuspend13(res, mask)             \
-+  __sanitizer_syscall_post_impl_compat_13_sigsuspend13(res, (long long)(mask))
-+#define __sanitizer_syscall_pre_compat_43_osigstack(nss, oss)                  \
-+  __sanitizer_syscall_pre_impl_compat_43_osigstack((long long)(nss),           \
-+                                                   (long long)(oss))
-+#define __sanitizer_syscall_post_compat_43_osigstack(res, nss, oss)            \
-+  __sanitizer_syscall_post_impl_compat_43_osigstack(res, (long long)(nss),     \
-+                                                    (long long)(oss))
-+#define __sanitizer_syscall_pre_compat_43_orecvmsg(s, msg, flags)              \
-+  __sanitizer_syscall_pre_impl_compat_43_orecvmsg(                             \
-+      (long long)(s), (long long)(msg), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_43_orecvmsg(res, s, msg, flags)        \
-+  __sanitizer_syscall_post_impl_compat_43_orecvmsg(                            \
-+      res, (long long)(s), (long long)(msg), (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_43_osendmsg(s, msg, flags)              \
-+  __sanitizer_syscall_pre_impl_compat_43_osendmsg(                             \
-+      (long long)(s), (long long)(msg), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_43_osendmsg(res, s, msg, flags)        \
-+  __sanitizer_syscall_post_impl_compat_43_osendmsg(                            \
-+      res, (long long)(s), (long long)(msg), (long long)(flags))
-+/* syscall 115 has been skipped */
-+#define __sanitizer_syscall_pre_compat_50_gettimeofday(tp, tzp)                \
-+  __sanitizer_syscall_pre_impl_compat_50_gettimeofday((long long)(tp),         \
-+                                                      (long long)(tzp))
-+#define __sanitizer_syscall_post_compat_50_gettimeofday(res, tp, tzp)          \
-+  __sanitizer_syscall_post_impl_compat_50_gettimeofday(res, (long long)(tp),   \
-+                                                       (long long)(tzp))
-+#define __sanitizer_syscall_pre_compat_50_getrusage(who, rusage)               \
-+  __sanitizer_syscall_pre_impl_compat_50_getrusage((long long)(who),           \
-+                                                   (long long)(rusage))
-+#define __sanitizer_syscall_post_compat_50_getrusage(res, who, rusage)         \
-+  __sanitizer_syscall_post_impl_compat_50_getrusage(res, (long long)(who),     \
-+                                                    (long long)(rusage))
-+#define __sanitizer_syscall_pre_getsockopt(s, level, name, val, avalsize)      \
-+  __sanitizer_syscall_pre_impl_getsockopt((long long)(s), (long long)(level),  \
-+                                          (long long)(name), (long long)(val), \
-+                                          (long long)(avalsize))
-+#define __sanitizer_syscall_post_getsockopt(res, s, level, name, val,          \
-+                                            avalsize)                          \
-+  __sanitizer_syscall_post_impl_getsockopt(                                    \
-+      res, (long long)(s), (long long)(level), (long long)(name),              \
-+      (long long)(val), (long long)(avalsize))
-+/* syscall 119 has been skipped */
-+#define __sanitizer_syscall_pre_readv(fd, iovp, iovcnt)                        \
-+  __sanitizer_syscall_pre_impl_readv((long long)(fd), (long long)(iovp),       \
-+                                     (long long)(iovcnt))
-+#define __sanitizer_syscall_post_readv(res, fd, iovp, iovcnt)                  \
-+  __sanitizer_syscall_post_impl_readv(res, (long long)(fd), (long long)(iovp), \
-+                                      (long long)(iovcnt))
-+#define __sanitizer_syscall_pre_writev(fd, iovp, iovcnt)                       \
-+  __sanitizer_syscall_pre_impl_writev((long long)(fd), (long long)(iovp),      \
-+                                      (long long)(iovcnt))
-+#define __sanitizer_syscall_post_writev(res, fd, iovp, iovcnt)                 \
-+  __sanitizer_syscall_post_impl_writev(res, (long long)(fd),                   \
-+                                       (long long)(iovp), (long long)(iovcnt))
-+#define __sanitizer_syscall_pre_compat_50_settimeofday(tv, tzp)                \
-+  __sanitizer_syscall_pre_impl_compat_50_settimeofday((long long)(tv),         \
-+                                                      (long long)(tzp))
-+#define __sanitizer_syscall_post_compat_50_settimeofday(res, tv, tzp)          \
-+  __sanitizer_syscall_post_impl_compat_50_settimeofday(res, (long long)(tv),   \
-+                                                       (long long)(tzp))
-+#define __sanitizer_syscall_pre_fchown(fd, uid, gid)                           \
-+  __sanitizer_syscall_pre_impl_fchown((long long)(fd), (long long)(uid),       \
-+                                      (long long)(gid))
-+#define __sanitizer_syscall_post_fchown(res, fd, uid, gid)                     \
-+  __sanitizer_syscall_post_impl_fchown(res, (long long)(fd), (long long)(uid), \
-+                                       (long long)(gid))
-+#define __sanitizer_syscall_pre_fchmod(fd, mode)                               \
-+  __sanitizer_syscall_pre_impl_fchmod((long long)(fd), (long long)(mode))
-+#define __sanitizer_syscall_post_fchmod(res, fd, mode)                         \
-+  __sanitizer_syscall_post_impl_fchmod(res, (long long)(fd), (long long)(mode))
-+#define __sanitizer_syscall_pre_compat_43_orecvfrom(s, buf, len, flags, from,  \
-+                                                    fromlenaddr)               \
-+  __sanitizer_syscall_pre_impl_compat_43_orecvfrom(                            \
-+      (long long)(s), (long long)(buf), (long long)(len), (long long)(flags),  \
-+      (long long)(from), (long long)(fromlenaddr))
-+#define __sanitizer_syscall_post_compat_43_orecvfrom(res, s, buf, len, flags,  \
-+                                                     from, fromlenaddr)        \
-+  __sanitizer_syscall_post_impl_compat_43_orecvfrom(                           \
-+      res, (long long)(s), (long long)(buf), (long long)(len),                 \
-+      (long long)(flags), (long long)(from), (long long)(fromlenaddr))
-+#define __sanitizer_syscall_pre_setreuid(ruid, euid)                           \
-+  __sanitizer_syscall_pre_impl_setreuid((long long)(ruid), (long long)(euid))
-+#define __sanitizer_syscall_post_setreuid(res, ruid, euid)                     \
-+  __sanitizer_syscall_post_impl_setreuid(res, (long long)(ruid),               \
-+                                         (long long)(euid))
-+#define __sanitizer_syscall_pre_setregid(rgid, egid)                           \
-+  __sanitizer_syscall_pre_impl_setregid((long long)(rgid), (long long)(egid))
-+#define __sanitizer_syscall_post_setregid(res, rgid, egid)                     \
-+  __sanitizer_syscall_post_impl_setregid(res, (long long)(rgid),               \
-+                                         (long long)(egid))
-+#define __sanitizer_syscall_pre_rename(from, to)                               \
-+  __sanitizer_syscall_pre_impl_rename((long long)(from), (long long)(to))
-+#define __sanitizer_syscall_post_rename(res, from, to)                         \
-+  __sanitizer_syscall_post_impl_rename(res, (long long)(from), (long long)(to))
-+#define __sanitizer_syscall_pre_compat_43_otruncate(path, length)              \
-+  __sanitizer_syscall_pre_impl_compat_43_otruncate((long long)(path),          \
-+                                                   (long long)(length))
-+#define __sanitizer_syscall_post_compat_43_otruncate(res, path, length)        \
-+  __sanitizer_syscall_post_impl_compat_43_otruncate(res, (long long)(path),    \
-+                                                    (long long)(length))
-+#define __sanitizer_syscall_pre_compat_43_oftruncate(fd, length)               \
-+  __sanitizer_syscall_pre_impl_compat_43_oftruncate((long long)(fd),           \
-+                                                    (long long)(length))
-+#define __sanitizer_syscall_post_compat_43_oftruncate(res, fd, length)         \
-+  __sanitizer_syscall_post_impl_compat_43_oftruncate(res, (long long)(fd),     \
-+                                                     (long long)(length))
-+#define __sanitizer_syscall_pre_flock(fd, how)                                 \
-+  __sanitizer_syscall_pre_impl_flock((long long)(fd), (long long)(how))
-+#define __sanitizer_syscall_post_flock(res, fd, how)                           \
-+  __sanitizer_syscall_post_impl_flock(res, (long long)(fd), (long long)(how))
-+#define __sanitizer_syscall_pre_mkfifo(path, mode)                             \
-+  __sanitizer_syscall_pre_impl_mkfifo((long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_post_mkfifo(res, path, mode)                       \
-+  __sanitizer_syscall_post_impl_mkfifo(res, (long long)(path),                 \
-+                                       (long long)(mode))
-+#define __sanitizer_syscall_pre_sendto(s, buf, len, flags, to, tolen)          \
-+  __sanitizer_syscall_pre_impl_sendto((long long)(s), (long long)(buf),        \
-+                                      (long long)(len), (long long)(flags),    \
-+                                      (long long)(to), (long long)(tolen))
-+#define __sanitizer_syscall_post_sendto(res, s, buf, len, flags, to, tolen)    \
-+  __sanitizer_syscall_post_impl_sendto(res, (long long)(s), (long long)(buf),  \
-+                                       (long long)(len), (long long)(flags),   \
-+                                       (long long)(to), (long long)(tolen))
-+#define __sanitizer_syscall_pre_shutdown(s, how)                               \
-+  __sanitizer_syscall_pre_impl_shutdown((long long)(s), (long long)(how))
-+#define __sanitizer_syscall_post_shutdown(res, s, how)                         \
-+  __sanitizer_syscall_post_impl_shutdown(res, (long long)(s), (long long)(how))
-+#define __sanitizer_syscall_pre_socketpair(domain, type, protocol, rsv)        \
-+  __sanitizer_syscall_pre_impl_socketpair(                                     \
-+      (long long)(domain), (long long)(type), (long long)(protocol),           \
-+      (long long)(rsv))
-+#define __sanitizer_syscall_post_socketpair(res, domain, type, protocol, rsv)  \
-+  __sanitizer_syscall_post_impl_socketpair(                                    \
-+      res, (long long)(domain), (long long)(type), (long long)(protocol),      \
-+      (long long)(rsv))
-+#define __sanitizer_syscall_pre_mkdir(path, mode)                              \
-+  __sanitizer_syscall_pre_impl_mkdir((long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_post_mkdir(res, path, mode)                        \
-+  __sanitizer_syscall_post_impl_mkdir(res, (long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_pre_rmdir(path)                                    \
-+  __sanitizer_syscall_pre_impl_rmdir((long long)(path))
-+#define __sanitizer_syscall_post_rmdir(res, path)                              \
-+  __sanitizer_syscall_post_impl_rmdir(res, (long long)(path))
-+#define __sanitizer_syscall_pre_compat_50_utimes(path, tptr)                   \
-+  __sanitizer_syscall_pre_impl_compat_50_utimes((long long)(path),             \
-+                                                (long long)(tptr))
-+#define __sanitizer_syscall_post_compat_50_utimes(res, path, tptr)             \
-+  __sanitizer_syscall_post_impl_compat_50_utimes(res, (long long)(path),       \
-+                                                 (long long)(tptr))
-+/* syscall 139 has been skipped */
-+#define __sanitizer_syscall_pre_compat_50_adjtime(delta, olddelta)             \
-+  __sanitizer_syscall_pre_impl_compat_50_adjtime((long long)(delta),           \
-+                                                 (long long)(olddelta))
-+#define __sanitizer_syscall_post_compat_50_adjtime(res, delta, olddelta)       \
-+  __sanitizer_syscall_post_impl_compat_50_adjtime(res, (long long)(delta),     \
-+                                                  (long long)(olddelta))
-+#define __sanitizer_syscall_pre_compat_43_ogetpeername(fdes, asa, alen)        \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetpeername(                         \
-+      (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_post_compat_43_ogetpeername(res, fdes, asa, alen)  \
-+  __sanitizer_syscall_post_impl_compat_43_ogetpeername(                        \
-+      res, (long long)(fdes), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_pre_compat_43_ogethostid()                         \
-+  __sanitizer_syscall_pre_impl_compat_43_ogethostid()
-+#define __sanitizer_syscall_post_compat_43_ogethostid(res)                     \
-+  __sanitizer_syscall_post_impl_compat_43_ogethostid(res)
-+#define __sanitizer_syscall_pre_compat_43_osethostid(hostid)                   \
-+  __sanitizer_syscall_pre_impl_compat_43_osethostid((long long)(hostid))
-+#define __sanitizer_syscall_post_compat_43_osethostid(res, hostid)             \
-+  __sanitizer_syscall_post_impl_compat_43_osethostid(res, (long long)(hostid))
-+#define __sanitizer_syscall_pre_compat_43_ogetrlimit(which, rlp)               \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetrlimit((long long)(which),        \
-+                                                    (long long)(rlp))
-+#define __sanitizer_syscall_post_compat_43_ogetrlimit(res, which, rlp)         \
-+  __sanitizer_syscall_post_impl_compat_43_ogetrlimit(res, (long long)(which),  \
-+                                                     (long long)(rlp))
-+#define __sanitizer_syscall_pre_compat_43_osetrlimit(which, rlp)               \
-+  __sanitizer_syscall_pre_impl_compat_43_osetrlimit((long long)(which),        \
-+                                                    (long long)(rlp))
-+#define __sanitizer_syscall_post_compat_43_osetrlimit(res, which, rlp)         \
-+  __sanitizer_syscall_post_impl_compat_43_osetrlimit(res, (long long)(which),  \
-+                                                     (long long)(rlp))
-+#define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum)                \
-+  __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid),            \
-+                                                 (long long)(signum))
-+#define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum)          \
-+  __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid),      \
-+                                                  (long long)(signum))
-+#define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid()
-+#define __sanitizer_syscall_post_setsid(res)                                   \
-+  __sanitizer_syscall_post_impl_setsid(res)
-+#define __sanitizer_syscall_pre_compat_50_quotactl(path, cmd, uid, arg)        \
-+  __sanitizer_syscall_pre_impl_compat_50_quotactl(                             \
-+      (long long)(path), (long long)(cmd), (long long)(uid), (long long)(arg))
-+#define __sanitizer_syscall_post_compat_50_quotactl(res, path, cmd, uid, arg)  \
-+  __sanitizer_syscall_post_impl_compat_50_quotactl(                            \
-+      res, (long long)(path), (long long)(cmd), (long long)(uid),              \
-+      (long long)(arg))
-+#define __sanitizer_syscall_pre_compat_43_oquota()                             \
-+  __sanitizer_syscall_pre_impl_compat_43_oquota()
-+#define __sanitizer_syscall_post_compat_43_oquota(res)                         \
-+  __sanitizer_syscall_post_impl_compat_43_oquota(res)
-+#define __sanitizer_syscall_pre_compat_43_ogetsockname(fdec, asa, alen)        \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetsockname(                         \
-+      (long long)(fdec), (long long)(asa), (long long)(alen))
-+#define __sanitizer_syscall_post_compat_43_ogetsockname(res, fdec, asa, alen)  \
-+  __sanitizer_syscall_post_impl_compat_43_ogetsockname(                        \
-+      res, (long long)(fdec), (long long)(asa), (long long)(alen))
-+/* syscall 151 has been skipped */
-+/* syscall 152 has been skipped */
-+/* syscall 153 has been skipped */
-+/* syscall 154 has been skipped */
-+#define __sanitizer_syscall_pre_nfssvc(flag, argp)                             \
-+  __sanitizer_syscall_pre_impl_nfssvc((long long)(flag), (long long)(argp))
-+#define __sanitizer_syscall_post_nfssvc(res, flag, argp)                       \
-+  __sanitizer_syscall_post_impl_nfssvc(res, (long long)(flag),                 \
-+                                       (long long)(argp))
-+#define __sanitizer_syscall_pre_compat_43_ogetdirentries(fd, buf, count,       \
-+                                                         basep)                \
-+  __sanitizer_syscall_pre_impl_compat_43_ogetdirentries(                       \
-+      (long long)(fd), (long long)(buf), (long long)(count),                   \
-+      (long long)(basep))
-+#define __sanitizer_syscall_post_compat_43_ogetdirentries(res, fd, buf, count, \
-+                                                          basep)               \
-+  __sanitizer_syscall_post_impl_compat_43_ogetdirentries(                      \
-+      res, (long long)(fd), (long long)(buf), (long long)(count),              \
-+      (long long)(basep))
-+#define __sanitizer_syscall_pre_compat_20_statfs(path, buf)                    \
-+  __sanitizer_syscall_pre_impl_compat_20_statfs((long long)(path),             \
-+                                                (long long)(buf))
-+#define __sanitizer_syscall_post_compat_20_statfs(res, path, buf)              \
-+  __sanitizer_syscall_post_impl_compat_20_statfs(res, (long long)(path),       \
-+                                                 (long long)(buf))
-+#define __sanitizer_syscall_pre_compat_20_fstatfs(fd, buf)                     \
-+  __sanitizer_syscall_pre_impl_compat_20_fstatfs((long long)(fd),              \
-+                                                 (long long)(buf))
-+#define __sanitizer_syscall_post_compat_20_fstatfs(res, fd, buf)               \
-+  __sanitizer_syscall_post_impl_compat_20_fstatfs(res, (long long)(fd),        \
-+                                                  (long long)(buf))
-+/* syscall 159 has been skipped */
-+/* syscall 160 has been skipped */
-+#define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp)                    \
-+  __sanitizer_syscall_pre_impl_compat_30_getfh((long long)(fname),             \
-+                                               (long long)(fhp))
-+#define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp)              \
-+  __sanitizer_syscall_post_impl_compat_30_getfh(res, (long long)(fname),       \
-+                                                (long long)(fhp))
-+#define __sanitizer_syscall_pre_compat_09_ogetdomainname(domainname, len)      \
-+  __sanitizer_syscall_pre_impl_compat_09_ogetdomainname(                       \
-+      (long long)(domainname), (long long)(len))
-+#define __sanitizer_syscall_post_compat_09_ogetdomainname(res, domainname,     \
-+                                                          len)                 \
-+  __sanitizer_syscall_post_impl_compat_09_ogetdomainname(                      \
-+      res, (long long)(domainname), (long long)(len))
-+#define __sanitizer_syscall_pre_compat_09_osetdomainname(domainname, len)      \
-+  __sanitizer_syscall_pre_impl_compat_09_osetdomainname(                       \
-+      (long long)(domainname), (long long)(len))
-+#define __sanitizer_syscall_post_compat_09_osetdomainname(res, domainname,     \
-+                                                          len)                 \
-+  __sanitizer_syscall_post_impl_compat_09_osetdomainname(                      \
-+      res, (long long)(domainname), (long long)(len))
-+#define __sanitizer_syscall_pre_compat_09_ouname(name)                         \
-+  __sanitizer_syscall_pre_impl_compat_09_ouname((long long)(name))
-+#define __sanitizer_syscall_post_compat_09_ouname(res, name)                   \
-+  __sanitizer_syscall_post_impl_compat_09_ouname(res, (long long)(name))
-+#define __sanitizer_syscall_pre_sysarch(op, parms)                             \
-+  __sanitizer_syscall_pre_impl_sysarch((long long)(op), (long long)(parms))
-+#define __sanitizer_syscall_post_sysarch(res, op, parms)                       \
-+  __sanitizer_syscall_post_impl_sysarch(res, (long long)(op),                  \
-+                                        (long long)(parms))
-+/* syscall 166 has been skipped */
-+/* syscall 167 has been skipped */
-+/* syscall 168 has been skipped */
-+#if !defined(_LP64)
-+#define __sanitizer_syscall_pre_compat_10_osemsys(which, a2, a3, a4, a5)       \
-+  __sanitizer_syscall_pre_impl_compat_10_osemsys(                              \
-+      (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4),   \
-+      (long long)(a5))
-+#define __sanitizer_syscall_post_compat_10_osemsys(res, which, a2, a3, a4, a5) \
-+  __sanitizer_syscall_post_impl_compat_10_osemsys(                             \
-+      res, (long long)(which), (long long)(a2), (long long)(a3),               \
-+      (long long)(a4), (long long)(a5))
-+#else
-+/* syscall 169 has been skipped */
-+#endif
-+#if !defined(_LP64)
-+#define __sanitizer_syscall_pre_compat_10_omsgsys(which, a2, a3, a4, a5, a6)   \
-+  __sanitizer_syscall_pre_impl_compat_10_omsgsys(                              \
-+      (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4),   \
-+      (long long)(a5), (long long)(a6))
-+#define __sanitizer_syscall_post_compat_10_omsgsys(res, which, a2, a3, a4, a5, \
-+                                                   a6)                         \
-+  __sanitizer_syscall_post_impl_compat_10_omsgsys(                             \
-+      res, (long long)(which), (long long)(a2), (long long)(a3),               \
-+      (long long)(a4), (long long)(a5), (long long)(a6))
-+#else
-+/* syscall 170 has been skipped */
-+#endif
-+#if !defined(_LP64)
-+#define __sanitizer_syscall_pre_compat_10_oshmsys(which, a2, a3, a4)           \
-+  __sanitizer_syscall_pre_impl_compat_10_oshmsys(                              \
-+      (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4))
-+#define __sanitizer_syscall_post_compat_10_oshmsys(res, which, a2, a3, a4)     \
-+  __sanitizer_syscall_post_impl_compat_10_oshmsys(                             \
-+      res, (long long)(which), (long long)(a2), (long long)(a3),               \
-+      (long long)(a4))
-+#else
-+/* syscall 171 has been skipped */
-+#endif
-+/* syscall 172 has been skipped */
-+#define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset)             \
-+  __sanitizer_syscall_pre_impl_pread((long long)(fd), (long long)(buf),        \
-+                                     (long long)(nbyte), (long long)(PAD),     \
-+                                     (long long)(offset))
-+#define __sanitizer_syscall_post_pread(res, fd, buf, nbyte, PAD, offset)       \
-+  __sanitizer_syscall_post_impl_pread(res, (long long)(fd), (long long)(buf),  \
-+                                      (long long)(nbyte), (long long)(PAD),    \
-+                                      (long long)(offset))
-+#define __sanitizer_syscall_pre_pwrite(fd, buf, nbyte, PAD, offset)            \
-+  __sanitizer_syscall_pre_impl_pwrite((long long)(fd), (long long)(buf),       \
-+                                      (long long)(nbyte), (long long)(PAD),    \
-+                                      (long long)(offset))
-+#define __sanitizer_syscall_post_pwrite(res, fd, buf, nbyte, PAD, offset)      \
-+  __sanitizer_syscall_post_impl_pwrite(res, (long long)(fd), (long long)(buf), \
-+                                       (long long)(nbyte), (long long)(PAD),   \
-+                                       (long long)(offset))
-+#define __sanitizer_syscall_pre_compat_30_ntp_gettime(ntvp)                    \
-+  __sanitizer_syscall_pre_impl_compat_30_ntp_gettime((long long)(ntvp))
-+#define __sanitizer_syscall_post_compat_30_ntp_gettime(res, ntvp)              \
-+  __sanitizer_syscall_post_impl_compat_30_ntp_gettime(res, (long long)(ntvp))
-+#if defined(NTP) || !defined(_KERNEL_OPT)
-+#define __sanitizer_syscall_pre_ntp_adjtime(tp)                                \
-+  __sanitizer_syscall_pre_impl_ntp_adjtime((long long)(tp))
-+#define __sanitizer_syscall_post_ntp_adjtime(res, tp)                          \
-+  __sanitizer_syscall_post_impl_ntp_adjtime(res, (long long)(tp))
-+#else
-+/* syscall 176 has been skipped */
-+#endif
-+/* syscall 177 has been skipped */
-+/* syscall 178 has been skipped */
-+/* syscall 179 has been skipped */
-+/* syscall 180 has been skipped */
-+#define __sanitizer_syscall_pre_setgid(gid)                                    \
-+  __sanitizer_syscall_pre_impl_setgid((long long)(gid))
-+#define __sanitizer_syscall_post_setgid(res, gid)                              \
-+  __sanitizer_syscall_post_impl_setgid(res, (long long)(gid))
-+#define __sanitizer_syscall_pre_setegid(egid)                                  \
-+  __sanitizer_syscall_pre_impl_setegid((long long)(egid))
-+#define __sanitizer_syscall_post_setegid(res, egid)                            \
-+  __sanitizer_syscall_post_impl_setegid(res, (long long)(egid))
-+#define __sanitizer_syscall_pre_seteuid(euid)                                  \
-+  __sanitizer_syscall_pre_impl_seteuid((long long)(euid))
-+#define __sanitizer_syscall_post_seteuid(res, euid)                            \
-+  __sanitizer_syscall_post_impl_seteuid(res, (long long)(euid))
-+#define __sanitizer_syscall_pre_lfs_bmapv(fsidp, blkiov, blkcnt)               \
-+  __sanitizer_syscall_pre_impl_lfs_bmapv(                                      \
-+      (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
-+#define __sanitizer_syscall_post_lfs_bmapv(res, fsidp, blkiov, blkcnt)         \
-+  __sanitizer_syscall_post_impl_lfs_bmapv(                                     \
-+      res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
-+#define __sanitizer_syscall_pre_lfs_markv(fsidp, blkiov, blkcnt)               \
-+  __sanitizer_syscall_pre_impl_lfs_markv(                                      \
-+      (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
-+#define __sanitizer_syscall_post_lfs_markv(res, fsidp, blkiov, blkcnt)         \
-+  __sanitizer_syscall_post_impl_lfs_markv(                                     \
-+      res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
-+#define __sanitizer_syscall_pre_lfs_segclean(fsidp, segment)                   \
-+  __sanitizer_syscall_pre_impl_lfs_segclean((long long)(fsidp),                \
-+                                            (long long)(segment))
-+#define __sanitizer_syscall_post_lfs_segclean(res, fsidp, segment)             \
-+  __sanitizer_syscall_post_impl_lfs_segclean(res, (long long)(fsidp),          \
-+                                             (long long)(segment))
-+#define __sanitizer_syscall_pre_compat_50_lfs_segwait(fsidp, tv)               \
-+  __sanitizer_syscall_pre_impl_compat_50_lfs_segwait((long long)(fsidp),       \
-+                                                     (long long)(tv))
-+#define __sanitizer_syscall_post_compat_50_lfs_segwait(res, fsidp, tv)         \
-+  __sanitizer_syscall_post_impl_compat_50_lfs_segwait(res, (long long)(fsidp), \
-+                                                      (long long)(tv))
-+#define __sanitizer_syscall_pre_compat_12_stat12(path, ub)                     \
-+  __sanitizer_syscall_pre_impl_compat_12_stat12((long long)(path),             \
-+                                                (long long)(ub))
-+#define __sanitizer_syscall_post_compat_12_stat12(res, path, ub)               \
-+  __sanitizer_syscall_post_impl_compat_12_stat12(res, (long long)(path),       \
-+                                                 (long long)(ub))
-+#define __sanitizer_syscall_pre_compat_12_fstat12(fd, sb)                      \
-+  __sanitizer_syscall_pre_impl_compat_12_fstat12((long long)(fd),              \
-+                                                 (long long)(sb))
-+#define __sanitizer_syscall_post_compat_12_fstat12(res, fd, sb)                \
-+  __sanitizer_syscall_post_impl_compat_12_fstat12(res, (long long)(fd),        \
-+                                                  (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_12_lstat12(path, ub)                    \
-+  __sanitizer_syscall_pre_impl_compat_12_lstat12((long long)(path),            \
-+                                                 (long long)(ub))
-+#define __sanitizer_syscall_post_compat_12_lstat12(res, path, ub)              \
-+  __sanitizer_syscall_post_impl_compat_12_lstat12(res, (long long)(path),      \
-+                                                  (long long)(ub))
-+#define __sanitizer_syscall_pre_pathconf(path, name)                           \
-+  __sanitizer_syscall_pre_impl_pathconf((long long)(path), (long long)(name))
-+#define __sanitizer_syscall_post_pathconf(res, path, name)                     \
-+  __sanitizer_syscall_post_impl_pathconf(res, (long long)(path),               \
-+                                         (long long)(name))
-+#define __sanitizer_syscall_pre_fpathconf(fd, name)                            \
-+  __sanitizer_syscall_pre_impl_fpathconf((long long)(fd), (long long)(name))
-+#define __sanitizer_syscall_post_fpathconf(res, fd, name)                      \
-+  __sanitizer_syscall_post_impl_fpathconf(res, (long long)(fd),                \
-+                                          (long long)(name))
-+/* syscall 193 has been skipped */
-+#define __sanitizer_syscall_pre_getrlimit(which, rlp)                          \
-+  __sanitizer_syscall_pre_impl_getrlimit((long long)(which), (long long)(rlp))
-+#define __sanitizer_syscall_post_getrlimit(res, which, rlp)                    \
-+  __sanitizer_syscall_post_impl_getrlimit(res, (long long)(which),             \
-+                                          (long long)(rlp))
-+#define __sanitizer_syscall_pre_setrlimit(which, rlp)                          \
-+  __sanitizer_syscall_pre_impl_setrlimit((long long)(which), (long long)(rlp))
-+#define __sanitizer_syscall_post_setrlimit(res, which, rlp)                    \
-+  __sanitizer_syscall_post_impl_setrlimit(res, (long long)(which),             \
-+                                          (long long)(rlp))
-+#define __sanitizer_syscall_pre_compat_12_getdirentries(fd, buf, count, basep) \
-+  __sanitizer_syscall_pre_impl_compat_12_getdirentries(                        \
-+      (long long)(fd), (long long)(buf), (long long)(count),                   \
-+      (long long)(basep))
-+#define __sanitizer_syscall_post_compat_12_getdirentries(res, fd, buf, count,  \
-+                                                         basep)                \
-+  __sanitizer_syscall_post_impl_compat_12_getdirentries(                       \
-+      res, (long long)(fd), (long long)(buf), (long long)(count),              \
-+      (long long)(basep))
-+#define __sanitizer_syscall_pre_mmap(addr, len, prot, flags, fd, PAD, pos)     \
-+  __sanitizer_syscall_pre_impl_mmap(                                           \
-+      (long long)(addr), (long long)(len), (long long)(prot),                  \
-+      (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
-+#define __sanitizer_syscall_post_mmap(res, addr, len, prot, flags, fd, PAD,    \
-+                                      pos)                                     \
-+  __sanitizer_syscall_post_impl_mmap(                                          \
-+      res, (long long)(addr), (long long)(len), (long long)(prot),             \
-+      (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
-+#define __sanitizer_syscall_pre___syscall(code, arg0, arg1, arg2, arg3, arg4,  \
-+                                          arg5, arg6, arg7)                    \
-+  __sanitizer_syscall_pre_impl___syscall(                                      \
-+      (long long)(code), (long long)(arg0), (long long)(arg1),                 \
-+      (long long)(arg2), (long long)(arg3), (long long)(arg4),                 \
-+      (long long)(arg5), (long long)(arg6), (long long)(arg7))
-+#define __sanitizer_syscall_post___syscall(res, code, arg0, arg1, arg2, arg3,  \
-+                                           arg4, arg5, arg6, arg7)             \
-+  __sanitizer_syscall_post_impl___syscall(                                     \
-+      res, (long long)(code), (long long)(arg0), (long long)(arg1),            \
-+      (long long)(arg2), (long long)(arg3), (long long)(arg4),                 \
-+      (long long)(arg5), (long long)(arg6), (long long)(arg7))
-+#define __sanitizer_syscall_pre_lseek(fd, PAD, offset, whence)                 \
-+  __sanitizer_syscall_pre_impl_lseek((long long)(fd), (long long)(PAD),        \
-+                                     (long long)(offset), (long long)(whence))
-+#define __sanitizer_syscall_post_lseek(res, fd, PAD, offset, whence)           \
-+  __sanitizer_syscall_post_impl_lseek(res, (long long)(fd), (long long)(PAD),  \
-+                                      (long long)(offset),                     \
-+                                      (long long)(whence))
-+#define __sanitizer_syscall_pre_truncate(path, PAD, length)                    \
-+  __sanitizer_syscall_pre_impl_truncate((long long)(path), (long long)(PAD),   \
-+                                        (long long)(length))
-+#define __sanitizer_syscall_post_truncate(res, path, PAD, length)              \
-+  __sanitizer_syscall_post_impl_truncate(                                      \
-+      res, (long long)(path), (long long)(PAD), (long long)(length))
-+#define __sanitizer_syscall_pre_ftruncate(fd, PAD, length)                     \
-+  __sanitizer_syscall_pre_impl_ftruncate((long long)(fd), (long long)(PAD),    \
-+                                         (long long)(length))
-+#define __sanitizer_syscall_post_ftruncate(res, fd, PAD, length)               \
-+  __sanitizer_syscall_post_impl_ftruncate(                                     \
-+      res, (long long)(fd), (long long)(PAD), (long long)(length))
-+#define __sanitizer_syscall_pre___sysctl(name, namelen, oldv, oldlenp, newv,   \
-+                                         newlen)                               \
-+  __sanitizer_syscall_pre_impl___sysctl(                                       \
-+      (long long)(name), (long long)(namelen), (long long)(oldv),              \
-+      (long long)(oldlenp), (long long)(newv), (long long)(newlen))
-+#define __sanitizer_syscall_post___sysctl(res, name, namelen, oldv, oldlenp,   \
-+                                          newv, newlen)                        \
-+  __sanitizer_syscall_post_impl___sysctl(                                      \
-+      res, (long long)(name), (long long)(namelen), (long long)(oldv),         \
-+      (long long)(oldlenp), (long long)(newv), (long long)(newlen))
-+#define __sanitizer_syscall_pre_mlock(addr, len)                               \
-+  __sanitizer_syscall_pre_impl_mlock((long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_post_mlock(res, addr, len)                         \
-+  __sanitizer_syscall_post_impl_mlock(res, (long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_pre_munlock(addr, len)                             \
-+  __sanitizer_syscall_pre_impl_munlock((long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_post_munlock(res, addr, len)                       \
-+  __sanitizer_syscall_post_impl_munlock(res, (long long)(addr),                \
-+                                        (long long)(len))
-+#define __sanitizer_syscall_pre_undelete(path)                                 \
-+  __sanitizer_syscall_pre_impl_undelete((long long)(path))
-+#define __sanitizer_syscall_post_undelete(res, path)                           \
-+  __sanitizer_syscall_post_impl_undelete(res, (long long)(path))
-+#define __sanitizer_syscall_pre_compat_50_futimes(fd, tptr)                    \
-+  __sanitizer_syscall_pre_impl_compat_50_futimes((long long)(fd),              \
-+                                                 (long long)(tptr))
-+#define __sanitizer_syscall_post_compat_50_futimes(res, fd, tptr)              \
-+  __sanitizer_syscall_post_impl_compat_50_futimes(res, (long long)(fd),        \
-+                                                  (long long)(tptr))
-+#define __sanitizer_syscall_pre_getpgid(pid)                                   \
-+  __sanitizer_syscall_pre_impl_getpgid((long long)(pid))
-+#define __sanitizer_syscall_post_getpgid(res, pid)                             \
-+  __sanitizer_syscall_post_impl_getpgid(res, (long long)(pid))
-+#define __sanitizer_syscall_pre_reboot(opt, bootstr)                           \
-+  __sanitizer_syscall_pre_impl_reboot((long long)(opt), (long long)(bootstr))
-+#define __sanitizer_syscall_post_reboot(res, opt, bootstr)                     \
-+  __sanitizer_syscall_post_impl_reboot(res, (long long)(opt),                  \
-+                                       (long long)(bootstr))
-+#define __sanitizer_syscall_pre_poll(fds, nfds, timeout)                       \
-+  __sanitizer_syscall_pre_impl_poll((long long)(fds), (long long)(nfds),       \
-+                                    (long long)(timeout))
-+#define __sanitizer_syscall_post_poll(res, fds, nfds, timeout)                 \
-+  __sanitizer_syscall_post_impl_poll(res, (long long)(fds), (long long)(nfds), \
-+                                     (long long)(timeout))
-+#define __sanitizer_syscall_pre_afssys(id, a1, a2, a3, a4, a5, a6)             \
-+  __sanitizer_syscall_pre_impl_afssys(                                         \
-+      (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3),      \
-+      (long long)(a4), (long long)(a5), (long long)(a6))
-+#define __sanitizer_syscall_post_afssys(res, id, a1, a2, a3, a4, a5, a6)       \
-+  __sanitizer_syscall_post_impl_afssys(                                        \
-+      res, (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \
-+      (long long)(a4), (long long)(a5), (long long)(a6))
-+/* syscall 211 has been skipped */
-+/* syscall 212 has been skipped */
-+/* syscall 213 has been skipped */
-+/* syscall 214 has been skipped */
-+/* syscall 215 has been skipped */
-+/* syscall 216 has been skipped */
-+/* syscall 217 has been skipped */
-+/* syscall 218 has been skipped */
-+/* syscall 219 has been skipped */
-+#define __sanitizer_syscall_pre_compat_14___semctl(semid, semnum, cmd, arg)    \
-+  __sanitizer_syscall_pre_impl_compat_14___semctl(                             \
-+      (long long)(semid), (long long)(semnum), (long long)(cmd),               \
-+      (long long)(arg))
-+#define __sanitizer_syscall_post_compat_14___semctl(res, semid, semnum, cmd,   \
-+                                                    arg)                       \
-+  __sanitizer_syscall_post_impl_compat_14___semctl(                            \
-+      res, (long long)(semid), (long long)(semnum), (long long)(cmd),          \
-+      (long long)(arg))
-+#define __sanitizer_syscall_pre_semget(key, nsems, semflg)                     \
-+  __sanitizer_syscall_pre_impl_semget((long long)(key), (long long)(nsems),    \
-+                                      (long long)(semflg))
-+#define __sanitizer_syscall_post_semget(res, key, nsems, semflg)               \
-+  __sanitizer_syscall_post_impl_semget(                                        \
-+      res, (long long)(key), (long long)(nsems), (long long)(semflg))
-+#define __sanitizer_syscall_pre_semop(semid, sops, nsops)                      \
-+  __sanitizer_syscall_pre_impl_semop((long long)(semid), (long long)(sops),    \
-+                                     (long long)(nsops))
-+#define __sanitizer_syscall_post_semop(res, semid, sops, nsops)                \
-+  __sanitizer_syscall_post_impl_semop(res, (long long)(semid),                 \
-+                                      (long long)(sops), (long long)(nsops))
-+#define __sanitizer_syscall_pre_semconfig(flag)                                \
-+  __sanitizer_syscall_pre_impl_semconfig((long long)(flag))
-+#define __sanitizer_syscall_post_semconfig(res, flag)                          \
-+  __sanitizer_syscall_post_impl_semconfig(res, (long long)(flag))
-+#define __sanitizer_syscall_pre_compat_14_msgctl(msqid, cmd, buf)              \
-+  __sanitizer_syscall_pre_impl_compat_14_msgctl(                               \
-+      (long long)(msqid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post_compat_14_msgctl(res, msqid, cmd, buf)        \
-+  __sanitizer_syscall_post_impl_compat_14_msgctl(                              \
-+      res, (long long)(msqid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre_msgget(key, msgflg)                            \
-+  __sanitizer_syscall_pre_impl_msgget((long long)(key), (long long)(msgflg))
-+#define __sanitizer_syscall_post_msgget(res, key, msgflg)                      \
-+  __sanitizer_syscall_post_impl_msgget(res, (long long)(key),                  \
-+                                       (long long)(msgflg))
-+#define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg)             \
-+  __sanitizer_syscall_pre_impl_msgsnd((long long)(msqid), (long long)(msgp),   \
-+                                      (long long)(msgsz), (long long)(msgflg))
-+#define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg)       \
-+  __sanitizer_syscall_post_impl_msgsnd(res, (long long)(msqid),                \
-+                                       (long long)(msgp), (long long)(msgsz),  \
-+                                       (long long)(msgflg))
-+#define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg)     \
-+  __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp),   \
-+                                      (long long)(msgsz), (long long)(msgtyp), \
-+                                      (long long)(msgflg))
-+#define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp,       \
-+                                        msgflg)                                \
-+  __sanitizer_syscall_post_impl_msgrcv(                                        \
-+      res, (long long)(msqid), (long long)(msgp), (long long)(msgsz),          \
-+      (long long)(msgtyp), (long long)(msgflg))
-+#define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg)                  \
-+  __sanitizer_syscall_pre_impl_shmat((long long)(shmid), (long long)(shmaddr), \
-+                                     (long long)(shmflg))
-+#define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg)            \
-+  __sanitizer_syscall_post_impl_shmat(                                         \
-+      res, (long long)(shmid), (long long)(shmaddr), (long long)(shmflg))
-+#define __sanitizer_syscall_pre_compat_14_shmctl(shmid, cmd, buf)              \
-+  __sanitizer_syscall_pre_impl_compat_14_shmctl(                               \
-+      (long long)(shmid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post_compat_14_shmctl(res, shmid, cmd, buf)        \
-+  __sanitizer_syscall_post_impl_compat_14_shmctl(                              \
-+      res, (long long)(shmid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre_shmdt(shmaddr)                                 \
-+  __sanitizer_syscall_pre_impl_shmdt((long long)(shmaddr))
-+#define __sanitizer_syscall_post_shmdt(res, shmaddr)                           \
-+  __sanitizer_syscall_post_impl_shmdt(res, (long long)(shmaddr))
-+#define __sanitizer_syscall_pre_shmget(key, size, shmflg)                      \
-+  __sanitizer_syscall_pre_impl_shmget((long long)(key), (long long)(size),     \
-+                                      (long long)(shmflg))
-+#define __sanitizer_syscall_post_shmget(res, key, size, shmflg)                \
-+  __sanitizer_syscall_post_impl_shmget(res, (long long)(key),                  \
-+                                       (long long)(size), (long long)(shmflg))
-+#define __sanitizer_syscall_pre_compat_50_clock_gettime(clock_id, tp)          \
-+  __sanitizer_syscall_pre_impl_compat_50_clock_gettime((long long)(clock_id),  \
-+                                                       (long long)(tp))
-+#define __sanitizer_syscall_post_compat_50_clock_gettime(res, clock_id, tp)    \
-+  __sanitizer_syscall_post_impl_compat_50_clock_gettime(                       \
-+      res, (long long)(clock_id), (long long)(tp))
-+#define __sanitizer_syscall_pre_compat_50_clock_settime(clock_id, tp)          \
-+  __sanitizer_syscall_pre_impl_compat_50_clock_settime((long long)(clock_id),  \
-+                                                       (long long)(tp))
-+#define __sanitizer_syscall_post_compat_50_clock_settime(res, clock_id, tp)    \
-+  __sanitizer_syscall_post_impl_compat_50_clock_settime(                       \
-+      res, (long long)(clock_id), (long long)(tp))
-+#define __sanitizer_syscall_pre_compat_50_clock_getres(clock_id, tp)           \
-+  __sanitizer_syscall_pre_impl_compat_50_clock_getres((long long)(clock_id),   \
-+                                                      (long long)(tp))
-+#define __sanitizer_syscall_post_compat_50_clock_getres(res, clock_id, tp)     \
-+  __sanitizer_syscall_post_impl_compat_50_clock_getres(                        \
-+      res, (long long)(clock_id), (long long)(tp))
-+#define __sanitizer_syscall_pre_timer_create(clock_id, evp, timerid)           \
-+  __sanitizer_syscall_pre_impl_timer_create(                                   \
-+      (long long)(clock_id), (long long)(evp), (long long)(timerid))
-+#define __sanitizer_syscall_post_timer_create(res, clock_id, evp, timerid)     \
-+  __sanitizer_syscall_post_impl_timer_create(                                  \
-+      res, (long long)(clock_id), (long long)(evp), (long long)(timerid))
-+#define __sanitizer_syscall_pre_timer_delete(timerid)                          \
-+  __sanitizer_syscall_pre_impl_timer_delete((long long)(timerid))
-+#define __sanitizer_syscall_post_timer_delete(res, timerid)                    \
-+  __sanitizer_syscall_post_impl_timer_delete(res, (long long)(timerid))
-+#define __sanitizer_syscall_pre_compat_50_timer_settime(timerid, flags, value, \
-+                                                        ovalue)                \
-+  __sanitizer_syscall_pre_impl_compat_50_timer_settime(                        \
-+      (long long)(timerid), (long long)(flags), (long long)(value),            \
-+      (long long)(ovalue))
-+#define __sanitizer_syscall_post_compat_50_timer_settime(res, timerid, flags,  \
-+                                                         value, ovalue)        \
-+  __sanitizer_syscall_post_impl_compat_50_timer_settime(                       \
-+      res, (long long)(timerid), (long long)(flags), (long long)(value),       \
-+      (long long)(ovalue))
-+#define __sanitizer_syscall_pre_compat_50_timer_gettime(timerid, value)        \
-+  __sanitizer_syscall_pre_impl_compat_50_timer_gettime((long long)(timerid),   \
-+                                                       (long long)(value))
-+#define __sanitizer_syscall_post_compat_50_timer_gettime(res, timerid, value)  \
-+  __sanitizer_syscall_post_impl_compat_50_timer_gettime(                       \
-+      res, (long long)(timerid), (long long)(value))
-+#define __sanitizer_syscall_pre_timer_getoverrun(timerid)                      \
-+  __sanitizer_syscall_pre_impl_timer_getoverrun((long long)(timerid))
-+#define __sanitizer_syscall_post_timer_getoverrun(res, timerid)                \
-+  __sanitizer_syscall_post_impl_timer_getoverrun(res, (long long)(timerid))
-+#define __sanitizer_syscall_pre_compat_50_nanosleep(rqtp, rmtp)                \
-+  __sanitizer_syscall_pre_impl_compat_50_nanosleep((long long)(rqtp),          \
-+                                                   (long long)(rmtp))
-+#define __sanitizer_syscall_post_compat_50_nanosleep(res, rqtp, rmtp)          \
-+  __sanitizer_syscall_post_impl_compat_50_nanosleep(res, (long long)(rqtp),    \
-+                                                    (long long)(rmtp))
-+#define __sanitizer_syscall_pre_fdatasync(fd)                                  \
-+  __sanitizer_syscall_pre_impl_fdatasync((long long)(fd))
-+#define __sanitizer_syscall_post_fdatasync(res, fd)                            \
-+  __sanitizer_syscall_post_impl_fdatasync(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_mlockall(flags)                                \
-+  __sanitizer_syscall_pre_impl_mlockall((long long)(flags))
-+#define __sanitizer_syscall_post_mlockall(res, flags)                          \
-+  __sanitizer_syscall_post_impl_mlockall(res, (long long)(flags))
-+#define __sanitizer_syscall_pre_munlockall()                                   \
-+  __sanitizer_syscall_pre_impl_munlockall()
-+#define __sanitizer_syscall_post_munlockall(res)                               \
-+  __sanitizer_syscall_post_impl_munlockall(res)
-+#define __sanitizer_syscall_pre_compat_50___sigtimedwait(set, info, timeout)   \
-+  __sanitizer_syscall_pre_impl_compat_50___sigtimedwait(                       \
-+      (long long)(set), (long long)(info), (long long)(timeout))
-+#define __sanitizer_syscall_post_compat_50___sigtimedwait(res, set, info,      \
-+                                                          timeout)             \
-+  __sanitizer_syscall_post_impl_compat_50___sigtimedwait(                      \
-+      res, (long long)(set), (long long)(info), (long long)(timeout))
-+#define __sanitizer_syscall_pre_sigqueueinfo(pid, info)                        \
-+  __sanitizer_syscall_pre_impl_sigqueueinfo((long long)(pid), (long long)(info))
-+#define __sanitizer_syscall_post_sigqueueinfo(res, pid, info)                  \
-+  __sanitizer_syscall_post_impl_sigqueueinfo(res, (long long)(pid),            \
-+                                             (long long)(info))
-+#define __sanitizer_syscall_pre_modctl(cmd, arg)                               \
-+  __sanitizer_syscall_pre_impl_modctl((long long)(cmd), (long long)(arg))
-+#define __sanitizer_syscall_post_modctl(res, cmd, arg)                         \
-+  __sanitizer_syscall_post_impl_modctl(res, (long long)(cmd), (long long)(arg))
-+#define __sanitizer_syscall_pre__ksem_init(value, idp)                         \
-+  __sanitizer_syscall_pre_impl__ksem_init((long long)(value), (long long)(idp))
-+#define __sanitizer_syscall_post__ksem_init(res, value, idp)                   \
-+  __sanitizer_syscall_post_impl__ksem_init(res, (long long)(value),            \
-+                                           (long long)(idp))
-+#define __sanitizer_syscall_pre__ksem_open(name, oflag, mode, value, idp)      \
-+  __sanitizer_syscall_pre_impl__ksem_open(                                     \
-+      (long long)(name), (long long)(oflag), (long long)(mode),                \
-+      (long long)(value), (long long)(idp))
-+#define __sanitizer_syscall_post__ksem_open(res, name, oflag, mode, value,     \
-+                                            idp)                               \
-+  __sanitizer_syscall_post_impl__ksem_open(                                    \
-+      res, (long long)(name), (long long)(oflag), (long long)(mode),           \
-+      (long long)(value), (long long)(idp))
-+#define __sanitizer_syscall_pre__ksem_unlink(name)                             \
-+  __sanitizer_syscall_pre_impl__ksem_unlink((long long)(name))
-+#define __sanitizer_syscall_post__ksem_unlink(res, name)                       \
-+  __sanitizer_syscall_post_impl__ksem_unlink(res, (long long)(name))
-+#define __sanitizer_syscall_pre__ksem_close(id)                                \
-+  __sanitizer_syscall_pre_impl__ksem_close((long long)(id))
-+#define __sanitizer_syscall_post__ksem_close(res, id)                          \
-+  __sanitizer_syscall_post_impl__ksem_close(res, (long long)(id))
-+#define __sanitizer_syscall_pre__ksem_post(id)                                 \
-+  __sanitizer_syscall_pre_impl__ksem_post((long long)(id))
-+#define __sanitizer_syscall_post__ksem_post(res, id)                           \
-+  __sanitizer_syscall_post_impl__ksem_post(res, (long long)(id))
-+#define __sanitizer_syscall_pre__ksem_wait(id)                                 \
-+  __sanitizer_syscall_pre_impl__ksem_wait((long long)(id))
-+#define __sanitizer_syscall_post__ksem_wait(res, id)                           \
-+  __sanitizer_syscall_post_impl__ksem_wait(res, (long long)(id))
-+#define __sanitizer_syscall_pre__ksem_trywait(id)                              \
-+  __sanitizer_syscall_pre_impl__ksem_trywait((long long)(id))
-+#define __sanitizer_syscall_post__ksem_trywait(res, id)                        \
-+  __sanitizer_syscall_post_impl__ksem_trywait(res, (long long)(id))
-+#define __sanitizer_syscall_pre__ksem_getvalue(id, value)                      \
-+  __sanitizer_syscall_pre_impl__ksem_getvalue((long long)(id),                 \
-+                                              (long long)(value))
-+#define __sanitizer_syscall_post__ksem_getvalue(res, id, value)                \
-+  __sanitizer_syscall_post_impl__ksem_getvalue(res, (long long)(id),           \
-+                                               (long long)(value))
-+#define __sanitizer_syscall_pre__ksem_destroy(id)                              \
-+  __sanitizer_syscall_pre_impl__ksem_destroy((long long)(id))
-+#define __sanitizer_syscall_post__ksem_destroy(res, id)                        \
-+  __sanitizer_syscall_post_impl__ksem_destroy(res, (long long)(id))
-+#define __sanitizer_syscall_pre__ksem_timedwait(id, abstime)                   \
-+  __sanitizer_syscall_pre_impl__ksem_timedwait((long long)(id),                \
-+                                               (long long)(abstime))
-+#define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime)             \
-+  __sanitizer_syscall_post_impl__ksem_timedwait(res, (long long)(id),          \
-+                                                (long long)(abstime))
-+#define __sanitizer_syscall_pre_mq_open(name, oflag, mode, attr)               \
-+  __sanitizer_syscall_pre_impl_mq_open((long long)(name), (long long)(oflag),  \
-+                                       (long long)(mode), (long long)(attr))
-+#define __sanitizer_syscall_post_mq_open(res, name, oflag, mode, attr)         \
-+  __sanitizer_syscall_post_impl_mq_open(res, (long long)(name),                \
-+                                        (long long)(oflag), (long long)(mode), \
-+                                        (long long)(attr))
-+#define __sanitizer_syscall_pre_mq_close(mqdes)                                \
-+  __sanitizer_syscall_pre_impl_mq_close((long long)(mqdes))
-+#define __sanitizer_syscall_post_mq_close(res, mqdes)                          \
-+  __sanitizer_syscall_post_impl_mq_close(res, (long long)(mqdes))
-+#define __sanitizer_syscall_pre_mq_unlink(name)                                \
-+  __sanitizer_syscall_pre_impl_mq_unlink((long long)(name))
-+#define __sanitizer_syscall_post_mq_unlink(res, name)                          \
-+  __sanitizer_syscall_post_impl_mq_unlink(res, (long long)(name))
-+#define __sanitizer_syscall_pre_mq_getattr(mqdes, mqstat)                      \
-+  __sanitizer_syscall_pre_impl_mq_getattr((long long)(mqdes),                  \
-+                                          (long long)(mqstat))
-+#define __sanitizer_syscall_post_mq_getattr(res, mqdes, mqstat)                \
-+  __sanitizer_syscall_post_impl_mq_getattr(res, (long long)(mqdes),            \
-+                                           (long long)(mqstat))
-+#define __sanitizer_syscall_pre_mq_setattr(mqdes, mqstat, omqstat)             \
-+  __sanitizer_syscall_pre_impl_mq_setattr(                                     \
-+      (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
-+#define __sanitizer_syscall_post_mq_setattr(res, mqdes, mqstat, omqstat)       \
-+  __sanitizer_syscall_post_impl_mq_setattr(                                    \
-+      res, (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
-+#define __sanitizer_syscall_pre_mq_notify(mqdes, notification)                 \
-+  __sanitizer_syscall_pre_impl_mq_notify((long long)(mqdes),                   \
-+                                         (long long)(notification))
-+#define __sanitizer_syscall_post_mq_notify(res, mqdes, notification)           \
-+  __sanitizer_syscall_post_impl_mq_notify(res, (long long)(mqdes),             \
-+                                          (long long)(notification))
-+#define __sanitizer_syscall_pre_mq_send(mqdes, msg_ptr, msg_len, msg_prio)     \
-+  __sanitizer_syscall_pre_impl_mq_send(                                        \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio))
-+#define __sanitizer_syscall_post_mq_send(res, mqdes, msg_ptr, msg_len,         \
-+                                         msg_prio)                             \
-+  __sanitizer_syscall_post_impl_mq_send(                                       \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio))
-+#define __sanitizer_syscall_pre_mq_receive(mqdes, msg_ptr, msg_len, msg_prio)  \
-+  __sanitizer_syscall_pre_impl_mq_receive(                                     \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio))
-+#define __sanitizer_syscall_post_mq_receive(res, mqdes, msg_ptr, msg_len,      \
-+                                            msg_prio)                          \
-+  __sanitizer_syscall_post_impl_mq_receive(                                    \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio))
-+#define __sanitizer_syscall_pre_compat_50_mq_timedsend(                        \
-+    mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                            \
-+  __sanitizer_syscall_pre_impl_compat_50_mq_timedsend(                         \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_post_compat_50_mq_timedsend(                       \
-+    res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                       \
-+  __sanitizer_syscall_post_impl_compat_50_mq_timedsend(                        \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_pre_compat_50_mq_timedreceive(                     \
-+    mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                            \
-+  __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive(                      \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_post_compat_50_mq_timedreceive(                    \
-+    res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                       \
-+  __sanitizer_syscall_post_impl_compat_50_mq_timedreceive(                     \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+/* syscall 267 has been skipped */
-+/* syscall 268 has been skipped */
-+/* syscall 269 has been skipped */
-+#define __sanitizer_syscall_pre___posix_rename(from, to)                       \
-+  __sanitizer_syscall_pre_impl___posix_rename((long long)(from),               \
-+                                              (long long)(to))
-+#define __sanitizer_syscall_post___posix_rename(res, from, to)                 \
-+  __sanitizer_syscall_post_impl___posix_rename(res, (long long)(from),         \
-+                                               (long long)(to))
-+#define __sanitizer_syscall_pre_swapctl(cmd, arg, misc)                        \
-+  __sanitizer_syscall_pre_impl_swapctl((long long)(cmd), (long long)(arg),     \
-+                                       (long long)(misc))
-+#define __sanitizer_syscall_post_swapctl(res, cmd, arg, misc)                  \
-+  __sanitizer_syscall_post_impl_swapctl(res, (long long)(cmd),                 \
-+                                        (long long)(arg), (long long)(misc))
-+#define __sanitizer_syscall_pre_compat_30_getdents(fd, buf, count)             \
-+  __sanitizer_syscall_pre_impl_compat_30_getdents(                             \
-+      (long long)(fd), (long long)(buf), (long long)(count))
-+#define __sanitizer_syscall_post_compat_30_getdents(res, fd, buf, count)       \
-+  __sanitizer_syscall_post_impl_compat_30_getdents(                            \
-+      res, (long long)(fd), (long long)(buf), (long long)(count))
-+#define __sanitizer_syscall_pre_minherit(addr, len, inherit)                   \
-+  __sanitizer_syscall_pre_impl_minherit((long long)(addr), (long long)(len),   \
-+                                        (long long)(inherit))
-+#define __sanitizer_syscall_post_minherit(res, addr, len, inherit)             \
-+  __sanitizer_syscall_post_impl_minherit(                                      \
-+      res, (long long)(addr), (long long)(len), (long long)(inherit))
-+#define __sanitizer_syscall_pre_lchmod(path, mode)                             \
-+  __sanitizer_syscall_pre_impl_lchmod((long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_post_lchmod(res, path, mode)                       \
-+  __sanitizer_syscall_post_impl_lchmod(res, (long long)(path),                 \
-+                                       (long long)(mode))
-+#define __sanitizer_syscall_pre_lchown(path, uid, gid)                         \
-+  __sanitizer_syscall_pre_impl_lchown((long long)(path), (long long)(uid),     \
-+                                      (long long)(gid))
-+#define __sanitizer_syscall_post_lchown(res, path, uid, gid)                   \
-+  __sanitizer_syscall_post_impl_lchown(res, (long long)(path),                 \
-+                                       (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_pre_compat_50_lutimes(path, tptr)                  \
-+  __sanitizer_syscall_pre_impl_compat_50_lutimes((long long)(path),            \
-+                                                 (long long)(tptr))
-+#define __sanitizer_syscall_post_compat_50_lutimes(res, path, tptr)            \
-+  __sanitizer_syscall_post_impl_compat_50_lutimes(res, (long long)(path),      \
-+                                                  (long long)(tptr))
-+#define __sanitizer_syscall_pre___msync13(addr, len, flags)                    \
-+  __sanitizer_syscall_pre_impl___msync13((long long)(addr), (long long)(len),  \
-+                                         (long long)(flags))
-+#define __sanitizer_syscall_post___msync13(res, addr, len, flags)              \
-+  __sanitizer_syscall_post_impl___msync13(                                     \
-+      res, (long long)(addr), (long long)(len), (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_30___stat13(path, ub)                   \
-+  __sanitizer_syscall_pre_impl_compat_30___stat13((long long)(path),           \
-+                                                  (long long)(ub))
-+#define __sanitizer_syscall_post_compat_30___stat13(res, path, ub)             \
-+  __sanitizer_syscall_post_impl_compat_30___stat13(res, (long long)(path),     \
-+                                                   (long long)(ub))
-+#define __sanitizer_syscall_pre_compat_30___fstat13(fd, sb)                    \
-+  __sanitizer_syscall_pre_impl_compat_30___fstat13((long long)(fd),            \
-+                                                   (long long)(sb))
-+#define __sanitizer_syscall_post_compat_30___fstat13(res, fd, sb)              \
-+  __sanitizer_syscall_post_impl_compat_30___fstat13(res, (long long)(fd),      \
-+                                                    (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_30___lstat13(path, ub)                  \
-+  __sanitizer_syscall_pre_impl_compat_30___lstat13((long long)(path),          \
-+                                                   (long long)(ub))
-+#define __sanitizer_syscall_post_compat_30___lstat13(res, path, ub)            \
-+  __sanitizer_syscall_post_impl_compat_30___lstat13(res, (long long)(path),    \
-+                                                    (long long)(ub))
-+#define __sanitizer_syscall_pre___sigaltstack14(nss, oss)                      \
-+  __sanitizer_syscall_pre_impl___sigaltstack14((long long)(nss),               \
-+                                               (long long)(oss))
-+#define __sanitizer_syscall_post___sigaltstack14(res, nss, oss)                \
-+  __sanitizer_syscall_post_impl___sigaltstack14(res, (long long)(nss),         \
-+                                                (long long)(oss))
-+#define __sanitizer_syscall_pre___vfork14()                                    \
-+  __sanitizer_syscall_pre_impl___vfork14()
-+#define __sanitizer_syscall_post___vfork14(res)                                \
-+  __sanitizer_syscall_post_impl___vfork14(res)
-+#define __sanitizer_syscall_pre___posix_chown(path, uid, gid)                  \
-+  __sanitizer_syscall_pre_impl___posix_chown(                                  \
-+      (long long)(path), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_post___posix_chown(res, path, uid, gid)            \
-+  __sanitizer_syscall_post_impl___posix_chown(                                 \
-+      res, (long long)(path), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_pre___posix_fchown(fd, uid, gid)                   \
-+  __sanitizer_syscall_pre_impl___posix_fchown(                                 \
-+      (long long)(fd), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_post___posix_fchown(res, fd, uid, gid)             \
-+  __sanitizer_syscall_post_impl___posix_fchown(                                \
-+      res, (long long)(fd), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_pre___posix_lchown(path, uid, gid)                 \
-+  __sanitizer_syscall_pre_impl___posix_lchown(                                 \
-+      (long long)(path), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_post___posix_lchown(res, path, uid, gid)           \
-+  __sanitizer_syscall_post_impl___posix_lchown(                                \
-+      res, (long long)(path), (long long)(uid), (long long)(gid))
-+#define __sanitizer_syscall_pre_getsid(pid)                                    \
-+  __sanitizer_syscall_pre_impl_getsid((long long)(pid))
-+#define __sanitizer_syscall_post_getsid(res, pid)                              \
-+  __sanitizer_syscall_post_impl_getsid(res, (long long)(pid))
-+#define __sanitizer_syscall_pre___clone(flags, stack)                          \
-+  __sanitizer_syscall_pre_impl___clone((long long)(flags), (long long)(stack))
-+#define __sanitizer_syscall_post___clone(res, flags, stack)                    \
-+  __sanitizer_syscall_post_impl___clone(res, (long long)(flags),               \
-+                                        (long long)(stack))
-+#define __sanitizer_syscall_pre_fktrace(fd, ops, facs, pid)                    \
-+  __sanitizer_syscall_pre_impl_fktrace((long long)(fd), (long long)(ops),      \
-+                                       (long long)(facs), (long long)(pid))
-+#define __sanitizer_syscall_post_fktrace(res, fd, ops, facs, pid)              \
-+  __sanitizer_syscall_post_impl_fktrace(res, (long long)(fd),                  \
-+                                        (long long)(ops), (long long)(facs),   \
-+                                        (long long)(pid))
-+#define __sanitizer_syscall_pre_preadv(fd, iovp, iovcnt, PAD, offset)          \
-+  __sanitizer_syscall_pre_impl_preadv((long long)(fd), (long long)(iovp),      \
-+                                      (long long)(iovcnt), (long long)(PAD),   \
-+                                      (long long)(offset))
-+#define __sanitizer_syscall_post_preadv(res, fd, iovp, iovcnt, PAD, offset)    \
-+  __sanitizer_syscall_post_impl_preadv(res, (long long)(fd),                   \
-+                                       (long long)(iovp), (long long)(iovcnt), \
-+                                       (long long)(PAD), (long long)(offset))
-+#define __sanitizer_syscall_pre_pwritev(fd, iovp, iovcnt, PAD, offset)         \
-+  __sanitizer_syscall_pre_impl_pwritev((long long)(fd), (long long)(iovp),     \
-+                                       (long long)(iovcnt), (long long)(PAD),  \
-+                                       (long long)(offset))
-+#define __sanitizer_syscall_post_pwritev(res, fd, iovp, iovcnt, PAD, offset)   \
-+  __sanitizer_syscall_post_impl_pwritev(                                       \
-+      res, (long long)(fd), (long long)(iovp), (long long)(iovcnt),            \
-+      (long long)(PAD), (long long)(offset))
-+#define __sanitizer_syscall_pre_compat_16___sigaction14(signum, nsa, osa)      \
-+  __sanitizer_syscall_pre_impl_compat_16___sigaction14(                        \
-+      (long long)(signum), (long long)(nsa), (long long)(osa))
-+#define __sanitizer_syscall_post_compat_16___sigaction14(res, signum, nsa,     \
-+                                                         osa)                  \
-+  __sanitizer_syscall_post_impl_compat_16___sigaction14(                       \
-+      res, (long long)(signum), (long long)(nsa), (long long)(osa))
-+#define __sanitizer_syscall_pre___sigpending14(set)                            \
-+  __sanitizer_syscall_pre_impl___sigpending14((long long)(set))
-+#define __sanitizer_syscall_post___sigpending14(res, set)                      \
-+  __sanitizer_syscall_post_impl___sigpending14(res, (long long)(set))
-+#define __sanitizer_syscall_pre___sigprocmask14(how, set, oset)                \
-+  __sanitizer_syscall_pre_impl___sigprocmask14(                                \
-+      (long long)(how), (long long)(set), (long long)(oset))
-+#define __sanitizer_syscall_post___sigprocmask14(res, how, set, oset)          \
-+  __sanitizer_syscall_post_impl___sigprocmask14(                               \
-+      res, (long long)(how), (long long)(set), (long long)(oset))
-+#define __sanitizer_syscall_pre___sigsuspend14(set)                            \
-+  __sanitizer_syscall_pre_impl___sigsuspend14((long long)(set))
-+#define __sanitizer_syscall_post___sigsuspend14(res, set)                      \
-+  __sanitizer_syscall_post_impl___sigsuspend14(res, (long long)(set))
-+#define __sanitizer_syscall_pre_compat_16___sigreturn14(sigcntxp)              \
-+  __sanitizer_syscall_pre_impl_compat_16___sigreturn14((long long)(sigcntxp))
-+#define __sanitizer_syscall_post_compat_16___sigreturn14(res, sigcntxp)        \
-+  __sanitizer_syscall_post_impl_compat_16___sigreturn14(res,                   \
-+                                                        (long long)(sigcntxp))
-+#define __sanitizer_syscall_pre___getcwd(bufp, length)                         \
-+  __sanitizer_syscall_pre_impl___getcwd((long long)(bufp), (long long)(length))
-+#define __sanitizer_syscall_post___getcwd(res, bufp, length)                   \
-+  __sanitizer_syscall_post_impl___getcwd(res, (long long)(bufp),               \
-+                                         (long long)(length))
-+#define __sanitizer_syscall_pre_fchroot(fd)                                    \
-+  __sanitizer_syscall_pre_impl_fchroot((long long)(fd))
-+#define __sanitizer_syscall_post_fchroot(res, fd)                              \
-+  __sanitizer_syscall_post_impl_fchroot(res, (long long)(fd))
-+#define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags)                   \
-+  __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp),              \
-+                                                (long long)(flags))
-+#define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags)             \
-+  __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp),        \
-+                                                 (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb)                      \
-+  __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp),              \
-+                                                (long long)(sb))
-+#define __sanitizer_syscall_post_compat_30_fhstat(res, fhp, sb)                \
-+  __sanitizer_syscall_post_impl_compat_30_fhstat(res, (long long)(fhp),        \
-+                                                 (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_20_fhstatfs(fhp, buf)                   \
-+  __sanitizer_syscall_pre_impl_compat_20_fhstatfs((long long)(fhp),            \
-+                                                  (long long)(buf))
-+#define __sanitizer_syscall_post_compat_20_fhstatfs(res, fhp, buf)             \
-+  __sanitizer_syscall_post_impl_compat_20_fhstatfs(res, (long long)(fhp),      \
-+                                                   (long long)(buf))
-+#define __sanitizer_syscall_pre_compat_50_____semctl13(semid, semnum, cmd,     \
-+                                                       arg)                    \
-+  __sanitizer_syscall_pre_impl_compat_50_____semctl13(                         \
-+      (long long)(semid), (long long)(semnum), (long long)(cmd),               \
-+      (long long)(arg))
-+#define __sanitizer_syscall_post_compat_50_____semctl13(res, semid, semnum,    \
-+                                                        cmd, arg)              \
-+  __sanitizer_syscall_post_impl_compat_50_____semctl13(                        \
-+      res, (long long)(semid), (long long)(semnum), (long long)(cmd),          \
-+      (long long)(arg))
-+#define __sanitizer_syscall_pre_compat_50___msgctl13(msqid, cmd, buf)          \
-+  __sanitizer_syscall_pre_impl_compat_50___msgctl13(                           \
-+      (long long)(msqid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post_compat_50___msgctl13(res, msqid, cmd, buf)    \
-+  __sanitizer_syscall_post_impl_compat_50___msgctl13(                          \
-+      res, (long long)(msqid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre_compat_50___shmctl13(shmid, cmd, buf)          \
-+  __sanitizer_syscall_pre_impl_compat_50___shmctl13(                           \
-+      (long long)(shmid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post_compat_50___shmctl13(res, shmid, cmd, buf)    \
-+  __sanitizer_syscall_post_impl_compat_50___shmctl13(                          \
-+      res, (long long)(shmid), (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre_lchflags(path, flags)                          \
-+  __sanitizer_syscall_pre_impl_lchflags((long long)(path), (long long)(flags))
-+#define __sanitizer_syscall_post_lchflags(res, path, flags)                    \
-+  __sanitizer_syscall_post_impl_lchflags(res, (long long)(path),               \
-+                                         (long long)(flags))
-+#define __sanitizer_syscall_pre_issetugid()                                    \
-+  __sanitizer_syscall_pre_impl_issetugid()
-+#define __sanitizer_syscall_post_issetugid(res)                                \
-+  __sanitizer_syscall_post_impl_issetugid(res)
-+#define __sanitizer_syscall_pre_utrace(label, addr, len)                       \
-+  __sanitizer_syscall_pre_impl_utrace((long long)(label), (long long)(addr),   \
-+                                      (long long)(len))
-+#define __sanitizer_syscall_post_utrace(res, label, addr, len)                 \
-+  __sanitizer_syscall_post_impl_utrace(res, (long long)(label),                \
-+                                       (long long)(addr), (long long)(len))
-+#define __sanitizer_syscall_pre_getcontext(ucp)                                \
-+  __sanitizer_syscall_pre_impl_getcontext((long long)(ucp))
-+#define __sanitizer_syscall_post_getcontext(res, ucp)                          \
-+  __sanitizer_syscall_post_impl_getcontext(res, (long long)(ucp))
-+#define __sanitizer_syscall_pre_setcontext(ucp)                                \
-+  __sanitizer_syscall_pre_impl_setcontext((long long)(ucp))
-+#define __sanitizer_syscall_post_setcontext(res, ucp)                          \
-+  __sanitizer_syscall_post_impl_setcontext(res, (long long)(ucp))
-+#define __sanitizer_syscall_pre__lwp_create(ucp, flags, new_lwp)               \
-+  __sanitizer_syscall_pre_impl__lwp_create(                                    \
-+      (long long)(ucp), (long long)(flags), (long long)(new_lwp))
-+#define __sanitizer_syscall_post__lwp_create(res, ucp, flags, new_lwp)         \
-+  __sanitizer_syscall_post_impl__lwp_create(                                   \
-+      res, (long long)(ucp), (long long)(flags), (long long)(new_lwp))
-+#define __sanitizer_syscall_pre__lwp_exit()                                    \
-+  __sanitizer_syscall_pre_impl__lwp_exit()
-+#define __sanitizer_syscall_post__lwp_exit(res)                                \
-+  __sanitizer_syscall_post_impl__lwp_exit(res)
-+#define __sanitizer_syscall_pre__lwp_self()                                    \
-+  __sanitizer_syscall_pre_impl__lwp_self()
-+#define __sanitizer_syscall_post__lwp_self(res)                                \
-+  __sanitizer_syscall_post_impl__lwp_self(res)
-+#define __sanitizer_syscall_pre__lwp_wait(wait_for, departed)                  \
-+  __sanitizer_syscall_pre_impl__lwp_wait((long long)(wait_for),                \
-+                                         (long long)(departed))
-+#define __sanitizer_syscall_post__lwp_wait(res, wait_for, departed)            \
-+  __sanitizer_syscall_post_impl__lwp_wait(res, (long long)(wait_for),          \
-+                                          (long long)(departed))
-+#define __sanitizer_syscall_pre__lwp_suspend(target)                           \
-+  __sanitizer_syscall_pre_impl__lwp_suspend((long long)(target))
-+#define __sanitizer_syscall_post__lwp_suspend(res, target)                     \
-+  __sanitizer_syscall_post_impl__lwp_suspend(res, (long long)(target))
-+#define __sanitizer_syscall_pre__lwp_continue(target)                          \
-+  __sanitizer_syscall_pre_impl__lwp_continue((long long)(target))
-+#define __sanitizer_syscall_post__lwp_continue(res, target)                    \
-+  __sanitizer_syscall_post_impl__lwp_continue(res, (long long)(target))
-+#define __sanitizer_syscall_pre__lwp_wakeup(target)                            \
-+  __sanitizer_syscall_pre_impl__lwp_wakeup((long long)(target))
-+#define __sanitizer_syscall_post__lwp_wakeup(res, target)                      \
-+  __sanitizer_syscall_post_impl__lwp_wakeup(res, (long long)(target))
-+#define __sanitizer_syscall_pre__lwp_getprivate()                              \
-+  __sanitizer_syscall_pre_impl__lwp_getprivate()
-+#define __sanitizer_syscall_post__lwp_getprivate(res)                          \
-+  __sanitizer_syscall_post_impl__lwp_getprivate(res)
-+#define __sanitizer_syscall_pre__lwp_setprivate(ptr)                           \
-+  __sanitizer_syscall_pre_impl__lwp_setprivate((long long)(ptr))
-+#define __sanitizer_syscall_post__lwp_setprivate(res, ptr)                     \
-+  __sanitizer_syscall_post_impl__lwp_setprivate(res, (long long)(ptr))
-+#define __sanitizer_syscall_pre__lwp_kill(target, signo)                       \
-+  __sanitizer_syscall_pre_impl__lwp_kill((long long)(target),                  \
-+                                         (long long)(signo))
-+#define __sanitizer_syscall_post__lwp_kill(res, target, signo)                 \
-+  __sanitizer_syscall_post_impl__lwp_kill(res, (long long)(target),            \
-+                                          (long long)(signo))
-+#define __sanitizer_syscall_pre__lwp_detach(target)                            \
-+  __sanitizer_syscall_pre_impl__lwp_detach((long long)(target))
-+#define __sanitizer_syscall_post__lwp_detach(res, target)                      \
-+  __sanitizer_syscall_post_impl__lwp_detach(res, (long long)(target))
-+#define __sanitizer_syscall_pre_compat_50__lwp_park(ts, unpark, hint,          \
-+                                                    unparkhint)                \
-+  __sanitizer_syscall_pre_impl_compat_50__lwp_park(                            \
-+      (long long)(ts), (long long)(unpark), (long long)(hint),                 \
-+      (long long)(unparkhint))
-+#define __sanitizer_syscall_post_compat_50__lwp_park(res, ts, unpark, hint,    \
-+                                                     unparkhint)               \
-+  __sanitizer_syscall_post_impl_compat_50__lwp_park(                           \
-+      res, (long long)(ts), (long long)(unpark), (long long)(hint),            \
-+      (long long)(unparkhint))
-+#define __sanitizer_syscall_pre__lwp_unpark(target, hint)                      \
-+  __sanitizer_syscall_pre_impl__lwp_unpark((long long)(target),                \
-+                                           (long long)(hint))
-+#define __sanitizer_syscall_post__lwp_unpark(res, target, hint)                \
-+  __sanitizer_syscall_post_impl__lwp_unpark(res, (long long)(target),          \
-+                                            (long long)(hint))
-+#define __sanitizer_syscall_pre__lwp_unpark_all(targets, ntargets, hint)       \
-+  __sanitizer_syscall_pre_impl__lwp_unpark_all(                                \
-+      (long long)(targets), (long long)(ntargets), (long long)(hint))
-+#define __sanitizer_syscall_post__lwp_unpark_all(res, targets, ntargets, hint) \
-+  __sanitizer_syscall_post_impl__lwp_unpark_all(                               \
-+      res, (long long)(targets), (long long)(ntargets), (long long)(hint))
-+#define __sanitizer_syscall_pre__lwp_setname(target, name)                     \
-+  __sanitizer_syscall_pre_impl__lwp_setname((long long)(target),               \
-+                                            (long long)(name))
-+#define __sanitizer_syscall_post__lwp_setname(res, target, name)               \
-+  __sanitizer_syscall_post_impl__lwp_setname(res, (long long)(target),         \
-+                                             (long long)(name))
-+#define __sanitizer_syscall_pre__lwp_getname(target, name, len)                \
-+  __sanitizer_syscall_pre_impl__lwp_getname(                                   \
-+      (long long)(target), (long long)(name), (long long)(len))
-+#define __sanitizer_syscall_post__lwp_getname(res, target, name, len)          \
-+  __sanitizer_syscall_post_impl__lwp_getname(                                  \
-+      res, (long long)(target), (long long)(name), (long long)(len))
-+#define __sanitizer_syscall_pre__lwp_ctl(features, address)                    \
-+  __sanitizer_syscall_pre_impl__lwp_ctl((long long)(features),                 \
-+                                        (long long)(address))
-+#define __sanitizer_syscall_post__lwp_ctl(res, features, address)              \
-+  __sanitizer_syscall_post_impl__lwp_ctl(res, (long long)(features),           \
-+                                         (long long)(address))
-+/* syscall 326 has been skipped */
-+/* syscall 327 has been skipped */
-+/* syscall 328 has been skipped */
-+/* syscall 329 has been skipped */
-+#define __sanitizer_syscall_pre_compat_60_sa_register(newv, oldv, flags,       \
-+                                                      stackinfo_offset)        \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_register(                          \
-+      (long long)(newv), (long long)(oldv), (long long)(flags),                \
-+      (long long)(stackinfo_offset))
-+#define __sanitizer_syscall_post_compat_60_sa_register(res, newv, oldv, flags, \
-+                                                       stackinfo_offset)       \
-+  __sanitizer_syscall_post_impl_compat_60_sa_register(                         \
-+      res, (long long)(newv), (long long)(oldv), (long long)(flags),           \
-+      (long long)(stackinfo_offset))
-+#define __sanitizer_syscall_pre_compat_60_sa_stacks(num, stacks)               \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_stacks((long long)(num),           \
-+                                                   (long long)(stacks))
-+#define __sanitizer_syscall_post_compat_60_sa_stacks(res, num, stacks)         \
-+  __sanitizer_syscall_post_impl_compat_60_sa_stacks(res, (long long)(num),     \
-+                                                    (long long)(stacks))
-+#define __sanitizer_syscall_pre_compat_60_sa_enable()                          \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_enable()
-+#define __sanitizer_syscall_post_compat_60_sa_enable(res)                      \
-+  __sanitizer_syscall_post_impl_compat_60_sa_enable(res)
-+#define __sanitizer_syscall_pre_compat_60_sa_setconcurrency(concurrency)       \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency(                    \
-+      (long long)(concurrency))
-+#define __sanitizer_syscall_post_compat_60_sa_setconcurrency(res, concurrency) \
-+  __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency(                   \
-+      res, (long long)(concurrency))
-+#define __sanitizer_syscall_pre_compat_60_sa_yield()                           \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_yield()
-+#define __sanitizer_syscall_post_compat_60_sa_yield(res)                       \
-+  __sanitizer_syscall_post_impl_compat_60_sa_yield(res)
-+#define __sanitizer_syscall_pre_compat_60_sa_preempt(sa_id)                    \
-+  __sanitizer_syscall_pre_impl_compat_60_sa_preempt((long long)(sa_id))
-+#define __sanitizer_syscall_post_compat_60_sa_preempt(res, sa_id)              \
-+  __sanitizer_syscall_post_impl_compat_60_sa_preempt(res, (long long)(sa_id))
-+/* syscall 336 has been skipped */
-+/* syscall 337 has been skipped */
-+/* syscall 338 has been skipped */
-+/* syscall 339 has been skipped */
-+#define __sanitizer_syscall_pre___sigaction_sigtramp(signum, nsa, osa, tramp,  \
-+                                                     vers)                     \
-+  __sanitizer_syscall_pre_impl___sigaction_sigtramp(                           \
-+      (long long)(signum), (long long)(nsa), (long long)(osa),                 \
-+      (long long)(tramp), (long long)(vers))
-+#define __sanitizer_syscall_post___sigaction_sigtramp(res, signum, nsa, osa,   \
-+                                                      tramp, vers)             \
-+  __sanitizer_syscall_post_impl___sigaction_sigtramp(                          \
-+      res, (long long)(signum), (long long)(nsa), (long long)(osa),            \
-+      (long long)(tramp), (long long)(vers))
-+#define __sanitizer_syscall_pre_pmc_get_info(ctr, op, args)                    \
-+  __sanitizer_syscall_pre_impl_pmc_get_info((long long)(ctr), (long long)(op), \
-+                                            (long long)(args))
-+#define __sanitizer_syscall_post_pmc_get_info(res, ctr, op, args)              \
-+  __sanitizer_syscall_post_impl_pmc_get_info(                                  \
-+      res, (long long)(ctr), (long long)(op), (long long)(args))
-+#define __sanitizer_syscall_pre_pmc_control(ctr, op, args)                     \
-+  __sanitizer_syscall_pre_impl_pmc_control((long long)(ctr), (long long)(op),  \
-+                                           (long long)(args))
-+#define __sanitizer_syscall_post_pmc_control(res, ctr, op, args)               \
-+  __sanitizer_syscall_post_impl_pmc_control(                                   \
-+      res, (long long)(ctr), (long long)(op), (long long)(args))
-+#define __sanitizer_syscall_pre_rasctl(addr, len, op)                          \
-+  __sanitizer_syscall_pre_impl_rasctl((long long)(addr), (long long)(len),     \
-+                                      (long long)(op))
-+#define __sanitizer_syscall_post_rasctl(res, addr, len, op)                    \
-+  __sanitizer_syscall_post_impl_rasctl(res, (long long)(addr),                 \
-+                                       (long long)(len), (long long)(op))
-+#define __sanitizer_syscall_pre_kqueue() __sanitizer_syscall_pre_impl_kqueue()
-+#define __sanitizer_syscall_post_kqueue(res)                                   \
-+  __sanitizer_syscall_post_impl_kqueue(res)
-+#define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges,     \
-+                                                 eventlist, nevents, timeout)  \
-+  __sanitizer_syscall_pre_impl_compat_50_kevent(                               \
-+      (long long)(fd), (long long)(changelist), (long long)(nchanges),         \
-+      (long long)(eventlist), (long long)(nevents), (long long)(timeout))
-+#define __sanitizer_syscall_post_compat_50_kevent(                             \
-+    res, fd, changelist, nchanges, eventlist, nevents, timeout)                \
-+  __sanitizer_syscall_post_impl_compat_50_kevent(                              \
-+      res, (long long)(fd), (long long)(changelist), (long long)(nchanges),    \
-+      (long long)(eventlist), (long long)(nevents), (long long)(timeout))
-+#define __sanitizer_syscall_pre__sched_setparam(pid, lid, policy, params)      \
-+  __sanitizer_syscall_pre_impl__sched_setparam(                                \
-+      (long long)(pid), (long long)(lid), (long long)(policy),                 \
-+      (long long)(params))
-+#define __sanitizer_syscall_post__sched_setparam(res, pid, lid, policy,        \
-+                                                 params)                       \
-+  __sanitizer_syscall_post_impl__sched_setparam(                               \
-+      res, (long long)(pid), (long long)(lid), (long long)(policy),            \
-+      (long long)(params))
-+#define __sanitizer_syscall_pre__sched_getparam(pid, lid, policy, params)      \
-+  __sanitizer_syscall_pre_impl__sched_getparam(                                \
-+      (long long)(pid), (long long)(lid), (long long)(policy),                 \
-+      (long long)(params))
-+#define __sanitizer_syscall_post__sched_getparam(res, pid, lid, policy,        \
-+                                                 params)                       \
-+  __sanitizer_syscall_post_impl__sched_getparam(                               \
-+      res, (long long)(pid), (long long)(lid), (long long)(policy),            \
-+      (long long)(params))
-+#define __sanitizer_syscall_pre__sched_setaffinity(pid, lid, size, cpuset)     \
-+  __sanitizer_syscall_pre_impl__sched_setaffinity(                             \
-+      (long long)(pid), (long long)(lid), (long long)(size),                   \
-+      (long long)(cpuset))
-+#define __sanitizer_syscall_post__sched_setaffinity(res, pid, lid, size,       \
-+                                                    cpuset)                    \
-+  __sanitizer_syscall_post_impl__sched_setaffinity(                            \
-+      res, (long long)(pid), (long long)(lid), (long long)(size),              \
-+      (long long)(cpuset))
-+#define __sanitizer_syscall_pre__sched_getaffinity(pid, lid, size, cpuset)     \
-+  __sanitizer_syscall_pre_impl__sched_getaffinity(                             \
-+      (long long)(pid), (long long)(lid), (long long)(size),                   \
-+      (long long)(cpuset))
-+#define __sanitizer_syscall_post__sched_getaffinity(res, pid, lid, size,       \
-+                                                    cpuset)                    \
-+  __sanitizer_syscall_post_impl__sched_getaffinity(                            \
-+      res, (long long)(pid), (long long)(lid), (long long)(size),              \
-+      (long long)(cpuset))
-+#define __sanitizer_syscall_pre_sched_yield()                                  \
-+  __sanitizer_syscall_pre_impl_sched_yield()
-+#define __sanitizer_syscall_post_sched_yield(res)                              \
-+  __sanitizer_syscall_post_impl_sched_yield(res)
-+#define __sanitizer_syscall_pre__sched_protect(priority)                       \
-+  __sanitizer_syscall_pre_impl__sched_protect((long long)(priority))
-+#define __sanitizer_syscall_post__sched_protect(res, priority)                 \
-+  __sanitizer_syscall_post_impl__sched_protect(res, (long long)(priority))
-+/* syscall 352 has been skipped */
-+/* syscall 353 has been skipped */
-+#define __sanitizer_syscall_pre_fsync_range(fd, flags, start, length)          \
-+  __sanitizer_syscall_pre_impl_fsync_range(                                    \
-+      (long long)(fd), (long long)(flags), (long long)(start),                 \
-+      (long long)(length))
-+#define __sanitizer_syscall_post_fsync_range(res, fd, flags, start, length)    \
-+  __sanitizer_syscall_post_impl_fsync_range(                                   \
-+      res, (long long)(fd), (long long)(flags), (long long)(start),            \
-+      (long long)(length))
-+#define __sanitizer_syscall_pre_uuidgen(store, count)                          \
-+  __sanitizer_syscall_pre_impl_uuidgen((long long)(store), (long long)(count))
-+#define __sanitizer_syscall_post_uuidgen(res, store, count)                    \
-+  __sanitizer_syscall_post_impl_uuidgen(res, (long long)(store),               \
-+                                        (long long)(count))
-+#define __sanitizer_syscall_pre_getvfsstat(buf, bufsize, flags)                \
-+  __sanitizer_syscall_pre_impl_getvfsstat(                                     \
-+      (long long)(buf), (long long)(bufsize), (long long)(flags))
-+#define __sanitizer_syscall_post_getvfsstat(res, buf, bufsize, flags)          \
-+  __sanitizer_syscall_post_impl_getvfsstat(                                    \
-+      res, (long long)(buf), (long long)(bufsize), (long long)(flags))
-+#define __sanitizer_syscall_pre_statvfs1(path, buf, flags)                     \
-+  __sanitizer_syscall_pre_impl_statvfs1((long long)(path), (long long)(buf),   \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_post_statvfs1(res, path, buf, flags)               \
-+  __sanitizer_syscall_post_impl_statvfs1(res, (long long)(path),               \
-+                                         (long long)(buf), (long long)(flags))
-+#define __sanitizer_syscall_pre_fstatvfs1(fd, buf, flags)                      \
-+  __sanitizer_syscall_pre_impl_fstatvfs1((long long)(fd), (long long)(buf),    \
-+                                         (long long)(flags))
-+#define __sanitizer_syscall_post_fstatvfs1(res, fd, buf, flags)                \
-+  __sanitizer_syscall_post_impl_fstatvfs1(                                     \
-+      res, (long long)(fd), (long long)(buf), (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_30_fhstatvfs1(fhp, buf, flags)          \
-+  __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1(                           \
-+      (long long)(fhp), (long long)(buf), (long long)(flags))
-+#define __sanitizer_syscall_post_compat_30_fhstatvfs1(res, fhp, buf, flags)    \
-+  __sanitizer_syscall_post_impl_compat_30_fhstatvfs1(                          \
-+      res, (long long)(fhp), (long long)(buf), (long long)(flags))
-+#define __sanitizer_syscall_pre_extattrctl(path, cmd, filename, attrnamespace, \
-+                                           attrname)                           \
-+  __sanitizer_syscall_pre_impl_extattrctl(                                     \
-+      (long long)(path), (long long)(cmd), (long long)(filename),              \
-+      (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_post_extattrctl(res, path, cmd, filename,          \
-+                                            attrnamespace, attrname)           \
-+  __sanitizer_syscall_post_impl_extattrctl(                                    \
-+      res, (long long)(path), (long long)(cmd), (long long)(filename),         \
-+      (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_pre_extattr_set_file(path, attrnamespace,          \
-+                                                 attrname, data, nbytes)       \
-+  __sanitizer_syscall_pre_impl_extattr_set_file(                               \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname),    \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_set_file(res, path, attrnamespace,    \
-+                                                  attrname, data, nbytes)      \
-+  __sanitizer_syscall_post_impl_extattr_set_file(                              \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname), (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_get_file(path, attrnamespace,          \
-+                                                 attrname, data, nbytes)       \
-+  __sanitizer_syscall_pre_impl_extattr_get_file(                               \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname),    \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_get_file(res, path, attrnamespace,    \
-+                                                  attrname, data, nbytes)      \
-+  __sanitizer_syscall_post_impl_extattr_get_file(                              \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname), (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_delete_file(path, attrnamespace,       \
-+                                                    attrname)                  \
-+  __sanitizer_syscall_pre_impl_extattr_delete_file(                            \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_post_extattr_delete_file(res, path, attrnamespace, \
-+                                                     attrname)                 \
-+  __sanitizer_syscall_post_impl_extattr_delete_file(                           \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname))
-+#define __sanitizer_syscall_pre_extattr_set_fd(fd, attrnamespace, attrname,    \
-+                                               data, nbytes)                   \
-+  __sanitizer_syscall_pre_impl_extattr_set_fd(                                 \
-+      (long long)(fd), (long long)(attrnamespace), (long long)(attrname),      \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_set_fd(res, fd, attrnamespace,        \
-+                                                attrname, data, nbytes)        \
-+  __sanitizer_syscall_post_impl_extattr_set_fd(                                \
-+      res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_get_fd(fd, attrnamespace, attrname,    \
-+                                               data, nbytes)                   \
-+  __sanitizer_syscall_pre_impl_extattr_get_fd(                                 \
-+      (long long)(fd), (long long)(attrnamespace), (long long)(attrname),      \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_get_fd(res, fd, attrnamespace,        \
-+                                                attrname, data, nbytes)        \
-+  __sanitizer_syscall_post_impl_extattr_get_fd(                                \
-+      res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_delete_fd(fd, attrnamespace, attrname) \
-+  __sanitizer_syscall_pre_impl_extattr_delete_fd(                              \
-+      (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_post_extattr_delete_fd(res, fd, attrnamespace,     \
-+                                                   attrname)                   \
-+  __sanitizer_syscall_post_impl_extattr_delete_fd(                             \
-+      res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_pre_extattr_set_link(path, attrnamespace,          \
-+                                                 attrname, data, nbytes)       \
-+  __sanitizer_syscall_pre_impl_extattr_set_link(                               \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname),    \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_set_link(res, path, attrnamespace,    \
-+                                                  attrname, data, nbytes)      \
-+  __sanitizer_syscall_post_impl_extattr_set_link(                              \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname), (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_get_link(path, attrnamespace,          \
-+                                                 attrname, data, nbytes)       \
-+  __sanitizer_syscall_pre_impl_extattr_get_link(                               \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname),    \
-+      (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_get_link(res, path, attrnamespace,    \
-+                                                  attrname, data, nbytes)      \
-+  __sanitizer_syscall_post_impl_extattr_get_link(                              \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname), (long long)(data), (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_delete_link(path, attrnamespace,       \
-+                                                    attrname)                  \
-+  __sanitizer_syscall_pre_impl_extattr_delete_link(                            \
-+      (long long)(path), (long long)(attrnamespace), (long long)(attrname))
-+#define __sanitizer_syscall_post_extattr_delete_link(res, path, attrnamespace, \
-+                                                     attrname)                 \
-+  __sanitizer_syscall_post_impl_extattr_delete_link(                           \
-+      res, (long long)(path), (long long)(attrnamespace),                      \
-+      (long long)(attrname))
-+#define __sanitizer_syscall_pre_extattr_list_fd(fd, attrnamespace, data,       \
-+                                                nbytes)                        \
-+  __sanitizer_syscall_pre_impl_extattr_list_fd(                                \
-+      (long long)(fd), (long long)(attrnamespace), (long long)(data),          \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_list_fd(res, fd, attrnamespace, data, \
-+                                                 nbytes)                       \
-+  __sanitizer_syscall_post_impl_extattr_list_fd(                               \
-+      res, (long long)(fd), (long long)(attrnamespace), (long long)(data),     \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_list_file(path, attrnamespace, data,   \
-+                                                  nbytes)                      \
-+  __sanitizer_syscall_pre_impl_extattr_list_file(                              \
-+      (long long)(path), (long long)(attrnamespace), (long long)(data),        \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_list_file(res, path, attrnamespace,   \
-+                                                   data, nbytes)               \
-+  __sanitizer_syscall_post_impl_extattr_list_file(                             \
-+      res, (long long)(path), (long long)(attrnamespace), (long long)(data),   \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_pre_extattr_list_link(path, attrnamespace, data,   \
-+                                                  nbytes)                      \
-+  __sanitizer_syscall_pre_impl_extattr_list_link(                              \
-+      (long long)(path), (long long)(attrnamespace), (long long)(data),        \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_post_extattr_list_link(res, path, attrnamespace,   \
-+                                                   data, nbytes)               \
-+  __sanitizer_syscall_post_impl_extattr_list_link(                             \
-+      res, (long long)(path), (long long)(attrnamespace), (long long)(data),   \
-+      (long long)(nbytes))
-+#define __sanitizer_syscall_pre_compat_50_pselect(nd, in, ou, ex, ts, mask)    \
-+  __sanitizer_syscall_pre_impl_compat_50_pselect(                              \
-+      (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex),      \
-+      (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_post_compat_50_pselect(res, nd, in, ou, ex, ts,    \
-+                                                   mask)                       \
-+  __sanitizer_syscall_post_impl_compat_50_pselect(                             \
-+      res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
-+      (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_pre_compat_50_pollts(fds, nfds, ts, mask)          \
-+  __sanitizer_syscall_pre_impl_compat_50_pollts(                               \
-+      (long long)(fds), (long long)(nfds), (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_post_compat_50_pollts(res, fds, nfds, ts, mask)    \
-+  __sanitizer_syscall_post_impl_compat_50_pollts(                              \
-+      res, (long long)(fds), (long long)(nfds), (long long)(ts),               \
-+      (long long)(mask))
-+#define __sanitizer_syscall_pre_setxattr(path, name, value, size, flags)       \
-+  __sanitizer_syscall_pre_impl_setxattr((long long)(path), (long long)(name),  \
-+                                        (long long)(value), (long long)(size), \
-+                                        (long long)(flags))
-+#define __sanitizer_syscall_post_setxattr(res, path, name, value, size, flags) \
-+  __sanitizer_syscall_post_impl_setxattr(                                      \
-+      res, (long long)(path), (long long)(name), (long long)(value),           \
-+      (long long)(size), (long long)(flags))
-+#define __sanitizer_syscall_pre_lsetxattr(path, name, value, size, flags)      \
-+  __sanitizer_syscall_pre_impl_lsetxattr(                                      \
-+      (long long)(path), (long long)(name), (long long)(value),                \
-+      (long long)(size), (long long)(flags))
-+#define __sanitizer_syscall_post_lsetxattr(res, path, name, value, size,       \
-+                                           flags)                              \
-+  __sanitizer_syscall_post_impl_lsetxattr(                                     \
-+      res, (long long)(path), (long long)(name), (long long)(value),           \
-+      (long long)(size), (long long)(flags))
-+#define __sanitizer_syscall_pre_fsetxattr(fd, name, value, size, flags)        \
-+  __sanitizer_syscall_pre_impl_fsetxattr(                                      \
-+      (long long)(fd), (long long)(name), (long long)(value),                  \
-+      (long long)(size), (long long)(flags))
-+#define __sanitizer_syscall_post_fsetxattr(res, fd, name, value, size, flags)  \
-+  __sanitizer_syscall_post_impl_fsetxattr(                                     \
-+      res, (long long)(fd), (long long)(name), (long long)(value),             \
-+      (long long)(size), (long long)(flags))
-+#define __sanitizer_syscall_pre_getxattr(path, name, value, size)              \
-+  __sanitizer_syscall_pre_impl_getxattr((long long)(path), (long long)(name),  \
-+                                        (long long)(value), (long long)(size))
-+#define __sanitizer_syscall_post_getxattr(res, path, name, value, size)        \
-+  __sanitizer_syscall_post_impl_getxattr(                                      \
-+      res, (long long)(path), (long long)(name), (long long)(value),           \
-+      (long long)(size))
-+#define __sanitizer_syscall_pre_lgetxattr(path, name, value, size)             \
-+  __sanitizer_syscall_pre_impl_lgetxattr((long long)(path), (long long)(name), \
-+                                         (long long)(value),                   \
-+                                         (long long)(size))
-+#define __sanitizer_syscall_post_lgetxattr(res, path, name, value, size)       \
-+  __sanitizer_syscall_post_impl_lgetxattr(                                     \
-+      res, (long long)(path), (long long)(name), (long long)(value),           \
-+      (long long)(size))
-+#define __sanitizer_syscall_pre_fgetxattr(fd, name, value, size)               \
-+  __sanitizer_syscall_pre_impl_fgetxattr((long long)(fd), (long long)(name),   \
-+                                         (long long)(value),                   \
-+                                         (long long)(size))
-+#define __sanitizer_syscall_post_fgetxattr(res, fd, name, value, size)         \
-+  __sanitizer_syscall_post_impl_fgetxattr(                                     \
-+      res, (long long)(fd), (long long)(name), (long long)(value),             \
-+      (long long)(size))
-+#define __sanitizer_syscall_pre_listxattr(path, list, size)                    \
-+  __sanitizer_syscall_pre_impl_listxattr((long long)(path), (long long)(list), \
-+                                         (long long)(size))
-+#define __sanitizer_syscall_post_listxattr(res, path, list, size)              \
-+  __sanitizer_syscall_post_impl_listxattr(                                     \
-+      res, (long long)(path), (long long)(list), (long long)(size))
-+#define __sanitizer_syscall_pre_llistxattr(path, list, size)                   \
-+  __sanitizer_syscall_pre_impl_llistxattr(                                     \
-+      (long long)(path), (long long)(list), (long long)(size))
-+#define __sanitizer_syscall_post_llistxattr(res, path, list, size)             \
-+  __sanitizer_syscall_post_impl_llistxattr(                                    \
-+      res, (long long)(path), (long long)(list), (long long)(size))
-+#define __sanitizer_syscall_pre_flistxattr(fd, list, size)                     \
-+  __sanitizer_syscall_pre_impl_flistxattr((long long)(fd), (long long)(list),  \
-+                                          (long long)(size))
-+#define __sanitizer_syscall_post_flistxattr(res, fd, list, size)               \
-+  __sanitizer_syscall_post_impl_flistxattr(                                    \
-+      res, (long long)(fd), (long long)(list), (long long)(size))
-+#define __sanitizer_syscall_pre_removexattr(path, name)                        \
-+  __sanitizer_syscall_pre_impl_removexattr((long long)(path), (long long)(name))
-+#define __sanitizer_syscall_post_removexattr(res, path, name)                  \
-+  __sanitizer_syscall_post_impl_removexattr(res, (long long)(path),            \
-+                                            (long long)(name))
-+#define __sanitizer_syscall_pre_lremovexattr(path, name)                       \
-+  __sanitizer_syscall_pre_impl_lremovexattr((long long)(path),                 \
-+                                            (long long)(name))
-+#define __sanitizer_syscall_post_lremovexattr(res, path, name)                 \
-+  __sanitizer_syscall_post_impl_lremovexattr(res, (long long)(path),           \
-+                                             (long long)(name))
-+#define __sanitizer_syscall_pre_fremovexattr(fd, name)                         \
-+  __sanitizer_syscall_pre_impl_fremovexattr((long long)(fd), (long long)(name))
-+#define __sanitizer_syscall_post_fremovexattr(res, fd, name)                   \
-+  __sanitizer_syscall_post_impl_fremovexattr(res, (long long)(fd),             \
-+                                             (long long)(name))
-+#define __sanitizer_syscall_pre_compat_50___stat30(path, ub)                   \
-+  __sanitizer_syscall_pre_impl_compat_50___stat30((long long)(path),           \
-+                                                  (long long)(ub))
-+#define __sanitizer_syscall_post_compat_50___stat30(res, path, ub)             \
-+  __sanitizer_syscall_post_impl_compat_50___stat30(res, (long long)(path),     \
-+                                                   (long long)(ub))
-+#define __sanitizer_syscall_pre_compat_50___fstat30(fd, sb)                    \
-+  __sanitizer_syscall_pre_impl_compat_50___fstat30((long long)(fd),            \
-+                                                   (long long)(sb))
-+#define __sanitizer_syscall_post_compat_50___fstat30(res, fd, sb)              \
-+  __sanitizer_syscall_post_impl_compat_50___fstat30(res, (long long)(fd),      \
-+                                                    (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_50___lstat30(path, ub)                  \
-+  __sanitizer_syscall_pre_impl_compat_50___lstat30((long long)(path),          \
-+                                                   (long long)(ub))
-+#define __sanitizer_syscall_post_compat_50___lstat30(res, path, ub)            \
-+  __sanitizer_syscall_post_impl_compat_50___lstat30(res, (long long)(path),    \
-+                                                    (long long)(ub))
-+#define __sanitizer_syscall_pre___getdents30(fd, buf, count)                   \
-+  __sanitizer_syscall_pre_impl___getdents30((long long)(fd), (long long)(buf), \
-+                                            (long long)(count))
-+#define __sanitizer_syscall_post___getdents30(res, fd, buf, count)             \
-+  __sanitizer_syscall_post_impl___getdents30(                                  \
-+      res, (long long)(fd), (long long)(buf), (long long)(count))
-+#define __sanitizer_syscall_pre_posix_fadvise()                                \
-+  __sanitizer_syscall_pre_impl_posix_fadvise((long long)())
-+#define __sanitizer_syscall_post_posix_fadvise(res)                            \
-+  __sanitizer_syscall_post_impl_posix_fadvise(res, (long long)())
-+#define __sanitizer_syscall_pre_compat_30___fhstat30(fhp, sb)                  \
-+  __sanitizer_syscall_pre_impl_compat_30___fhstat30((long long)(fhp),          \
-+                                                    (long long)(sb))
-+#define __sanitizer_syscall_post_compat_30___fhstat30(res, fhp, sb)            \
-+  __sanitizer_syscall_post_impl_compat_30___fhstat30(res, (long long)(fhp),    \
-+                                                     (long long)(sb))
-+#define __sanitizer_syscall_pre_compat_50___ntp_gettime30(ntvp)                \
-+  __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30((long long)(ntvp))
-+#define __sanitizer_syscall_post_compat_50___ntp_gettime30(res, ntvp)          \
-+  __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(res,                 \
-+                                                          (long long)(ntvp))
-+#define __sanitizer_syscall_pre___socket30(domain, type, protocol)             \
-+  __sanitizer_syscall_pre_impl___socket30(                                     \
-+      (long long)(domain), (long long)(type), (long long)(protocol))
-+#define __sanitizer_syscall_post___socket30(res, domain, type, protocol)       \
-+  __sanitizer_syscall_post_impl___socket30(                                    \
-+      res, (long long)(domain), (long long)(type), (long long)(protocol))
-+#define __sanitizer_syscall_pre___getfh30(fname, fhp, fh_size)                 \
-+  __sanitizer_syscall_pre_impl___getfh30((long long)(fname), (long long)(fhp), \
-+                                         (long long)(fh_size))
-+#define __sanitizer_syscall_post___getfh30(res, fname, fhp, fh_size)           \
-+  __sanitizer_syscall_post_impl___getfh30(                                     \
-+      res, (long long)(fname), (long long)(fhp), (long long)(fh_size))
-+#define __sanitizer_syscall_pre___fhopen40(fhp, fh_size, flags)                \
-+  __sanitizer_syscall_pre_impl___fhopen40(                                     \
-+      (long long)(fhp), (long long)(fh_size), (long long)(flags))
-+#define __sanitizer_syscall_post___fhopen40(res, fhp, fh_size, flags)          \
-+  __sanitizer_syscall_post_impl___fhopen40(                                    \
-+      res, (long long)(fhp), (long long)(fh_size), (long long)(flags))
-+#define __sanitizer_syscall_pre___fhstatvfs140(fhp, fh_size, buf, flags)       \
-+  __sanitizer_syscall_pre_impl___fhstatvfs140(                                 \
-+      (long long)(fhp), (long long)(fh_size), (long long)(buf),                \
-+      (long long)(flags))
-+#define __sanitizer_syscall_post___fhstatvfs140(res, fhp, fh_size, buf, flags) \
-+  __sanitizer_syscall_post_impl___fhstatvfs140(                                \
-+      res, (long long)(fhp), (long long)(fh_size), (long long)(buf),           \
-+      (long long)(flags))
-+#define __sanitizer_syscall_pre_compat_50___fhstat40(fhp, fh_size, sb)         \
-+  __sanitizer_syscall_pre_impl_compat_50___fhstat40(                           \
-+      (long long)(fhp), (long long)(fh_size), (long long)(sb))
-+#define __sanitizer_syscall_post_compat_50___fhstat40(res, fhp, fh_size, sb)   \
-+  __sanitizer_syscall_post_impl_compat_50___fhstat40(                          \
-+      res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
-+#define __sanitizer_syscall_pre_aio_cancel(fildes, aiocbp)                     \
-+  __sanitizer_syscall_pre_impl_aio_cancel((long long)(fildes),                 \
-+                                          (long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_cancel(res, fildes, aiocbp)               \
-+  __sanitizer_syscall_post_impl_aio_cancel(res, (long long)(fildes),           \
-+                                           (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_aio_error(aiocbp)                              \
-+  __sanitizer_syscall_pre_impl_aio_error((long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_error(res, aiocbp)                        \
-+  __sanitizer_syscall_post_impl_aio_error(res, (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_aio_fsync(op, aiocbp)                          \
-+  __sanitizer_syscall_pre_impl_aio_fsync((long long)(op), (long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_fsync(res, op, aiocbp)                    \
-+  __sanitizer_syscall_post_impl_aio_fsync(res, (long long)(op),                \
-+                                          (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_aio_read(aiocbp)                               \
-+  __sanitizer_syscall_pre_impl_aio_read((long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_read(res, aiocbp)                         \
-+  __sanitizer_syscall_post_impl_aio_read(res, (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_aio_return(aiocbp)                             \
-+  __sanitizer_syscall_pre_impl_aio_return((long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_return(res, aiocbp)                       \
-+  __sanitizer_syscall_post_impl_aio_return(res, (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout)     \
-+  __sanitizer_syscall_pre_impl_compat_50_aio_suspend(                          \
-+      (long long)(list), (long long)(nent), (long long)(timeout))
-+#define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent,        \
-+                                                       timeout)                \
-+  __sanitizer_syscall_post_impl_compat_50_aio_suspend(                         \
-+      res, (long long)(list), (long long)(nent), (long long)(timeout))
-+#define __sanitizer_syscall_pre_aio_write(aiocbp)                              \
-+  __sanitizer_syscall_pre_impl_aio_write((long long)(aiocbp))
-+#define __sanitizer_syscall_post_aio_write(res, aiocbp)                        \
-+  __sanitizer_syscall_post_impl_aio_write(res, (long long)(aiocbp))
-+#define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig)              \
-+  __sanitizer_syscall_pre_impl_lio_listio((long long)(mode),                   \
-+                                          (long long)(list),                   \
-+                                          (long long)(nent), (long long)(sig))
-+#define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig)        \
-+  __sanitizer_syscall_post_impl_lio_listio(                                    \
-+      res, (long long)(mode), (long long)(list), (long long)(nent),            \
-+      (long long)(sig))
-+/* syscall 407 has been skipped */
-+/* syscall 408 has been skipped */
-+/* syscall 409 has been skipped */
-+#define __sanitizer_syscall_pre___mount50(type, path, flags, data, data_len)   \
-+  __sanitizer_syscall_pre_impl___mount50(                                      \
-+      (long long)(type), (long long)(path), (long long)(flags),                \
-+      (long long)(data), (long long)(data_len))
-+#define __sanitizer_syscall_post___mount50(res, type, path, flags, data,       \
-+                                           data_len)                           \
-+  __sanitizer_syscall_post_impl___mount50(                                     \
-+      res, (long long)(type), (long long)(path), (long long)(flags),           \
-+      (long long)(data), (long long)(data_len))
-+#define __sanitizer_syscall_pre_mremap(old_address, old_size, new_address,     \
-+                                       new_size, flags)                        \
-+  __sanitizer_syscall_pre_impl_mremap(                                         \
-+      (long long)(old_address), (long long)(old_size),                         \
-+      (long long)(new_address), (long long)(new_size), (long long)(flags))
-+#define __sanitizer_syscall_post_mremap(res, old_address, old_size,            \
-+                                        new_address, new_size, flags)          \
-+  __sanitizer_syscall_post_impl_mremap(                                        \
-+      res, (long long)(old_address), (long long)(old_size),                    \
-+      (long long)(new_address), (long long)(new_size), (long long)(flags))
-+#define __sanitizer_syscall_pre_pset_create(psid)                              \
-+  __sanitizer_syscall_pre_impl_pset_create((long long)(psid))
-+#define __sanitizer_syscall_post_pset_create(res, psid)                        \
-+  __sanitizer_syscall_post_impl_pset_create(res, (long long)(psid))
-+#define __sanitizer_syscall_pre_pset_destroy(psid)                             \
-+  __sanitizer_syscall_pre_impl_pset_destroy((long long)(psid))
-+#define __sanitizer_syscall_post_pset_destroy(res, psid)                       \
-+  __sanitizer_syscall_post_impl_pset_destroy(res, (long long)(psid))
-+#define __sanitizer_syscall_pre_pset_assign(psid, cpuid, opsid)                \
-+  __sanitizer_syscall_pre_impl_pset_assign(                                    \
-+      (long long)(psid), (long long)(cpuid), (long long)(opsid))
-+#define __sanitizer_syscall_post_pset_assign(res, psid, cpuid, opsid)          \
-+  __sanitizer_syscall_post_impl_pset_assign(                                   \
-+      res, (long long)(psid), (long long)(cpuid), (long long)(opsid))
-+#define __sanitizer_syscall_pre__pset_bind(idtype, first_id, second_id, psid,  \
-+                                           opsid)                              \
-+  __sanitizer_syscall_pre_impl__pset_bind(                                     \
-+      (long long)(idtype), (long long)(first_id), (long long)(second_id),      \
-+      (long long)(psid), (long long)(opsid))
-+#define __sanitizer_syscall_post__pset_bind(res, idtype, first_id, second_id,  \
-+                                            psid, opsid)                       \
-+  __sanitizer_syscall_post_impl__pset_bind(                                    \
-+      res, (long long)(idtype), (long long)(first_id), (long long)(second_id), \
-+      (long long)(psid), (long long)(opsid))
-+#define __sanitizer_syscall_pre___posix_fadvise50(fd, PAD, offset, len,        \
-+                                                  advice)                      \
-+  __sanitizer_syscall_pre_impl___posix_fadvise50(                              \
-+      (long long)(fd), (long long)(PAD), (long long)(offset),                  \
-+      (long long)(len), (long long)(advice))
-+#define __sanitizer_syscall_post___posix_fadvise50(res, fd, PAD, offset, len,  \
-+                                                   advice)                     \
-+  __sanitizer_syscall_post_impl___posix_fadvise50(                             \
-+      res, (long long)(fd), (long long)(PAD), (long long)(offset),             \
-+      (long long)(len), (long long)(advice))
-+#define __sanitizer_syscall_pre___select50(nd, in, ou, ex, tv)                 \
-+  __sanitizer_syscall_pre_impl___select50((long long)(nd), (long long)(in),    \
-+                                          (long long)(ou), (long long)(ex),    \
-+                                          (long long)(tv))
-+#define __sanitizer_syscall_post___select50(res, nd, in, ou, ex, tv)           \
-+  __sanitizer_syscall_post_impl___select50(res, (long long)(nd),               \
-+                                           (long long)(in), (long long)(ou),   \
-+                                           (long long)(ex), (long long)(tv))
-+#define __sanitizer_syscall_pre___gettimeofday50(tp, tzp)                      \
-+  __sanitizer_syscall_pre_impl___gettimeofday50((long long)(tp),               \
-+                                                (long long)(tzp))
-+#define __sanitizer_syscall_post___gettimeofday50(res, tp, tzp)                \
-+  __sanitizer_syscall_post_impl___gettimeofday50(res, (long long)(tp),         \
-+                                                 (long long)(tzp))
-+#define __sanitizer_syscall_pre___settimeofday50(tv, tzp)                      \
-+  __sanitizer_syscall_pre_impl___settimeofday50((long long)(tv),               \
-+                                                (long long)(tzp))
-+#define __sanitizer_syscall_post___settimeofday50(res, tv, tzp)                \
-+  __sanitizer_syscall_post_impl___settimeofday50(res, (long long)(tv),         \
-+                                                 (long long)(tzp))
-+#define __sanitizer_syscall_pre___utimes50(path, tptr)                         \
-+  __sanitizer_syscall_pre_impl___utimes50((long long)(path), (long long)(tptr))
-+#define __sanitizer_syscall_post___utimes50(res, path, tptr)                   \
-+  __sanitizer_syscall_post_impl___utimes50(res, (long long)(path),             \
-+                                           (long long)(tptr))
-+#define __sanitizer_syscall_pre___adjtime50(delta, olddelta)                   \
-+  __sanitizer_syscall_pre_impl___adjtime50((long long)(delta),                 \
-+                                           (long long)(olddelta))
-+#define __sanitizer_syscall_post___adjtime50(res, delta, olddelta)             \
-+  __sanitizer_syscall_post_impl___adjtime50(res, (long long)(delta),           \
-+                                            (long long)(olddelta))
-+#define __sanitizer_syscall_pre___lfs_segwait50(fsidp, tv)                     \
-+  __sanitizer_syscall_pre_impl___lfs_segwait50((long long)(fsidp),             \
-+                                               (long long)(tv))
-+#define __sanitizer_syscall_post___lfs_segwait50(res, fsidp, tv)               \
-+  __sanitizer_syscall_post_impl___lfs_segwait50(res, (long long)(fsidp),       \
-+                                                (long long)(tv))
-+#define __sanitizer_syscall_pre___futimes50(fd, tptr)                          \
-+  __sanitizer_syscall_pre_impl___futimes50((long long)(fd), (long long)(tptr))
-+#define __sanitizer_syscall_post___futimes50(res, fd, tptr)                    \
-+  __sanitizer_syscall_post_impl___futimes50(res, (long long)(fd),              \
-+                                            (long long)(tptr))
-+#define __sanitizer_syscall_pre___lutimes50(path, tptr)                        \
-+  __sanitizer_syscall_pre_impl___lutimes50((long long)(path), (long long)(tptr))
-+#define __sanitizer_syscall_post___lutimes50(res, path, tptr)                  \
-+  __sanitizer_syscall_post_impl___lutimes50(res, (long long)(path),            \
-+                                            (long long)(tptr))
-+#define __sanitizer_syscall_pre___setitimer50(which, itv, oitv)                \
-+  __sanitizer_syscall_pre_impl___setitimer50(                                  \
-+      (long long)(which), (long long)(itv), (long long)(oitv))
-+#define __sanitizer_syscall_post___setitimer50(res, which, itv, oitv)          \
-+  __sanitizer_syscall_post_impl___setitimer50(                                 \
-+      res, (long long)(which), (long long)(itv), (long long)(oitv))
-+#define __sanitizer_syscall_pre___getitimer50(which, itv)                      \
-+  __sanitizer_syscall_pre_impl___getitimer50((long long)(which),               \
-+                                             (long long)(itv))
-+#define __sanitizer_syscall_post___getitimer50(res, which, itv)                \
-+  __sanitizer_syscall_post_impl___getitimer50(res, (long long)(which),         \
-+                                              (long long)(itv))
-+#define __sanitizer_syscall_pre___clock_gettime50(clock_id, tp)                \
-+  __sanitizer_syscall_pre_impl___clock_gettime50((long long)(clock_id),        \
-+                                                 (long long)(tp))
-+#define __sanitizer_syscall_post___clock_gettime50(res, clock_id, tp)          \
-+  __sanitizer_syscall_post_impl___clock_gettime50(res, (long long)(clock_id),  \
-+                                                  (long long)(tp))
-+#define __sanitizer_syscall_pre___clock_settime50(clock_id, tp)                \
-+  __sanitizer_syscall_pre_impl___clock_settime50((long long)(clock_id),        \
-+                                                 (long long)(tp))
-+#define __sanitizer_syscall_post___clock_settime50(res, clock_id, tp)          \
-+  __sanitizer_syscall_post_impl___clock_settime50(res, (long long)(clock_id),  \
-+                                                  (long long)(tp))
-+#define __sanitizer_syscall_pre___clock_getres50(clock_id, tp)                 \
-+  __sanitizer_syscall_pre_impl___clock_getres50((long long)(clock_id),         \
-+                                                (long long)(tp))
-+#define __sanitizer_syscall_post___clock_getres50(res, clock_id, tp)           \
-+  __sanitizer_syscall_post_impl___clock_getres50(res, (long long)(clock_id),   \
-+                                                 (long long)(tp))
-+#define __sanitizer_syscall_pre___nanosleep50(rqtp, rmtp)                      \
-+  __sanitizer_syscall_pre_impl___nanosleep50((long long)(rqtp),                \
-+                                             (long long)(rmtp))
-+#define __sanitizer_syscall_post___nanosleep50(res, rqtp, rmtp)                \
-+  __sanitizer_syscall_post_impl___nanosleep50(res, (long long)(rqtp),          \
-+                                              (long long)(rmtp))
-+#define __sanitizer_syscall_pre_____sigtimedwait50(set, info, timeout)         \
-+  __sanitizer_syscall_pre_impl_____sigtimedwait50(                             \
-+      (long long)(set), (long long)(info), (long long)(timeout))
-+#define __sanitizer_syscall_post_____sigtimedwait50(res, set, info, timeout)   \
-+  __sanitizer_syscall_post_impl_____sigtimedwait50(                            \
-+      res, (long long)(set), (long long)(info), (long long)(timeout))
-+#define __sanitizer_syscall_pre___mq_timedsend50(mqdes, msg_ptr, msg_len,      \
-+                                                 msg_prio, abs_timeout)        \
-+  __sanitizer_syscall_pre_impl___mq_timedsend50(                               \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_post___mq_timedsend50(                             \
-+    res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                       \
-+  __sanitizer_syscall_post_impl___mq_timedsend50(                              \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_pre___mq_timedreceive50(mqdes, msg_ptr, msg_len,   \
-+                                                    msg_prio, abs_timeout)     \
-+  __sanitizer_syscall_pre_impl___mq_timedreceive50(                            \
-+      (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),          \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_post___mq_timedreceive50(                          \
-+    res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout)                       \
-+  __sanitizer_syscall_post_impl___mq_timedreceive50(                           \
-+      res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len),     \
-+      (long long)(msg_prio), (long long)(abs_timeout))
-+#define __sanitizer_syscall_pre_compat_60__lwp_park(ts, unpark, hint,          \
-+                                                    unparkhint)                \
-+  __sanitizer_syscall_pre_impl_compat_60__lwp_park(                            \
-+      (long long)(ts), (long long)(unpark), (long long)(hint),                 \
-+      (long long)(unparkhint))
-+#define __sanitizer_syscall_post_compat_60__lwp_park(res, ts, unpark, hint,    \
-+                                                     unparkhint)               \
-+  __sanitizer_syscall_post_impl_compat_60__lwp_park(                           \
-+      res, (long long)(ts), (long long)(unpark), (long long)(hint),            \
-+      (long long)(unparkhint))
-+#define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges,           \
-+                                           eventlist, nevents, timeout)        \
-+  __sanitizer_syscall_pre_impl___kevent50(                                     \
-+      (long long)(fd), (long long)(changelist), (long long)(nchanges),         \
-+      (long long)(eventlist), (long long)(nevents), (long long)(timeout))
-+#define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges,     \
-+                                            eventlist, nevents, timeout)       \
-+  __sanitizer_syscall_post_impl___kevent50(                                    \
-+      res, (long long)(fd), (long long)(changelist), (long long)(nchanges),    \
-+      (long long)(eventlist), (long long)(nevents), (long long)(timeout))
-+#define __sanitizer_syscall_pre___pselect50(nd, in, ou, ex, ts, mask)          \
-+  __sanitizer_syscall_pre_impl___pselect50((long long)(nd), (long long)(in),   \
-+                                           (long long)(ou), (long long)(ex),   \
-+                                           (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_post___pselect50(res, nd, in, ou, ex, ts, mask)    \
-+  __sanitizer_syscall_post_impl___pselect50(                                   \
-+      res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
-+      (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_pre___pollts50(fds, nfds, ts, mask)                \
-+  __sanitizer_syscall_pre_impl___pollts50((long long)(fds), (long long)(nfds), \
-+                                          (long long)(ts), (long long)(mask))
-+#define __sanitizer_syscall_post___pollts50(res, fds, nfds, ts, mask)          \
-+  __sanitizer_syscall_post_impl___pollts50(res, (long long)(fds),              \
-+                                           (long long)(nfds), (long long)(ts), \
-+                                           (long long)(mask))
-+#define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout)           \
-+  __sanitizer_syscall_pre_impl___aio_suspend50(                                \
-+      (long long)(list), (long long)(nent), (long long)(timeout))
-+#define __sanitizer_syscall_post___aio_suspend50(res, list, nent, timeout)     \
-+  __sanitizer_syscall_post_impl___aio_suspend50(                               \
-+      res, (long long)(list), (long long)(nent), (long long)(timeout))
-+#define __sanitizer_syscall_pre___stat50(path, ub)                             \
-+  __sanitizer_syscall_pre_impl___stat50((long long)(path), (long long)(ub))
-+#define __sanitizer_syscall_post___stat50(res, path, ub)                       \
-+  __sanitizer_syscall_post_impl___stat50(res, (long long)(path),               \
-+                                         (long long)(ub))
-+#define __sanitizer_syscall_pre___fstat50(fd, sb)                              \
-+  __sanitizer_syscall_pre_impl___fstat50((long long)(fd), (long long)(sb))
-+#define __sanitizer_syscall_post___fstat50(res, fd, sb)                        \
-+  __sanitizer_syscall_post_impl___fstat50(res, (long long)(fd), (long long)(sb))
-+#define __sanitizer_syscall_pre___lstat50(path, ub)                            \
-+  __sanitizer_syscall_pre_impl___lstat50((long long)(path), (long long)(ub))
-+#define __sanitizer_syscall_post___lstat50(res, path, ub)                      \
-+  __sanitizer_syscall_post_impl___lstat50(res, (long long)(path),              \
-+                                          (long long)(ub))
-+#define __sanitizer_syscall_pre_____semctl50(semid, semnum, cmd, arg)          \
-+  __sanitizer_syscall_pre_impl_____semctl50(                                   \
-+      (long long)(semid), (long long)(semnum), (long long)(cmd),               \
-+      (long long)(arg))
-+#define __sanitizer_syscall_post_____semctl50(res, semid, semnum, cmd, arg)    \
-+  __sanitizer_syscall_post_impl_____semctl50(                                  \
-+      res, (long long)(semid), (long long)(semnum), (long long)(cmd),          \
-+      (long long)(arg))
-+#define __sanitizer_syscall_pre___shmctl50(shmid, cmd, buf)                    \
-+  __sanitizer_syscall_pre_impl___shmctl50((long long)(shmid),                  \
-+                                          (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post___shmctl50(res, shmid, cmd, buf)              \
-+  __sanitizer_syscall_post_impl___shmctl50(res, (long long)(shmid),            \
-+                                           (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre___msgctl50(msqid, cmd, buf)                    \
-+  __sanitizer_syscall_pre_impl___msgctl50((long long)(msqid),                  \
-+                                          (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_post___msgctl50(res, msqid, cmd, buf)              \
-+  __sanitizer_syscall_post_impl___msgctl50(res, (long long)(msqid),            \
-+                                           (long long)(cmd), (long long)(buf))
-+#define __sanitizer_syscall_pre___getrusage50(who, rusage)                     \
-+  __sanitizer_syscall_pre_impl___getrusage50((long long)(who),                 \
-+                                             (long long)(rusage))
-+#define __sanitizer_syscall_post___getrusage50(res, who, rusage)               \
-+  __sanitizer_syscall_post_impl___getrusage50(res, (long long)(who),           \
-+                                              (long long)(rusage))
-+#define __sanitizer_syscall_pre___timer_settime50(timerid, flags, value,       \
-+                                                  ovalue)                      \
-+  __sanitizer_syscall_pre_impl___timer_settime50(                              \
-+      (long long)(timerid), (long long)(flags), (long long)(value),            \
-+      (long long)(ovalue))
-+#define __sanitizer_syscall_post___timer_settime50(res, timerid, flags, value, \
-+                                                   ovalue)                     \
-+  __sanitizer_syscall_post_impl___timer_settime50(                             \
-+      res, (long long)(timerid), (long long)(flags), (long long)(value),       \
-+      (long long)(ovalue))
-+#define __sanitizer_syscall_pre___timer_gettime50(timerid, value)              \
-+  __sanitizer_syscall_pre_impl___timer_gettime50((long long)(timerid),         \
-+                                                 (long long)(value))
-+#define __sanitizer_syscall_post___timer_gettime50(res, timerid, value)        \
-+  __sanitizer_syscall_post_impl___timer_gettime50(res, (long long)(timerid),   \
-+                                                  (long long)(value))
-+#if defined(NTP) || !defined(_KERNEL_OPT)
-+#define __sanitizer_syscall_pre___ntp_gettime50(ntvp)                          \
-+  __sanitizer_syscall_pre_impl___ntp_gettime50((long long)(ntvp))
-+#define __sanitizer_syscall_post___ntp_gettime50(res, ntvp)                    \
-+  __sanitizer_syscall_post_impl___ntp_gettime50(res, (long long)(ntvp))
-+#else
-+/* syscall 448 has been skipped */
-+#endif
-+#define __sanitizer_syscall_pre___wait450(pid, status, options, rusage)        \
-+  __sanitizer_syscall_pre_impl___wait450(                                      \
-+      (long long)(pid), (long long)(status), (long long)(options),             \
-+      (long long)(rusage))
-+#define __sanitizer_syscall_post___wait450(res, pid, status, options, rusage)  \
-+  __sanitizer_syscall_post_impl___wait450(                                     \
-+      res, (long long)(pid), (long long)(status), (long long)(options),        \
-+      (long long)(rusage))
-+#define __sanitizer_syscall_pre___mknod50(path, mode, dev)                     \
-+  __sanitizer_syscall_pre_impl___mknod50((long long)(path), (long long)(mode), \
-+                                         (long long)(dev))
-+#define __sanitizer_syscall_post___mknod50(res, path, mode, dev)               \
-+  __sanitizer_syscall_post_impl___mknod50(res, (long long)(path),              \
-+                                          (long long)(mode), (long long)(dev))
-+#define __sanitizer_syscall_pre___fhstat50(fhp, fh_size, sb)                   \
-+  __sanitizer_syscall_pre_impl___fhstat50(                                     \
-+      (long long)(fhp), (long long)(fh_size), (long long)(sb))
-+#define __sanitizer_syscall_post___fhstat50(res, fhp, fh_size, sb)             \
-+  __sanitizer_syscall_post_impl___fhstat50(                                    \
-+      res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
-+/* syscall 452 has been skipped */
-+#define __sanitizer_syscall_pre_pipe2(fildes, flags)                           \
-+  __sanitizer_syscall_pre_impl_pipe2((long long)(fildes), (long long)(flags))
-+#define __sanitizer_syscall_post_pipe2(res, fildes, flags)                     \
-+  __sanitizer_syscall_post_impl_pipe2(res, (long long)(fildes),                \
-+                                      (long long)(flags))
-+#define __sanitizer_syscall_pre_dup3(from, to, flags)                          \
-+  __sanitizer_syscall_pre_impl_dup3((long long)(from), (long long)(to),        \
-+                                    (long long)(flags))
-+#define __sanitizer_syscall_post_dup3(res, from, to, flags)                    \
-+  __sanitizer_syscall_post_impl_dup3(res, (long long)(from), (long long)(to),  \
-+                                     (long long)(flags))
-+#define __sanitizer_syscall_pre_kqueue1(flags)                                 \
-+  __sanitizer_syscall_pre_impl_kqueue1((long long)(flags))
-+#define __sanitizer_syscall_post_kqueue1(res, flags)                           \
-+  __sanitizer_syscall_post_impl_kqueue1(res, (long long)(flags))
-+#define __sanitizer_syscall_pre_paccept(s, name, anamelen, mask, flags)        \
-+  __sanitizer_syscall_pre_impl_paccept((long long)(s), (long long)(name),      \
-+                                       (long long)(anamelen),                  \
-+                                       (long long)(mask), (long long)(flags))
-+#define __sanitizer_syscall_post_paccept(res, s, name, anamelen, mask, flags)  \
-+  __sanitizer_syscall_post_impl_paccept(                                       \
-+      res, (long long)(s), (long long)(name), (long long)(anamelen),           \
-+      (long long)(mask), (long long)(flags))
-+#define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags)          \
-+  __sanitizer_syscall_pre_impl_linkat((long long)(fd1), (long long)(name1),    \
-+                                      (long long)(fd2), (long long)(name2),    \
-+                                      (long long)(flags))
-+#define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags)    \
-+  __sanitizer_syscall_post_impl_linkat(res, (long long)(fd1),                  \
-+                                       (long long)(name1), (long long)(fd2),   \
-+                                       (long long)(name2), (long long)(flags))
-+#define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to)               \
-+  __sanitizer_syscall_pre_impl_renameat((long long)(fromfd),                   \
-+                                        (long long)(from), (long long)(tofd),  \
-+                                        (long long)(to))
-+#define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to)         \
-+  __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd),             \
-+                                         (long long)(from), (long long)(tofd), \
-+                                         (long long)(to))
-+#define __sanitizer_syscall_pre_mkfifoat(fd, path, mode)                       \
-+  __sanitizer_syscall_pre_impl_mkfifoat((long long)(fd), (long long)(path),    \
-+                                        (long long)(mode))
-+#define __sanitizer_syscall_post_mkfifoat(res, fd, path, mode)                 \
-+  __sanitizer_syscall_post_impl_mkfifoat(res, (long long)(fd),                 \
-+                                         (long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_pre_mknodat(fd, path, mode, PAD, dev)              \
-+  __sanitizer_syscall_pre_impl_mknodat((long long)(fd), (long long)(path),     \
-+                                       (long long)(mode), (long long)(PAD),    \
-+                                       (long long)(dev))
-+#define __sanitizer_syscall_post_mknodat(res, fd, path, mode, PAD, dev)        \
-+  __sanitizer_syscall_post_impl_mknodat(res, (long long)(fd),                  \
-+                                        (long long)(path), (long long)(mode),  \
-+                                        (long long)(PAD), (long long)(dev))
-+#define __sanitizer_syscall_pre_mkdirat(fd, path, mode)                        \
-+  __sanitizer_syscall_pre_impl_mkdirat((long long)(fd), (long long)(path),     \
-+                                       (long long)(mode))
-+#define __sanitizer_syscall_post_mkdirat(res, fd, path, mode)                  \
-+  __sanitizer_syscall_post_impl_mkdirat(res, (long long)(fd),                  \
-+                                        (long long)(path), (long long)(mode))
-+#define __sanitizer_syscall_pre_faccessat(fd, path, amode, flag)               \
-+  __sanitizer_syscall_pre_impl_faccessat((long long)(fd), (long long)(path),   \
-+                                         (long long)(amode),                   \
-+                                         (long long)(flag))
-+#define __sanitizer_syscall_post_faccessat(res, fd, path, amode, flag)         \
-+  __sanitizer_syscall_post_impl_faccessat(                                     \
-+      res, (long long)(fd), (long long)(path), (long long)(amode),             \
-+      (long long)(flag))
-+#define __sanitizer_syscall_pre_fchmodat(fd, path, mode, flag)                 \
-+  __sanitizer_syscall_pre_impl_fchmodat((long long)(fd), (long long)(path),    \
-+                                        (long long)(mode), (long long)(flag))
-+#define __sanitizer_syscall_post_fchmodat(res, fd, path, mode, flag)           \
-+  __sanitizer_syscall_post_impl_fchmodat(res, (long long)(fd),                 \
-+                                         (long long)(path), (long long)(mode), \
-+                                         (long long)(flag))
-+#define __sanitizer_syscall_pre_fchownat(fd, path, owner, group, flag)         \
-+  __sanitizer_syscall_pre_impl_fchownat((long long)(fd), (long long)(path),    \
-+                                        (long long)(owner),                    \
-+                                        (long long)(group), (long long)(flag))
-+#define __sanitizer_syscall_post_fchownat(res, fd, path, owner, group, flag)   \
-+  __sanitizer_syscall_post_impl_fchownat(                                      \
-+      res, (long long)(fd), (long long)(path), (long long)(owner),             \
-+      (long long)(group), (long long)(flag))
-+#define __sanitizer_syscall_pre_fexecve(fd, argp, envp)                        \
-+  __sanitizer_syscall_pre_impl_fexecve((long long)(fd), (long long)(argp),     \
-+                                       (long long)(envp))
-+#define __sanitizer_syscall_post_fexecve(res, fd, argp, envp)                  \
-+  __sanitizer_syscall_post_impl_fexecve(res, (long long)(fd),                  \
-+                                        (long long)(argp), (long long)(envp))
-+#define __sanitizer_syscall_pre_fstatat(fd, path, buf, flag)                   \
-+  __sanitizer_syscall_pre_impl_fstatat((long long)(fd), (long long)(path),     \
-+                                       (long long)(buf), (long long)(flag))
-+#define __sanitizer_syscall_post_fstatat(res, fd, path, buf, flag)             \
-+  __sanitizer_syscall_post_impl_fstatat(res, (long long)(fd),                  \
-+                                        (long long)(path), (long long)(buf),   \
-+                                        (long long)(flag))
-+#define __sanitizer_syscall_pre_utimensat(fd, path, tptr, flag)                \
-+  __sanitizer_syscall_pre_impl_utimensat((long long)(fd), (long long)(path),   \
-+                                         (long long)(tptr), (long long)(flag))
-+#define __sanitizer_syscall_post_utimensat(res, fd, path, tptr, flag)          \
-+  __sanitizer_syscall_post_impl_utimensat(                                     \
-+      res, (long long)(fd), (long long)(path), (long long)(tptr),              \
-+      (long long)(flag))
-+#define __sanitizer_syscall_pre_openat(fd, path, oflags, mode)                 \
-+  __sanitizer_syscall_pre_impl_openat((long long)(fd), (long long)(path),      \
-+                                      (long long)(oflags), (long long)(mode))
-+#define __sanitizer_syscall_post_openat(res, fd, path, oflags, mode)           \
-+  __sanitizer_syscall_post_impl_openat(res, (long long)(fd),                   \
-+                                       (long long)(path), (long long)(oflags), \
-+                                       (long long)(mode))
-+#define __sanitizer_syscall_pre_readlinkat(fd, path, buf, bufsize)             \
-+  __sanitizer_syscall_pre_impl_readlinkat((long long)(fd), (long long)(path),  \
-+                                          (long long)(buf),                    \
-+                                          (long long)(bufsize))
-+#define __sanitizer_syscall_post_readlinkat(res, fd, path, buf, bufsize)       \
-+  __sanitizer_syscall_post_impl_readlinkat(                                    \
-+      res, (long long)(fd), (long long)(path), (long long)(buf),               \
-+      (long long)(bufsize))
-+#define __sanitizer_syscall_pre_symlinkat(path1, fd, path2)                    \
-+  __sanitizer_syscall_pre_impl_symlinkat((long long)(path1), (long long)(fd),  \
-+                                         (long long)(path2))
-+#define __sanitizer_syscall_post_symlinkat(res, path1, fd, path2)              \
-+  __sanitizer_syscall_post_impl_symlinkat(res, (long long)(path1),             \
-+                                          (long long)(fd), (long long)(path2))
-+#define __sanitizer_syscall_pre_unlinkat(fd, path, flag)                       \
-+  __sanitizer_syscall_pre_impl_unlinkat((long long)(fd), (long long)(path),    \
-+                                        (long long)(flag))
-+#define __sanitizer_syscall_post_unlinkat(res, fd, path, flag)                 \
-+  __sanitizer_syscall_post_impl_unlinkat(res, (long long)(fd),                 \
-+                                         (long long)(path), (long long)(flag))
-+#define __sanitizer_syscall_pre_futimens(fd, tptr)                             \
-+  __sanitizer_syscall_pre_impl_futimens((long long)(fd), (long long)(tptr))
-+#define __sanitizer_syscall_post_futimens(res, fd, tptr)                       \
-+  __sanitizer_syscall_post_impl_futimens(res, (long long)(fd),                 \
-+                                         (long long)(tptr))
-+#define __sanitizer_syscall_pre___quotactl(path, args)                         \
-+  __sanitizer_syscall_pre_impl___quotactl((long long)(path), (long long)(args))
-+#define __sanitizer_syscall_post___quotactl(res, path, args)                   \
-+  __sanitizer_syscall_post_impl___quotactl(res, (long long)(path),             \
-+                                           (long long)(args))
-+#define __sanitizer_syscall_pre_posix_spawn(pid, path, file_actions, attrp,    \
-+                                            argv, envp)                        \
-+  __sanitizer_syscall_pre_impl_posix_spawn(                                    \
-+      (long long)(pid), (long long)(path), (long long)(file_actions),          \
-+      (long long)(attrp), (long long)(argv), (long long)(envp))
-+#define __sanitizer_syscall_post_posix_spawn(res, pid, path, file_actions,     \
-+                                             attrp, argv, envp)                \
-+  __sanitizer_syscall_post_impl_posix_spawn(                                   \
-+      res, (long long)(pid), (long long)(path), (long long)(file_actions),     \
-+      (long long)(attrp), (long long)(argv), (long long)(envp))
-+#define __sanitizer_syscall_pre_recvmmsg(s, mmsg, vlen, flags, timeout)        \
-+  __sanitizer_syscall_pre_impl_recvmmsg((long long)(s), (long long)(mmsg),     \
-+                                        (long long)(vlen), (long long)(flags), \
-+                                        (long long)(timeout))
-+#define __sanitizer_syscall_post_recvmmsg(res, s, mmsg, vlen, flags, timeout)  \
-+  __sanitizer_syscall_post_impl_recvmmsg(                                      \
-+      res, (long long)(s), (long long)(mmsg), (long long)(vlen),               \
-+      (long long)(flags), (long long)(timeout))
-+#define __sanitizer_syscall_pre_sendmmsg(s, mmsg, vlen, flags)                 \
-+  __sanitizer_syscall_pre_impl_sendmmsg((long long)(s), (long long)(mmsg),     \
-+                                        (long long)(vlen), (long long)(flags))
-+#define __sanitizer_syscall_post_sendmmsg(res, s, mmsg, vlen, flags)           \
-+  __sanitizer_syscall_post_impl_sendmmsg(res, (long long)(s),                  \
-+                                         (long long)(mmsg), (long long)(vlen), \
-+                                         (long long)(flags))
-+#define __sanitizer_syscall_pre_clock_nanosleep(clock_id, flags, rqtp, rmtp)   \
-+  __sanitizer_syscall_pre_impl_clock_nanosleep(                                \
-+      (long long)(clock_id), (long long)(flags), (long long)(rqtp),            \
-+      (long long)(rmtp))
-+#define __sanitizer_syscall_post_clock_nanosleep(res, clock_id, flags, rqtp,   \
-+                                                 rmtp)                         \
-+  __sanitizer_syscall_post_impl_clock_nanosleep(                               \
-+      res, (long long)(clock_id), (long long)(flags), (long long)(rqtp),       \
-+      (long long)(rmtp))
-+#define __sanitizer_syscall_pre____lwp_park60(clock_id, flags, ts, unpark,     \
-+                                              hint, unparkhint)                \
-+  __sanitizer_syscall_pre_impl____lwp_park60(                                  \
-+      (long long)(clock_id), (long long)(flags), (long long)(ts),              \
-+      (long long)(unpark), (long long)(hint), (long long)(unparkhint))
-+#define __sanitizer_syscall_post____lwp_park60(res, clock_id, flags, ts,       \
-+                                               unpark, hint, unparkhint)       \
-+  __sanitizer_syscall_post_impl____lwp_park60(                                 \
-+      res, (long long)(clock_id), (long long)(flags), (long long)(ts),         \
-+      (long long)(unpark), (long long)(hint), (long long)(unparkhint))
-+#define __sanitizer_syscall_pre_posix_fallocate(fd, PAD, pos, len)             \
-+  __sanitizer_syscall_pre_impl_posix_fallocate(                                \
-+      (long long)(fd), (long long)(PAD), (long long)(pos), (long long)(len))
-+#define __sanitizer_syscall_post_posix_fallocate(res, fd, PAD, pos, len)       \
-+  __sanitizer_syscall_post_impl_posix_fallocate(                               \
-+      res, (long long)(fd), (long long)(PAD), (long long)(pos),                \
-+      (long long)(len))
-+#define __sanitizer_syscall_pre_fdiscard(fd, PAD, pos, len)                    \
-+  __sanitizer_syscall_pre_impl_fdiscard((long long)(fd), (long long)(PAD),     \
-+                                        (long long)(pos), (long long)(len))
-+#define __sanitizer_syscall_post_fdiscard(res, fd, PAD, pos, len)              \
-+  __sanitizer_syscall_post_impl_fdiscard(res, (long long)(fd),                 \
-+                                         (long long)(PAD), (long long)(pos),   \
-+                                         (long long)(len))
-+#define __sanitizer_syscall_pre_wait6(idtype, id, status, options, wru, info)  \
-+  __sanitizer_syscall_pre_impl_wait6(                                          \
-+      (long long)(idtype), (long long)(id), (long long)(status),               \
-+      (long long)(options), (long long)(wru), (long long)(info))
-+#define __sanitizer_syscall_post_wait6(res, idtype, id, status, options, wru,  \
-+                                       info)                                   \
-+  __sanitizer_syscall_post_impl_wait6(                                         \
-+      res, (long long)(idtype), (long long)(id), (long long)(status),          \
-+      (long long)(options), (long long)(wru), (long long)(info))
-+#define __sanitizer_syscall_pre_clock_getcpuclockid2(idtype, id, clock_id)     \
-+  __sanitizer_syscall_pre_impl_clock_getcpuclockid2(                           \
-+      (long long)(idtype), (long long)(id), (long long)(clock_id))
-+#define __sanitizer_syscall_post_clock_getcpuclockid2(res, idtype, id,         \
-+                                                      clock_id)                \
-+  __sanitizer_syscall_post_impl_clock_getcpuclockid2(                          \
-+      res, (long long)(idtype), (long long)(id), (long long)(clock_id))
-+
-+#ifdef __cplusplus
-+extern "C" {
-+#endif
-+
-+// Private declarations. Do not call directly from user code. Use macros above.
-+
-+// DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
-+
-+void __sanitizer_syscall_pre_impl_syscall(long long code, long long arg0,
-+                                          long long arg1, long long arg2,
-+                                          long long arg3, long long arg4,
-+                                          long long arg5, long long arg6,
-+                                          long long arg7);
-+void __sanitizer_syscall_post_impl_syscall(long long res, long long code,
-+                                           long long arg0, long long arg1,
-+                                           long long arg2, long long arg3,
-+                                           long long arg4, long long arg5,
-+                                           long long arg6, long long arg7);
-+void __sanitizer_syscall_pre_impl_exit(long long rval);
-+void __sanitizer_syscall_post_impl_exit(long long res, long long rval);
-+void __sanitizer_syscall_pre_impl_fork(void);
-+void __sanitizer_syscall_post_impl_fork(long long res);
-+void __sanitizer_syscall_pre_impl_read(long long fd, long long buf,
-+                                       long long nbyte);
-+void __sanitizer_syscall_post_impl_read(long long res, long long fd,
-+                                        long long buf, long long nbyte);
-+void __sanitizer_syscall_pre_impl_write(long long fd, long long buf,
-+                                        long long nbyte);
-+void __sanitizer_syscall_post_impl_write(long long res, long long fd,
-+                                         long long buf, long long nbyte);
-+void __sanitizer_syscall_pre_impl_open(long long path, long long flags,
-+                                       long long mode);
-+void __sanitizer_syscall_post_impl_open(long long res, long long path,
-+                                        long long flags, long long mode);
-+void __sanitizer_syscall_pre_impl_close(long long fd);
-+void __sanitizer_syscall_post_impl_close(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_compat_50_wait4(long long pid,
-+                                                  long long status,
-+                                                  long long options,
-+                                                  long long rusage);
-+void __sanitizer_syscall_post_impl_compat_50_wait4(long long res, long long pid,
-+                                                   long long status,
-+                                                   long long options,
-+                                                   long long rusage);
-+void __sanitizer_syscall_pre_impl_compat_43_ocreat(long long path,
-+                                                   long long mode);
-+void __sanitizer_syscall_post_impl_compat_43_ocreat(long long res,
-+                                                    long long path,
-+                                                    long long mode);
-+void __sanitizer_syscall_pre_impl_link(long long path, long long link);
-+void __sanitizer_syscall_post_impl_link(long long res, long long path,
-+                                        long long link);
-+void __sanitizer_syscall_pre_impl_unlink(long long path);
-+void __sanitizer_syscall_post_impl_unlink(long long res, long long path);
-+/* syscall 11 has been skipped */
-+void __sanitizer_syscall_pre_impl_chdir(long long path);
-+void __sanitizer_syscall_post_impl_chdir(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_fchdir(long long fd);
-+void __sanitizer_syscall_post_impl_fchdir(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_compat_50_mknod(long long path,
-+                                                  long long mode,
-+                                                  long long dev);
-+void __sanitizer_syscall_post_impl_compat_50_mknod(long long res,
-+                                                   long long path,
-+                                                   long long mode,
-+                                                   long long dev);
-+void __sanitizer_syscall_pre_impl_chmod(long long path, long long mode);
-+void __sanitizer_syscall_post_impl_chmod(long long res, long long path,
-+                                         long long mode);
-+void __sanitizer_syscall_pre_impl_chown(long long path, long long uid,
-+                                        long long gid);
-+void __sanitizer_syscall_post_impl_chown(long long res, long long path,
-+                                         long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl_break(long long nsize);
-+void __sanitizer_syscall_post_impl_break(long long res, long long nsize);
-+void __sanitizer_syscall_pre_impl_compat_20_getfsstat(long long buf,
-+                                                      long long bufsize,
-+                                                      long long flags);
-+void __sanitizer_syscall_post_impl_compat_20_getfsstat(long long res,
-+                                                       long long buf,
-+                                                       long long bufsize,
-+                                                       long long flags);
-+void __sanitizer_syscall_pre_impl_compat_43_olseek(long long fd,
-+                                                   long long offset,
-+                                                   long long whence);
-+void __sanitizer_syscall_post_impl_compat_43_olseek(long long res, long long fd,
-+                                                    long long offset,
-+                                                    long long whence);
-+void __sanitizer_syscall_pre_impl_getpid(void);
-+void __sanitizer_syscall_post_impl_getpid(long long res);
-+void __sanitizer_syscall_pre_impl_compat_40_mount(long long type,
-+                                                  long long path,
-+                                                  long long flags,
-+                                                  long long data);
-+void __sanitizer_syscall_post_impl_compat_40_mount(long long res,
-+                                                   long long type,
-+                                                   long long path,
-+                                                   long long flags,
-+                                                   long long data);
-+void __sanitizer_syscall_pre_impl_unmount(long long path, long long flags);
-+void __sanitizer_syscall_post_impl_unmount(long long res, long long path,
-+                                           long long flags);
-+void __sanitizer_syscall_pre_impl_setuid(long long uid);
-+void __sanitizer_syscall_post_impl_setuid(long long res, long long uid);
-+void __sanitizer_syscall_pre_impl_getuid(void);
-+void __sanitizer_syscall_post_impl_getuid(long long res);
-+void __sanitizer_syscall_pre_impl_geteuid(void);
-+void __sanitizer_syscall_post_impl_geteuid(long long res);
-+void __sanitizer_syscall_pre_impl_ptrace(long long req, long long pid,
-+                                         long long addr, long long data);
-+void __sanitizer_syscall_post_impl_ptrace(long long res, long long req,
-+                                          long long pid, long long addr,
-+                                          long long data);
-+void __sanitizer_syscall_pre_impl_recvmsg(long long s, long long msg,
-+                                          long long flags);
-+void __sanitizer_syscall_post_impl_recvmsg(long long res, long long s,
-+                                           long long msg, long long flags);
-+void __sanitizer_syscall_pre_impl_sendmsg(long long s, long long msg,
-+                                          long long flags);
-+void __sanitizer_syscall_post_impl_sendmsg(long long res, long long s,
-+                                           long long msg, long long flags);
-+void __sanitizer_syscall_pre_impl_recvfrom(long long s, long long buf,
-+                                           long long len, long long flags,
-+                                           long long from,
-+                                           long long fromlenaddr);
-+void __sanitizer_syscall_post_impl_recvfrom(long long res, long long s,
-+                                            long long buf, long long len,
-+                                            long long flags, long long from,
-+                                            long long fromlenaddr);
-+void __sanitizer_syscall_pre_impl_accept(long long s, long long name,
-+                                         long long anamelen);
-+void __sanitizer_syscall_post_impl_accept(long long res, long long s,
-+                                          long long name, long long anamelen);
-+void __sanitizer_syscall_pre_impl_getpeername(long long fdes, long long asa,
-+                                              long long alen);
-+void __sanitizer_syscall_post_impl_getpeername(long long res, long long fdes,
-+                                               long long asa, long long alen);
-+void __sanitizer_syscall_pre_impl_getsockname(long long fdes, long long asa,
-+                                              long long alen);
-+void __sanitizer_syscall_post_impl_getsockname(long long res, long long fdes,
-+                                               long long asa, long long alen);
-+void __sanitizer_syscall_pre_impl_access(long long path, long long flags);
-+void __sanitizer_syscall_post_impl_access(long long res, long long path,
-+                                          long long flags);
-+void __sanitizer_syscall_pre_impl_chflags(long long path, long long flags);
-+void __sanitizer_syscall_post_impl_chflags(long long res, long long path,
-+                                           long long flags);
-+void __sanitizer_syscall_pre_impl_fchflags(long long fd, long long flags);
-+void __sanitizer_syscall_post_impl_fchflags(long long res, long long fd,
-+                                            long long flags);
-+void __sanitizer_syscall_pre_impl_sync(void);
-+void __sanitizer_syscall_post_impl_sync(long long res);
-+void __sanitizer_syscall_pre_impl_kill(long long pid, long long signum);
-+void __sanitizer_syscall_post_impl_kill(long long res, long long pid,
-+                                        long long signum);
-+void __sanitizer_syscall_pre_impl_compat_43_stat43(long long path,
-+                                                   long long ub);
-+void __sanitizer_syscall_post_impl_compat_43_stat43(long long res,
-+                                                    long long path,
-+                                                    long long ub);
-+void __sanitizer_syscall_pre_impl_getppid(void);
-+void __sanitizer_syscall_post_impl_getppid(long long res);
-+void __sanitizer_syscall_pre_impl_compat_43_lstat43(long long path,
-+                                                    long long ub);
-+void __sanitizer_syscall_post_impl_compat_43_lstat43(long long res,
-+                                                     long long path,
-+                                                     long long ub);
-+void __sanitizer_syscall_pre_impl_dup(long long fd);
-+void __sanitizer_syscall_post_impl_dup(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_pipe(void);
-+void __sanitizer_syscall_post_impl_pipe(long long res);
-+void __sanitizer_syscall_pre_impl_getegid(void);
-+void __sanitizer_syscall_post_impl_getegid(long long res);
-+void __sanitizer_syscall_pre_impl_profil(long long samples, long long size,
-+                                         long long offset, long long scale);
-+void __sanitizer_syscall_post_impl_profil(long long res, long long samples,
-+                                          long long size, long long offset,
-+                                          long long scale);
-+void __sanitizer_syscall_pre_impl_ktrace(long long fname, long long ops,
-+                                         long long facs, long long pid);
-+void __sanitizer_syscall_post_impl_ktrace(long long res, long long fname,
-+                                          long long ops, long long facs,
-+                                          long long pid);
-+void __sanitizer_syscall_pre_impl_compat_13_sigaction13(long long signum,
-+                                                        long long nsa,
-+                                                        long long osa);
-+void __sanitizer_syscall_post_impl_compat_13_sigaction13(long long res,
-+                                                         long long signum,
-+                                                         long long nsa,
-+                                                         long long osa);
-+void __sanitizer_syscall_pre_impl_getgid(void);
-+void __sanitizer_syscall_post_impl_getgid(long long res);
-+void __sanitizer_syscall_pre_impl_compat_13_sigprocmask13(long long how,
-+                                                          long long mask);
-+void __sanitizer_syscall_post_impl_compat_13_sigprocmask13(long long res,
-+                                                           long long how,
-+                                                           long long mask);
-+void __sanitizer_syscall_pre_impl___getlogin(long long namebuf,
-+                                             long long namelen);
-+void __sanitizer_syscall_post_impl___getlogin(long long res, long long namebuf,
-+                                              long long namelen);
-+void __sanitizer_syscall_pre_impl___setlogin(long long namebuf);
-+void __sanitizer_syscall_post_impl___setlogin(long long res, long long namebuf);
-+void __sanitizer_syscall_pre_impl_acct(long long path);
-+void __sanitizer_syscall_post_impl_acct(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_compat_13_sigpending13(void);
-+void __sanitizer_syscall_post_impl_compat_13_sigpending13(long long res);
-+void __sanitizer_syscall_pre_impl_compat_13_sigaltstack13(long long nss,
-+                                                          long long oss);
-+void __sanitizer_syscall_post_impl_compat_13_sigaltstack13(long long res,
-+                                                           long long nss,
-+                                                           long long oss);
-+void __sanitizer_syscall_pre_impl_ioctl(long long fd, long long com,
-+                                        long long data);
-+void __sanitizer_syscall_post_impl_ioctl(long long res, long long fd,
-+                                         long long com, long long data);
-+void __sanitizer_syscall_pre_impl_compat_12_oreboot(long long opt);
-+void __sanitizer_syscall_post_impl_compat_12_oreboot(long long res,
-+                                                     long long opt);
-+void __sanitizer_syscall_pre_impl_revoke(long long path);
-+void __sanitizer_syscall_post_impl_revoke(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_symlink(long long path, long long link);
-+void __sanitizer_syscall_post_impl_symlink(long long res, long long path,
-+                                           long long link);
-+void __sanitizer_syscall_pre_impl_readlink(long long path, long long buf,
-+                                           long long count);
-+void __sanitizer_syscall_post_impl_readlink(long long res, long long path,
-+                                            long long buf, long long count);
-+void __sanitizer_syscall_pre_impl_execve(long long path, long long argp,
-+                                         long long envp);
-+void __sanitizer_syscall_post_impl_execve(long long res, long long path,
-+                                          long long argp, long long envp);
-+void __sanitizer_syscall_pre_impl_umask(long long newmask);
-+void __sanitizer_syscall_post_impl_umask(long long res, long long newmask);
-+void __sanitizer_syscall_pre_impl_chroot(long long path);
-+void __sanitizer_syscall_post_impl_chroot(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_compat_43_fstat43(long long fd, long long sb);
-+void __sanitizer_syscall_post_impl_compat_43_fstat43(long long res,
-+                                                     long long fd,
-+                                                     long long sb);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo(long long op,
-+                                                         long long where,
-+                                                         long long size,
-+                                                         long long arg);
-+void __sanitizer_syscall_post_impl_compat_43_ogetkerninfo(long long res,
-+                                                          long long op,
-+                                                          long long where,
-+                                                          long long size,
-+                                                          long long arg);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetpagesize(void);
-+void __sanitizer_syscall_post_impl_compat_43_ogetpagesize(long long res);
-+void __sanitizer_syscall_pre_impl_compat_12_msync(long long addr,
-+                                                  long long len);
-+void __sanitizer_syscall_post_impl_compat_12_msync(long long res,
-+                                                   long long addr,
-+                                                   long long len);
-+void __sanitizer_syscall_pre_impl_vfork(void);
-+void __sanitizer_syscall_post_impl_vfork(long long res);
-+/* syscall 67 has been skipped */
-+/* syscall 68 has been skipped */
-+/* syscall 69 has been skipped */
-+/* syscall 70 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_43_ommap(long long addr, long long len,
-+                                                  long long prot,
-+                                                  long long flags, long long fd,
-+                                                  long long pos);
-+void __sanitizer_syscall_post_impl_compat_43_ommap(
-+    long long res, long long addr, long long len, long long prot,
-+    long long flags, long long fd, long long pos);
-+/* syscall 72 has been skipped */
-+void __sanitizer_syscall_pre_impl_munmap(long long addr, long long len);
-+void __sanitizer_syscall_post_impl_munmap(long long res, long long addr,
-+                                          long long len);
-+void __sanitizer_syscall_pre_impl_mprotect(long long addr, long long len,
-+                                           long long prot);
-+void __sanitizer_syscall_post_impl_mprotect(long long res, long long addr,
-+                                            long long len, long long prot);
-+void __sanitizer_syscall_pre_impl_madvise(long long addr, long long len,
-+                                          long long behav);
-+void __sanitizer_syscall_post_impl_madvise(long long res, long long addr,
-+                                           long long len, long long behav);
-+/* syscall 76 has been skipped */
-+/* syscall 77 has been skipped */
-+void __sanitizer_syscall_pre_impl_mincore(long long addr, long long len,
-+                                          long long vec);
-+void __sanitizer_syscall_post_impl_mincore(long long res, long long addr,
-+                                           long long len, long long vec);
-+void __sanitizer_syscall_pre_impl_getgroups(long long gidsetsize,
-+                                            long long gidset);
-+void __sanitizer_syscall_post_impl_getgroups(long long res,
-+                                             long long gidsetsize,
-+                                             long long gidset);
-+void __sanitizer_syscall_pre_impl_setgroups(long long gidsetsize,
-+                                            long long gidset);
-+void __sanitizer_syscall_post_impl_setgroups(long long res,
-+                                             long long gidsetsize,
-+                                             long long gidset);
-+void __sanitizer_syscall_pre_impl_getpgrp(void);
-+void __sanitizer_syscall_post_impl_getpgrp(long long res);
-+void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid);
-+void __sanitizer_syscall_post_impl_setpgid(long long res, long long pid,
-+                                           long long pgid);
-+void __sanitizer_syscall_pre_impl_compat_50_setitimer(long long which,
-+                                                      long long itv,
-+                                                      long long oitv);
-+void __sanitizer_syscall_post_impl_compat_50_setitimer(long long res,
-+                                                       long long which,
-+                                                       long long itv,
-+                                                       long long oitv);
-+void __sanitizer_syscall_pre_impl_compat_43_owait(void);
-+void __sanitizer_syscall_post_impl_compat_43_owait(long long res);
-+void __sanitizer_syscall_pre_impl_compat_12_oswapon(long long name);
-+void __sanitizer_syscall_post_impl_compat_12_oswapon(long long res,
-+                                                     long long name);
-+void __sanitizer_syscall_pre_impl_compat_50_getitimer(long long which,
-+                                                      long long itv);
-+void __sanitizer_syscall_post_impl_compat_50_getitimer(long long res,
-+                                                       long long which,
-+                                                       long long itv);
-+void __sanitizer_syscall_pre_impl_compat_43_ogethostname(long long hostname,
-+                                                         long long len);
-+void __sanitizer_syscall_post_impl_compat_43_ogethostname(long long res,
-+                                                          long long hostname,
-+                                                          long long len);
-+void __sanitizer_syscall_pre_impl_compat_43_osethostname(long long hostname,
-+                                                         long long len);
-+void __sanitizer_syscall_post_impl_compat_43_osethostname(long long res,
-+                                                          long long hostname,
-+                                                          long long len);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize(void);
-+void __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(long long res);
-+void __sanitizer_syscall_pre_impl_dup2(long long from, long long to);
-+void __sanitizer_syscall_post_impl_dup2(long long res, long long from,
-+                                        long long to);
-+/* syscall 91 has been skipped */
-+void __sanitizer_syscall_pre_impl_fcntl(long long fd, long long cmd,
-+                                        long long arg);
-+void __sanitizer_syscall_post_impl_fcntl(long long res, long long fd,
-+                                         long long cmd, long long arg);
-+void __sanitizer_syscall_pre_impl_compat_50_select(long long nd, long long in,
-+                                                   long long ou, long long ex,
-+                                                   long long tv);
-+void __sanitizer_syscall_post_impl_compat_50_select(long long res, long long nd,
-+                                                    long long in, long long ou,
-+                                                    long long ex, long long tv);
-+/* syscall 94 has been skipped */
-+void __sanitizer_syscall_pre_impl_fsync(long long fd);
-+void __sanitizer_syscall_post_impl_fsync(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_setpriority(long long which, long long who,
-+                                              long long prio);
-+void __sanitizer_syscall_post_impl_setpriority(long long res, long long which,
-+                                               long long who, long long prio);
-+void __sanitizer_syscall_pre_impl_compat_30_socket(long long domain,
-+                                                   long long type,
-+                                                   long long protocol);
-+void __sanitizer_syscall_post_impl_compat_30_socket(long long res,
-+                                                    long long domain,
-+                                                    long long type,
-+                                                    long long protocol);
-+void __sanitizer_syscall_pre_impl_connect(long long s, long long name,
-+                                          long long namelen);
-+void __sanitizer_syscall_post_impl_connect(long long res, long long s,
-+                                           long long name, long long namelen);
-+void __sanitizer_syscall_pre_impl_compat_43_oaccept(long long s, long long name,
-+                                                    long long anamelen);
-+void __sanitizer_syscall_post_impl_compat_43_oaccept(long long res, long long s,
-+                                                     long long name,
-+                                                     long long anamelen);
-+void __sanitizer_syscall_pre_impl_getpriority(long long which, long long who);
-+void __sanitizer_syscall_post_impl_getpriority(long long res, long long which,
-+                                               long long who);
-+void __sanitizer_syscall_pre_impl_compat_43_osend(long long s, long long buf,
-+                                                  long long len,
-+                                                  long long flags);
-+void __sanitizer_syscall_post_impl_compat_43_osend(long long res, long long s,
-+                                                   long long buf, long long len,
-+                                                   long long flags);
-+void __sanitizer_syscall_pre_impl_compat_43_orecv(long long s, long long buf,
-+                                                  long long len,
-+                                                  long long flags);
-+void __sanitizer_syscall_post_impl_compat_43_orecv(long long res, long long s,
-+                                                   long long buf, long long len,
-+                                                   long long flags);
-+void __sanitizer_syscall_pre_impl_compat_13_sigreturn13(long long sigcntxp);
-+void __sanitizer_syscall_post_impl_compat_13_sigreturn13(long long res,
-+                                                         long long sigcntxp);
-+void __sanitizer_syscall_pre_impl_bind(long long s, long long name,
-+                                       long long namelen);
-+void __sanitizer_syscall_post_impl_bind(long long res, long long s,
-+                                        long long name, long long namelen);
-+void __sanitizer_syscall_pre_impl_setsockopt(long long s, long long level,
-+                                             long long name, long long val,
-+                                             long long valsize);
-+void __sanitizer_syscall_post_impl_setsockopt(long long res, long long s,
-+                                              long long level, long long name,
-+                                              long long val, long long valsize);
-+void __sanitizer_syscall_pre_impl_listen(long long s, long long backlog);
-+void __sanitizer_syscall_post_impl_listen(long long res, long long s,
-+                                          long long backlog);
-+/* syscall 107 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_43_osigvec(long long signum,
-+                                                    long long nsv,
-+                                                    long long osv);
-+void __sanitizer_syscall_post_impl_compat_43_osigvec(long long res,
-+                                                     long long signum,
-+                                                     long long nsv,
-+                                                     long long osv);
-+void __sanitizer_syscall_pre_impl_compat_43_osigblock(long long mask);
-+void __sanitizer_syscall_post_impl_compat_43_osigblock(long long res,
-+                                                       long long mask);
-+void __sanitizer_syscall_pre_impl_compat_43_osigsetmask(long long mask);
-+void __sanitizer_syscall_post_impl_compat_43_osigsetmask(long long res,
-+                                                         long long mask);
-+void __sanitizer_syscall_pre_impl_compat_13_sigsuspend13(long long mask);
-+void __sanitizer_syscall_post_impl_compat_13_sigsuspend13(long long res,
-+                                                          long long mask);
-+void __sanitizer_syscall_pre_impl_compat_43_osigstack(long long nss,
-+                                                      long long oss);
-+void __sanitizer_syscall_post_impl_compat_43_osigstack(long long res,
-+                                                       long long nss,
-+                                                       long long oss);
-+void __sanitizer_syscall_pre_impl_compat_43_orecvmsg(long long s, long long msg,
-+                                                     long long flags);
-+void __sanitizer_syscall_post_impl_compat_43_orecvmsg(long long res,
-+                                                      long long s,
-+                                                      long long msg,
-+                                                      long long flags);
-+void __sanitizer_syscall_pre_impl_compat_43_osendmsg(long long s, long long msg,
-+                                                     long long flags);
-+void __sanitizer_syscall_post_impl_compat_43_osendmsg(long long res,
-+                                                      long long s,
-+                                                      long long msg,
-+                                                      long long flags);
-+/* syscall 115 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_50_gettimeofday(long long tp,
-+                                                         long long tzp);
-+void __sanitizer_syscall_post_impl_compat_50_gettimeofday(long long res,
-+                                                          long long tp,
-+                                                          long long tzp);
-+void __sanitizer_syscall_pre_impl_compat_50_getrusage(long long who,
-+                                                      long long rusage);
-+void __sanitizer_syscall_post_impl_compat_50_getrusage(long long res,
-+                                                       long long who,
-+                                                       long long rusage);
-+void __sanitizer_syscall_pre_impl_getsockopt(long long s, long long level,
-+                                             long long name, long long val,
-+                                             long long avalsize);
-+void __sanitizer_syscall_post_impl_getsockopt(long long res, long long s,
-+                                              long long level, long long name,
-+                                              long long val,
-+                                              long long avalsize);
-+/* syscall 119 has been skipped */
-+void __sanitizer_syscall_pre_impl_readv(long long fd, long long iovp,
-+                                        long long iovcnt);
-+void __sanitizer_syscall_post_impl_readv(long long res, long long fd,
-+                                         long long iovp, long long iovcnt);
-+void __sanitizer_syscall_pre_impl_writev(long long fd, long long iovp,
-+                                         long long iovcnt);
-+void __sanitizer_syscall_post_impl_writev(long long res, long long fd,
-+                                          long long iovp, long long iovcnt);
-+void __sanitizer_syscall_pre_impl_compat_50_settimeofday(long long tv,
-+                                                         long long tzp);
-+void __sanitizer_syscall_post_impl_compat_50_settimeofday(long long res,
-+                                                          long long tv,
-+                                                          long long tzp);
-+void __sanitizer_syscall_pre_impl_fchown(long long fd, long long uid,
-+                                         long long gid);
-+void __sanitizer_syscall_post_impl_fchown(long long res, long long fd,
-+                                          long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl_fchmod(long long fd, long long mode);
-+void __sanitizer_syscall_post_impl_fchmod(long long res, long long fd,
-+                                          long long mode);
-+void __sanitizer_syscall_pre_impl_compat_43_orecvfrom(
-+    long long s, long long buf, long long len, long long flags, long long from,
-+    long long fromlenaddr);
-+void __sanitizer_syscall_post_impl_compat_43_orecvfrom(
-+    long long res, long long s, long long buf, long long len, long long flags,
-+    long long from, long long fromlenaddr);
-+void __sanitizer_syscall_pre_impl_setreuid(long long ruid, long long euid);
-+void __sanitizer_syscall_post_impl_setreuid(long long res, long long ruid,
-+                                            long long euid);
-+void __sanitizer_syscall_pre_impl_setregid(long long rgid, long long egid);
-+void __sanitizer_syscall_post_impl_setregid(long long res, long long rgid,
-+                                            long long egid);
-+void __sanitizer_syscall_pre_impl_rename(long long from, long long to);
-+void __sanitizer_syscall_post_impl_rename(long long res, long long from,
-+                                          long long to);
-+void __sanitizer_syscall_pre_impl_compat_43_otruncate(long long path,
-+                                                      long long length);
-+void __sanitizer_syscall_post_impl_compat_43_otruncate(long long res,
-+                                                       long long path,
-+                                                       long long length);
-+void __sanitizer_syscall_pre_impl_compat_43_oftruncate(long long fd,
-+                                                       long long length);
-+void __sanitizer_syscall_post_impl_compat_43_oftruncate(long long res,
-+                                                        long long fd,
-+                                                        long long length);
-+void __sanitizer_syscall_pre_impl_flock(long long fd, long long how);
-+void __sanitizer_syscall_post_impl_flock(long long res, long long fd,
-+                                         long long how);
-+void __sanitizer_syscall_pre_impl_mkfifo(long long path, long long mode);
-+void __sanitizer_syscall_post_impl_mkfifo(long long res, long long path,
-+                                          long long mode);
-+void __sanitizer_syscall_pre_impl_sendto(long long s, long long buf,
-+                                         long long len, long long flags,
-+                                         long long to, long long tolen);
-+void __sanitizer_syscall_post_impl_sendto(long long res, long long s,
-+                                          long long buf, long long len,
-+                                          long long flags, long long to,
-+                                          long long tolen);
-+void __sanitizer_syscall_pre_impl_shutdown(long long s, long long how);
-+void __sanitizer_syscall_post_impl_shutdown(long long res, long long s,
-+                                            long long how);
-+void __sanitizer_syscall_pre_impl_socketpair(long long domain, long long type,
-+                                             long long protocol, long long rsv);
-+void __sanitizer_syscall_post_impl_socketpair(long long res, long long domain,
-+                                              long long type,
-+                                              long long protocol,
-+                                              long long rsv);
-+void __sanitizer_syscall_pre_impl_mkdir(long long path, long long mode);
-+void __sanitizer_syscall_post_impl_mkdir(long long res, long long path,
-+                                         long long mode);
-+void __sanitizer_syscall_pre_impl_rmdir(long long path);
-+void __sanitizer_syscall_post_impl_rmdir(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_compat_50_utimes(long long path,
-+                                                   long long tptr);
-+void __sanitizer_syscall_post_impl_compat_50_utimes(long long res,
-+                                                    long long path,
-+                                                    long long tptr);
-+/* syscall 139 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_50_adjtime(long long delta,
-+                                                    long long olddelta);
-+void __sanitizer_syscall_post_impl_compat_50_adjtime(long long res,
-+                                                     long long delta,
-+                                                     long long olddelta);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetpeername(long long fdes,
-+                                                         long long asa,
-+                                                         long long alen);
-+void __sanitizer_syscall_post_impl_compat_43_ogetpeername(long long res,
-+                                                          long long fdes,
-+                                                          long long asa,
-+                                                          long long alen);
-+void __sanitizer_syscall_pre_impl_compat_43_ogethostid(void);
-+void __sanitizer_syscall_post_impl_compat_43_ogethostid(long long res);
-+void __sanitizer_syscall_pre_impl_compat_43_osethostid(long long hostid);
-+void __sanitizer_syscall_post_impl_compat_43_osethostid(long long res,
-+                                                        long long hostid);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetrlimit(long long which,
-+                                                       long long rlp);
-+void __sanitizer_syscall_post_impl_compat_43_ogetrlimit(long long res,
-+                                                        long long which,
-+                                                        long long rlp);
-+void __sanitizer_syscall_pre_impl_compat_43_osetrlimit(long long which,
-+                                                       long long rlp);
-+void __sanitizer_syscall_post_impl_compat_43_osetrlimit(long long res,
-+                                                        long long which,
-+                                                        long long rlp);
-+void __sanitizer_syscall_pre_impl_compat_43_okillpg(long long pgid,
-+                                                    long long signum);
-+void __sanitizer_syscall_post_impl_compat_43_okillpg(long long res,
-+                                                     long long pgid,
-+                                                     long long signum);
-+void __sanitizer_syscall_pre_impl_setsid(void);
-+void __sanitizer_syscall_post_impl_setsid(long long res);
-+void __sanitizer_syscall_pre_impl_compat_50_quotactl(long long path,
-+                                                     long long cmd,
-+                                                     long long uid,
-+                                                     long long arg);
-+void __sanitizer_syscall_post_impl_compat_50_quotactl(
-+    long long res, long long path, long long cmd, long long uid, long long arg);
-+void __sanitizer_syscall_pre_impl_compat_43_oquota(void);
-+void __sanitizer_syscall_post_impl_compat_43_oquota(long long res);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetsockname(long long fdec,
-+                                                         long long asa,
-+                                                         long long alen);
-+void __sanitizer_syscall_post_impl_compat_43_ogetsockname(long long res,
-+                                                          long long fdec,
-+                                                          long long asa,
-+                                                          long long alen);
-+/* syscall 151 has been skipped */
-+/* syscall 152 has been skipped */
-+/* syscall 153 has been skipped */
-+/* syscall 154 has been skipped */
-+void __sanitizer_syscall_pre_impl_nfssvc(long long flag, long long argp);
-+void __sanitizer_syscall_post_impl_nfssvc(long long res, long long flag,
-+                                          long long argp);
-+void __sanitizer_syscall_pre_impl_compat_43_ogetdirentries(long long fd,
-+                                                           long long buf,
-+                                                           long long count,
-+                                                           long long basep);
-+void __sanitizer_syscall_post_impl_compat_43_ogetdirentries(long long res,
-+                                                            long long fd,
-+                                                            long long buf,
-+                                                            long long count,
-+                                                            long long basep);
-+void __sanitizer_syscall_pre_impl_compat_20_statfs(long long path,
-+                                                   long long buf);
-+void __sanitizer_syscall_post_impl_compat_20_statfs(long long res,
-+                                                    long long path,
-+                                                    long long buf);
-+void __sanitizer_syscall_pre_impl_compat_20_fstatfs(long long fd,
-+                                                    long long buf);
-+void __sanitizer_syscall_post_impl_compat_20_fstatfs(long long res,
-+                                                     long long fd,
-+                                                     long long buf);
-+/* syscall 159 has been skipped */
-+/* syscall 160 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_30_getfh(long long fname,
-+                                                  long long fhp);
-+void __sanitizer_syscall_post_impl_compat_30_getfh(long long res,
-+                                                   long long fname,
-+                                                   long long fhp);
-+void __sanitizer_syscall_pre_impl_compat_09_ogetdomainname(long long domainname,
-+                                                           long long len);
-+void __sanitizer_syscall_post_impl_compat_09_ogetdomainname(
-+    long long res, long long domainname, long long len);
-+void __sanitizer_syscall_pre_impl_compat_09_osetdomainname(long long domainname,
-+                                                           long long len);
-+void __sanitizer_syscall_post_impl_compat_09_osetdomainname(
-+    long long res, long long domainname, long long len);
-+void __sanitizer_syscall_pre_impl_compat_09_ouname(long long name);
-+void __sanitizer_syscall_post_impl_compat_09_ouname(long long res,
-+                                                    long long name);
-+void __sanitizer_syscall_pre_impl_sysarch(long long op, long long parms);
-+void __sanitizer_syscall_post_impl_sysarch(long long res, long long op,
-+                                           long long parms);
-+/* syscall 166 has been skipped */
-+/* syscall 167 has been skipped */
-+/* syscall 168 has been skipped */
-+#if !defined(_LP64)
-+void __sanitizer_syscall_pre_impl_compat_10_osemsys(long long which,
-+                                                    long long a2, long long a3,
-+                                                    long long a4, long long a5);
-+void __sanitizer_syscall_post_impl_compat_10_osemsys(long long res,
-+                                                     long long which,
-+                                                     long long a2, long long a3,
-+                                                     long long a4,
-+                                                     long long a5);
-+#else
-+/* syscall 169 has been skipped */
-+#endif
-+#if !defined(_LP64)
-+void __sanitizer_syscall_pre_impl_compat_10_omsgsys(long long which,
-+                                                    long long a2, long long a3,
-+                                                    long long a4, long long a5,
-+                                                    long long a6);
-+void __sanitizer_syscall_post_impl_compat_10_omsgsys(long long res,
-+                                                     long long which,
-+                                                     long long a2, long long a3,
-+                                                     long long a4, long long a5,
-+                                                     long long a6);
-+#else
-+/* syscall 170 has been skipped */
-+#endif
-+#if !defined(_LP64)
-+void __sanitizer_syscall_pre_impl_compat_10_oshmsys(long long which,
-+                                                    long long a2, long long a3,
-+                                                    long long a4);
-+void __sanitizer_syscall_post_impl_compat_10_oshmsys(long long res,
-+                                                     long long which,
-+                                                     long long a2, long long a3,
-+                                                     long long a4);
-+#else
-+/* syscall 171 has been skipped */
-+#endif
-+/* syscall 172 has been skipped */
-+void __sanitizer_syscall_pre_impl_pread(long long fd, long long buf,
-+                                        long long nbyte, long long PAD,
-+                                        long long offset);
-+void __sanitizer_syscall_post_impl_pread(long long res, long long fd,
-+                                         long long buf, long long nbyte,
-+                                         long long PAD, long long offset);
-+void __sanitizer_syscall_pre_impl_pwrite(long long fd, long long buf,
-+                                         long long nbyte, long long PAD,
-+                                         long long offset);
-+void __sanitizer_syscall_post_impl_pwrite(long long res, long long fd,
-+                                          long long buf, long long nbyte,
-+                                          long long PAD, long long offset);
-+void __sanitizer_syscall_pre_impl_compat_30_ntp_gettime(long long ntvp);
-+void __sanitizer_syscall_post_impl_compat_30_ntp_gettime(long long res,
-+                                                         long long ntvp);
-+#if defined(NTP) || !defined(_KERNEL_OPT)
-+void __sanitizer_syscall_pre_impl_ntp_adjtime(long long tp);
-+void __sanitizer_syscall_post_impl_ntp_adjtime(long long res, long long tp);
-+#else
-+/* syscall 176 has been skipped */
-+#endif
-+/* syscall 177 has been skipped */
-+/* syscall 178 has been skipped */
-+/* syscall 179 has been skipped */
-+/* syscall 180 has been skipped */
-+void __sanitizer_syscall_pre_impl_setgid(long long gid);
-+void __sanitizer_syscall_post_impl_setgid(long long res, long long gid);
-+void __sanitizer_syscall_pre_impl_setegid(long long egid);
-+void __sanitizer_syscall_post_impl_setegid(long long res, long long egid);
-+void __sanitizer_syscall_pre_impl_seteuid(long long euid);
-+void __sanitizer_syscall_post_impl_seteuid(long long res, long long euid);
-+void __sanitizer_syscall_pre_impl_lfs_bmapv(long long fsidp, long long blkiov,
-+                                            long long blkcnt);
-+void __sanitizer_syscall_post_impl_lfs_bmapv(long long res, long long fsidp,
-+                                             long long blkiov,
-+                                             long long blkcnt);
-+void __sanitizer_syscall_pre_impl_lfs_markv(long long fsidp, long long blkiov,
-+                                            long long blkcnt);
-+void __sanitizer_syscall_post_impl_lfs_markv(long long res, long long fsidp,
-+                                             long long blkiov,
-+                                             long long blkcnt);
-+void __sanitizer_syscall_pre_impl_lfs_segclean(long long fsidp,
-+                                               long long segment);
-+void __sanitizer_syscall_post_impl_lfs_segclean(long long res, long long fsidp,
-+                                                long long segment);
-+void __sanitizer_syscall_pre_impl_compat_50_lfs_segwait(long long fsidp,
-+                                                        long long tv);
-+void __sanitizer_syscall_post_impl_compat_50_lfs_segwait(long long res,
-+                                                         long long fsidp,
-+                                                         long long tv);
-+void __sanitizer_syscall_pre_impl_compat_12_stat12(long long path,
-+                                                   long long ub);
-+void __sanitizer_syscall_post_impl_compat_12_stat12(long long res,
-+                                                    long long path,
-+                                                    long long ub);
-+void __sanitizer_syscall_pre_impl_compat_12_fstat12(long long fd, long long sb);
-+void __sanitizer_syscall_post_impl_compat_12_fstat12(long long res,
-+                                                     long long fd,
-+                                                     long long sb);
-+void __sanitizer_syscall_pre_impl_compat_12_lstat12(long long path,
-+                                                    long long ub);
-+void __sanitizer_syscall_post_impl_compat_12_lstat12(long long res,
-+                                                     long long path,
-+                                                     long long ub);
-+void __sanitizer_syscall_pre_impl_pathconf(long long path, long long name);
-+void __sanitizer_syscall_post_impl_pathconf(long long res, long long path,
-+                                            long long name);
-+void __sanitizer_syscall_pre_impl_fpathconf(long long fd, long long name);
-+void __sanitizer_syscall_post_impl_fpathconf(long long res, long long fd,
-+                                             long long name);
-+/* syscall 193 has been skipped */
-+void __sanitizer_syscall_pre_impl_getrlimit(long long which, long long rlp);
-+void __sanitizer_syscall_post_impl_getrlimit(long long res, long long which,
-+                                             long long rlp);
-+void __sanitizer_syscall_pre_impl_setrlimit(long long which, long long rlp);
-+void __sanitizer_syscall_post_impl_setrlimit(long long res, long long which,
-+                                             long long rlp);
-+void __sanitizer_syscall_pre_impl_compat_12_getdirentries(long long fd,
-+                                                          long long buf,
-+                                                          long long count,
-+                                                          long long basep);
-+void __sanitizer_syscall_post_impl_compat_12_getdirentries(long long res,
-+                                                           long long fd,
-+                                                           long long buf,
-+                                                           long long count,
-+                                                           long long basep);
-+void __sanitizer_syscall_pre_impl_mmap(long long addr, long long len,
-+                                       long long prot, long long flags,
-+                                       long long fd, long long PAD,
-+                                       long long pos);
-+void __sanitizer_syscall_post_impl_mmap(long long res, long long addr,
-+                                        long long len, long long prot,
-+                                        long long flags, long long fd,
-+                                        long long PAD, long long pos);
-+void __sanitizer_syscall_pre_impl___syscall(long long code, long long arg0,
-+                                            long long arg1, long long arg2,
-+                                            long long arg3, long long arg4,
-+                                            long long arg5, long long arg6,
-+                                            long long arg7);
-+void __sanitizer_syscall_post_impl___syscall(long long res, long long code,
-+                                             long long arg0, long long arg1,
-+                                             long long arg2, long long arg3,
-+                                             long long arg4, long long arg5,
-+                                             long long arg6, long long arg7);
-+void __sanitizer_syscall_pre_impl_lseek(long long fd, long long PAD,
-+                                        long long offset, long long whence);
-+void __sanitizer_syscall_post_impl_lseek(long long res, long long fd,
-+                                         long long PAD, long long offset,
-+                                         long long whence);
-+void __sanitizer_syscall_pre_impl_truncate(long long path, long long PAD,
-+                                           long long length);
-+void __sanitizer_syscall_post_impl_truncate(long long res, long long path,
-+                                            long long PAD, long long length);
-+void __sanitizer_syscall_pre_impl_ftruncate(long long fd, long long PAD,
-+                                            long long length);
-+void __sanitizer_syscall_post_impl_ftruncate(long long res, long long fd,
-+                                             long long PAD, long long length);
-+void __sanitizer_syscall_pre_impl___sysctl(long long name, long long namelen,
-+                                           long long oldv, long long oldlenp,
-+                                           long long newv, long long newlen);
-+void __sanitizer_syscall_post_impl___sysctl(long long res, long long name,
-+                                            long long namelen, long long oldv,
-+                                            long long oldlenp, long long newv,
-+                                            long long newlen);
-+void __sanitizer_syscall_pre_impl_mlock(long long addr, long long len);
-+void __sanitizer_syscall_post_impl_mlock(long long res, long long addr,
-+                                         long long len);
-+void __sanitizer_syscall_pre_impl_munlock(long long addr, long long len);
-+void __sanitizer_syscall_post_impl_munlock(long long res, long long addr,
-+                                           long long len);
-+void __sanitizer_syscall_pre_impl_undelete(long long path);
-+void __sanitizer_syscall_post_impl_undelete(long long res, long long path);
-+void __sanitizer_syscall_pre_impl_compat_50_futimes(long long fd,
-+                                                    long long tptr);
-+void __sanitizer_syscall_post_impl_compat_50_futimes(long long res,
-+                                                     long long fd,
-+                                                     long long tptr);
-+void __sanitizer_syscall_pre_impl_getpgid(long long pid);
-+void __sanitizer_syscall_post_impl_getpgid(long long res, long long pid);
-+void __sanitizer_syscall_pre_impl_reboot(long long opt, long long bootstr);
-+void __sanitizer_syscall_post_impl_reboot(long long res, long long opt,
-+                                          long long bootstr);
-+void __sanitizer_syscall_pre_impl_poll(long long fds, long long nfds,
-+                                       long long timeout);
-+void __sanitizer_syscall_post_impl_poll(long long res, long long fds,
-+                                        long long nfds, long long timeout);
-+void __sanitizer_syscall_pre_impl_afssys(long long id, long long a1,
-+                                         long long a2, long long a3,
-+                                         long long a4, long long a5,
-+                                         long long a6);
-+void __sanitizer_syscall_post_impl_afssys(long long res, long long id,
-+                                          long long a1, long long a2,
-+                                          long long a3, long long a4,
-+                                          long long a5, long long a6);
-+/* syscall 211 has been skipped */
-+/* syscall 212 has been skipped */
-+/* syscall 213 has been skipped */
-+/* syscall 214 has been skipped */
-+/* syscall 215 has been skipped */
-+/* syscall 216 has been skipped */
-+/* syscall 217 has been skipped */
-+/* syscall 218 has been skipped */
-+/* syscall 219 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_14___semctl(long long semid,
-+                                                     long long semnum,
-+                                                     long long cmd,
-+                                                     long long arg);
-+void __sanitizer_syscall_post_impl_compat_14___semctl(long long res,
-+                                                      long long semid,
-+                                                      long long semnum,
-+                                                      long long cmd,
-+                                                      long long arg);
-+void __sanitizer_syscall_pre_impl_semget(long long key, long long nsems,
-+                                         long long semflg);
-+void __sanitizer_syscall_post_impl_semget(long long res, long long key,
-+                                          long long nsems, long long semflg);
-+void __sanitizer_syscall_pre_impl_semop(long long semid, long long sops,
-+                                        long long nsops);
-+void __sanitizer_syscall_post_impl_semop(long long res, long long semid,
-+                                         long long sops, long long nsops);
-+void __sanitizer_syscall_pre_impl_semconfig(long long flag);
-+void __sanitizer_syscall_post_impl_semconfig(long long res, long long flag);
-+void __sanitizer_syscall_pre_impl_compat_14_msgctl(long long msqid,
-+                                                   long long cmd,
-+                                                   long long buf);
-+void __sanitizer_syscall_post_impl_compat_14_msgctl(long long res,
-+                                                    long long msqid,
-+                                                    long long cmd,
-+                                                    long long buf);
-+void __sanitizer_syscall_pre_impl_msgget(long long key, long long msgflg);
-+void __sanitizer_syscall_post_impl_msgget(long long res, long long key,
-+                                          long long msgflg);
-+void __sanitizer_syscall_pre_impl_msgsnd(long long msqid, long long msgp,
-+                                         long long msgsz, long long msgflg);
-+void __sanitizer_syscall_post_impl_msgsnd(long long res, long long msqid,
-+                                          long long msgp, long long msgsz,
-+                                          long long msgflg);
-+void __sanitizer_syscall_pre_impl_msgrcv(long long msqid, long long msgp,
-+                                         long long msgsz, long long msgtyp,
-+                                         long long msgflg);
-+void __sanitizer_syscall_post_impl_msgrcv(long long res, long long msqid,
-+                                          long long msgp, long long msgsz,
-+                                          long long msgtyp, long long msgflg);
-+void __sanitizer_syscall_pre_impl_shmat(long long shmid, long long shmaddr,
-+                                        long long shmflg);
-+void __sanitizer_syscall_post_impl_shmat(long long res, long long shmid,
-+                                         long long shmaddr, long long shmflg);
-+void __sanitizer_syscall_pre_impl_compat_14_shmctl(long long shmid,
-+                                                   long long cmd,
-+                                                   long long buf);
-+void __sanitizer_syscall_post_impl_compat_14_shmctl(long long res,
-+                                                    long long shmid,
-+                                                    long long cmd,
-+                                                    long long buf);
-+void __sanitizer_syscall_pre_impl_shmdt(long long shmaddr);
-+void __sanitizer_syscall_post_impl_shmdt(long long res, long long shmaddr);
-+void __sanitizer_syscall_pre_impl_shmget(long long key, long long size,
-+                                         long long shmflg);
-+void __sanitizer_syscall_post_impl_shmget(long long res, long long key,
-+                                          long long size, long long shmflg);
-+void __sanitizer_syscall_pre_impl_compat_50_clock_gettime(long long clock_id,
-+                                                          long long tp);
-+void __sanitizer_syscall_post_impl_compat_50_clock_gettime(long long res,
-+                                                           long long clock_id,
-+                                                           long long tp);
-+void __sanitizer_syscall_pre_impl_compat_50_clock_settime(long long clock_id,
-+                                                          long long tp);
-+void __sanitizer_syscall_post_impl_compat_50_clock_settime(long long res,
-+                                                           long long clock_id,
-+                                                           long long tp);
-+void __sanitizer_syscall_pre_impl_compat_50_clock_getres(long long clock_id,
-+                                                         long long tp);
-+void __sanitizer_syscall_post_impl_compat_50_clock_getres(long long res,
-+                                                          long long clock_id,
-+                                                          long long tp);
-+void __sanitizer_syscall_pre_impl_timer_create(long long clock_id,
-+                                               long long evp,
-+                                               long long timerid);
-+void __sanitizer_syscall_post_impl_timer_create(long long res,
-+                                                long long clock_id,
-+                                                long long evp,
-+                                                long long timerid);
-+void __sanitizer_syscall_pre_impl_timer_delete(long long timerid);
-+void __sanitizer_syscall_post_impl_timer_delete(long long res,
-+                                                long long timerid);
-+void __sanitizer_syscall_pre_impl_compat_50_timer_settime(long long timerid,
-+                                                          long long flags,
-+                                                          long long value,
-+                                                          long long ovalue);
-+void __sanitizer_syscall_post_impl_compat_50_timer_settime(long long res,
-+                                                           long long timerid,
-+                                                           long long flags,
-+                                                           long long value,
-+                                                           long long ovalue);
-+void __sanitizer_syscall_pre_impl_compat_50_timer_gettime(long long timerid,
-+                                                          long long value);
-+void __sanitizer_syscall_post_impl_compat_50_timer_gettime(long long res,
-+                                                           long long timerid,
-+                                                           long long value);
-+void __sanitizer_syscall_pre_impl_timer_getoverrun(long long timerid);
-+void __sanitizer_syscall_post_impl_timer_getoverrun(long long res,
-+                                                    long long timerid);
-+void __sanitizer_syscall_pre_impl_compat_50_nanosleep(long long rqtp,
-+                                                      long long rmtp);
-+void __sanitizer_syscall_post_impl_compat_50_nanosleep(long long res,
-+                                                       long long rqtp,
-+                                                       long long rmtp);
-+void __sanitizer_syscall_pre_impl_fdatasync(long long fd);
-+void __sanitizer_syscall_post_impl_fdatasync(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_mlockall(long long flags);
-+void __sanitizer_syscall_post_impl_mlockall(long long res, long long flags);
-+void __sanitizer_syscall_pre_impl_munlockall(void);
-+void __sanitizer_syscall_post_impl_munlockall(long long res);
-+void __sanitizer_syscall_pre_impl_compat_50___sigtimedwait(long long set,
-+                                                           long long info,
-+                                                           long long timeout);
-+void __sanitizer_syscall_post_impl_compat_50___sigtimedwait(long long res,
-+                                                            long long set,
-+                                                            long long info,
-+                                                            long long timeout);
-+void __sanitizer_syscall_pre_impl_sigqueueinfo(long long pid, long long info);
-+void __sanitizer_syscall_post_impl_sigqueueinfo(long long res, long long pid,
-+                                                long long info);
-+void __sanitizer_syscall_pre_impl_modctl(long long cmd, long long arg);
-+void __sanitizer_syscall_post_impl_modctl(long long res, long long cmd,
-+                                          long long arg);
-+void __sanitizer_syscall_pre_impl__ksem_init(long long value, long long idp);
-+void __sanitizer_syscall_post_impl__ksem_init(long long res, long long value,
-+                                              long long idp);
-+void __sanitizer_syscall_pre_impl__ksem_open(long long name, long long oflag,
-+                                             long long mode, long long value,
-+                                             long long idp);
-+void __sanitizer_syscall_post_impl__ksem_open(long long res, long long name,
-+                                              long long oflag, long long mode,
-+                                              long long value, long long idp);
-+void __sanitizer_syscall_pre_impl__ksem_unlink(long long name);
-+void __sanitizer_syscall_post_impl__ksem_unlink(long long res, long long name);
-+void __sanitizer_syscall_pre_impl__ksem_close(long long id);
-+void __sanitizer_syscall_post_impl__ksem_close(long long res, long long id);
-+void __sanitizer_syscall_pre_impl__ksem_post(long long id);
-+void __sanitizer_syscall_post_impl__ksem_post(long long res, long long id);
-+void __sanitizer_syscall_pre_impl__ksem_wait(long long id);
-+void __sanitizer_syscall_post_impl__ksem_wait(long long res, long long id);
-+void __sanitizer_syscall_pre_impl__ksem_trywait(long long id);
-+void __sanitizer_syscall_post_impl__ksem_trywait(long long res, long long id);
-+void __sanitizer_syscall_pre_impl__ksem_getvalue(long long id, long long value);
-+void __sanitizer_syscall_post_impl__ksem_getvalue(long long res, long long id,
-+                                                  long long value);
-+void __sanitizer_syscall_pre_impl__ksem_destroy(long long id);
-+void __sanitizer_syscall_post_impl__ksem_destroy(long long res, long long id);
-+void __sanitizer_syscall_pre_impl__ksem_timedwait(long long id,
-+                                                  long long abstime);
-+void __sanitizer_syscall_post_impl__ksem_timedwait(long long res, long long id,
-+                                                   long long abstime);
-+void __sanitizer_syscall_pre_impl_mq_open(long long name, long long oflag,
-+                                          long long mode, long long attr);
-+void __sanitizer_syscall_post_impl_mq_open(long long res, long long name,
-+                                           long long oflag, long long mode,
-+                                           long long attr);
-+void __sanitizer_syscall_pre_impl_mq_close(long long mqdes);
-+void __sanitizer_syscall_post_impl_mq_close(long long res, long long mqdes);
-+void __sanitizer_syscall_pre_impl_mq_unlink(long long name);
-+void __sanitizer_syscall_post_impl_mq_unlink(long long res, long long name);
-+void __sanitizer_syscall_pre_impl_mq_getattr(long long mqdes, long long mqstat);
-+void __sanitizer_syscall_post_impl_mq_getattr(long long res, long long mqdes,
-+                                              long long mqstat);
-+void __sanitizer_syscall_pre_impl_mq_setattr(long long mqdes, long long mqstat,
-+                                             long long omqstat);
-+void __sanitizer_syscall_post_impl_mq_setattr(long long res, long long mqdes,
-+                                              long long mqstat,
-+                                              long long omqstat);
-+void __sanitizer_syscall_pre_impl_mq_notify(long long mqdes,
-+                                            long long notification);
-+void __sanitizer_syscall_post_impl_mq_notify(long long res, long long mqdes,
-+                                             long long notification);
-+void __sanitizer_syscall_pre_impl_mq_send(long long mqdes, long long msg_ptr,
-+                                          long long msg_len,
-+                                          long long msg_prio);
-+void __sanitizer_syscall_post_impl_mq_send(long long res, long long mqdes,
-+                                           long long msg_ptr, long long msg_len,
-+                                           long long msg_prio);
-+void __sanitizer_syscall_pre_impl_mq_receive(long long mqdes, long long msg_ptr,
-+                                             long long msg_len,
-+                                             long long msg_prio);
-+void __sanitizer_syscall_post_impl_mq_receive(long long res, long long mqdes,
-+                                              long long msg_ptr,
-+                                              long long msg_len,
-+                                              long long msg_prio);
-+void __sanitizer_syscall_pre_impl_compat_50_mq_timedsend(long long mqdes,
-+                                                         long long msg_ptr,
-+                                                         long long msg_len,
-+                                                         long long msg_prio,
-+                                                         long long abs_timeout);
-+void __sanitizer_syscall_post_impl_compat_50_mq_timedsend(
-+    long long res, long long mqdes, long long msg_ptr, long long msg_len,
-+    long long msg_prio, long long abs_timeout);
-+void __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive(
-+    long long mqdes, long long msg_ptr, long long msg_len, long long msg_prio,
-+    long long abs_timeout);
-+void __sanitizer_syscall_post_impl_compat_50_mq_timedreceive(
-+    long long res, long long mqdes, long long msg_ptr, long long msg_len,
-+    long long msg_prio, long long abs_timeout);
-+/* syscall 267 has been skipped */
-+/* syscall 268 has been skipped */
-+/* syscall 269 has been skipped */
-+void __sanitizer_syscall_pre_impl___posix_rename(long long from, long long to);
-+void __sanitizer_syscall_post_impl___posix_rename(long long res, long long from,
-+                                                  long long to);
-+void __sanitizer_syscall_pre_impl_swapctl(long long cmd, long long arg,
-+                                          long long misc);
-+void __sanitizer_syscall_post_impl_swapctl(long long res, long long cmd,
-+                                           long long arg, long long misc);
-+void __sanitizer_syscall_pre_impl_compat_30_getdents(long long fd,
-+                                                     long long buf,
-+                                                     long long count);
-+void __sanitizer_syscall_post_impl_compat_30_getdents(long long res,
-+                                                      long long fd,
-+                                                      long long buf,
-+                                                      long long count);
-+void __sanitizer_syscall_pre_impl_minherit(long long addr, long long len,
-+                                           long long inherit);
-+void __sanitizer_syscall_post_impl_minherit(long long res, long long addr,
-+                                            long long len, long long inherit);
-+void __sanitizer_syscall_pre_impl_lchmod(long long path, long long mode);
-+void __sanitizer_syscall_post_impl_lchmod(long long res, long long path,
-+                                          long long mode);
-+void __sanitizer_syscall_pre_impl_lchown(long long path, long long uid,
-+                                         long long gid);
-+void __sanitizer_syscall_post_impl_lchown(long long res, long long path,
-+                                          long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl_compat_50_lutimes(long long path,
-+                                                    long long tptr);
-+void __sanitizer_syscall_post_impl_compat_50_lutimes(long long res,
-+                                                     long long path,
-+                                                     long long tptr);
-+void __sanitizer_syscall_pre_impl___msync13(long long addr, long long len,
-+                                            long long flags);
-+void __sanitizer_syscall_post_impl___msync13(long long res, long long addr,
-+                                             long long len, long long flags);
-+void __sanitizer_syscall_pre_impl_compat_30___stat13(long long path,
-+                                                     long long ub);
-+void __sanitizer_syscall_post_impl_compat_30___stat13(long long res,
-+                                                      long long path,
-+                                                      long long ub);
-+void __sanitizer_syscall_pre_impl_compat_30___fstat13(long long fd,
-+                                                      long long sb);
-+void __sanitizer_syscall_post_impl_compat_30___fstat13(long long res,
-+                                                       long long fd,
-+                                                       long long sb);
-+void __sanitizer_syscall_pre_impl_compat_30___lstat13(long long path,
-+                                                      long long ub);
-+void __sanitizer_syscall_post_impl_compat_30___lstat13(long long res,
-+                                                       long long path,
-+                                                       long long ub);
-+void __sanitizer_syscall_pre_impl___sigaltstack14(long long nss, long long oss);
-+void __sanitizer_syscall_post_impl___sigaltstack14(long long res, long long nss,
-+                                                   long long oss);
-+void __sanitizer_syscall_pre_impl___vfork14(void);
-+void __sanitizer_syscall_post_impl___vfork14(long long res);
-+void __sanitizer_syscall_pre_impl___posix_chown(long long path, long long uid,
-+                                                long long gid);
-+void __sanitizer_syscall_post_impl___posix_chown(long long res, long long path,
-+                                                 long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl___posix_fchown(long long fd, long long uid,
-+                                                 long long gid);
-+void __sanitizer_syscall_post_impl___posix_fchown(long long res, long long fd,
-+                                                  long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl___posix_lchown(long long path, long long uid,
-+                                                 long long gid);
-+void __sanitizer_syscall_post_impl___posix_lchown(long long res, long long path,
-+                                                  long long uid, long long gid);
-+void __sanitizer_syscall_pre_impl_getsid(long long pid);
-+void __sanitizer_syscall_post_impl_getsid(long long res, long long pid);
-+void __sanitizer_syscall_pre_impl___clone(long long flags, long long stack);
-+void __sanitizer_syscall_post_impl___clone(long long res, long long flags,
-+                                           long long stack);
-+void __sanitizer_syscall_pre_impl_fktrace(long long fd, long long ops,
-+                                          long long facs, long long pid);
-+void __sanitizer_syscall_post_impl_fktrace(long long res, long long fd,
-+                                           long long ops, long long facs,
-+                                           long long pid);
-+void __sanitizer_syscall_pre_impl_preadv(long long fd, long long iovp,
-+                                         long long iovcnt, long long PAD,
-+                                         long long offset);
-+void __sanitizer_syscall_post_impl_preadv(long long res, long long fd,
-+                                          long long iovp, long long iovcnt,
-+                                          long long PAD, long long offset);
-+void __sanitizer_syscall_pre_impl_pwritev(long long fd, long long iovp,
-+                                          long long iovcnt, long long PAD,
-+                                          long long offset);
-+void __sanitizer_syscall_post_impl_pwritev(long long res, long long fd,
-+                                           long long iovp, long long iovcnt,
-+                                           long long PAD, long long offset);
-+void __sanitizer_syscall_pre_impl_compat_16___sigaction14(long long signum,
-+                                                          long long nsa,
-+                                                          long long osa);
-+void __sanitizer_syscall_post_impl_compat_16___sigaction14(long long res,
-+                                                           long long signum,
-+                                                           long long nsa,
-+                                                           long long osa);
-+void __sanitizer_syscall_pre_impl___sigpending14(long long set);
-+void __sanitizer_syscall_post_impl___sigpending14(long long res, long long set);
-+void __sanitizer_syscall_pre_impl___sigprocmask14(long long how, long long set,
-+                                                  long long oset);
-+void __sanitizer_syscall_post_impl___sigprocmask14(long long res, long long how,
-+                                                   long long set,
-+                                                   long long oset);
-+void __sanitizer_syscall_pre_impl___sigsuspend14(long long set);
-+void __sanitizer_syscall_post_impl___sigsuspend14(long long res, long long set);
-+void __sanitizer_syscall_pre_impl_compat_16___sigreturn14(long long sigcntxp);
-+void __sanitizer_syscall_post_impl_compat_16___sigreturn14(long long res,
-+                                                           long long sigcntxp);
-+void __sanitizer_syscall_pre_impl___getcwd(long long bufp, long long length);
-+void __sanitizer_syscall_post_impl___getcwd(long long res, long long bufp,
-+                                            long long length);
-+void __sanitizer_syscall_pre_impl_fchroot(long long fd);
-+void __sanitizer_syscall_post_impl_fchroot(long long res, long long fd);
-+void __sanitizer_syscall_pre_impl_compat_30_fhopen(long long fhp,
-+                                                   long long flags);
-+void __sanitizer_syscall_post_impl_compat_30_fhopen(long long res,
-+                                                    long long fhp,
-+                                                    long long flags);
-+void __sanitizer_syscall_pre_impl_compat_30_fhstat(long long fhp, long long sb);
-+void __sanitizer_syscall_post_impl_compat_30_fhstat(long long res,
-+                                                    long long fhp,
-+                                                    long long sb);
-+void __sanitizer_syscall_pre_impl_compat_20_fhstatfs(long long fhp,
-+                                                     long long buf);
-+void __sanitizer_syscall_post_impl_compat_20_fhstatfs(long long res,
-+                                                      long long fhp,
-+                                                      long long buf);
-+void __sanitizer_syscall_pre_impl_compat_50_____semctl13(long long semid,
-+                                                         long long semnum,
-+                                                         long long cmd,
-+                                                         long long arg);
-+void __sanitizer_syscall_post_impl_compat_50_____semctl13(long long res,
-+                                                          long long semid,
-+                                                          long long semnum,
-+                                                          long long cmd,
-+                                                          long long arg);
-+void __sanitizer_syscall_pre_impl_compat_50___msgctl13(long long msqid,
-+                                                       long long cmd,
-+                                                       long long buf);
-+void __sanitizer_syscall_post_impl_compat_50___msgctl13(long long res,
-+                                                        long long msqid,
-+                                                        long long cmd,
-+                                                        long long buf);
-+void __sanitizer_syscall_pre_impl_compat_50___shmctl13(long long shmid,
-+                                                       long long cmd,
-+                                                       long long buf);
-+void __sanitizer_syscall_post_impl_compat_50___shmctl13(long long res,
-+                                                        long long shmid,
-+                                                        long long cmd,
-+                                                        long long buf);
-+void __sanitizer_syscall_pre_impl_lchflags(long long path, long long flags);
-+void __sanitizer_syscall_post_impl_lchflags(long long res, long long path,
-+                                            long long flags);
-+void __sanitizer_syscall_pre_impl_issetugid(void);
-+void __sanitizer_syscall_post_impl_issetugid(long long res);
-+void __sanitizer_syscall_pre_impl_utrace(long long label, long long addr,
-+                                         long long len);
-+void __sanitizer_syscall_post_impl_utrace(long long res, long long label,
-+                                          long long addr, long long len);
-+void __sanitizer_syscall_pre_impl_getcontext(long long ucp);
-+void __sanitizer_syscall_post_impl_getcontext(long long res, long long ucp);
-+void __sanitizer_syscall_pre_impl_setcontext(long long ucp);
-+void __sanitizer_syscall_post_impl_setcontext(long long res, long long ucp);
-+void __sanitizer_syscall_pre_impl__lwp_create(long long ucp, long long flags,
-+                                              long long new_lwp);
-+void __sanitizer_syscall_post_impl__lwp_create(long long res, long long ucp,
-+                                               long long flags,
-+                                               long long new_lwp);
-+void __sanitizer_syscall_pre_impl__lwp_exit(void);
-+void __sanitizer_syscall_post_impl__lwp_exit(long long res);
-+void __sanitizer_syscall_pre_impl__lwp_self(void);
-+void __sanitizer_syscall_post_impl__lwp_self(long long res);
-+void __sanitizer_syscall_pre_impl__lwp_wait(long long wait_for,
-+                                            long long departed);
-+void __sanitizer_syscall_post_impl__lwp_wait(long long res, long long wait_for,
-+                                             long long departed);
-+void __sanitizer_syscall_pre_impl__lwp_suspend(long long target);
-+void __sanitizer_syscall_post_impl__lwp_suspend(long long res,
-+                                                long long target);
-+void __sanitizer_syscall_pre_impl__lwp_continue(long long target);
-+void __sanitizer_syscall_post_impl__lwp_continue(long long res,
-+                                                 long long target);
-+void __sanitizer_syscall_pre_impl__lwp_wakeup(long long target);
-+void __sanitizer_syscall_post_impl__lwp_wakeup(long long res, long long target);
-+void __sanitizer_syscall_pre_impl__lwp_getprivate(void);
-+void __sanitizer_syscall_post_impl__lwp_getprivate(long long res);
-+void __sanitizer_syscall_pre_impl__lwp_setprivate(long long ptr);
-+void __sanitizer_syscall_post_impl__lwp_setprivate(long long res,
-+                                                   long long ptr);
-+void __sanitizer_syscall_pre_impl__lwp_kill(long long target, long long signo);
-+void __sanitizer_syscall_post_impl__lwp_kill(long long res, long long target,
-+                                             long long signo);
-+void __sanitizer_syscall_pre_impl__lwp_detach(long long target);
-+void __sanitizer_syscall_post_impl__lwp_detach(long long res, long long target);
-+void __sanitizer_syscall_pre_impl_compat_50__lwp_park(long long ts,
-+                                                      long long unpark,
-+                                                      long long hint,
-+                                                      long long unparkhint);
-+void __sanitizer_syscall_post_impl_compat_50__lwp_park(long long res,
-+                                                       long long ts,
-+                                                       long long unpark,
-+                                                       long long hint,
-+                                                       long long unparkhint);
-+void __sanitizer_syscall_pre_impl__lwp_unpark(long long target, long long hint);
-+void __sanitizer_syscall_post_impl__lwp_unpark(long long res, long long target,
-+                                               long long hint);
-+void __sanitizer_syscall_pre_impl__lwp_unpark_all(long long targets,
-+                                                  long long ntargets,
-+                                                  long long hint);
-+void __sanitizer_syscall_post_impl__lwp_unpark_all(long long res,
-+                                                   long long targets,
-+                                                   long long ntargets,
-+                                                   long long hint);
-+void __sanitizer_syscall_pre_impl__lwp_setname(long long target,
-+                                               long long name);
-+void __sanitizer_syscall_post_impl__lwp_setname(long long res, long long target,
-+                                                long long name);
-+void __sanitizer_syscall_pre_impl__lwp_getname(long long target, long long name,
-+                                               long long len);
-+void __sanitizer_syscall_post_impl__lwp_getname(long long res, long long target,
-+                                                long long name, long long len);
-+void __sanitizer_syscall_pre_impl__lwp_ctl(long long features,
-+                                           long long address);
-+void __sanitizer_syscall_post_impl__lwp_ctl(long long res, long long features,
-+                                            long long address);
-+/* syscall 326 has been skipped */
-+/* syscall 327 has been skipped */
-+/* syscall 328 has been skipped */
-+/* syscall 329 has been skipped */
-+void __sanitizer_syscall_pre_impl_compat_60_sa_register(
-+    long long newv, long long oldv, long long flags,
-+    long long stackinfo_offset);
-+void __sanitizer_syscall_post_impl_compat_60_sa_register(
-+    long long res, long long newv, long long oldv, long long flags,
-+    long long stackinfo_offset);
-+void __sanitizer_syscall_pre_impl_compat_60_sa_stacks(long long num,
-+                                                      long long stacks);
-+void __sanitizer_syscall_post_impl_compat_60_sa_stacks(long long res,
-+                                                       long long num,
-+                                                       long long stacks);
-+void __sanitizer_syscall_pre_impl_compat_60_sa_enable(void);
-+void __sanitizer_syscall_post_impl_compat_60_sa_enable(long long res);
-+void __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency(
-+    long long concurrency);
-+void __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency(
-+    long long res, long long concurrency);
-+void __sanitizer_syscall_pre_impl_compat_60_sa_yield(void);
-+void __sanitizer_syscall_post_impl_compat_60_sa_yield(long long res);
-+void __sanitizer_syscall_pre_impl_compat_60_sa_preempt(long long sa_id);
-+void __sanitizer_syscall_post_impl_compat_60_sa_preempt(long long res,
-+                                                        long long sa_id);
-+/* syscall 336 has been skipped */
-+/* syscall 337 has been skipped */
-+/* syscall 338 has been skipped */
-+/* syscall 339 has been skipped */
-+void __sanitizer_syscall_pre_impl___sigaction_sigtramp(long long signum,
-+                                                       long long nsa,
-+                                                       long long osa,
-+                                                       long long tramp,
-+                                                       long long vers);
-+void __sanitizer_syscall_post_impl___sigaction_sigtramp(
-+    long long res, long long signum, long long nsa, long long osa,
-+    long long tramp, long long vers);
-+void __sanitizer_syscall_pre_impl_pmc_get_info(long long ctr, long long op,
-+                                               long long args);
-+void __sanitizer_syscall_post_impl_pmc_get_info(long long res, long long ctr,
-+                                                long long op, long long args);
-+void __sanitizer_syscall_pre_impl_pmc_control(long long ctr, long long op,
-+                                              long long args);
-+void __sanitizer_syscall_post_impl_pmc_control(long long res, long long ctr,
-+                                               long long op, long long args);
-+void __sanitizer_syscall_pre_impl_rasctl(long long addr, long long len,
-+                                         long long op);
-+void __sanitizer_syscall_post_impl_rasctl(long long res, long long addr,
-+                                          long long len, long long op);
-+void __sanitizer_syscall_pre_impl_kqueue(void);
-+void __sanitizer_syscall_post_impl_kqueue(long long res);
-+void __sanitizer_syscall_pre_impl_compat_50_kevent(
-+    long long fd, long long changelist, long long nchanges, long long eventlist,
-+    long long nevents, long long timeout);
-+void __sanitizer_syscall_post_impl_compat_50_kevent(
-+    long long res, long long fd, long long changelist, long long nchanges,
-+    long long eventlist, long long nevents, long long timeout);
-+void __sanitizer_syscall_pre_impl__sched_setparam(long long pid, long long lid,
-+                                                  long long policy,
-+                                                  long long params);
-+void __sanitizer_syscall_post_impl__sched_setparam(long long res, long long pid,
-+                                                   long long lid,
-+                                                   long long policy,
-+                                                   long long params);
-+void __sanitizer_syscall_pre_impl__sched_getparam(long long pid, long long lid,
-+                                                  long long policy,
-+                                                  long long params);
-+void __sanitizer_syscall_post_impl__sched_getparam(long long res, long long pid,
-+                                                   long long lid,
-+                                                   long long policy,
-+                                                   long long params);
-+void __sanitizer_syscall_pre_impl__sched_setaffinity(long long pid,
-+                                                     long long lid,
-+                                                     long long size,
-+                                                     long long cpuset);
-+void __sanitizer_syscall_post_impl__sched_setaffinity(long long res,
-+                                                      long long pid,
-+                                                      long long lid,
-+                                                      long long size,
-+                                                      long long cpuset);
-+void __sanitizer_syscall_pre_impl__sched_getaffinity(long long pid,
-+                                                     long long lid,
-+                                                     long long size,
-+                                                     long long cpuset);
-+void __sanitizer_syscall_post_impl__sched_getaffinity(long long res,
-+                                                      long long pid,
-+                                                      long long lid,
-+                                                      long long size,
-+                                                      long long cpuset);
-+void __sanitizer_syscall_pre_impl_sched_yield(void);
-+void __sanitizer_syscall_post_impl_sched_yield(long long res);
-+void __sanitizer_syscall_pre_impl__sched_protect(long long priority);
-+void __sanitizer_syscall_post_impl__sched_protect(long long res,
-+                                                  long long priority);
-+/* syscall 352 has been skipped */
-+/* syscall 353 has been skipped */
-+void __sanitizer_syscall_pre_impl_fsync_range(long long fd, long long flags,
-+                                              long long start,
-+                                              long long length);
-+void __sanitizer_syscall_post_impl_fsync_range(long long res, long long fd,
-+                                               long long flags, long long start,
-+                                               long long length);
-+void __sanitizer_syscall_pre_impl_uuidgen(long long store, long long count);
-+void __sanitizer_syscall_post_impl_uuidgen(long long res, long long store,
-+                                           long long count);
-+void __sanitizer_syscall_pre_impl_getvfsstat(long long buf, long long bufsize,
-+                                             long long flags);
-+void __sanitizer_syscall_post_impl_getvfsstat(long long res, long long buf,
-+                                              long long bufsize,
-+                                              long long flags);
-+void __sanitizer_syscall_pre_impl_statvfs1(long long path, long long buf,
-+                                           long long flags);
-+void __sanitizer_syscall_post_impl_statvfs1(long long res, long long path,
-+                                            long long buf, long long flags);
-+void __sanitizer_syscall_pre_impl_fstatvfs1(long long fd, long long buf,
-+                                            long long flags);
-+void __sanitizer_syscall_post_impl_fstatvfs1(long long res, long long fd,
-+                                             long long buf, long long flags);
-+void __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1(long long fhp,
-+                                                       long long buf,
-+                                                       long long flags);
-+void __sanitizer_syscall_post_impl_compat_30_fhstatvfs1(long long res,
-+                                                        long long fhp,
-+                                                        long long buf,
-+                                                        long long flags);
-+void __sanitizer_syscall_pre_impl_extattrctl(long long path, long long cmd,
-+                                             long long filename,
-+                                             long long attrnamespace,
-+                                             long long attrname);
-+void __sanitizer_syscall_post_impl_extattrctl(long long res, long long path,
-+                                              long long cmd, long long filename,
-+                                              long long attrnamespace,
-+                                              long long attrname);
-+void __sanitizer_syscall_pre_impl_extattr_set_file(long long path,
-+                                                   long long attrnamespace,
-+                                                   long long attrname,
-+                                                   long long data,
-+                                                   long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_set_file(
-+    long long res, long long path, long long attrnamespace, long long attrname,
-+    long long data, long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_get_file(long long path,
-+                                                   long long attrnamespace,
-+                                                   long long attrname,
-+                                                   long long data,
-+                                                   long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_get_file(
-+    long long res, long long path, long long attrnamespace, long long attrname,
-+    long long data, long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_delete_file(long long path,
-+                                                      long long attrnamespace,
-+                                                      long long attrname);
-+void __sanitizer_syscall_post_impl_extattr_delete_file(long long res,
-+                                                       long long path,
-+                                                       long long attrnamespace,
-+                                                       long long attrname);
-+void __sanitizer_syscall_pre_impl_extattr_set_fd(long long fd,
-+                                                 long long attrnamespace,
-+                                                 long long attrname,
-+                                                 long long data,
-+                                                 long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_set_fd(long long res, long long fd,
-+                                                  long long attrnamespace,
-+                                                  long long attrname,
-+                                                  long long data,
-+                                                  long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_get_fd(long long fd,
-+                                                 long long attrnamespace,
-+                                                 long long attrname,
-+                                                 long long data,
-+                                                 long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_get_fd(long long res, long long fd,
-+                                                  long long attrnamespace,
-+                                                  long long attrname,
-+                                                  long long data,
-+                                                  long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_delete_fd(long long fd,
-+                                                    long long attrnamespace,
-+                                                    long long attrname);
-+void __sanitizer_syscall_post_impl_extattr_delete_fd(long long res,
-+                                                     long long fd,
-+                                                     long long attrnamespace,
-+                                                     long long attrname);
-+void __sanitizer_syscall_pre_impl_extattr_set_link(long long path,
-+                                                   long long attrnamespace,
-+                                                   long long attrname,
-+                                                   long long data,
-+                                                   long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_set_link(
-+    long long res, long long path, long long attrnamespace, long long attrname,
-+    long long data, long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_get_link(long long path,
-+                                                   long long attrnamespace,
-+                                                   long long attrname,
-+                                                   long long data,
-+                                                   long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_get_link(
-+    long long res, long long path, long long attrnamespace, long long attrname,
-+    long long data, long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_delete_link(long long path,
-+                                                      long long attrnamespace,
-+                                                      long long attrname);
-+void __sanitizer_syscall_post_impl_extattr_delete_link(long long res,
-+                                                       long long path,
-+                                                       long long attrnamespace,
-+                                                       long long attrname);
-+void __sanitizer_syscall_pre_impl_extattr_list_fd(long long fd,
-+                                                  long long attrnamespace,
-+                                                  long long data,
-+                                                  long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_list_fd(long long res, long long fd,
-+                                                   long long attrnamespace,
-+                                                   long long data,
-+                                                   long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_list_file(long long path,
-+                                                    long long attrnamespace,
-+                                                    long long data,
-+                                                    long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_list_file(long long res,
-+                                                     long long path,
-+                                                     long long attrnamespace,
-+                                                     long long data,
-+                                                     long long nbytes);
-+void __sanitizer_syscall_pre_impl_extattr_list_link(long long path,
-+                                                    long long attrnamespace,
-+                                                    long long data,
-+                                                    long long nbytes);
-+void __sanitizer_syscall_post_impl_extattr_list_link(long long res,
-+                                                     long long path,
-+                                                     long long attrnamespace,
-+                                                     long long data,
-+                                                     long long nbytes);
-+void __sanitizer_syscall_pre_impl_compat_50_pselect(long long nd, long long in,
-+                                                    long long ou, long long ex,
-+                                                    long long ts,
-+                                                    long long mask);
-+void __sanitizer_syscall_post_impl_compat_50_pselect(long long res,
-+                                                     long long nd, long long in,
-+                                                     long long ou, long long ex,
-+                                                     long long ts,
-+                                                     long long mask);
-+void __sanitizer_syscall_pre_impl_compat_50_pollts(long long fds,
-+                                                   long long nfds, long long ts,
-+                                                   long long mask);
-+void __sanitizer_syscall_post_impl_compat_50_pollts(
-+    long long res, long long fds, long long nfds, long long ts, long long mask);
-+void __sanitizer_syscall_pre_impl_setxattr(long long path, long long name,
-+                                           long long value, long long size,
-+                                           long long flags);
-+void __sanitizer_syscall_post_impl_setxattr(long long res, long long path,
-+                                            long long name, long long value,
-+                                            long long size, long long flags);
-+void __sanitizer_syscall_pre_impl_lsetxattr(long long path, long long name,
-+                                            long long value, long long size,
-+                                            long long flags);
-+void __sanitizer_syscall_post_impl_lsetxattr(long long res, long long path,
-+                                             long long name, long long value,
-+                                             long long size, long long flags);
-+void __sanitizer_syscall_pre_impl_fsetxattr(long long fd, long long name,
-+                                            long long value, long long size,
-+                                            long long flags);
-+void __sanitizer_syscall_post_impl_fsetxattr(long long res, long long fd,
-+                                             long long name, long long value,
-+                                             long long size, long long flags);
-+void __sanitizer_syscall_pre_impl_getxattr(long long path, long long name,
-+                                           long long value, long long size);
-+void __sanitizer_syscall_post_impl_getxattr(long long res, long long path,
-+                                            long long name, long long value,
-+                                            long long size);
-+void __sanitizer_syscall_pre_impl_lgetxattr(long long path, long long name,
-+                                            long long value, long long size);
-+void __sanitizer_syscall_post_impl_lgetxattr(long long res, long long path,
-+                                             long long name, long long value,
-+                                             long long size);
-+void __sanitizer_syscall_pre_impl_fgetxattr(long long fd, long long name,
-+                                            long long value, long long size);
-+void __sanitizer_syscall_post_impl_fgetxattr(long long res, long long fd,
-+                                             long long name, long long value,
-+                                             long long size);
-+void __sanitizer_syscall_pre_impl_listxattr(long long path, long long list,
-+                                            long long size);
-+void __sanitizer_syscall_post_impl_listxattr(long long res, long long path,
-+                                             long long list, long long size);
-+void __sanitizer_syscall_pre_impl_llistxattr(long long path, long long list,
-+                                             long long size);
-+void __sanitizer_syscall_post_impl_llistxattr(long long res, long long path,
-+                                              long long list, long long size);
-+void __sanitizer_syscall_pre_impl_flistxattr(long long fd, long long list,
-+                                             long long size);
-+void __sanitizer_syscall_post_impl_flistxattr(long long res, long long fd,
-+                                              long long list, long long size);
-+void __sanitizer_syscall_pre_impl_removexattr(long long path, long long name);
-+void __sanitizer_syscall_post_impl_removexattr(long long res, long long path,
-+                                               long long name);
-+void __sanitizer_syscall_pre_impl_lremovexattr(long long path, long long name);
-+void __sanitizer_syscall_post_impl_lremovexattr(long long res, long long path,
-+                                                long long name);
-+void __sanitizer_syscall_pre_impl_fremovexattr(long long fd, long long name);
-+void __sanitizer_syscall_post_impl_fremovexattr(long long res, long long fd,
-+                                                long long name);
-+void __sanitizer_syscall_pre_impl_compat_50___stat30(long long path,
-+                                                     long long ub);
-+void __sanitizer_syscall_post_impl_compat_50___stat30(long long res,
-+                                                      long long path,
-+                                                      long long ub);
-+void __sanitizer_syscall_pre_impl_compat_50___fstat30(long long fd,
-+                                                      long long sb);
-+void __sanitizer_syscall_post_impl_compat_50___fstat30(long long res,
-+                                                       long long fd,
-+                                                       long long sb);
-+void __sanitizer_syscall_pre_impl_compat_50___lstat30(long long path,
-+                                                      long long ub);
-+void __sanitizer_syscall_post_impl_compat_50___lstat30(long long res,
-+                                                       long long path,
-+                                                       long long ub);
-+void __sanitizer_syscall_pre_impl___getdents30(long long fd, long long buf,
-+                                               long long count);
-+void __sanitizer_syscall_post_impl___getdents30(long long res, long long fd,
-+                                                long long buf, long long count);
-+void __sanitizer_syscall_pre_impl_posix_fadvise(long long);
-+void __sanitizer_syscall_post_impl_posix_fadvise(long long res, long long);
-+void __sanitizer_syscall_pre_impl_compat_30___fhstat30(long long fhp,
-+                                                       long long sb);
-+void __sanitizer_syscall_post_impl_compat_30___fhstat30(long long res,
-+                                                        long long fhp,
-+                                                        long long sb);
-+void __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30(long long ntvp);
-+void __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(long long res,
-+                                                             long long ntvp);
-+void __sanitizer_syscall_pre_impl___socket30(long long domain, long long type,
-+                                             long long protocol);
-+void __sanitizer_syscall_post_impl___socket30(long long res, long long domain,
-+                                              long long type,
-+                                              long long protocol);
-+void __sanitizer_syscall_pre_impl___getfh30(long long fname, long long fhp,
-+                                            long long fh_size);
-+void __sanitizer_syscall_post_impl___getfh30(long long res, long long fname,
-+                                             long long fhp, long long fh_size);
-+void __sanitizer_syscall_pre_impl___fhopen40(long long fhp, long long fh_size,
-+                                             long long flags);
-+void __sanitizer_syscall_post_impl___fhopen40(long long res, long long fhp,
-+                                              long long fh_size,
-+                                              long long flags);
-+void __sanitizer_syscall_pre_impl___fhstatvfs140(long long fhp,
-+                                                 long long fh_size,
-+                                                 long long buf,
-+                                                 long long flags);
-+void __sanitizer_syscall_post_impl___fhstatvfs140(long long res, long long fhp,
-+                                                  long long fh_size,
-+                                                  long long buf,
-+                                                  long long flags);
-+void __sanitizer_syscall_pre_impl_compat_50___fhstat40(long long fhp,
-+                                                       long long fh_size,
-+                                                       long long sb);
-+void __sanitizer_syscall_post_impl_compat_50___fhstat40(long long res,
-+                                                        long long fhp,
-+                                                        long long fh_size,
-+                                                        long long sb);
-+void __sanitizer_syscall_pre_impl_aio_cancel(long long fildes,
-+                                             long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_cancel(long long res, long long fildes,
-+                                              long long aiocbp);
-+void __sanitizer_syscall_pre_impl_aio_error(long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_error(long long res, long long aiocbp);
-+void __sanitizer_syscall_pre_impl_aio_fsync(long long op, long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_fsync(long long res, long long op,
-+                                             long long aiocbp);
-+void __sanitizer_syscall_pre_impl_aio_read(long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_read(long long res, long long aiocbp);
-+void __sanitizer_syscall_pre_impl_aio_return(long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_return(long long res, long long aiocbp);
-+void __sanitizer_syscall_pre_impl_compat_50_aio_suspend(long long list,
-+                                                        long long nent,
-+                                                        long long timeout);
-+void __sanitizer_syscall_post_impl_compat_50_aio_suspend(long long res,
-+                                                         long long list,
-+                                                         long long nent,
-+                                                         long long timeout);
-+void __sanitizer_syscall_pre_impl_aio_write(long long aiocbp);
-+void __sanitizer_syscall_post_impl_aio_write(long long res, long long aiocbp);
-+void __sanitizer_syscall_pre_impl_lio_listio(long long mode, long long list,
-+                                             long long nent, long long sig);
-+void __sanitizer_syscall_post_impl_lio_listio(long long res, long long mode,
-+                                              long long list, long long nent,
-+                                              long long sig);
-+/* syscall 407 has been skipped */
-+/* syscall 408 has been skipped */
-+/* syscall 409 has been skipped */
-+void __sanitizer_syscall_pre_impl___mount50(long long type, long long path,
-+                                            long long flags, long long data,
-+                                            long long data_len);
-+void __sanitizer_syscall_post_impl___mount50(long long res, long long type,
-+                                             long long path, long long flags,
-+                                             long long data,
-+                                             long long data_len);
-+void __sanitizer_syscall_pre_impl_mremap(long long old_address,
-+                                         long long old_size,
-+                                         long long new_address,
-+                                         long long new_size, long long flags);
-+void __sanitizer_syscall_post_impl_mremap(long long res, long long old_address,
-+                                          long long old_size,
-+                                          long long new_address,
-+                                          long long new_size, long long flags);
-+void __sanitizer_syscall_pre_impl_pset_create(long long psid);
-+void __sanitizer_syscall_post_impl_pset_create(long long res, long long psid);
-+void __sanitizer_syscall_pre_impl_pset_destroy(long long psid);
-+void __sanitizer_syscall_post_impl_pset_destroy(long long res, long long psid);
-+void __sanitizer_syscall_pre_impl_pset_assign(long long psid, long long cpuid,
-+                                              long long opsid);
-+void __sanitizer_syscall_post_impl_pset_assign(long long res, long long psid,
-+                                               long long cpuid,
-+                                               long long opsid);
-+void __sanitizer_syscall_pre_impl__pset_bind(long long idtype,
-+                                             long long first_id,
-+                                             long long second_id,
-+                                             long long psid, long long opsid);
-+void __sanitizer_syscall_post_impl__pset_bind(long long res, long long idtype,
-+                                              long long first_id,
-+                                              long long second_id,
-+                                              long long psid, long long opsid);
-+void __sanitizer_syscall_pre_impl___posix_fadvise50(long long fd, long long PAD,
-+                                                    long long offset,
-+                                                    long long len,
-+                                                    long long advice);
-+void __sanitizer_syscall_post_impl___posix_fadvise50(
-+    long long res, long long fd, long long PAD, long long offset, long long len,
-+    long long advice);
-+void __sanitizer_syscall_pre_impl___select50(long long nd, long long in,
-+                                             long long ou, long long ex,
-+                                             long long tv);
-+void __sanitizer_syscall_post_impl___select50(long long res, long long nd,
-+                                              long long in, long long ou,
-+                                              long long ex, long long tv);
-+void __sanitizer_syscall_pre_impl___gettimeofday50(long long tp, long long tzp);
-+void __sanitizer_syscall_post_impl___gettimeofday50(long long res, long long tp,
-+                                                    long long tzp);
-+void __sanitizer_syscall_pre_impl___settimeofday50(long long tv, long long tzp);
-+void __sanitizer_syscall_post_impl___settimeofday50(long long res, long long tv,
-+                                                    long long tzp);
-+void __sanitizer_syscall_pre_impl___utimes50(long long path, long long tptr);
-+void __sanitizer_syscall_post_impl___utimes50(long long res, long long path,
-+                                              long long tptr);
-+void __sanitizer_syscall_pre_impl___adjtime50(long long delta,
-+                                              long long olddelta);
-+void __sanitizer_syscall_post_impl___adjtime50(long long res, long long delta,
-+                                               long long olddelta);
-+void __sanitizer_syscall_pre_impl___lfs_segwait50(long long fsidp,
-+                                                  long long tv);
-+void __sanitizer_syscall_post_impl___lfs_segwait50(long long res,
-+                                                   long long fsidp,
-+                                                   long long tv);
-+void __sanitizer_syscall_pre_impl___futimes50(long long fd, long long tptr);
-+void __sanitizer_syscall_post_impl___futimes50(long long res, long long fd,
-+                                               long long tptr);
-+void __sanitizer_syscall_pre_impl___lutimes50(long long path, long long tptr);
-+void __sanitizer_syscall_post_impl___lutimes50(long long res, long long path,
-+                                               long long tptr);
-+void __sanitizer_syscall_pre_impl___setitimer50(long long which, long long itv,
-+                                                long long oitv);
-+void __sanitizer_syscall_post_impl___setitimer50(long long res, long long which,
-+                                                 long long itv, long long oitv);
-+void __sanitizer_syscall_pre_impl___getitimer50(long long which, long long itv);
-+void __sanitizer_syscall_post_impl___getitimer50(long long res, long long which,
-+                                                 long long itv);
-+void __sanitizer_syscall_pre_impl___clock_gettime50(long long clock_id,
-+                                                    long long tp);
-+void __sanitizer_syscall_post_impl___clock_gettime50(long long res,
-+                                                     long long clock_id,
-+                                                     long long tp);
-+void __sanitizer_syscall_pre_impl___clock_settime50(long long clock_id,
-+                                                    long long tp);
-+void __sanitizer_syscall_post_impl___clock_settime50(long long res,
-+                                                     long long clock_id,
-+                                                     long long tp);
-+void __sanitizer_syscall_pre_impl___clock_getres50(long long clock_id,
-+                                                   long long tp);
-+void __sanitizer_syscall_post_impl___clock_getres50(long long res,
-+                                                    long long clock_id,
-+                                                    long long tp);
-+void __sanitizer_syscall_pre_impl___nanosleep50(long long rqtp, long long rmtp);
-+void __sanitizer_syscall_post_impl___nanosleep50(long long res, long long rqtp,
-+                                                 long long rmtp);
-+void __sanitizer_syscall_pre_impl_____sigtimedwait50(long long set,
-+                                                     long long info,
-+                                                     long long timeout);
-+void __sanitizer_syscall_post_impl_____sigtimedwait50(long long res,
-+                                                      long long set,
-+                                                      long long info,
-+                                                      long long timeout);
-+void __sanitizer_syscall_pre_impl___mq_timedsend50(long long mqdes,
-+                                                   long long msg_ptr,
-+                                                   long long msg_len,
-+                                                   long long msg_prio,
-+                                                   long long abs_timeout);
-+void __sanitizer_syscall_post_impl___mq_timedsend50(
-+    long long res, long long mqdes, long long msg_ptr, long long msg_len,
-+    long long msg_prio, long long abs_timeout);
-+void __sanitizer_syscall_pre_impl___mq_timedreceive50(long long mqdes,
-+                                                      long long msg_ptr,
-+                                                      long long msg_len,
-+                                                      long long msg_prio,
-+                                                      long long abs_timeout);
-+void __sanitizer_syscall_post_impl___mq_timedreceive50(
-+    long long res, long long mqdes, long long msg_ptr, long long msg_len,
-+    long long msg_prio, long long abs_timeout);
-+void __sanitizer_syscall_pre_impl_compat_60__lwp_park(long long ts,
-+                                                      long long unpark,
-+                                                      long long hint,
-+                                                      long long unparkhint);
-+void __sanitizer_syscall_post_impl_compat_60__lwp_park(long long res,
-+                                                       long long ts,
-+                                                       long long unpark,
-+                                                       long long hint,
-+                                                       long long unparkhint);
-+void __sanitizer_syscall_pre_impl___kevent50(long long fd, long long changelist,
-+                                             long long nchanges,
-+                                             long long eventlist,
-+                                             long long nevents,
-+                                             long long timeout);
-+void __sanitizer_syscall_post_impl___kevent50(
-+    long long res, long long fd, long long changelist, long long nchanges,
-+    long long eventlist, long long nevents, long long timeout);
-+void __sanitizer_syscall_pre_impl___pselect50(long long nd, long long in,
-+                                              long long ou, long long ex,
-+                                              long long ts, long long mask);
-+void __sanitizer_syscall_post_impl___pselect50(long long res, long long nd,
-+                                               long long in, long long ou,
-+                                               long long ex, long long ts,
-+                                               long long mask);
-+void __sanitizer_syscall_pre_impl___pollts50(long long fds, long long nfds,
-+                                             long long ts, long long mask);
-+void __sanitizer_syscall_post_impl___pollts50(long long res, long long fds,
-+                                              long long nfds, long long ts,
-+                                              long long mask);
-+void __sanitizer_syscall_pre_impl___aio_suspend50(long long list,
-+                                                  long long nent,
-+                                                  long long timeout);
-+void __sanitizer_syscall_post_impl___aio_suspend50(long long res,
-+                                                   long long list,
-+                                                   long long nent,
-+                                                   long long timeout);
-+void __sanitizer_syscall_pre_impl___stat50(long long path, long long ub);
-+void __sanitizer_syscall_post_impl___stat50(long long res, long long path,
-+                                            long long ub);
-+void __sanitizer_syscall_pre_impl___fstat50(long long fd, long long sb);
-+void __sanitizer_syscall_post_impl___fstat50(long long res, long long fd,
-+                                             long long sb);
-+void __sanitizer_syscall_pre_impl___lstat50(long long path, long long ub);
-+void __sanitizer_syscall_post_impl___lstat50(long long res, long long path,
-+                                             long long ub);
-+void __sanitizer_syscall_pre_impl_____semctl50(long long semid,
-+                                               long long semnum, long long cmd,
-+                                               long long arg);
-+void __sanitizer_syscall_post_impl_____semctl50(long long res, long long semid,
-+                                                long long semnum, long long cmd,
-+                                                long long arg);
-+void __sanitizer_syscall_pre_impl___shmctl50(long long shmid, long long cmd,
-+                                             long long buf);
-+void __sanitizer_syscall_post_impl___shmctl50(long long res, long long shmid,
-+                                              long long cmd, long long buf);
-+void __sanitizer_syscall_pre_impl___msgctl50(long long msqid, long long cmd,
-+                                             long long buf);
-+void __sanitizer_syscall_post_impl___msgctl50(long long res, long long msqid,
-+                                              long long cmd, long long buf);
-+void __sanitizer_syscall_pre_impl___getrusage50(long long who,
-+                                                long long rusage);
-+void __sanitizer_syscall_post_impl___getrusage50(long long res, long long who,
-+                                                 long long rusage);
-+void __sanitizer_syscall_pre_impl___timer_settime50(long long timerid,
-+                                                    long long flags,
-+                                                    long long value,
-+                                                    long long ovalue);
-+void __sanitizer_syscall_post_impl___timer_settime50(long long res,
-+                                                     long long timerid,
-+                                                     long long flags,
-+                                                     long long value,
-+                                                     long long ovalue);
-+void __sanitizer_syscall_pre_impl___timer_gettime50(long long timerid,
-+                                                    long long value);
-+void __sanitizer_syscall_post_impl___timer_gettime50(long long res,
-+                                                     long long timerid,
-+                                                     long long value);
-+#if defined(NTP) || !defined(_KERNEL_OPT)
-+void __sanitizer_syscall_pre_impl___ntp_gettime50(long long ntvp);
-+void __sanitizer_syscall_post_impl___ntp_gettime50(long long res,
-+                                                   long long ntvp);
-+#else
-+/* syscall 448 has been skipped */
-+#endif
-+void __sanitizer_syscall_pre_impl___wait450(long long pid, long long status,
-+                                            long long options,
-+                                            long long rusage);
-+void __sanitizer_syscall_post_impl___wait450(long long res, long long pid,
-+                                             long long status,
-+                                             long long options,
-+                                             long long rusage);
-+void __sanitizer_syscall_pre_impl___mknod50(long long path, long long mode,
-+                                            long long dev);
-+void __sanitizer_syscall_post_impl___mknod50(long long res, long long path,
-+                                             long long mode, long long dev);
-+void __sanitizer_syscall_pre_impl___fhstat50(long long fhp, long long fh_size,
-+                                             long long sb);
-+void __sanitizer_syscall_post_impl___fhstat50(long long res, long long fhp,
-+                                              long long fh_size, long long sb);
-+/* syscall 452 has been skipped */
-+void __sanitizer_syscall_pre_impl_pipe2(long long fildes, long long flags);
-+void __sanitizer_syscall_post_impl_pipe2(long long res, long long fildes,
-+                                         long long flags);
-+void __sanitizer_syscall_pre_impl_dup3(long long from, long long to,
-+                                       long long flags);
-+void __sanitizer_syscall_post_impl_dup3(long long res, long long from,
-+                                        long long to, long long flags);
-+void __sanitizer_syscall_pre_impl_kqueue1(long long flags);
-+void __sanitizer_syscall_post_impl_kqueue1(long long res, long long flags);
-+void __sanitizer_syscall_pre_impl_paccept(long long s, long long name,
-+                                          long long anamelen, long long mask,
-+                                          long long flags);
-+void __sanitizer_syscall_post_impl_paccept(long long res, long long s,
-+                                           long long name, long long anamelen,
-+                                           long long mask, long long flags);
-+void __sanitizer_syscall_pre_impl_linkat(long long fd1, long long name1,
-+                                         long long fd2, long long name2,
-+                                         long long flags);
-+void __sanitizer_syscall_post_impl_linkat(long long res, long long fd1,
-+                                          long long name1, long long fd2,
-+                                          long long name2, long long flags);
-+void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from,
-+                                           long long tofd, long long to);
-+void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd,
-+                                            long long from, long long tofd,
-+                                            long long to);
-+void __sanitizer_syscall_pre_impl_mkfifoat(long long fd, long long path,
-+                                           long long mode);
-+void __sanitizer_syscall_post_impl_mkfifoat(long long res, long long fd,
-+                                            long long path, long long mode);
-+void __sanitizer_syscall_pre_impl_mknodat(long long fd, long long path,
-+                                          long long mode, long long PAD,
-+                                          long long dev);
-+void __sanitizer_syscall_post_impl_mknodat(long long res, long long fd,
-+                                           long long path, long long mode,
-+                                           long long PAD, long long dev);
-+void __sanitizer_syscall_pre_impl_mkdirat(long long fd, long long path,
-+                                          long long mode);
-+void __sanitizer_syscall_post_impl_mkdirat(long long res, long long fd,
-+                                           long long path, long long mode);
-+void __sanitizer_syscall_pre_impl_faccessat(long long fd, long long path,
-+                                            long long amode, long long flag);
-+void __sanitizer_syscall_post_impl_faccessat(long long res, long long fd,
-+                                             long long path, long long amode,
-+                                             long long flag);
-+void __sanitizer_syscall_pre_impl_fchmodat(long long fd, long long path,
-+                                           long long mode, long long flag);
-+void __sanitizer_syscall_post_impl_fchmodat(long long res, long long fd,
-+                                            long long path, long long mode,
-+                                            long long flag);
-+void __sanitizer_syscall_pre_impl_fchownat(long long fd, long long path,
-+                                           long long owner, long long group,
-+                                           long long flag);
-+void __sanitizer_syscall_post_impl_fchownat(long long res, long long fd,
-+                                            long long path, long long owner,
-+                                            long long group, long long flag);
-+void __sanitizer_syscall_pre_impl_fexecve(long long fd, long long argp,
-+                                          long long envp);
-+void __sanitizer_syscall_post_impl_fexecve(long long res, long long fd,
-+                                           long long argp, long long envp);
-+void __sanitizer_syscall_pre_impl_fstatat(long long fd, long long path,
-+                                          long long buf, long long flag);
-+void __sanitizer_syscall_post_impl_fstatat(long long res, long long fd,
-+                                           long long path, long long buf,
-+                                           long long flag);
-+void __sanitizer_syscall_pre_impl_utimensat(long long fd, long long path,
-+                                            long long tptr, long long flag);
-+void __sanitizer_syscall_post_impl_utimensat(long long res, long long fd,
-+                                             long long path, long long tptr,
-+                                             long long flag);
-+void __sanitizer_syscall_pre_impl_openat(long long fd, long long path,
-+                                         long long oflags, long long mode);
-+void __sanitizer_syscall_post_impl_openat(long long res, long long fd,
-+                                          long long path, long long oflags,
-+                                          long long mode);
-+void __sanitizer_syscall_pre_impl_readlinkat(long long fd, long long path,
-+                                             long long buf, long long bufsize);
-+void __sanitizer_syscall_post_impl_readlinkat(long long res, long long fd,
-+                                              long long path, long long buf,
-+                                              long long bufsize);
-+void __sanitizer_syscall_pre_impl_symlinkat(long long path1, long long fd,
-+                                            long long path2);
-+void __sanitizer_syscall_post_impl_symlinkat(long long res, long long path1,
-+                                             long long fd, long long path2);
-+void __sanitizer_syscall_pre_impl_unlinkat(long long fd, long long path,
-+                                           long long flag);
-+void __sanitizer_syscall_post_impl_unlinkat(long long res, long long fd,
-+                                            long long path, long long flag);
-+void __sanitizer_syscall_pre_impl_futimens(long long fd, long long tptr);
-+void __sanitizer_syscall_post_impl_futimens(long long res, long long fd,
-+                                            long long tptr);
-+void __sanitizer_syscall_pre_impl___quotactl(long long path, long long args);
-+void __sanitizer_syscall_post_impl___quotactl(long long res, long long path,
-+                                              long long args);
-+void __sanitizer_syscall_pre_impl_posix_spawn(long long pid, long long path,
-+                                              long long file_actions,
-+                                              long long attrp, long long argv,
-+                                              long long envp);
-+void __sanitizer_syscall_post_impl_posix_spawn(long long res, long long pid,
-+                                               long long path,
-+                                               long long file_actions,
-+                                               long long attrp, long long argv,
-+                                               long long envp);
-+void __sanitizer_syscall_pre_impl_recvmmsg(long long s, long long mmsg,
-+                                           long long vlen, long long flags,
-+                                           long long timeout);
-+void __sanitizer_syscall_post_impl_recvmmsg(long long res, long long s,
-+                                            long long mmsg, long long vlen,
-+                                            long long flags, long long timeout);
-+void __sanitizer_syscall_pre_impl_sendmmsg(long long s, long long mmsg,
-+                                           long long vlen, long long flags);
-+void __sanitizer_syscall_post_impl_sendmmsg(long long res, long long s,
-+                                            long long mmsg, long long vlen,
-+                                            long long flags);
-+void __sanitizer_syscall_pre_impl_clock_nanosleep(long long clock_id,
-+                                                  long long flags,
-+                                                  long long rqtp,
-+                                                  long long rmtp);
-+void __sanitizer_syscall_post_impl_clock_nanosleep(long long res,
-+                                                   long long clock_id,
-+                                                   long long flags,
-+                                                   long long rqtp,
-+                                                   long long rmtp);
-+void __sanitizer_syscall_pre_impl____lwp_park60(long long clock_id,
-+                                                long long flags, long long ts,
-+                                                long long unpark,
-+                                                long long hint,
-+                                                long long unparkhint);
-+void __sanitizer_syscall_post_impl____lwp_park60(
-+    long long res, long long clock_id, long long flags, long long ts,
-+    long long unpark, long long hint, long long unparkhint);
-+void __sanitizer_syscall_pre_impl_posix_fallocate(long long fd, long long PAD,
-+                                                  long long pos, long long len);
-+void __sanitizer_syscall_post_impl_posix_fallocate(long long res, long long fd,
-+                                                   long long PAD, long long pos,
-+                                                   long long len);
-+void __sanitizer_syscall_pre_impl_fdiscard(long long fd, long long PAD,
-+                                           long long pos, long long len);
-+void __sanitizer_syscall_post_impl_fdiscard(long long res, long long fd,
-+                                            long long PAD, long long pos,
-+                                            long long len);
-+void __sanitizer_syscall_pre_impl_wait6(long long idtype, long long id,
-+                                        long long status, long long options,
-+                                        long long wru, long long info);
-+void __sanitizer_syscall_post_impl_wait6(long long res, long long idtype,
-+                                         long long id, long long status,
-+                                         long long options, long long wru,
-+                                         long long info);
-+void __sanitizer_syscall_pre_impl_clock_getcpuclockid2(long long idtype,
-+                                                       long long id,
-+                                                       long long clock_id);
-+void __sanitizer_syscall_post_impl_clock_getcpuclockid2(long long res,
-+                                                        long long idtype,
-+                                                        long long id,
-+                                                        long long clock_id);
-+
-+#ifdef __cplusplus
-+} // extern "C"
-+#endif
-+
-+// DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
-+
-+#endif // SANITIZER_NETBSD_SYSCALL_HOOKS_H
-+//===-- netbsd_syscall_hooks.h --------------------------------------------===//
-+//
-+//                     The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===----------------------------------------------------------------------===//
-+//
-+// This file is a part of public sanitizer interface.
-+//
-+// System call handlers.
-+//
-+// Interface methods declared in this header implement pre- and post- syscall
-+// actions for the active sanitizer.
-+// Usage:
-+//   __sanitizer_syscall_pre_getfoo(...args...);
-+//   long long res = syscall(SYS_getfoo, ...args...);
-+//   __sanitizer_syscall_post_getfoo(res, ...args...);
-+//
-+// DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
-+//
-+// Generated with: generate_netbsd_syscalls.awk
- // Generated date: 2018-02-15
- // Generated from: syscalls.master,v 1.291 2018/01/06 16:41:23 kamil Exp
- //
diff --git a/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc b/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc
index d50f4aa168..afc76512f4 100644
--- a/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc
+++ b/compiler-rt-netbsd/patches/patch-lib_tsan_rtl_tsan__interceptors.cc
@@ -1,13 +1,2 @@
 $NetBSD$
 
---- lib/tsan/rtl/tsan_interceptors.cc.orig	2018-02-15 04:24:50.078973737 +0000
-+++ lib/tsan/rtl/tsan_interceptors.cc
-@@ -2424,7 +2424,7 @@ struct ScopedSyscall {
-   }
- };
- 
--#if !SANITIZER_FREEBSD && !SANITIZER_MAC && !SANITIZER_NETBSD
-+#if !SANITIZER_FREEBSD && !SANITIZER_MAC
- static void syscall_access_range(uptr pc, uptr p, uptr s, bool write) {
-   TSAN_SYSCALL();
-   MemoryAccessRange(thr, pc, p, s, write);
diff --git a/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg b/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
deleted file mode 100644
index 395e031d00..0000000000
--- a/compiler-rt-netbsd/patches/patch-test_asan_lit.cfg
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- test/asan/lit.cfg.orig	2018-02-01 23:45:56.000000000 +0000
-+++ test/asan/lit.cfg
-@@ -209,7 +209,7 @@ else:
-   config.substitutions.append(('%pie', '-pie'))
- 
- # Only run the tests on supported OSs.
--if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'SunOS', 'Windows']:
-+if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'SunOS', 'Windows', 'NetBSD']:
-   config.unsupported = True
- 
- if config.host_os == 'Darwin':
diff --git a/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__ioctls.awk b/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__ioctls.awk
deleted file mode 100644
index 705fd6e8ff..0000000000
--- a/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__ioctls.awk
+++ /dev/null
@@ -1,766 +0,0 @@
-$NetBSD$
-
---- utils/generate_netbsd_ioctls.awk.orig	2018-02-15 04:24:48.871860403 +0000
-+++ utils/generate_netbsd_ioctls.awk
-@@ -10,6 +10,761 @@
- #===------------------------------------------------------------------------===#
- #
- # This file is a generator of:
-+#  - include/sanitizer/sanitizer_netbsd_interceptors_ioctl.inc
-+#
-+# This script reads public headers from a NetBSD host.
-+#
-+#===------------------------------------------------------------------------===#
-+
-+BEGIN {
-+  # harcode the script name
-+  script_name = "generate_netbsd_ioctls.awk"
-+  outputinc = "../lib/sanitizer_common/sanitizer_netbsd_interceptors_ioctl.inc"
-+
-+  # assert that we are in the directory with scripts
-+  in_utils = system("test -f " script_name " && exit 1 || exit 0")
-+  if (in_utils == 0) {
-+    usage()
-+  }
-+
-+  # assert 0 argument passed
-+  if (ARGC != 1) {
-+    usage()
-+  }
-+
-+  # accept overloading CLANGFORMAT from environment
-+  clangformat = "clang-format"
-+  if ("CLANGFORMAT" in ENVIRON) {
-+    clangformat = ENVIRON["CLANGFORMAT"]
-+  }
-+
-+  # accept overloading ROOTDIR from environment
-+  rootdir = "/usr/include/"
-+  if ("ROOTDIR" in ENVIRON) {
-+    rootdir = ENVIRON["ROOTDIR"]
-+  }
-+
-+  # hardcode list of headers with ioctl(2) entries
-+  # List generated manually with the following script:
-+  #   for w in `find /usr/include/ -type f -name '*.h' -exec echo {} \;`; \
-+  #   do awk '/[^a-zA-Z0-9_]_IO[W]*[R]*[ ]*\(/ && $2 ~ /^[A-Z_]+$/ {got=1} END{if(got) {print ARGV[1]}}' $w; \
-+  #   done|awk '{print "  ARGV[ARGC++] = rootdir \"" substr($0, 14) "\""}'
-+
-+  ARGV[ARGC++] = rootdir "altq/altq_afmap.h"
-+  ARGV[ARGC++] = rootdir "altq/altq.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_blue.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_cbq.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_cdnr.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_fifoq.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_hfsc.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_jobs.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_priq.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_red.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_rio.h"
-+  ARGV[ARGC++] = rootdir "altq/altq_wfq.h"
-+  ARGV[ARGC++] = rootdir "crypto/cryptodev.h"
-+  ARGV[ARGC++] = rootdir "dev/apm/apmio.h"
-+  ARGV[ARGC++] = rootdir "dev/dm/netbsd-dm.h"
-+  ARGV[ARGC++] = rootdir "dev/dmover/dmover_io.h"
-+  ARGV[ARGC++] = rootdir "dev/dtv/dtvio_demux.h"
-+  ARGV[ARGC++] = rootdir "dev/dtv/dtvio_frontend.h"
-+  ARGV[ARGC++] = rootdir "dev/filemon/filemon.h"
-+  ARGV[ARGC++] = rootdir "dev/hdaudio/hdaudioio.h"
-+  ARGV[ARGC++] = rootdir "dev/hdmicec/hdmicecio.h"
-+  ARGV[ARGC++] = rootdir "dev/hpc/hpcfbio.h"
-+  ARGV[ARGC++] = rootdir "dev/i2o/iopio.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/athioctl.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/bt8xx.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/hd44780var.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/icp_ioctl.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/isp_ioctl.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/mlxio.h"
-+  ARGV[ARGC++] = rootdir "dev/ic/nvmeio.h"
-+  ARGV[ARGC++] = rootdir "dev/ir/irdaio.h"
-+  ARGV[ARGC++] = rootdir "dev/isa/satlinkio.h"
-+  ARGV[ARGC++] = rootdir "dev/isa/isvio.h"
-+  ARGV[ARGC++] = rootdir "dev/isa/wtreg.h"
-+  ARGV[ARGC++] = rootdir "dev/iscsi/iscsi_ioctl.h"
-+  ARGV[ARGC++] = rootdir "dev/ofw/openfirmio.h"
-+  ARGV[ARGC++] = rootdir "dev/pci/amrio.h"
-+  ARGV[ARGC++] = rootdir "dev/pci/mlyio.h"
-+  ARGV[ARGC++] = rootdir "dev/pci/pciio.h"
-+  ARGV[ARGC++] = rootdir "dev/pci/tweio.h"
-+  ARGV[ARGC++] = rootdir "dev/pcmcia/if_cnwioctl.h"
-+  ARGV[ARGC++] = rootdir "dev/pcmcia/if_rayreg.h"
-+  ARGV[ARGC++] = rootdir "dev/raidframe/raidframeio.h"
-+  ARGV[ARGC++] = rootdir "dev/sbus/mbppio.h"
-+  ARGV[ARGC++] = rootdir "dev/scsipi/ses.h"
-+  ARGV[ARGC++] = rootdir "dev/sun/disklabel.h"
-+  ARGV[ARGC++] = rootdir "dev/sun/fbio.h"
-+  ARGV[ARGC++] = rootdir "dev/sun/kbio.h"
-+  ARGV[ARGC++] = rootdir "dev/sun/vuid_event.h"
-+  ARGV[ARGC++] = rootdir "dev/tc/sticio.h"
-+  ARGV[ARGC++] = rootdir "dev/usb/ukyopon.h"
-+  ARGV[ARGC++] = rootdir "dev/usb/urio.h"
-+  ARGV[ARGC++] = rootdir "dev/usb/usb.h"
-+  ARGV[ARGC++] = rootdir "dev/usb/utoppy.h"
-+  ARGV[ARGC++] = rootdir "dev/vme/xio.h"
-+  ARGV[ARGC++] = rootdir "dev/wscons/wsdisplay_usl_io.h"
-+  ARGV[ARGC++] = rootdir "dev/wscons/wsconsio.h"
-+  ARGV[ARGC++] = rootdir "dev/biovar.h"
-+  ARGV[ARGC++] = rootdir "dev/md.h"
-+  ARGV[ARGC++] = rootdir "dev/ccdvar.h"
-+  ARGV[ARGC++] = rootdir "dev/cgdvar.h"
-+  ARGV[ARGC++] = rootdir "dev/fssvar.h"
-+  ARGV[ARGC++] = rootdir "dev/bluetooth/btdev.h"
-+  ARGV[ARGC++] = rootdir "dev/bluetooth/btsco.h"
-+  ARGV[ARGC++] = rootdir "dev/kttcpio.h"
-+  ARGV[ARGC++] = rootdir "dev/lockstat.h"
-+  ARGV[ARGC++] = rootdir "dev/vndvar.h"
-+  ARGV[ARGC++] = rootdir "dev/spkrio.h"
-+  ARGV[ARGC++] = rootdir "net/bpf.h"
-+  ARGV[ARGC++] = rootdir "net/if_atm.h"
-+  ARGV[ARGC++] = rootdir "net/if_gre.h"
-+  ARGV[ARGC++] = rootdir "net/if_ppp.h"
-+  ARGV[ARGC++] = rootdir "net/npf.h"
-+  ARGV[ARGC++] = rootdir "net/if_pppoe.h"
-+  ARGV[ARGC++] = rootdir "net/if_sppp.h"
-+  ARGV[ARGC++] = rootdir "net/if_srt.h"
-+  ARGV[ARGC++] = rootdir "net/if_tap.h"
-+  ARGV[ARGC++] = rootdir "net/if_tun.h"
-+  ARGV[ARGC++] = rootdir "net/pfvar.h"
-+  ARGV[ARGC++] = rootdir "net/slip.h"
-+  ARGV[ARGC++] = rootdir "netbt/hci.h"
-+  ARGV[ARGC++] = rootdir "netinet/ip_nat.h"
-+  ARGV[ARGC++] = rootdir "netinet/ip_proxy.h"
-+  ARGV[ARGC++] = rootdir "netinet6/in6_var.h"
-+  ARGV[ARGC++] = rootdir "netnatm/natm.h"
-+  ARGV[ARGC++] = rootdir "netsmb/smb_dev.h"
-+  ARGV[ARGC++] = rootdir "sys/agpio.h"
-+  ARGV[ARGC++] = rootdir "sys/audioio.h"
-+  ARGV[ARGC++] = rootdir "sys/ataio.h"
-+  ARGV[ARGC++] = rootdir "sys/cdio.h"
-+  ARGV[ARGC++] = rootdir "sys/chio.h"
-+  ARGV[ARGC++] = rootdir "sys/clockctl.h"
-+  ARGV[ARGC++] = rootdir "sys/cpuio.h"
-+  ARGV[ARGC++] = rootdir "sys/dkio.h"
-+  ARGV[ARGC++] = rootdir "sys/drvctlio.h"
-+  ARGV[ARGC++] = rootdir "sys/dvdio.h"
-+  ARGV[ARGC++] = rootdir "sys/envsys.h"
-+  ARGV[ARGC++] = rootdir "sys/event.h"
-+  ARGV[ARGC++] = rootdir "sys/fdio.h"
-+  ARGV[ARGC++] = rootdir "sys/filio.h"
-+  ARGV[ARGC++] = rootdir "sys/gpio.h"
-+  ARGV[ARGC++] = rootdir "sys/ioctl.h"
-+  ARGV[ARGC++] = rootdir "sys/ioctl_compat.h"
-+  ARGV[ARGC++] = rootdir "sys/joystick.h"
-+  ARGV[ARGC++] = rootdir "sys/ksyms.h"
-+  ARGV[ARGC++] = rootdir "sys/lua.h"
-+  ARGV[ARGC++] = rootdir "sys/midiio.h"
-+  ARGV[ARGC++] = rootdir "sys/mtio.h"
-+  ARGV[ARGC++] = rootdir "sys/power.h"
-+  ARGV[ARGC++] = rootdir "sys/radioio.h"
-+  ARGV[ARGC++] = rootdir "sys/rndio.h"
-+  ARGV[ARGC++] = rootdir "sys/scanio.h"
-+  ARGV[ARGC++] = rootdir "sys/scsiio.h"
-+  ARGV[ARGC++] = rootdir "sys/sockio.h"
-+  ARGV[ARGC++] = rootdir "sys/timepps.h"
-+  ARGV[ARGC++] = rootdir "sys/ttycom.h"
-+  ARGV[ARGC++] = rootdir "sys/verified_exec.h"
-+  ARGV[ARGC++] = rootdir "sys/videoio.h"
-+  ARGV[ARGC++] = rootdir "sys/wdog.h"
-+  ARGV[ARGC++] = rootdir "soundcard.h"
-+  ARGV[ARGC++] = rootdir "xen/xenio.h"
-+
-+  ioctl_table_max = 0
-+}
-+
-+# Scan RCS ID
-+FNR == 1 {
-+  fname[ioctl_table_max] = substr(FILENAME, length(rootdir) + 1)
-+}
-+
-+# _IO
-+/[^a-zA-Z0-9_]_IO[W]*[R]*[ ]*\(/ && $2 ~ /^[A-Z_]+$/ {
-+  if ($0 ~ /RAIDFRAME_GET_ACCTOTALS/ ||
-+      $0 ~ /ALTQATTACH/ ||
-+      $0 ~ /ALTQDETACH/ ||
-+      $0 ~ /ALTQENABLE/ ||
-+      $0 ~ /ALTQDISABLE/ ||
-+      $0 ~ /ALTQCLEAR/ ||
-+      $0 ~ /ALTQCONFIG/ ||
-+      $0 ~ /ALTQADDCLASS/ ||
-+      $0 ~ /ALTQMODCLASS/ ||
-+      $0 ~ /ALTQDELCLASS/ ||
-+      $0 ~ /ALTQADDFILTER/ ||
-+      $0 ~ /ALTQDELFILTER/ ||
-+      $0 ~ /ALTQGETSTATS/ ||
-+      $0 ~ /ALTQGETCNTR/ ||
-+      $0 ~ /HLCD_DISPCTL/ ||
-+      $0 ~ /HLCD_RESET/ ||
-+      $0 ~ /HLCD_CLEAR/ ||
-+      $0 ~ /HLCD_CURSOR_LEFT/ ||
-+      $0 ~ /HLCD_CURSOR_RIGHT/ ||
-+      $0 ~ /HLCD_GET_CURSOR_POS/ ||
-+      $0 ~ /HLCD_SET_CURSOR_POS/ ||
-+      $0 ~ /HLCD_GETC/ ||
-+      $0 ~ /HLCD_PUTC/ ||
-+      $0 ~ /HLCD_SHIFT_LEFT/ ||
-+      $0 ~ /HLCD_SHIFT_RIGHT/ ||
-+      $0 ~ /HLCD_HOME/ ||
-+      $0 ~ /HLCD_WRITE/ ||
-+      $0 ~ /HLCD_READ/ ||
-+      $0 ~ /HLCD_REDRAW/ ||
-+      $0 ~ /HLCD_WRITE_INST/ ||
-+      $0 ~ /HLCD_WRITE_DATA/ ||
-+      $0 ~ /HLCD_GET_INFO/ ||
-+      $0 ~ /HLCD_GET_CHIPNO/ ||
-+      $0 ~ /HLCD_SET_CHIPNO/ ||
-+      $0 ~ /RAIDFRAME_TEST_ACC/ ||
-+      $0 ~ /FBIOGINFO/ ||
-+      $0 ~ /FBIOSATTR/ ||
-+      $0 ~ /OBIOCDISK/ ||
-+      $0 ~ /OBIOCVOL/ ||
-+      $0 ~ /BIOCSORTIMEOUT/ ||
-+      $0 ~ /BIOCGORTIMEOUT/ ||
-+      $0 ~ /PPPIOCSPASS/ ||
-+      $0 ~ /PPPIOCSACTIVE/ ||
-+      $0 ~ /PPPIOCSIPASS/ ||
-+      $0 ~ /PPPIOCSOPASS/ ||
-+      $0 ~ /PPPIOCSIACTIVE/ ||
-+      $0 ~ /PPPIOCSOACTIVE/ ||
-+      $0 ~ /SIOCPROXY/ ||
-+      $0 ~ /SIOCXRAWATM/ ||
-+      $0 ~ /AGPIOC_RESERVE/ ||
-+      $0 ~ /AGPIOC_PROTECT/ ||
-+      $0 ~ /CDIOCREADSUBCHANNEL_BUF/ ||
-+      $0 ~ /CDIOREADTOCENTRIES_BUF/ ||
-+      $0 ~ /MMCGETDISCINFO/ ||
-+      $0 ~ /MMCGETTRACKINFO/ ||
-+      $0 ~ /MMCOP/ ||
-+      $0 ~ /MMCSETUPWRITEPARAMS/ ||
-+      $0 ~ /DIOCGPARTINFO/ ||
-+      $0 ~ /ODIOCGDINFO/ ||
-+      $0 ~ /ODIOCSDINFO/ ||
-+      $0 ~ /ODIOCWDINFO/ ||
-+      $0 ~ /ODIOCGDEFLABEL/ ||
-+      $0 ~ /GPIOPINREAD/ ||
-+      $0 ~ /GPIOPINWRITE/ ||
-+      $0 ~ /GPIOPINTOGGLE/ ||
-+      $0 ~ /GPIOPINCTL/ ||
-+      $0 ~ /GPIODETACH/ ||
-+      $0 ~ /SEQUENCER_PERCMODE/ ||
-+      $0 ~ /SEQUENCER_TESTMIDI/ ||
-+      $0 ~ /SEQUENCER_MIDI_INFO/ ||
-+      $0 ~ /SEQUENCER_ID/ ||
-+      $0 ~ /SEQUENCER_CONTROL/ ||
-+      $0 ~ /SEQUENCER_REMOVESAMPLE/ ||
-+      $0 ~ /EVTCHN_RESET/ ||
-+      $0 ~ /EVTCHN_BIND/ ||
-+      $0 ~ /EVTCHN_UNBIND/) {
-+    # broken entry, incomplete definition of the 3rd parameterm etc
-+    next
-+  }
-+
-+  if ($0 ~ /APM_IOC_STANDBY/ ||
-+      $0 ~ /APM_IOC_SUSPEND/ ||
-+      $0 ~ /SCIOC_USE_ADF/ ||
-+      $0 ~ /SCBUSIOLLSCAN/ ||
-+      $0 ~ /UTOPPYIOCANCEL/ ||
-+      $0 ~ /JOY_GET_X_OFFSET/ ||
-+      $0 ~ /CHIOGPICKER/ ||
-+      $0 ~ /SLIOCGUNIT/ ||
-+      $0 ~ /SATIOSBUFSIZE/ ||
-+      $0 ~ /TUNSLMODE/ ||
-+      $0 ~ /CBQ_IF_ATTACH/ ||
-+      $0 ~ /CDNR_IF_ATTACH/ ||
-+      $0 ~ /RIO_IF_ATTACH/ ||
-+      $0 ~ /CBQ_IF_DETACH/ ||
-+      $0 ~ /HFSC_IF_DETACH/ ||
-+      $0 ~ /WFQ_IF_DETACH/ ||
-+      $0 ~ /RIO_IF_DETACH/ ||
-+      $0 ~ /FIFOQ_IF_DETACH/ ||
-+      $0 ~ /RED_IF_DETACH/ ||
-+      $0 ~ /CDNR_ENABLE/ ||
-+      $0 ~ /HFSC_ENABLE/ ||
-+      $0 ~ /WFQ_ENABLE/ ||
-+      $0 ~ /RIO_ENABLE/ ||
-+      $0 ~ /FIFOQ_ENABLE/ ||
-+      $0 ~ /RED_ENABLE/ ||
-+      $0 ~ /BLUE_ENABLE/ ||
-+      $0 ~ /CDNR_DISABLE/ ||
-+      $0 ~ /HFSC_DISABLE/ ||
-+      $0 ~ /WFQ_DISABLE/ ||
-+      $0 ~ /RIO_DISABLE/ ||
-+      $0 ~ /FIFOQ_DISABLE/ ||
-+      $0 ~ /PRIQ_DISABLE/ ||
-+      $0 ~ /CDNR_DEL_FILTER/ ||
-+      $0 ~ /JOBS_DEL_CLASS/ ||
-+      $0 ~ /JOBS_DEL_FILTER/ ||
-+      $0 ~ /JOBS_GETSTATS/ ||
-+      $0 ~ /WFQ_GET_STATS/ ||
-+      $0 ~ /CBQ_ADD_FILTER/ ||
-+      $0 ~ /HFSC_ADD_FILTER/ ||
-+      $0 ~ /JOBS_ADD_FILTER/ ||
-+      $0 ~ /RED_IF_ATTACH/ ||
-+      $0 ~ /FIFOQ_IF_ATTACH/ ||
-+      $0 ~ /BLUE_IF_DETACH/ ||
-+      $0 ~ /CBQ_DISABLE/ ||
-+      $0 ~ /RED_DISABLE/ ||
-+      $0 ~ /CBQ_CLEAR_HIERARCHY/ ||
-+      $0 ~ /HFSC_DEL_CLASS/ ||
-+      $0 ~ /PRIQ_IF_DETACH/ ||
-+      $0 ~ /PRIQ_ENABLE/ ||
-+      $0 ~ /WFQ_IF_ATTACH/ ||
-+      $0 ~ /HFSC_DEL_FILTER/) {
-+    # There are entries with duplicate codes.. disable the less used ones
-+    next
-+  }
-+
-+  if ($2 in known) {
-+    # Avoid duplicates
-+    # There are entries compatible with K&R and ANSI preprocessor
-+    next
-+  }
-+
-+  known[$2] = 1
-+
-+  ioctl_name[ioctl_table_max] = $2
-+
-+  split($3, a, "(")
-+  a3 = a[1]
-+  if (a3 ~ /_IO[ ]*$/) {
-+    ioctl_mode[ioctl_table_max] = "NONE"
-+  } else if (a3 ~ /_IOR[ ]*$/) {
-+    ioctl_mode[ioctl_table_max] = "WRITE"
-+  } else if (a3 ~ /_IOW[ ]*$/) {
-+    ioctl_mode[ioctl_table_max] = "READ"
-+  } else if (a3 ~ /_IOWR[ ]*$/) {
-+    ioctl_mode[ioctl_table_max] = "READWRITE"
-+  } else {
-+    print "Unknown mode, cannot parse: '" $3 "'"
-+  }
-+
-+  # This !NONE check allows to skip some unparsable entries
-+  if (ioctl_mode[ioctl_table_max] != "NONE") {
-+    # special cases first
-+    if ($0 ~ /POWER_IOC_GET_TYPE_WITH_LOSSAGE/) {
-+      ioctl_type[ioctl_table_max] = "sizeof(uptr)"
-+    } else {
-+      n = split($0, a, ",")
-+      if (n == 3) {
-+        gsub(/^[ ]+/, "", a[3])
-+        match(a[3], /[a-zA-Z0-9_* ]+/)
-+        type = get_type(substr(a[3], 0, RLENGTH))
-+        ioctl_type[ioctl_table_max] = type
-+      }
-+    }
-+  }
-+
-+  ioctl_table_max++
-+}
-+
-+END {
-+  # empty files?
-+  if (NR < 1 && !abnormal_exit) {
-+    usage()
-+  }
-+
-+  # Handle abnormal exit
-+  if (abnormal_exit) {
-+    exit(abnormal_exit)
-+  }
-+
-+  # Generate sanitizer_netbsd_ioctls.inc
-+
-+  # open pipe
-+  cmd = clangformat " > " outputinc
-+
-+  pcmd("//===-- sanitizer_common_interceptors_ioctl.inc -----------------*- C++ -*-===//")
-+  pcmd("//")
-+  pcmd("//                     The LLVM Compiler Infrastructure")
-+  pcmd("//")
-+  pcmd("// This file is distributed under the University of Illinois Open Source")
-+  pcmd("// License. See LICENSE.TXT for details.")
-+  pcmd("//")
-+  pcmd("//===----------------------------------------------------------------------===//")
-+  pcmd("//")
-+  pcmd("// Ioctl handling in common sanitizer interceptors.")
-+  pcmd("//===----------------------------------------------------------------------===//")
-+  pcmd("")
-+  pcmd("#if SANITIZER_NETBSD")
-+  pcmd("")
-+  pcmd("#include \"sanitizer_flags.h\"")
-+  pcmd("")
-+  pcmd("struct ioctl_desc {")
-+  pcmd("  unsigned req;")
-+  pcmd("  // FIXME: support read+write arguments. Currently READWRITE and WRITE do the")
-+  pcmd("  // same thing.")
-+  pcmd("  // XXX: The declarations below may use WRITE instead of READWRITE, unless")
-+  pcmd("  // explicitly noted.")
-+  pcmd("  enum {")
-+  pcmd("    NONE,")
-+  pcmd("    READ,")
-+  pcmd("    WRITE,")
-+  pcmd("    READWRITE,")
-+  pcmd("    CUSTOM")
-+  pcmd("  } type : 3;")
-+  pcmd("  unsigned size : 29;")
-+  pcmd("  const char* name;")
-+  pcmd("};")
-+  pcmd("")
-+  pcmd("const unsigned ioctl_table_max = " ioctl_table_max ";")
-+  pcmd("static ioctl_desc ioctl_table[ioctl_table_max];")
-+  pcmd("static unsigned ioctl_table_size = 0;")
-+  pcmd("")
-+  pcmd("// This can not be declared as a global, because references to struct_*_sz")
-+  pcmd("// require a global initializer. And this table must be available before global")
-+  pcmd("// initializers are run.")
-+  pcmd("static void ioctl_table_fill() {")
-+  pcmd("#define _(rq, tp, sz)                                    \\")
-+  pcmd("  if (IOCTL_##rq != IOCTL_NOT_PRESENT) {                 \\")
-+  pcmd("    CHECK(ioctl_table_size < ioctl_table_max);           \\")
-+  pcmd("    ioctl_table[ioctl_table_size].req = IOCTL_##rq;      \\")
-+  pcmd("    ioctl_table[ioctl_table_size].type = ioctl_desc::tp; \\")
-+  pcmd("    ioctl_table[ioctl_table_size].size = sz;             \\")
-+  pcmd("    ioctl_table[ioctl_table_size].name = #rq;            \\")
-+  pcmd("    ++ioctl_table_size;                                  \\")
-+  pcmd("  }")
-+  pcmd("")
-+
-+  for (i = 0; i < ioctl_table_max; i++) {
-+    if (i in fname) {
-+      pcmd("  /* Entries from file: " fname[i] " */")
-+    }
-+
-+    if (i in ioctl_type) {
-+      type = ioctl_type[i]
-+    } else {
-+      type = "0"
-+    }
-+
-+    pcmd("  _(" ioctl_name[i] ", " ioctl_mode[i] "," type ");")
-+  }
-+
-+  pcmd("#undef _")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static bool ioctl_initialized = false;")
-+  pcmd("")
-+  pcmd("struct ioctl_desc_compare {")
-+  pcmd("  bool operator()(const ioctl_desc& left, const ioctl_desc& right) const {")
-+  pcmd("    return left.req < right.req;")
-+  pcmd("  }")
-+  pcmd("};")
-+  pcmd("")
-+  pcmd("static void ioctl_init() {")
-+  pcmd("  ioctl_table_fill();")
-+  pcmd("  InternalSort(&ioctl_table, ioctl_table_size, ioctl_desc_compare());")
-+  pcmd("")
-+  pcmd("  bool bad = false;")
-+  pcmd("  for (unsigned i = 0; i < ioctl_table_size - 1; ++i) {")
-+  pcmd("    if (ioctl_table[i].req >= ioctl_table[i + 1].req) {")
-+  pcmd("      Printf(\"Duplicate or unsorted ioctl request id %x >= %x (%s vs %s)\\n\",")
-+  pcmd("             ioctl_table[i].req, ioctl_table[i + 1].req, ioctl_table[i].name,")
-+  pcmd("             ioctl_table[i + 1].name);")
-+  pcmd("      bad = true;")
-+  pcmd("    }")
-+  pcmd("  }")
-+  pcmd("")
-+  pcmd("  if (bad) Die();")
-+  pcmd("")
-+  pcmd("  ioctl_initialized = true;")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static const ioctl_desc *ioctl_table_lookup(unsigned req) {")
-+  pcmd("  int left = 0;")
-+  pcmd("  int right = ioctl_table_size;")
-+  pcmd("  while (left < right) {")
-+  pcmd("    int mid = (left + right) / 2;")
-+  pcmd("    if (ioctl_table[mid].req < req)")
-+  pcmd("      left = mid + 1;")
-+  pcmd("    else")
-+  pcmd("      right = mid;")
-+  pcmd("  }")
-+  pcmd("  if (left == right && ioctl_table[left].req == req)")
-+  pcmd("    return ioctl_table + left;")
-+  pcmd("  else")
-+  pcmd("    return nullptr;")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static bool ioctl_decode(unsigned req, ioctl_desc *desc) {")
-+  pcmd("  CHECK(desc);")
-+  pcmd("  desc->req = req;")
-+  pcmd("  desc->name = \"<DECODED_IOCTL>\";")
-+  pcmd("  desc->size = IOC_SIZE(req);")
-+  pcmd("  // Sanity check.")
-+  pcmd("  if (desc->size > 0xFFFF) return false;")
-+  pcmd("  unsigned dir = IOC_DIR(req);")
-+  pcmd("  switch (dir) {")
-+  pcmd("    case IOC_NONE:")
-+  pcmd("      desc->type = ioctl_desc::NONE;")
-+  pcmd("      break;")
-+  pcmd("    case IOC_READ | IOC_WRITE:")
-+  pcmd("      desc->type = ioctl_desc::READWRITE;")
-+  pcmd("      break;")
-+  pcmd("    case IOC_READ:")
-+  pcmd("      desc->type = ioctl_desc::WRITE;")
-+  pcmd("      break;")
-+  pcmd("    case IOC_WRITE:")
-+  pcmd("      desc->type = ioctl_desc::READ;")
-+  pcmd("      break;")
-+  pcmd("    default:")
-+  pcmd("      return false;")
-+  pcmd("  }")
-+  pcmd("  // Size can be 0 iff type is NONE.")
-+  pcmd("  if ((desc->type == IOC_NONE) != (desc->size == 0)) return false;")
-+  pcmd("  // Sanity check.")
-+  pcmd("  if (IOC_TYPE(req) == 0) return false;")
-+  pcmd("  return true;")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static const ioctl_desc *ioctl_lookup(unsigned req) {")
-+  pcmd("  const ioctl_desc *desc = ioctl_table_lookup(req);")
-+  pcmd("  if (desc) return desc;")
-+  pcmd("")
-+  pcmd("  // Try stripping access size from the request id.")
-+  pcmd("  desc = ioctl_table_lookup(req & ~(IOC_SIZEMASK << IOC_SIZESHIFT));")
-+  pcmd("  // Sanity check: requests that encode access size are either read or write and")
-+  pcmd("  // have size of 0 in the table.")
-+  pcmd("  if (desc && desc->size == 0 &&")
-+  pcmd("      (desc->type == ioctl_desc::READWRITE || desc->type == ioctl_desc::WRITE ||")
-+  pcmd("       desc->type == ioctl_desc::READ))")
-+  pcmd("    return desc;")
-+  pcmd("  return nullptr;")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static void ioctl_common_pre(void *ctx, const ioctl_desc *desc, int d,")
-+  pcmd("                             unsigned request, void *arg) {")
-+  pcmd("  if (desc->type == ioctl_desc::READ || desc->type == ioctl_desc::READWRITE) {")
-+  pcmd("    unsigned size = desc->size ? desc->size : IOC_SIZE(request);")
-+  pcmd("    COMMON_INTERCEPTOR_READ_RANGE(ctx, arg, size);")
-+  pcmd("  }")
-+  pcmd("  if (desc->type != ioctl_desc::CUSTOM)")
-+  pcmd("    return;")
-+  pcmd("  if (request == IOCTL_SIOCGIFCONF) {")
-+  pcmd("    struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;")
-+  pcmd("    COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len,")
-+  pcmd("                                  sizeof(ifc->ifc_len));")
-+  pcmd("  }")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("static void ioctl_common_post(void *ctx, const ioctl_desc *desc, int res, int d,")
-+  pcmd("                              unsigned request, void *arg) {")
-+  pcmd("  if (desc->type == ioctl_desc::WRITE || desc->type == ioctl_desc::READWRITE) {")
-+  pcmd("    // FIXME: add verbose output")
-+  pcmd("    unsigned size = desc->size ? desc->size : IOC_SIZE(request);")
-+  pcmd("    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, arg, size);")
-+  pcmd("  }")
-+  pcmd("  if (desc->type != ioctl_desc::CUSTOM)")
-+  pcmd("    return;")
-+  pcmd("  if (request == IOCTL_SIOCGIFCONF) {")
-+  pcmd("    struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;")
-+  pcmd("    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);")
-+  pcmd("  }")
-+  pcmd("}")
-+  pcmd("")
-+  pcmd("#endif // SANITIZER_NETBSD")
-+
-+  close(cmd)
-+}
-+
-+function usage()
-+{
-+  print "Usage: " script_name
-+  abnormal_exit = 1
-+  exit 1
-+}
-+
-+function pcmd(string)
-+{
-+  print string | cmd
-+}
-+
-+function get_type(string)
-+{
-+  if (string == "int") {
-+    return "sizeof(int)"
-+  } else if (string == "unsigned int" || string == "u_int" || string == "uint") {
-+    return "sizeof(unsigned int)"
-+  } else if (string == "long") {
-+    return "sizeof(long)"
-+  } else if (string == "unsigned long" || string == "u_long") {
-+    return "sizeof(unsigned long)"
-+  } else if (string == "short") {
-+    return "sizeof(short)"
-+  } else if (string == "unsigned short") {
-+    return "sizeof(unsigned short)"
-+  } else if (string == "char") {
-+    return "sizeof(char)"
-+  } else if (string == "signed char") {
-+    return "sizeof(signed char)"
-+  } else if (string == "unsigned char") {
-+    return "sizeof(unsigned char)"
-+  } else if (string == "uint8_t") {
-+    return "sizeof(u8)"
-+  } else if (string == "uint16_t") {
-+    return "sizeof(u16)"
-+  } else if (string == "u_int32_t" || string == "uint32_t") {
-+    return "sizeof(u32)"
-+  } else if (string ~ /\*$/) {
-+    return "sizeof(uptr)"
-+  } else if (string == "off_t") {
-+    return "sizeof(uptr)"
-+  } else if (string == "pid_t" || string == "kbd_t") {
-+    return "sizeof(int)"
-+  } else if (string == "daddr_t" || string == "dev_t") {
-+    return "sizeof(u64)"
-+  } else if (substr(string, 0, 7) == "struct " ) {
-+    gsub(/ /, "", string)
-+    return "struct_" substr(string, 7) "_sz"
-+  } else if (string == "scsireq_t") {
-+    return "struct_scsireq_sz"
-+  } else if (string == "tone_t") {
-+    return "struct_tone_sz"
-+  } else if (string == "union twe_statrequest") {
-+    return "union_twe_statrequest_sz"
-+  } else if (string == "usb_device_descriptor_t") {
-+    return "struct_usb_device_descriptor_sz"
-+  } else if (string == "v4l2_std_id") {
-+    return "sizeof(u64)"
-+  } else if (string == "vtmode_t") {
-+    return "struct_vt_mode_sz"
-+  } else if (string == "_old_mixer_info") {
-+    return "struct__old_mixer_info_sz"
-+  } else if (string == "agp_allocate") {
-+    return "struct__agp_allocate_sz"
-+  } else if (string == "agp_bind") {
-+    return "struct__agp_bind_sz"
-+  } else if (string == "agp_info") {
-+    return "struct__agp_info_sz"
-+  } else if (string == "agp_region") {
-+    return "struct__agp_region_sz"
-+  } else if (string == "agp_setup") {
-+    return "struct__agp_setup_sz"
-+  } else if (string == "agp_unbind") {
-+    return "struct__agp_unbind_sz"
-+  } else if (string == "atareq_t") {
-+    return "struct_atareq_sz"
-+  } else if (string == "cpustate_t") {
-+    return "struct_cpustate_sz"
-+  } else if (string == "dmx_caps_t") {
-+    return "struct_dmx_caps_sz"
-+  } else if (string == "dmx_source_t") {
-+    return "enum_dmx_source_sz"
-+  } else if (string == "dvd_authinfo") {
-+    return "union_dvd_authinfo_sz"
-+  } else if (string == "dvd_struct") {
-+    return "union_dvd_struct_sz"
-+  } else if (string == "enum v4l2_priority") {
-+    return "enum_v4l2_priority_sz"
-+  } else if (string == "envsys_basic_info_t") {
-+    return "struct_envsys_basic_info_sz"
-+  } else if (string == "envsys_tre_data_t") {
-+    return "struct_envsys_tre_data_sz"
-+  } else if (string == "ext_accm") {
-+    return "(8 * sizeof(u32))"
-+  } else if (string == "fe_sec_mini_cmd_t") {
-+    return "enum_fe_sec_mini_cmd_sz"
-+  } else if (string == "fe_sec_tone_mode_t") {
-+    return "enum_fe_sec_tone_mode_sz"
-+  } else if (string == "fe_sec_voltage_t") {
-+    return "enum_fe_sec_voltage_sz"
-+  } else if (string == "fe_status_t") {
-+    return "enum_fe_status_sz"
-+  } else if (string == "gdt_ctrt_t") {
-+    return "struct_gdt_ctrt_sz"
-+  } else if (string == "gdt_event_t") {
-+    return "struct_gdt_event_sz"
-+  } else if (string == "gdt_osv_t") {
-+    return "struct_gdt_osv_sz"
-+  } else if (string == "gdt_rescan_t") {
-+    return "struct_gdt_rescan_sz"
-+  } else if (string == "gdt_statist_t") {
-+    return "struct_gdt_statist_sz"
-+  } else if (string == "gdt_ucmd_t") {
-+    return "struct_gdt_ucmd_sz"
-+  } else if (string == "iscsi_conn_status_parameters_t") {
-+    return "struct_iscsi_conn_status_parameters_sz"
-+  } else if (string == "iscsi_get_version_parameters_t") {
-+    return "struct_iscsi_get_version_parameters_sz"
-+  } else if (string == "iscsi_iocommand_parameters_t") {
-+    return "struct_iscsi_iocommand_parameters_sz"
-+  } else if (string == "iscsi_login_parameters_t") {
-+    return "struct_iscsi_login_parameters_sz"
-+  } else if (string == "iscsi_logout_parameters_t") {
-+    return "struct_iscsi_logout_parameters_sz"
-+  } else if (string == "iscsi_register_event_parameters_t") {
-+    return "struct_iscsi_register_event_parameters_sz"
-+  } else if (string == "iscsi_remove_parameters_t") {
-+    return "struct_iscsi_remove_parameters_sz"
-+  } else if (string == "iscsi_send_targets_parameters_t") {
-+    return "struct_iscsi_send_targets_parameters_sz"
-+  } else if (string == "iscsi_set_node_name_parameters_t") {
-+    return "struct_iscsi_set_node_name_parameters_sz"
-+  } else if (string == "iscsi_wait_event_parameters_t") {
-+    return "struct_iscsi_wait_event_parameters_sz"
-+  } else if (string == "isp_stats_t") {
-+    return "struct_isp_stats_sz"
-+  } else if (string == "lsenable_t") {
-+    return "struct_lsenable_sz"
-+  } else if (string == "lsdisable_t") {
-+    return "struct_lsdisable_sz"
-+  } else if (string == "mixer_ctrl_t") {
-+    return "struct_mixer_ctrl_sz"
-+  } else if (string == "mixer_devinfo_t") {
-+    return "struct_mixer_devinfo_sz"
-+  } else if (string == "mpu_command_rec") {
-+    return "struct_mpu_command_rec_sz"
-+  } else if (string == "rndstat_t") {
-+    return "struct_rndstat_sz"
-+  } else if (string == "rndstat_name_t") {
-+    return "struct_rndstat_name_sz"
-+  } else if (string == "rndctl_t") {
-+    return "struct_rndctl_sz"
-+  } else if (string == "rnddata_t") {
-+    return "struct_rnddata_sz"
-+  } else if (string == "rndpoolstat_t") {
-+    return "struct_rndpoolstat_sz"
-+  } else if (string == "rndstat_est_t") {
-+    return "struct_rndstat_est_sz"
-+  } else if (string == "rndstat_est_name_t") {
-+    return "struct_rndstat_est_name_sz"
-+  } else if (string == "pps_params_t") {
-+    return "struct_pps_params_sz"
-+  } else if (string == "pps_info_t") {
-+    return "struct_pps_info_sz"
-+  } else if (string == "linedn_t") {
-+    return "(32 * sizeof(char))"
-+  } else if (string == "mixer_info") {
-+    return "struct_mixer_info_sz"
-+  } else if (string == "RF_SparetWait_t") {
-+    return "struct_RF_SparetWait_sz"
-+  } else if (string == "RF_ComponentLabel_t") {
-+    return "struct_RF_ComponentLabel_sz"
-+  } else if (string == "RF_SingleComponent_t") {
-+    return "struct_RF_SingleComponent_sz"
-+  } else {
-+    print "Unrecognized entry: " string
-+    print "Aborting"
-+    abnormal_exit = 1
-+    exit 1
-+  }
-+
-+  return string
-+}
-+#!/usr/bin/awk -f
-+
-+#===-- generate_netbsd_ioctls.awk ------------------------------------------===#
-+#
-+#                     The LLVM Compiler Infrastructure
-+#
-+# This file is distributed under the University of Illinois Open Source
-+# License. See LICENSE.TXT for details.
-+#
-+#===------------------------------------------------------------------------===#
-+#
-+# This file is a generator of:
- #  - include/sanitizer/sanitizer_interceptors_ioctl_netbsd.inc
- #
- # This script reads public headers from a NetBSD host.
diff --git a/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__syscalls.awk b/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__syscalls.awk
deleted file mode 100644
index cf35b8b659..0000000000
--- a/compiler-rt-netbsd/patches/patch-utils_generate__netbsd__syscalls.awk
+++ /dev/null
@@ -1,2673 +0,0 @@
-$NetBSD$
-
---- utils/generate_netbsd_syscalls.awk.orig	2018-02-15 04:24:48.872228816 +0000
-+++ utils/generate_netbsd_syscalls.awk
-@@ -11,20 +11,17 @@
- #
- # This file is a generator of:
- #  - include/sanitizer/netbsd_syscall_hooks.h
--#  - lib/sanitizer_common/sanitizer_syscalls_netbsd.inc
- #
- # This script accepts on the input syscalls.master by default located in the
- # /usr/src/sys/kern/syscalls.master path in the NetBSD distribution.
- #
--# NetBSD version 8.0.
--#
- #===------------------------------------------------------------------------===#
- 
- BEGIN {
-   # harcode the script name
-   script_name = "generate_netbsd_syscalls.awk"
-   outputh = "../include/sanitizer/netbsd_syscall_hooks.h"
--  outputinc = "../lib/sanitizer_common/sanitizer_syscalls_netbsd.inc"
-+  outputinc = "../lib/sanitizer_common/sanitizer_netbsd_syscalls.inc"
- 
-   # assert that we are in the directory with scripts
-   in_utils = system("test -f " script_name " && exit 1 || exit 0")
-@@ -75,11 +72,11 @@ parsingheader == 1 && NR == 1 {
- 
- # skip the following lines
- #  - empty
--NF == 0 {
-+NF == 0 {   
-   next
- }
- #  - comment
--$1 == ";" {
-+$1 == ";" { 
-   next
- }
- 
-@@ -219,7 +216,7 @@ END {
-     exit(abnormal_exit)
-   }
- 
--  # Generate sanitizer_syscalls_netbsd.inc
-+  # Generate sanitizer_common_syscalls.inc
- 
-   # open pipe
-   cmd = clangformat " > " outputh
-@@ -255,7 +252,51 @@ END {
-   pcmd("#define SANITIZER_NETBSD_SYSCALL_HOOKS_H")
-   pcmd("")
- 
--  # TODO
-+  for (i = 0; i < parsedsyscalls; i++) {
-+
-+    if (i in ifelifelseendif) { 
-+      pcmd(ifelifelseendif[i])
-+    } 
-+
-+    sn = syscalls[i]
-+   
-+    if (sn ~ /^\$/) {
-+      pcmd("/* syscall " substr(sn,2) " has been skipped */")
-+      continue
-+    }
-+
-+    inargs = ""
-+
-+    if (syscallargs[i] != "void") {
-+      inargs = syscallargs[i]
-+      gsub(/\$/, ", ", inargs)
-+    }
-+
-+    outargs = ""
-+
-+    if (syscallargs[i] != "void") {
-+      outargs = "(long long)(" syscallargs[i] ")"
-+      gsub(/\$/, "), (long long)(", outargs)
-+    }
-+
-+    pcmd("#define __sanitizer_syscall_pre_" sn "(" inargs ") \\")
-+    pcmd("  __sanitizer_syscall_pre_impl_" sn "(" outargs ")")
-+
-+    if (inargs == "") {
-+      inargs = "res"
-+    } else {
-+      inargs = "res, " inargs
-+    }
-+
-+    if (outargs == "") {
-+      outargs = "res"
-+    } else {
-+      outargs = "res, " outargs
-+    }
-+
-+    pcmd("#define __sanitizer_syscall_post_" sn "(" inargs ") \\")
-+    pcmd("  __sanitizer_syscall_post_impl_" sn "(" outargs ")")
-+  }
- 
-   pcmd("")
-   pcmd("#ifdef __cplusplus")
-@@ -267,7 +308,35 @@ END {
-   pcmd("// DO NOT EDIT! THIS FILE HAS BEEN GENERATED!")
-   pcmd("")
- 
--  # TODO
-+  for (i = 0; i < parsedsyscalls; i++) {
-+
-+    if (i in ifelifelseendif) {
-+      pcmd(ifelifelseendif[i])
-+    }
-+
-+    sn = syscalls[i]
-+
-+    if (sn ~ /^\$/) {
-+      pcmd("/* syscall " substr(sn,2) " has been skipped */")
-+      continue
-+    }
-+
-+    preargs = syscallargs[i]
-+
-+    if (preargs != "void") {
-+      preargs = "long long " preargs
-+      gsub(/\$/, ", long long ", preargs)
-+    }
-+
-+    if (preargs == "void") {
-+      postargs = "long long res"
-+    } else {
-+      postargs = "long long res, " preargs
-+    }
-+
-+    pcmd("void __sanitizer_syscall_pre_impl_" sn "(" preargs ");")
-+    pcmd("void __sanitizer_syscall_post_impl_" sn "(" postargs ");")
-+  }
- 
-   pcmd("")
-   pcmd("#ifdef __cplusplus")
-@@ -282,12 +351,12 @@ END {
- 
-   close(cmd)
- 
--  # Generate sanitizer_syscalls_netbsd.inc
-+  # Generate sanitizer_common_syscalls.inc
- 
-   # open pipe
-   cmd = clangformat " > " outputinc
- 
--  pcmd("//===-- sanitizer_syscalls_netbsd.inc ---------------------------*- C++ -*-===//")
-+  pcmd("//===-- sanitizer_common_syscalls.inc ---------------------------*- C++ -*-===//")
-   pcmd("//")
-   pcmd("//                     The LLVM Compiler Infrastructure")
-   pcmd("//")
-@@ -383,9 +452,47 @@ END {
-   pcmd("// FIXME: do some kind of PRE_READ for all syscall arguments (int(s) and such).")
-   pcmd("")
-   pcmd("extern \"C\" {")
-+  pcmd("#define SYS_MAXSYSARGS " SYS_MAXSYSARGS)
-+
-+  for (i = 0; i < parsedsyscalls; i++) {
-+
-+    if (i in ifelifelseendif) {
-+      pcmd(ifelifelseendif[i])
-+    }
-+
-+    sn = syscalls[i]
-+
-+    if (sn ~ /^\$/) {
-+      pcmd("/* syscall " substr(sn,2) " has been skipped */")
-+      continue
-+    }
-+
-+    preargs = syscallfullargs[i]
-+
-+    if (preargs != "void") {
-+      preargs = "long long " preargs
-+      gsub(/\$/, ", long long ", preargs)
-+      gsub(/long long \*/, "void *", preargs)
-+    }
- 
--  # TODO
-+    if (preargs == "void") {
-+      postargs = "long long res"
-+    } else {
-+      postargs = "long long res, " preargs
-+    }
-+
-+    pcmd("PRE_SYSCALL(" sn ")(" preargs ")")
-+    pcmd("{")
-+    syscall_body(sn, "pre")
-+    pcmd("}")
-+
-+    pcmd("POST_SYSCALL(" sn ")(" postargs ")")
-+    pcmd("{")
-+    syscall_body(sn, "post")
-+    pcmd("}")
-+  }
- 
-+  pcmd("#undef SYS_MAXSYSARGS")
-   pcmd("}  // extern \"C\"")
-   pcmd("")
-   pcmd("#undef PRE_SYSCALL")
-@@ -414,3 +521,2469 @@ function pcmd(string)
- {
-   print string | cmd
- }
-+
-+function syscall_body(syscall, mode)
-+{
-+  # Hardcode sanitizing rules here
-+  # These syscalls don't change often so they are hand coded
-+  if (syscall == "syscall") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "exit") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fork") {
-+    if (mode == "pre") {
-+      pcmd("COMMON_SYSCALL_PRE_FORK();")
-+    } else {
-+      pcmd("COMMON_SYSCALL_POST_FORK(res);")
-+    }
-+  } else if (syscall == "read") {
-+    if (mode == "pre") {
-+      pcmd("if (buf_) {")
-+      pcmd("  PRE_WRITE(buf_, nbyte_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_WRITE(buf_, res);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "write") {
-+    if (mode == "pre") {
-+      pcmd("if (buf_) {")
-+      pcmd("  PRE_READ(buf_, nbyte_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_READ(buf_, res);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "open") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "close") {
-+    if (mode == "pre") {
-+      pcmd("COMMON_SYSCALL_FD_CLOSE((int)fd_);")
-+    } else {
-+      pcmd("/* Nothing to do */")
-+    }
-+  } else if (syscall == "compat_50_wait4") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ocreat") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "link") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("const char *link = (const char *)link_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (link) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(link) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  const char *link = (const char *)link_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (link) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(link) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "unlink") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "chdir") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fchdir") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_mknod") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "chmod") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "chown") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "break") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_20_getfsstat") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_olseek") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getpid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_40_mount") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "unmount") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "setuid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "getuid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "geteuid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "ptrace") {
-+    if (mode == "pre") {
-+      pcmd("if (req_ == ptrace_pt_io) {")
-+      pcmd("  struct __sanitizer_ptrace_io_desc *addr = (struct __sanitizer_ptrace_io_desc *)addr_;")
-+      pcmd("  PRE_READ(addr, struct_ptrace_ptrace_io_desc_struct_sz);")
-+      pcmd("  if (addr->piod_op == ptrace_piod_write_d || addr->piod_op == ptrace_piod_write_i) {")
-+      pcmd("    PRE_READ(addr->piod_addr, addr->piod_len);")
-+      pcmd("  }")
-+      pcmd("  if (addr->piod_op == ptrace_piod_read_d || addr->piod_op == ptrace_piod_read_i || addr->piod_op == ptrace_piod_read_auxv) {")
-+      pcmd("    PRE_WRITE(addr->piod_addr, addr->piod_len);")
-+      pcmd("  }")
-+      pcmd("} else if (req_ == ptrace_pt_lwpinfo) {")
-+      pcmd("  struct __sanitizer_ptrace_lwpinfo *addr = (struct __sanitizer_ptrace_lwpinfo *)addr_;")
-+      pcmd("  PRE_READ(&addr->pl_lwpid, sizeof(__sanitizer_lwpid_t));")
-+      pcmd("  PRE_WRITE(addr, struct_ptrace_ptrace_lwpinfo_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_set_event_mask) {")
-+      pcmd("  PRE_READ(addr_, struct_ptrace_ptrace_event_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_get_event_mask) {")
-+      pcmd("  PRE_WRITE(addr_, struct_ptrace_ptrace_event_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_set_siginfo) {")
-+      pcmd("  PRE_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_get_siginfo) {")
-+      pcmd("  PRE_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_set_sigmask) {")
-+      pcmd("  PRE_READ(addr_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("} else if (req_ == ptrace_pt_get_sigmask) {")
-+      pcmd("  PRE_WRITE(addr_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("} else if (req_ == ptrace_pt_setregs) {")
-+      pcmd("  PRE_READ(addr_, struct_ptrace_reg_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_getregs) {")
-+      pcmd("  PRE_WRITE(addr_, struct_ptrace_reg_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_setfpregs) {")
-+      pcmd("  PRE_READ(addr_, struct_ptrace_fpreg_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_getfpregs) {")
-+      pcmd("  PRE_WRITE(addr_, struct_ptrace_fpreg_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_setdbregs) {")
-+      pcmd("  PRE_READ(addr_, struct_ptrace_dbreg_struct_sz);")
-+      pcmd("} else if (req_ == ptrace_pt_getdbregs) {")
-+      pcmd("  PRE_WRITE(addr_, struct_ptrace_dbreg_struct_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (req_ == ptrace_pt_io) {")
-+      pcmd("    struct __sanitizer_ptrace_io_desc *addr = (struct __sanitizer_ptrace_io_desc *)addr_;")
-+      pcmd("    POST_READ(addr, struct_ptrace_ptrace_io_desc_struct_sz);")
-+      pcmd("    if (addr->piod_op == ptrace_piod_write_d || addr->piod_op == ptrace_piod_write_i) {")
-+      pcmd("      POST_READ(addr->piod_addr, addr->piod_len);")
-+      pcmd("    }")
-+      pcmd("    if (addr->piod_op == ptrace_piod_read_d || addr->piod_op == ptrace_piod_read_i || addr->piod_op == ptrace_piod_read_auxv) {")
-+      pcmd("      POST_WRITE(addr->piod_addr, addr->piod_len);")
-+      pcmd("    }")
-+      pcmd("  } else if (req_ == ptrace_pt_lwpinfo) {")
-+      pcmd("    struct __sanitizer_ptrace_lwpinfo *addr = (struct __sanitizer_ptrace_lwpinfo *)addr_;")
-+      pcmd("    POST_READ(&addr->pl_lwpid, sizeof(__sanitizer_lwpid_t));")
-+      pcmd("    POST_WRITE(addr, struct_ptrace_ptrace_lwpinfo_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_set_event_mask) {")
-+      pcmd("    POST_READ(addr_, struct_ptrace_ptrace_event_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_get_event_mask) {")
-+      pcmd("    POST_WRITE(addr_, struct_ptrace_ptrace_event_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_set_siginfo) {")
-+      pcmd("    POST_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_get_siginfo) {")
-+      pcmd("    POST_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_set_sigmask) {")
-+      pcmd("    POST_READ(addr_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("  } else if (req_ == ptrace_pt_get_sigmask) {")
-+      pcmd("    POST_WRITE(addr_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("  } else if (req_ == ptrace_pt_setregs) {")
-+      pcmd("    POST_READ(addr_, struct_ptrace_reg_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_getregs) {")
-+      pcmd("    POST_WRITE(addr_, struct_ptrace_reg_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_setfpregs) {")
-+      pcmd("    POST_READ(addr_, struct_ptrace_fpreg_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_getfpregs) {")
-+      pcmd("    POST_WRITE(addr_, struct_ptrace_fpreg_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_setdbregs) {")
-+      pcmd("    POST_READ(addr_, struct_ptrace_dbreg_struct_sz);")
-+      pcmd("  } else if (req_ == ptrace_pt_getdbregs) {")
-+      pcmd("    POST_WRITE(addr_, struct_ptrace_dbreg_struct_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "recvmsg") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(msg_, sizeof(__sanitizer_msghdr));")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_WRITE(msg_, sizeof(__sanitizer_msghdr));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "sendmsg") {
-+    if (mode == "pre") {
-+      pcmd("PRE_READ(msg_, sizeof(__sanitizer_msghdr));")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_READ(msg_, sizeof(__sanitizer_msghdr));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "recvfrom") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(buf_, len_);")
-+      pcmd("PRE_WRITE(from_, struct_sockaddr_sz);")
-+      pcmd("PRE_WRITE(fromlenaddr_, sizeof(__sanitizer_socklen_t));")
-+    } else {
-+      pcmd("if (res >= 0) {")
-+      pcmd("  POST_WRITE(buf_, res);")
-+      pcmd("  POST_WRITE(from_, struct_sockaddr_sz);")
-+      pcmd("  POST_WRITE(fromlenaddr_, sizeof(__sanitizer_socklen_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "accept") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(name_, struct_sockaddr_sz);")
-+      pcmd("PRE_WRITE(anamelen_, sizeof(__sanitizer_socklen_t));")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_WRITE(name_, struct_sockaddr_sz);")
-+      pcmd("  POST_WRITE(anamelen_, sizeof(__sanitizer_socklen_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "getpeername") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(asa_, struct_sockaddr_sz);")
-+      pcmd("PRE_WRITE(alen_, sizeof(__sanitizer_socklen_t));")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_WRITE(asa_, struct_sockaddr_sz);")
-+      pcmd("  POST_WRITE(alen_, sizeof(__sanitizer_socklen_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "getsockname") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(asa_, struct_sockaddr_sz);")
-+      pcmd("PRE_WRITE(alen_, sizeof(__sanitizer_socklen_t));")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_WRITE(asa_, struct_sockaddr_sz);")
-+      pcmd("  POST_WRITE(alen_, sizeof(__sanitizer_socklen_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "access") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "chflags") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fchflags") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "sync") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "kill") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_stat43") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getppid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_lstat43") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "dup") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "pipe") {
-+    pcmd("/* pipe returns two descriptors through two returned values */")
-+  } else if (syscall == "getegid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "profil") {
-+    if (mode == "pre") {
-+      pcmd("if (samples_) {")
-+      pcmd("  PRE_WRITE(samples_, size_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (samples_) {")
-+      pcmd("    POST_WRITE(samples_, size_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "ktrace") {
-+    if (mode == "pre") {
-+      pcmd("const char *fname = (const char *)fname_;")
-+      pcmd("if (fname) {")
-+      pcmd("  PRE_READ(fname, __sanitizer::internal_strlen(fname) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *fname = (const char *)fname_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (fname) {")
-+      pcmd("    POST_READ(fname, __sanitizer::internal_strlen(fname) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_13_sigaction13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getgid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_13_sigprocmask13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__getlogin") {
-+    if (mode == "pre") {
-+      pcmd("if (namebuf_) {")
-+      pcmd("  PRE_WRITE(namebuf_, namelen_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (namebuf_) {")
-+      pcmd("    POST_WRITE(namebuf_, namelen_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__setlogin") {
-+    if (mode == "pre") {
-+      pcmd("const char *namebuf = (const char *)namebuf_;")
-+      pcmd("if (namebuf) {")
-+      pcmd("  PRE_READ(namebuf, __sanitizer::internal_strlen(namebuf) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *namebuf = (const char *)namebuf_;")
-+      pcmd("  if (namebuf) {")
-+      pcmd("    POST_READ(namebuf, __sanitizer::internal_strlen(namebuf) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "acct") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_13_sigpending13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_13_sigaltstack13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "ioctl") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_12_oreboot") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "revoke") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "symlink") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("const char *link = (const char *)link_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (link) {")
-+      pcmd("  PRE_READ(link, __sanitizer::internal_strlen(link) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  const char *link = (const char *)link_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (link) {")
-+      pcmd("    POST_READ(link, __sanitizer::internal_strlen(link) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "readlink") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (buf_) {")
-+      pcmd("  PRE_WRITE(buf_, count_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (buf_) {")
-+      pcmd("    PRE_WRITE(buf_, res);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "execve") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("char **argp = (char **)argp_;")
-+      pcmd("char **envp = (char **)envp_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (argp && argp[0]) {")
-+      pcmd("  char *a = argp[0];")
-+      pcmd("  while (a++) {")
-+      pcmd("    PRE_READ(a, __sanitizer::internal_strlen(a) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+      pcmd("if (envp && envp[0]) {")
-+      pcmd("  char *e = envp[0];")
-+      pcmd("  while (e++) {")
-+      pcmd("    PRE_READ(e, __sanitizer::internal_strlen(e) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    } else {
-+      pcmd("/* If we are here, something went wrong */")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("char **argp = (char **)argp_;")
-+      pcmd("char **envp = (char **)envp_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (argp && argp[0]) {")
-+      pcmd("  char *a = argp[0];")
-+      pcmd("  while (a++) {")
-+      pcmd("    POST_READ(a, __sanitizer::internal_strlen(a) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+      pcmd("if (envp && envp[0]) {")
-+      pcmd("  char *e = envp[0];")
-+      pcmd("  while (e++) {")
-+      pcmd("    POST_READ(e, __sanitizer::internal_strlen(e) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "umask") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "chroot") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_43_fstat43") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetkerninfo") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetpagesize") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_12_msync") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "vfork") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_ommap") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "munmap") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mprotect") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "madvise") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mincore") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "getgroups") {
-+    if (mode == "pre") {
-+      pcmd("unsigned int *gidset = (unsigned int *)gidset_;")
-+      pcmd("if (gidset) {")
-+      pcmd("  PRE_WRITE(gidset, sizeof(*gidset) * gidsetsize_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  unsigned int *gidset = (unsigned int *)gidset_;")
-+      pcmd("  if (gidset) {")
-+      pcmd("    POST_WRITE(gidset, sizeof(*gidset) * gidsetsize_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "setgroups") {
-+    if (mode == "pre") {
-+      pcmd("unsigned int *gidset = (unsigned int *)gidset_;")
-+      pcmd("if (gidset) {")
-+      pcmd("  PRE_READ(gidset, sizeof(*gidset) * gidsetsize_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  unsigned int *gidset = (unsigned int *)gidset_;")
-+      pcmd("  if (gidset) {")
-+      pcmd("    POST_READ(gidset, sizeof(*gidset) * gidsetsize_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "getpgrp") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setpgid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_setitimer") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_owait") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_12_oswapon") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_getitimer") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogethostname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osethostname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetdtablesize") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "dup2") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fcntl") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_select") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "fsync") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setpriority") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_30_socket") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "connect") {
-+    if (mode == "pre") {
-+      pcmd("PRE_READ(name_, namelen_);")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_READ(name_, namelen_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_43_oaccept") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getpriority") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_osend") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_orecv") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_13_sigreturn13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "bind") {
-+    if (mode == "pre") {
-+      pcmd("PRE_READ(name_, namelen_);")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  PRE_READ(name_, namelen_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "setsockopt") {
-+    if (mode == "pre") {
-+      pcmd("if (val_) {")
-+      pcmd("  PRE_READ(val_, valsize_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (val_) {")
-+      pcmd("    POST_READ(val_, valsize_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "listen") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_osigvec") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osigblock") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osigsetmask") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_13_sigsuspend13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osigstack") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_orecvmsg") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osendmsg") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_gettimeofday") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_getrusage") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getsockopt") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "readv") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_iovec *iovp = (struct __sanitizer_iovec *)iovp_;")
-+      pcmd("int i;")
-+      pcmd("if (iovp) {")
-+      pcmd("  PRE_READ(iovp, sizeof(struct __sanitizer_iovec) * iovcnt_);")
-+      pcmd("  for (i = 0; i < iovcnt_; i++) {")
-+      pcmd("    PRE_WRITE(iovp[i].iov_base, iovp[i].iov_len);")
-+      pcmd("  }")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_iovec *iovp = (struct __sanitizer_iovec *)iovp_;")
-+      pcmd("int i;")
-+      pcmd("uptr m, n = res;")
-+      pcmd("if (res > 0) {")
-+      pcmd("  if (iovp) {")
-+      pcmd("    POST_READ(iovp, sizeof(struct __sanitizer_iovec) * iovcnt_);")
-+      pcmd("    for (i = 0; i < iovcnt_ && n > 0; i++) {")
-+      pcmd("      m = n > iovp[i].iov_len ? iovp[i].iov_len : n;")
-+      pcmd("      POST_WRITE(iovp[i].iov_base, m);")
-+      pcmd("      n -= m;")
-+      pcmd("    }")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "writev") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_iovec *iovp = (struct __sanitizer_iovec *)iovp_;")
-+      pcmd("int i;")
-+      pcmd("if (iovp) {")
-+      pcmd("  PRE_READ(iovp, sizeof(struct __sanitizer_iovec) * iovcnt_);")
-+      pcmd("  for (i = 0; i < iovcnt_; i++) {")
-+      pcmd("    PRE_READ(iovp[i].iov_base, iovp[i].iov_len);")
-+      pcmd("  }")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_iovec *iovp = (struct __sanitizer_iovec *)iovp_;")
-+      pcmd("int i;")
-+      pcmd("uptr m, n = res;")
-+      pcmd("if (res > 0) {")
-+      pcmd("  if (iovp) {")
-+      pcmd("    POST_READ(iovp, sizeof(struct __sanitizer_iovec) * iovcnt_);")
-+      pcmd("    for (i = 0; i < iovcnt_ && n > 0; i++) {")
-+      pcmd("      m = n > iovp[i].iov_len ? iovp[i].iov_len : n;")
-+      pcmd("      POST_READ(iovp[i].iov_base, m);")
-+      pcmd("      n -= m;")
-+      pcmd("    }")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_settimeofday") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "fchown") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fchmod") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_orecvfrom") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "setreuid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setregid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "rename") {
-+    if (mode == "pre") {
-+      pcmd("const char *from = (const char *)from_;")
-+      pcmd("const char *to = (const char *)to_;")
-+      pcmd("if (from) {")
-+      pcmd("  PRE_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("}")
-+      pcmd("if (to) {")
-+      pcmd("  PRE_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *from = (const char *)from_;")
-+      pcmd("  const char *to = (const char *)to_;")
-+      pcmd("  if (from) {")
-+      pcmd("    POST_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (to) {")
-+      pcmd("    POST_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_43_otruncate") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_oftruncate") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "flock") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mkfifo") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "sendto") {
-+    if (mode == "pre") {
-+      pcmd("PRE_READ(buf_, len_);")
-+      pcmd("PRE_READ(to_, tolen_);")
-+    } else {
-+      pcmd("if (res >= 0) {")
-+      pcmd("  POST_READ(buf_, len_);")
-+      pcmd("  POST_READ(to_, tolen_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "shutdown") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "socketpair") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(rsv_, 2 * sizeof(int));")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_WRITE(rsv_, 2 * sizeof(int));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mkdir") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "rmdir") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_utimes") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_adjtime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetpeername") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogethostid") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osethostid") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetrlimit") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_osetrlimit") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_okillpg") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "setsid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_quotactl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_oquota") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_43_ogetsockname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "nfssvc") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_43_ogetdirentries") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_20_statfs") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_20_fstatfs") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_30_getfh") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_09_ogetdomainname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_09_osetdomainname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_09_ouname") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "sysarch") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_10_osemsys") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_10_omsgsys") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_10_oshmsys") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "pread") {
-+    if (mode == "pre") {
-+      pcmd("if (buf_) {")
-+      pcmd("  PRE_WRITE(buf_, nbyte_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_WRITE(buf_, res);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "pwrite") {
-+    if (mode == "pre") {
-+      pcmd("if (buf_) {")
-+      pcmd("  PRE_READ(buf_, nbyte_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res > 0) {")
-+      pcmd("  POST_READ(buf_, res);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_30_ntp_gettime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "ntp_adjtime") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setgid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setegid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "seteuid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "lfs_bmapv") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "lfs_markv") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "lfs_segclean") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_lfs_segwait") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_12_stat12") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_12_fstat12") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_12_lstat12") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "pathconf") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res != -1) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fpathconf") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "getrlimit") {
-+    if (mode == "pre") {
-+      pcmd("PRE_WRITE(rlp_, struct_rlimit_sz);")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_WRITE(rlp_, struct_rlimit_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "setrlimit") {
-+    if (mode == "pre") {
-+      pcmd("PRE_READ(rlp_, struct_rlimit_sz);")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  POST_READ(rlp_, struct_rlimit_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_12_getdirentries") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "mmap") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__syscall") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "lseek") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "truncate") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "ftruncate") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__sysctl") {
-+    if (mode == "pre") {
-+      pcmd("const int *name = (const int *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, namelen_ * sizeof(*name));")
-+      pcmd("}")
-+      pcmd("if (newv_) {")
-+      pcmd("  PRE_READ(name, newlen_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const int *name = (const int *)name_;")
-+      pcmd("  if (name) {")
-+      pcmd("    POST_READ(name, namelen_ * sizeof(*name));")
-+      pcmd("  }")
-+      pcmd("  if (newv_) {")
-+      pcmd("    POST_READ(name, newlen_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mlock") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "munlock") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "undelete") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  const char *path = (const char *)path_;")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_futimes") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "getpgid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "reboot") {
-+    if (mode == "pre") {
-+      pcmd("const char *bootstr = (const char *)bootstr_;")
-+      pcmd("if (bootstr) {")
-+      pcmd("  PRE_READ(bootstr, __sanitizer::internal_strlen(bootstr) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("/* This call should never return */")
-+      pcmd("const char *bootstr = (const char *)bootstr_;")
-+      pcmd("if (bootstr) {")
-+      pcmd("  POST_READ(bootstr, __sanitizer::internal_strlen(bootstr) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "poll") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "afssys") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_14___semctl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "semget") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "semop") {
-+    if (mode == "pre") {
-+      pcmd("if (sops_) {")
-+      pcmd("  PRE_READ(sops_, nsops_ * struct_sembuf_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (sops_) {")
-+      pcmd("    POST_READ(sops_, nsops_ * struct_sembuf_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "semconfig") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_14_msgctl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "msgget") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "msgsnd") {
-+    if (mode == "pre") {
-+      pcmd("if (msgp_) {")
-+      pcmd("  PRE_READ(msgp_, msgsz_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (msgp_) {")
-+      pcmd("    POST_READ(msgp_, msgsz_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "msgrcv") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "shmat") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_14_shmctl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "shmdt") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "shmget") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_clock_gettime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_clock_settime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_clock_getres") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "timer_create") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "timer_delete") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_timer_settime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_timer_gettime") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "timer_getoverrun") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_nanosleep") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "fdatasync") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mlockall") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "munlockall") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50___sigtimedwait") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "sigqueueinfo") {
-+    if (mode == "pre") {
-+      pcmd("if (info_) {")
-+      pcmd("  PRE_READ(info_, siginfo_t_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "modctl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "_ksem_init") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_open") {
-+    if (mode == "pre") {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  POST_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_ksem_unlink") {
-+    if (mode == "pre") {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  POST_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_ksem_close") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_post") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_wait") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_trywait") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_getvalue") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_destroy") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_ksem_timedwait") {
-+    if (mode == "pre") {
-+      pcmd("if (abstime_) {")
-+      pcmd("  PRE_READ(abstime_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_open") {
-+    if (mode == "pre") {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  POST_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_close") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mq_unlink") {
-+    if (mode == "pre") {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  POST_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_getattr") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "mq_setattr") {
-+    if (mode == "pre") {
-+      pcmd("if (mqstat_) {")
-+      pcmd("  PRE_READ(mqstat_, struct_mq_attr_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_notify") {
-+    if (mode == "pre") {
-+      pcmd("if (notification_) {")
-+      pcmd("  PRE_READ(notification_, struct_sigevent_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_send") {
-+    if (mode == "pre") {
-+      pcmd("if (msg_ptr_) {")
-+      pcmd("  PRE_READ(msg_ptr_, msg_len_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mq_receive") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_mq_timedsend") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_mq_timedreceive") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__posix_rename") {
-+    if (mode == "pre") {
-+      pcmd("const char *from = (const char *)from_;")
-+      pcmd("const char *to = (const char *)to_;")
-+      pcmd("if (from_) {")
-+      pcmd("  PRE_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("}")
-+      pcmd("if (to) {")
-+      pcmd("  PRE_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *from = (const char *)from_;")
-+      pcmd("const char *to = (const char *)to_;")
-+      pcmd("if (from) {")
-+      pcmd("  POST_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("}")
-+      pcmd("if (to) {")
-+      pcmd("  POST_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "swapctl") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_30_getdents") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "minherit") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "lchmod") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "lchown") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_lutimes") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__msync13") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_30___stat13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_30___fstat13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_30___lstat13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__sigaltstack14") {
-+    if (mode == "pre") {
-+      pcmd("if (nss_) {")
-+      pcmd("  PRE_READ(nss_, struct_sigaltstack_sz);")
-+      pcmd("}")
-+      pcmd("if (oss_) {")
-+      pcmd("  PRE_READ(oss_, struct_sigaltstack_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__vfork14") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__posix_chown") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__posix_fchown") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__posix_lchown") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "getsid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__clone") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fktrace") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "preadv") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "pwritev") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_16___sigaction14") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__sigpending14") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__sigprocmask14") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__sigsuspend14") {
-+    pcmd("if (set_) {")
-+    pcmd("  PRE_READ(set_, sizeof(__sanitizer_sigset_t));")
-+    pcmd("}")
-+  } else if (syscall == "compat_16___sigreturn14") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__getcwd") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fchroot") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_30_fhopen") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_30_fhstat") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_20_fhstatfs") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_____semctl13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___msgctl13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___shmctl13") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "lchflags") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "issetugid") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "utrace") {
-+    if (mode == "pre") {
-+      pcmd("const char *label = (const char *)label_;")
-+      pcmd("if (label) {")
-+      pcmd("  PRE_READ(label, __sanitizer::internal_strlen(label) + 1);")
-+      pcmd("}")
-+      pcmd("if (addr_) {")
-+      pcmd("  PRE_READ(addr_, len_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *label = (const char *)label_;")
-+      pcmd("if (label) {")
-+      pcmd("  POST_READ(label, __sanitizer::internal_strlen(label) + 1);")
-+      pcmd("}")
-+      pcmd("if (addr_) {")
-+      pcmd("  POST_READ(addr_, len_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "getcontext") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "setcontext") {
-+    if (mode == "pre") {
-+      pcmd("if (ucp_) {")
-+      pcmd("  PRE_READ(ucp_, ucontext_t_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_lwp_create") {
-+    if (mode == "pre") {
-+      pcmd("if (ucp_) {")
-+      pcmd("  PRE_READ(ucp_, ucontext_t_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_lwp_exit") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_self") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_wait") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_suspend") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_continue") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_wakeup") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_getprivate") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_setprivate") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_kill") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_detach") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50__lwp_park") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "_lwp_unpark") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_unpark_all") {
-+    if (mode == "pre") {
-+      pcmd("if (targets_) {")
-+      pcmd("  PRE_READ(targets_, ntargets_ * sizeof(__sanitizer_lwpid_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_lwp_setname") {
-+    if (mode == "pre") {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  PRE_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name = (const char *)name_;")
-+      pcmd("if (name) {")
-+      pcmd("  POST_READ(name, __sanitizer::internal_strlen(name) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "_lwp_getname") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_lwp_ctl") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_60_sa_register") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_60_sa_stacks") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_60_sa_enable") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_60_sa_setconcurrency") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_60_sa_yield") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_60_sa_preempt") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__sigaction_sigtramp") {
-+    pcmd("if (nsa_) {")
-+    pcmd("  PRE_READ(nsa_, sizeof(__sanitizer_sigaction));")
-+    pcmd("}")
-+  } else if (syscall == "pmc_get_info") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "pmc_control") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "rasctl") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "kqueue") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_50_kevent") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "_sched_setparam") {
-+    pcmd("if (params_) {")
-+    pcmd("  PRE_READ(params_, struct_sched_param_sz);")
-+    pcmd("}")
-+  } else if (syscall == "_sched_getparam") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_sched_setaffinity") {
-+    pcmd("if (cpuset_) {")
-+    pcmd("  PRE_READ(cpuset_, size_);")
-+    pcmd("}")
-+  } else if (syscall == "_sched_getaffinity") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "sched_yield") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_sched_protect") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fsync_range") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "uuidgen") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "getvfsstat") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "statvfs1") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fstatvfs1") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_30_fhstatvfs1") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "extattrctl") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_set_file") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_get_file") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_delete_file") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_set_fd") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "extattr_get_fd") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "extattr_delete_fd") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "extattr_set_link") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_get_link") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_delete_link") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_list_fd") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "extattr_list_file") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "extattr_list_link") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_pselect") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50_pollts") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "setxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "lsetxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fsetxattr") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "getxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "lgetxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fgetxattr") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "listxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "llistxattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "flistxattr") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "removexattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "lremovexattr") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fremovexattr") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___stat30") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___fstat30") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___lstat30") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__getdents30") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "posix_fadvise") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "compat_30___fhstat30") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "compat_50___ntp_gettime30") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__socket30") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__getfh30") {
-+    if (mode == "pre") {
-+      pcmd("const char *fname = (const char *)fname_;")
-+      pcmd("if (fname) {")
-+      pcmd("  PRE_READ(fname, __sanitizer::internal_strlen(fname) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *fname = (const char *)fname_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (fname) {")
-+      pcmd("    POST_READ(fname, __sanitizer::internal_strlen(fname) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__fhopen40") {
-+    if (mode == "pre") {
-+      pcmd("if (fhp_) {")
-+      pcmd("  PRE_READ(fhp_, fh_size_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__fhstatvfs140") {
-+    if (mode == "pre") {
-+      pcmd("if (fhp_) {")
-+      pcmd("  PRE_READ(fhp_, fh_size_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50___fhstat40") {
-+    if (mode == "pre") {
-+      pcmd("if (fhp_) {")
-+      pcmd("  PRE_READ(fhp_, fh_size_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "aio_cancel") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "aio_error") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "aio_fsync") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "aio_read") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "aio_return") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_50_aio_suspend") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "aio_write") {
-+    if (mode == "pre") {
-+      pcmd("if (aiocbp_) {")
-+      pcmd("  PRE_READ(aiocbp_, sizeof(struct __sanitizer_aiocb));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "lio_listio") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__mount50") {
-+    if (mode == "pre") {
-+      pcmd("const char *type = (const char *)type_;")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (type) {")
-+      pcmd("  PRE_READ(type, __sanitizer::internal_strlen(type) + 1);")
-+      pcmd("}")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (data_) {")
-+      pcmd("  PRE_READ(data_, data_len_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *type = (const char *)type_;")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (type) {")
-+      pcmd("  POST_READ(type, __sanitizer::internal_strlen(type) + 1);")
-+      pcmd("}")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (data_) {")
-+      pcmd("  POST_READ(data_, data_len_);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mremap") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "pset_create") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "pset_destroy") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "pset_assign") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "_pset_bind") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__posix_fadvise50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__select50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__gettimeofday50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__settimeofday50") {
-+    if (mode == "pre") {
-+      pcmd("if (tv_) {")
-+      pcmd("  PRE_READ(tv_, timeval_sz);")
-+      pcmd("}")
-+      pcmd("if (tzp_) {")
-+      pcmd("  PRE_READ(tzp_, struct_timezone_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__utimes50") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (tptr) {")
-+      pcmd("  PRE_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("  PRE_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__adjtime50") {
-+    if (mode == "pre") {
-+      pcmd("if (delta_) {")
-+      pcmd("  PRE_READ(delta_, timeval_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__lfs_segwait50") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__futimes50") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("if (tptr) {")
-+      pcmd("  PRE_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("  PRE_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__lutimes50") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (tptr) {")
-+      pcmd("  PRE_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("  PRE_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (tptr) {")
-+      pcmd("  POST_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("  POST_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__setitimer50") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_itimerval *itv = (struct __sanitizer_itimerval *)itv_;")
-+      pcmd("if (itv) {")
-+      pcmd("  PRE_READ(&itv->it_interval.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("  PRE_READ(&itv->it_interval.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("  PRE_READ(&itv->it_value.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("  PRE_READ(&itv->it_value.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__getitimer50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__clock_gettime50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__clock_settime50") {
-+    if (mode == "pre") {
-+      pcmd("if (tp_) {")
-+      pcmd("  PRE_READ(tp_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__clock_getres50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__nanosleep50") {
-+    if (mode == "pre") {
-+      pcmd("if (rqtp_) {")
-+      pcmd("  PRE_READ(rqtp_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "____sigtimedwait50") {
-+    if (mode == "pre") {
-+      pcmd("if (set_) {")
-+      pcmd("  PRE_READ(set_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("}")
-+      pcmd("if (timeout_) {")
-+      pcmd("  PRE_READ(timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__mq_timedsend50") {
-+    if (mode == "pre") {
-+      pcmd("if (msg_ptr_) {")
-+      pcmd("  PRE_READ(msg_ptr_, msg_len_);")
-+      pcmd("}")
-+      pcmd("if (abs_timeout_) {")
-+      pcmd("  PRE_READ(abs_timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__mq_timedreceive50") {
-+    if (mode == "pre") {
-+      pcmd("if (msg_ptr_) {")
-+      pcmd("  PRE_READ(msg_ptr_, msg_len_);")
-+      pcmd("}")
-+      pcmd("if (abs_timeout_) {")
-+      pcmd("  PRE_READ(abs_timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "compat_60__lwp_park") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "__kevent50") {
-+    if (mode == "pre") {
-+      pcmd("if (changelist_) {")
-+      pcmd("  PRE_READ(changelist_, nchanges_ * struct_kevent_sz);")
-+      pcmd("}")
-+      pcmd("if (timeout_) {")
-+      pcmd("  PRE_READ(timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__pselect50") {
-+    if (mode == "pre") {
-+      pcmd("if (ts_) {")
-+      pcmd("  PRE_READ(ts_, struct_timespec_sz);")
-+      pcmd("}")
-+      pcmd("if (mask_) {")
-+      pcmd("  PRE_READ(mask_, sizeof(struct __sanitizer_sigset_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__pollts50") {
-+    if (mode == "pre") {
-+      pcmd("if (ts_) {")
-+      pcmd("  PRE_READ(ts_, struct_timespec_sz);")
-+      pcmd("}")
-+      pcmd("if (mask_) {")
-+      pcmd("  PRE_READ(mask_, sizeof(struct __sanitizer_sigset_t));")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__aio_suspend50") {
-+    if (mode == "pre") {
-+      pcmd("int i;")
-+      pcmd("const struct aiocb * const *list = (const struct aiocb * const *)list_;")
-+      pcmd("if (list) {")
-+      pcmd("  for (i = 0; i < nent_; i++) {")
-+      pcmd("    if (list[i]) {")
-+      pcmd("      PRE_READ(list[i], sizeof(struct __sanitizer_aiocb));")
-+      pcmd("    }")
-+      pcmd("  }")
-+      pcmd("}")
-+      pcmd("if (timeout_) {")
-+      pcmd("  PRE_READ(timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__stat50") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__fstat50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__lstat50") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "____semctl50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__shmctl50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__msgctl50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__getrusage50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__timer_settime50") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_itimerval *value = (struct __sanitizer_itimerval *)value_;")
-+      pcmd("if (value) {")
-+      pcmd("  PRE_READ(&value->it_interval.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("  PRE_READ(&value->it_interval.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("  PRE_READ(&value->it_value.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("  PRE_READ(&value->it_value.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_itimerval *value = (struct __sanitizer_itimerval *)value_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (value) {")
-+      pcmd("    POST_READ(&value->it_interval.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("    POST_READ(&value->it_interval.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("    POST_READ(&value->it_value.tv_sec, sizeof(__sanitizer_time_t));")
-+      pcmd("    POST_READ(&value->it_value.tv_usec, sizeof(__sanitizer_suseconds_t));")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__timer_gettime50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__ntp_gettime50") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__wait450") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "__mknod50") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__fhstat50") {
-+    if (mode == "pre") {
-+      pcmd("if (fhp_) {")
-+      pcmd("  PRE_READ(fhp_, fh_size_);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (fhp_) {")
-+      pcmd("    POST_READ(fhp_, fh_size_);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "pipe2") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "dup3") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "kqueue1") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "paccept") {
-+    if (mode == "pre") {
-+      pcmd("if (mask_) {")
-+      pcmd("  PRE_READ(mask_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res >= 0) {")
-+      pcmd("  if (mask_) {")
-+      pcmd("    PRE_READ(mask_, sizeof(__sanitizer_sigset_t));")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "linkat") {
-+    if (mode == "pre") {
-+      pcmd("const char *name1 = (const char *)name1_;")
-+      pcmd("const char *name2 = (const char *)name2_;")
-+      pcmd("if (name1) {")
-+      pcmd("  PRE_READ(name1, __sanitizer::internal_strlen(name1) + 1);")
-+      pcmd("}")
-+      pcmd("if (name2) {")
-+      pcmd("  PRE_READ(name2, __sanitizer::internal_strlen(name2) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *name1 = (const char *)name1_;")
-+      pcmd("const char *name2 = (const char *)name2_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (name1) {")
-+      pcmd("    POST_READ(name1, __sanitizer::internal_strlen(name1) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (name2) {")
-+      pcmd("    POST_READ(name2, __sanitizer::internal_strlen(name2) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "renameat") {
-+    if (mode == "pre") {
-+      pcmd("const char *from = (const char *)from_;")
-+      pcmd("const char *to = (const char *)to_;")
-+      pcmd("if (from) {")
-+      pcmd("  PRE_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("}")
-+      pcmd("if (to) {")
-+      pcmd("  PRE_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *from = (const char *)from_;")
-+      pcmd("const char *to = (const char *)to_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (from) {")
-+      pcmd("    POST_READ(from, __sanitizer::internal_strlen(from) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (to) {")
-+      pcmd("    POST_READ(to, __sanitizer::internal_strlen(to) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mkfifoat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mknodat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "mkdirat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "faccessat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fchmodat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fchownat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "fexecve") {
-+    pcmd("/* TODO */")
-+  } else if (syscall == "fstatat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "utimensat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+      pcmd("if (tptr_) {")
-+      pcmd("  PRE_READ(tptr_, struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res > 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (tptr_) {")
-+      pcmd("    POST_READ(tptr_, struct_timespec_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "openat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res > 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "readlinkat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res > 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "symlinkat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path1 = (const char *)path1_;")
-+      pcmd("const char *path2 = (const char *)path2_;")
-+      pcmd("if (path1) {")
-+      pcmd("  PRE_READ(path1, __sanitizer::internal_strlen(path1) + 1);")
-+      pcmd("}")
-+      pcmd("if (path2) {")
-+      pcmd("  PRE_READ(path2, __sanitizer::internal_strlen(path2) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path1 = (const char *)path1_;")
-+      pcmd("const char *path2 = (const char *)path2_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path1) {")
-+      pcmd("    POST_READ(path1, __sanitizer::internal_strlen(path1) + 1);")
-+      pcmd("  }")
-+      pcmd("  if (path2) {")
-+      pcmd("    POST_READ(path2, __sanitizer::internal_strlen(path2) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "unlinkat") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "futimens") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("if (tptr) {")
-+      pcmd("  PRE_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("  PRE_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_timespec **tptr = (struct __sanitizer_timespec **)tptr_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (tptr) {")
-+      pcmd("    POST_READ(tptr[0], struct_timespec_sz);")
-+      pcmd("    POST_READ(tptr[1], struct_timespec_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "__quotactl") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "posix_spawn") {
-+    if (mode == "pre") {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (path) {")
-+      pcmd("  PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("}")
-+    } else {
-+      pcmd("const char *path = (const char *)path_;")
-+      pcmd("if (pid_) {")
-+      pcmd("  if (path) {")
-+      pcmd("    POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "recvmmsg") {
-+    if (mode == "pre") {
-+      pcmd("if (timeout_) {")
-+      pcmd("  PRE_READ(timeout_, struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res >= 0) {")
-+      pcmd("  if (timeout_) {")
-+      pcmd("    POST_READ(timeout_, struct_timespec_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "sendmmsg") {
-+    if (mode == "pre") {
-+      pcmd("struct __sanitizer_mmsghdr *mmsg = (struct __sanitizer_mmsghdr *)mmsg_;")
-+      pcmd("unsigned int vlen = (vlen_ > 1024 ? 1024 : vlen_);")
-+      pcmd("if (mmsg) {")
-+      pcmd("  PRE_READ(mmsg, sizeof(struct __sanitizer_mmsghdr) * vlen);")
-+      pcmd("}")
-+    } else {
-+      pcmd("struct __sanitizer_mmsghdr *mmsg = (struct __sanitizer_mmsghdr *)mmsg_;")
-+      pcmd("unsigned int vlen = (vlen_ > 1024 ? 1024 : vlen_);")
-+      pcmd("if (res >= 0) {")
-+      pcmd("  if (mmsg) {")
-+      pcmd("    POST_READ(mmsg, sizeof(struct __sanitizer_mmsghdr) * vlen);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "clock_nanosleep") {
-+    if (mode == "pre") {
-+      pcmd("if (rqtp_) {")
-+      pcmd("  PRE_READ(rqtp_, struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (rqtp_) {")
-+      pcmd("  POST_READ(rqtp_, struct_timespec_sz);")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "___lwp_park60") {
-+    if (mode == "pre") {
-+      pcmd("if (ts_) {")
-+      pcmd("  PRE_READ(ts_, struct_timespec_sz);")
-+      pcmd("}")
-+    } else {
-+      pcmd("if (res == 0) {")
-+      pcmd("  if (ts_) {")
-+      pcmd("    POST_READ(ts_, struct_timespec_sz);")
-+      pcmd("  }")
-+      pcmd("}")
-+    }
-+  } else if (syscall == "posix_fallocate") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "fdiscard") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "wait6") {
-+    pcmd("/* Nothing to do */")
-+  } else if (syscall == "clock_getcpuclockid2") {
-+    pcmd("/* Nothing to do */")
-+  } else {
-+    print "Unrecognized syscall: " syscall
-+    abnormal_exit = 1
-+    exit 1
-+  }
-+}


Home | Main Index | Thread Index | Old Index