1 //===-- netbsd_syscall_hooks.h --------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file is a part of public sanitizer interface.
11 // System call handlers.
13 // Interface methods declared in this header implement pre- and post- syscall
14 // actions for the active sanitizer.
16 // __sanitizer_syscall_pre_getfoo(...args...);
17 // long long res = syscall(SYS_getfoo, ...args...);
18 // __sanitizer_syscall_post_getfoo(res, ...args...);
20 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
22 // Generated with: generate_netbsd_syscalls.awk
23 // Generated date: 2020-09-10
24 // Generated from: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
26 //===----------------------------------------------------------------------===//
27 #ifndef SANITIZER_NETBSD_SYSCALL_HOOKS_H
28 #define SANITIZER_NETBSD_SYSCALL_HOOKS_H
30 #define __sanitizer_syscall_pre_syscall(code, arg0, arg1, arg2, arg3, arg4, \
32 __sanitizer_syscall_pre_impl_syscall( \
33 (long long)(code), (long long)(arg0), (long long)(arg1), \
34 (long long)(arg2), (long long)(arg3), (long long)(arg4), \
35 (long long)(arg5), (long long)(arg6), (long long)(arg7))
36 #define __sanitizer_syscall_post_syscall(res, code, arg0, arg1, arg2, arg3, \
37 arg4, arg5, arg6, arg7) \
38 __sanitizer_syscall_post_impl_syscall( \
39 res, (long long)(code), (long long)(arg0), (long long)(arg1), \
40 (long long)(arg2), (long long)(arg3), (long long)(arg4), \
41 (long long)(arg5), (long long)(arg6), (long long)(arg7))
42 #define __sanitizer_syscall_pre_exit(rval) \
43 __sanitizer_syscall_pre_impl_exit((long long)(rval))
44 #define __sanitizer_syscall_post_exit(res, rval) \
45 __sanitizer_syscall_post_impl_exit(res, (long long)(rval))
46 #define __sanitizer_syscall_pre_fork() __sanitizer_syscall_pre_impl_fork()
47 #define __sanitizer_syscall_post_fork(res) \
48 __sanitizer_syscall_post_impl_fork(res)
49 #define __sanitizer_syscall_pre_read(fd, buf, nbyte) \
50 __sanitizer_syscall_pre_impl_read((long long)(fd), (long long)(buf), \
52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \
53 __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf), \
55 #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \
56 __sanitizer_syscall_pre_impl_write((long long)(fd), (long long)(buf), \
58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \
59 __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf), \
61 #define __sanitizer_syscall_pre_open(path, flags, mode) \
62 __sanitizer_syscall_pre_impl_open((long long)(path), (long long)(flags), \
64 #define __sanitizer_syscall_post_open(res, path, flags, mode) \
65 __sanitizer_syscall_post_impl_open(res, (long long)(path), \
66 (long long)(flags), (long long)(mode))
67 #define __sanitizer_syscall_pre_close(fd) \
68 __sanitizer_syscall_pre_impl_close((long long)(fd))
69 #define __sanitizer_syscall_post_close(res, fd) \
70 __sanitizer_syscall_post_impl_close(res, (long long)(fd))
71 #define __sanitizer_syscall_pre_compat_50_wait4(pid, status, options, rusage) \
72 __sanitizer_syscall_pre_impl_compat_50_wait4( \
73 (long long)(pid), (long long)(status), (long long)(options), \
75 #define __sanitizer_syscall_post_compat_50_wait4(res, pid, status, options, \
77 __sanitizer_syscall_post_impl_compat_50_wait4( \
78 res, (long long)(pid), (long long)(status), (long long)(options), \
80 #define __sanitizer_syscall_pre_compat_43_ocreat(path, mode) \
81 __sanitizer_syscall_pre_impl_compat_43_ocreat((long long)(path), \
83 #define __sanitizer_syscall_post_compat_43_ocreat(res, path, mode) \
84 __sanitizer_syscall_post_impl_compat_43_ocreat(res, (long long)(path), \
86 #define __sanitizer_syscall_pre_link(path, link) \
87 __sanitizer_syscall_pre_impl_link((long long)(path), (long long)(link))
88 #define __sanitizer_syscall_post_link(res, path, link) \
89 __sanitizer_syscall_post_impl_link(res, (long long)(path), (long long)(link))
90 #define __sanitizer_syscall_pre_unlink(path) \
91 __sanitizer_syscall_pre_impl_unlink((long long)(path))
92 #define __sanitizer_syscall_post_unlink(res, path) \
93 __sanitizer_syscall_post_impl_unlink(res, (long long)(path))
94 /* syscall 11 has been skipped */
95 #define __sanitizer_syscall_pre_chdir(path) \
96 __sanitizer_syscall_pre_impl_chdir((long long)(path))
97 #define __sanitizer_syscall_post_chdir(res, path) \
98 __sanitizer_syscall_post_impl_chdir(res, (long long)(path))
99 #define __sanitizer_syscall_pre_fchdir(fd) \
100 __sanitizer_syscall_pre_impl_fchdir((long long)(fd))
101 #define __sanitizer_syscall_post_fchdir(res, fd) \
102 __sanitizer_syscall_post_impl_fchdir(res, (long long)(fd))
103 #define __sanitizer_syscall_pre_compat_50_mknod(path, mode, dev) \
104 __sanitizer_syscall_pre_impl_compat_50_mknod( \
105 (long long)(path), (long long)(mode), (long long)(dev))
106 #define __sanitizer_syscall_post_compat_50_mknod(res, path, mode, dev) \
107 __sanitizer_syscall_post_impl_compat_50_mknod( \
108 res, (long long)(path), (long long)(mode), (long long)(dev))
109 #define __sanitizer_syscall_pre_chmod(path, mode) \
110 __sanitizer_syscall_pre_impl_chmod((long long)(path), (long long)(mode))
111 #define __sanitizer_syscall_post_chmod(res, path, mode) \
112 __sanitizer_syscall_post_impl_chmod(res, (long long)(path), (long long)(mode))
113 #define __sanitizer_syscall_pre_chown(path, uid, gid) \
114 __sanitizer_syscall_pre_impl_chown((long long)(path), (long long)(uid), \
116 #define __sanitizer_syscall_post_chown(res, path, uid, gid) \
117 __sanitizer_syscall_post_impl_chown(res, (long long)(path), \
118 (long long)(uid), (long long)(gid))
119 #define __sanitizer_syscall_pre_break(nsize) \
120 __sanitizer_syscall_pre_impl_break((long long)(nsize))
121 #define __sanitizer_syscall_post_break(res, nsize) \
122 __sanitizer_syscall_post_impl_break(res, (long long)(nsize))
123 #define __sanitizer_syscall_pre_compat_20_getfsstat(buf, bufsize, flags) \
124 __sanitizer_syscall_pre_impl_compat_20_getfsstat( \
125 (long long)(buf), (long long)(bufsize), (long long)(flags))
126 #define __sanitizer_syscall_post_compat_20_getfsstat(res, buf, bufsize, flags) \
127 __sanitizer_syscall_post_impl_compat_20_getfsstat( \
128 res, (long long)(buf), (long long)(bufsize), (long long)(flags))
129 #define __sanitizer_syscall_pre_compat_43_olseek(fd, offset, whence) \
130 __sanitizer_syscall_pre_impl_compat_43_olseek( \
131 (long long)(fd), (long long)(offset), (long long)(whence))
132 #define __sanitizer_syscall_post_compat_43_olseek(res, fd, offset, whence) \
133 __sanitizer_syscall_post_impl_compat_43_olseek( \
134 res, (long long)(fd), (long long)(offset), (long long)(whence))
135 #define __sanitizer_syscall_pre_getpid() __sanitizer_syscall_pre_impl_getpid()
136 #define __sanitizer_syscall_post_getpid(res) \
137 __sanitizer_syscall_post_impl_getpid(res)
138 #define __sanitizer_syscall_pre_compat_40_mount(type, path, flags, data) \
139 __sanitizer_syscall_pre_impl_compat_40_mount( \
140 (long long)(type), (long long)(path), (long long)(flags), \
142 #define __sanitizer_syscall_post_compat_40_mount(res, type, path, flags, data) \
143 __sanitizer_syscall_post_impl_compat_40_mount( \
144 res, (long long)(type), (long long)(path), (long long)(flags), \
146 #define __sanitizer_syscall_pre_unmount(path, flags) \
147 __sanitizer_syscall_pre_impl_unmount((long long)(path), (long long)(flags))
148 #define __sanitizer_syscall_post_unmount(res, path, flags) \
149 __sanitizer_syscall_post_impl_unmount(res, (long long)(path), \
151 #define __sanitizer_syscall_pre_setuid(uid) \
152 __sanitizer_syscall_pre_impl_setuid((long long)(uid))
153 #define __sanitizer_syscall_post_setuid(res, uid) \
154 __sanitizer_syscall_post_impl_setuid(res, (long long)(uid))
155 #define __sanitizer_syscall_pre_getuid() __sanitizer_syscall_pre_impl_getuid()
156 #define __sanitizer_syscall_post_getuid(res) \
157 __sanitizer_syscall_post_impl_getuid(res)
158 #define __sanitizer_syscall_pre_geteuid() __sanitizer_syscall_pre_impl_geteuid()
159 #define __sanitizer_syscall_post_geteuid(res) \
160 __sanitizer_syscall_post_impl_geteuid(res)
161 #define __sanitizer_syscall_pre_ptrace(req, pid, addr, data) \
162 __sanitizer_syscall_pre_impl_ptrace((long long)(req), (long long)(pid), \
163 (long long)(addr), (long long)(data))
164 #define __sanitizer_syscall_post_ptrace(res, req, pid, addr, data) \
165 __sanitizer_syscall_post_impl_ptrace(res, (long long)(req), \
166 (long long)(pid), (long long)(addr), \
168 #define __sanitizer_syscall_pre_recvmsg(s, msg, flags) \
169 __sanitizer_syscall_pre_impl_recvmsg((long long)(s), (long long)(msg), \
171 #define __sanitizer_syscall_post_recvmsg(res, s, msg, flags) \
172 __sanitizer_syscall_post_impl_recvmsg(res, (long long)(s), (long long)(msg), \
174 #define __sanitizer_syscall_pre_sendmsg(s, msg, flags) \
175 __sanitizer_syscall_pre_impl_sendmsg((long long)(s), (long long)(msg), \
177 #define __sanitizer_syscall_post_sendmsg(res, s, msg, flags) \
178 __sanitizer_syscall_post_impl_sendmsg(res, (long long)(s), (long long)(msg), \
180 #define __sanitizer_syscall_pre_recvfrom(s, buf, len, flags, from, \
182 __sanitizer_syscall_pre_impl_recvfrom( \
183 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags), \
184 (long long)(from), (long long)(fromlenaddr))
185 #define __sanitizer_syscall_post_recvfrom(res, s, buf, len, flags, from, \
187 __sanitizer_syscall_post_impl_recvfrom( \
188 res, (long long)(s), (long long)(buf), (long long)(len), \
189 (long long)(flags), (long long)(from), (long long)(fromlenaddr))
190 #define __sanitizer_syscall_pre_accept(s, name, anamelen) \
191 __sanitizer_syscall_pre_impl_accept((long long)(s), (long long)(name), \
192 (long long)(anamelen))
193 #define __sanitizer_syscall_post_accept(res, s, name, anamelen) \
194 __sanitizer_syscall_post_impl_accept(res, (long long)(s), (long long)(name), \
195 (long long)(anamelen))
196 #define __sanitizer_syscall_pre_getpeername(fdes, asa, alen) \
197 __sanitizer_syscall_pre_impl_getpeername( \
198 (long long)(fdes), (long long)(asa), (long long)(alen))
199 #define __sanitizer_syscall_post_getpeername(res, fdes, asa, alen) \
200 __sanitizer_syscall_post_impl_getpeername( \
201 res, (long long)(fdes), (long long)(asa), (long long)(alen))
202 #define __sanitizer_syscall_pre_getsockname(fdes, asa, alen) \
203 __sanitizer_syscall_pre_impl_getsockname( \
204 (long long)(fdes), (long long)(asa), (long long)(alen))
205 #define __sanitizer_syscall_post_getsockname(res, fdes, asa, alen) \
206 __sanitizer_syscall_post_impl_getsockname( \
207 res, (long long)(fdes), (long long)(asa), (long long)(alen))
208 #define __sanitizer_syscall_pre_access(path, flags) \
209 __sanitizer_syscall_pre_impl_access((long long)(path), (long long)(flags))
210 #define __sanitizer_syscall_post_access(res, path, flags) \
211 __sanitizer_syscall_post_impl_access(res, (long long)(path), \
213 #define __sanitizer_syscall_pre_chflags(path, flags) \
214 __sanitizer_syscall_pre_impl_chflags((long long)(path), (long long)(flags))
215 #define __sanitizer_syscall_post_chflags(res, path, flags) \
216 __sanitizer_syscall_post_impl_chflags(res, (long long)(path), \
218 #define __sanitizer_syscall_pre_fchflags(fd, flags) \
219 __sanitizer_syscall_pre_impl_fchflags((long long)(fd), (long long)(flags))
220 #define __sanitizer_syscall_post_fchflags(res, fd, flags) \
221 __sanitizer_syscall_post_impl_fchflags(res, (long long)(fd), \
223 #define __sanitizer_syscall_pre_sync() __sanitizer_syscall_pre_impl_sync()
224 #define __sanitizer_syscall_post_sync(res) \
225 __sanitizer_syscall_post_impl_sync(res)
226 #define __sanitizer_syscall_pre_kill(pid, signum) \
227 __sanitizer_syscall_pre_impl_kill((long long)(pid), (long long)(signum))
228 #define __sanitizer_syscall_post_kill(res, pid, signum) \
229 __sanitizer_syscall_post_impl_kill(res, (long long)(pid), (long long)(signum))
230 #define __sanitizer_syscall_pre_compat_43_stat43(path, ub) \
231 __sanitizer_syscall_pre_impl_compat_43_stat43((long long)(path), \
233 #define __sanitizer_syscall_post_compat_43_stat43(res, path, ub) \
234 __sanitizer_syscall_post_impl_compat_43_stat43(res, (long long)(path), \
236 #define __sanitizer_syscall_pre_getppid() __sanitizer_syscall_pre_impl_getppid()
237 #define __sanitizer_syscall_post_getppid(res) \
238 __sanitizer_syscall_post_impl_getppid(res)
239 #define __sanitizer_syscall_pre_compat_43_lstat43(path, ub) \
240 __sanitizer_syscall_pre_impl_compat_43_lstat43((long long)(path), \
242 #define __sanitizer_syscall_post_compat_43_lstat43(res, path, ub) \
243 __sanitizer_syscall_post_impl_compat_43_lstat43(res, (long long)(path), \
245 #define __sanitizer_syscall_pre_dup(fd) \
246 __sanitizer_syscall_pre_impl_dup((long long)(fd))
247 #define __sanitizer_syscall_post_dup(res, fd) \
248 __sanitizer_syscall_post_impl_dup(res, (long long)(fd))
249 #define __sanitizer_syscall_pre_pipe() __sanitizer_syscall_pre_impl_pipe()
250 #define __sanitizer_syscall_post_pipe(res) \
251 __sanitizer_syscall_post_impl_pipe(res)
252 #define __sanitizer_syscall_pre_getegid() __sanitizer_syscall_pre_impl_getegid()
253 #define __sanitizer_syscall_post_getegid(res) \
254 __sanitizer_syscall_post_impl_getegid(res)
255 #define __sanitizer_syscall_pre_profil(samples, size, offset, scale) \
256 __sanitizer_syscall_pre_impl_profil((long long)(samples), (long long)(size), \
257 (long long)(offset), (long long)(scale))
258 #define __sanitizer_syscall_post_profil(res, samples, size, offset, scale) \
259 __sanitizer_syscall_post_impl_profil(res, (long long)(samples), \
260 (long long)(size), (long long)(offset), \
262 #define __sanitizer_syscall_pre_ktrace(fname, ops, facs, pid) \
263 __sanitizer_syscall_pre_impl_ktrace((long long)(fname), (long long)(ops), \
264 (long long)(facs), (long long)(pid))
265 #define __sanitizer_syscall_post_ktrace(res, fname, ops, facs, pid) \
266 __sanitizer_syscall_post_impl_ktrace(res, (long long)(fname), \
267 (long long)(ops), (long long)(facs), \
269 #define __sanitizer_syscall_pre_compat_13_sigaction13(signum, nsa, osa) \
270 __sanitizer_syscall_pre_impl_compat_13_sigaction13( \
271 (long long)(signum), (long long)(nsa), (long long)(osa))
272 #define __sanitizer_syscall_post_compat_13_sigaction13(res, signum, nsa, osa) \
273 __sanitizer_syscall_post_impl_compat_13_sigaction13( \
274 res, (long long)(signum), (long long)(nsa), (long long)(osa))
275 #define __sanitizer_syscall_pre_getgid() __sanitizer_syscall_pre_impl_getgid()
276 #define __sanitizer_syscall_post_getgid(res) \
277 __sanitizer_syscall_post_impl_getgid(res)
278 #define __sanitizer_syscall_pre_compat_13_sigprocmask13(how, mask) \
279 __sanitizer_syscall_pre_impl_compat_13_sigprocmask13((long long)(how), \
281 #define __sanitizer_syscall_post_compat_13_sigprocmask13(res, how, mask) \
282 __sanitizer_syscall_post_impl_compat_13_sigprocmask13(res, (long long)(how), \
284 #define __sanitizer_syscall_pre___getlogin(namebuf, namelen) \
285 __sanitizer_syscall_pre_impl___getlogin((long long)(namebuf), \
286 (long long)(namelen))
287 #define __sanitizer_syscall_post___getlogin(res, namebuf, namelen) \
288 __sanitizer_syscall_post_impl___getlogin(res, (long long)(namebuf), \
289 (long long)(namelen))
290 #define __sanitizer_syscall_pre___setlogin(namebuf) \
291 __sanitizer_syscall_pre_impl___setlogin((long long)(namebuf))
292 #define __sanitizer_syscall_post___setlogin(res, namebuf) \
293 __sanitizer_syscall_post_impl___setlogin(res, (long long)(namebuf))
294 #define __sanitizer_syscall_pre_acct(path) \
295 __sanitizer_syscall_pre_impl_acct((long long)(path))
296 #define __sanitizer_syscall_post_acct(res, path) \
297 __sanitizer_syscall_post_impl_acct(res, (long long)(path))
298 #define __sanitizer_syscall_pre_compat_13_sigpending13() \
299 __sanitizer_syscall_pre_impl_compat_13_sigpending13()
300 #define __sanitizer_syscall_post_compat_13_sigpending13(res) \
301 __sanitizer_syscall_post_impl_compat_13_sigpending13(res)
302 #define __sanitizer_syscall_pre_compat_13_sigaltstack13(nss, oss) \
303 __sanitizer_syscall_pre_impl_compat_13_sigaltstack13((long long)(nss), \
305 #define __sanitizer_syscall_post_compat_13_sigaltstack13(res, nss, oss) \
306 __sanitizer_syscall_post_impl_compat_13_sigaltstack13(res, (long long)(nss), \
308 #define __sanitizer_syscall_pre_ioctl(fd, com, data) \
309 __sanitizer_syscall_pre_impl_ioctl((long long)(fd), (long long)(com), \
311 #define __sanitizer_syscall_post_ioctl(res, fd, com, data) \
312 __sanitizer_syscall_post_impl_ioctl(res, (long long)(fd), (long long)(com), \
314 #define __sanitizer_syscall_pre_compat_12_oreboot(opt) \
315 __sanitizer_syscall_pre_impl_compat_12_oreboot((long long)(opt))
316 #define __sanitizer_syscall_post_compat_12_oreboot(res, opt) \
317 __sanitizer_syscall_post_impl_compat_12_oreboot(res, (long long)(opt))
318 #define __sanitizer_syscall_pre_revoke(path) \
319 __sanitizer_syscall_pre_impl_revoke((long long)(path))
320 #define __sanitizer_syscall_post_revoke(res, path) \
321 __sanitizer_syscall_post_impl_revoke(res, (long long)(path))
322 #define __sanitizer_syscall_pre_symlink(path, link) \
323 __sanitizer_syscall_pre_impl_symlink((long long)(path), (long long)(link))
324 #define __sanitizer_syscall_post_symlink(res, path, link) \
325 __sanitizer_syscall_post_impl_symlink(res, (long long)(path), \
327 #define __sanitizer_syscall_pre_readlink(path, buf, count) \
328 __sanitizer_syscall_pre_impl_readlink((long long)(path), (long long)(buf), \
330 #define __sanitizer_syscall_post_readlink(res, path, buf, count) \
331 __sanitizer_syscall_post_impl_readlink(res, (long long)(path), \
332 (long long)(buf), (long long)(count))
333 #define __sanitizer_syscall_pre_execve(path, argp, envp) \
334 __sanitizer_syscall_pre_impl_execve((long long)(path), (long long)(argp), \
336 #define __sanitizer_syscall_post_execve(res, path, argp, envp) \
337 __sanitizer_syscall_post_impl_execve(res, (long long)(path), \
338 (long long)(argp), (long long)(envp))
339 #define __sanitizer_syscall_pre_umask(newmask) \
340 __sanitizer_syscall_pre_impl_umask((long long)(newmask))
341 #define __sanitizer_syscall_post_umask(res, newmask) \
342 __sanitizer_syscall_post_impl_umask(res, (long long)(newmask))
343 #define __sanitizer_syscall_pre_chroot(path) \
344 __sanitizer_syscall_pre_impl_chroot((long long)(path))
345 #define __sanitizer_syscall_post_chroot(res, path) \
346 __sanitizer_syscall_post_impl_chroot(res, (long long)(path))
347 #define __sanitizer_syscall_pre_compat_43_fstat43(fd, sb) \
348 __sanitizer_syscall_pre_impl_compat_43_fstat43((long long)(fd), \
350 #define __sanitizer_syscall_post_compat_43_fstat43(res, fd, sb) \
351 __sanitizer_syscall_post_impl_compat_43_fstat43(res, (long long)(fd), \
353 #define __sanitizer_syscall_pre_compat_43_ogetkerninfo(op, where, size, arg) \
354 __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo( \
355 (long long)(op), (long long)(where), (long long)(size), \
357 #define __sanitizer_syscall_post_compat_43_ogetkerninfo(res, op, where, size, \
359 __sanitizer_syscall_post_impl_compat_43_ogetkerninfo( \
360 res, (long long)(op), (long long)(where), (long long)(size), \
362 #define __sanitizer_syscall_pre_compat_43_ogetpagesize() \
363 __sanitizer_syscall_pre_impl_compat_43_ogetpagesize()
364 #define __sanitizer_syscall_post_compat_43_ogetpagesize(res) \
365 __sanitizer_syscall_post_impl_compat_43_ogetpagesize(res)
366 #define __sanitizer_syscall_pre_compat_12_msync(addr, len) \
367 __sanitizer_syscall_pre_impl_compat_12_msync((long long)(addr), \
369 #define __sanitizer_syscall_post_compat_12_msync(res, addr, len) \
370 __sanitizer_syscall_post_impl_compat_12_msync(res, (long long)(addr), \
372 #define __sanitizer_syscall_pre_vfork() __sanitizer_syscall_pre_impl_vfork()
373 #define __sanitizer_syscall_post_vfork(res) \
374 __sanitizer_syscall_post_impl_vfork(res)
375 /* syscall 67 has been skipped */
376 /* syscall 68 has been skipped */
377 /* syscall 69 has been skipped */
378 /* syscall 70 has been skipped */
379 #define __sanitizer_syscall_pre_compat_43_ommap(addr, len, prot, flags, fd, \
381 __sanitizer_syscall_pre_impl_compat_43_ommap( \
382 (long long)(addr), (long long)(len), (long long)(prot), \
383 (long long)(flags), (long long)(fd), (long long)(pos))
384 #define __sanitizer_syscall_post_compat_43_ommap(res, addr, len, prot, flags, \
386 __sanitizer_syscall_post_impl_compat_43_ommap( \
387 res, (long long)(addr), (long long)(len), (long long)(prot), \
388 (long long)(flags), (long long)(fd), (long long)(pos))
389 #define __sanitizer_syscall_pre_vadvise(anom) \
390 __sanitizer_syscall_pre_impl_vadvise((long long)(anom))
391 #define __sanitizer_syscall_post_vadvise(res, anom) \
392 __sanitizer_syscall_post_impl_vadvise(res, (long long)(anom))
393 #define __sanitizer_syscall_pre_munmap(addr, len) \
394 __sanitizer_syscall_pre_impl_munmap((long long)(addr), (long long)(len))
395 #define __sanitizer_syscall_post_munmap(res, addr, len) \
396 __sanitizer_syscall_post_impl_munmap(res, (long long)(addr), (long long)(len))
397 #define __sanitizer_syscall_pre_mprotect(addr, len, prot) \
398 __sanitizer_syscall_pre_impl_mprotect((long long)(addr), (long long)(len), \
400 #define __sanitizer_syscall_post_mprotect(res, addr, len, prot) \
401 __sanitizer_syscall_post_impl_mprotect(res, (long long)(addr), \
402 (long long)(len), (long long)(prot))
403 #define __sanitizer_syscall_pre_madvise(addr, len, behav) \
404 __sanitizer_syscall_pre_impl_madvise((long long)(addr), (long long)(len), \
406 #define __sanitizer_syscall_post_madvise(res, addr, len, behav) \
407 __sanitizer_syscall_post_impl_madvise(res, (long long)(addr), \
408 (long long)(len), (long long)(behav))
409 /* syscall 76 has been skipped */
410 /* syscall 77 has been skipped */
411 #define __sanitizer_syscall_pre_mincore(addr, len, vec) \
412 __sanitizer_syscall_pre_impl_mincore((long long)(addr), (long long)(len), \
414 #define __sanitizer_syscall_post_mincore(res, addr, len, vec) \
415 __sanitizer_syscall_post_impl_mincore(res, (long long)(addr), \
416 (long long)(len), (long long)(vec))
417 #define __sanitizer_syscall_pre_getgroups(gidsetsize, gidset) \
418 __sanitizer_syscall_pre_impl_getgroups((long long)(gidsetsize), \
420 #define __sanitizer_syscall_post_getgroups(res, gidsetsize, gidset) \
421 __sanitizer_syscall_post_impl_getgroups(res, (long long)(gidsetsize), \
423 #define __sanitizer_syscall_pre_setgroups(gidsetsize, gidset) \
424 __sanitizer_syscall_pre_impl_setgroups((long long)(gidsetsize), \
426 #define __sanitizer_syscall_post_setgroups(res, gidsetsize, gidset) \
427 __sanitizer_syscall_post_impl_setgroups(res, (long long)(gidsetsize), \
429 #define __sanitizer_syscall_pre_getpgrp() __sanitizer_syscall_pre_impl_getpgrp()
430 #define __sanitizer_syscall_post_getpgrp(res) \
431 __sanitizer_syscall_post_impl_getpgrp(res)
432 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \
433 __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid))
434 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \
435 __sanitizer_syscall_post_impl_setpgid(res, (long long)(pid), \
437 #define __sanitizer_syscall_pre_compat_50_setitimer(which, itv, oitv) \
438 __sanitizer_syscall_pre_impl_compat_50_setitimer( \
439 (long long)(which), (long long)(itv), (long long)(oitv))
440 #define __sanitizer_syscall_post_compat_50_setitimer(res, which, itv, oitv) \
441 __sanitizer_syscall_post_impl_compat_50_setitimer( \
442 res, (long long)(which), (long long)(itv), (long long)(oitv))
443 #define __sanitizer_syscall_pre_compat_43_owait() \
444 __sanitizer_syscall_pre_impl_compat_43_owait()
445 #define __sanitizer_syscall_post_compat_43_owait(res) \
446 __sanitizer_syscall_post_impl_compat_43_owait(res)
447 #define __sanitizer_syscall_pre_compat_12_oswapon(name) \
448 __sanitizer_syscall_pre_impl_compat_12_oswapon((long long)(name))
449 #define __sanitizer_syscall_post_compat_12_oswapon(res, name) \
450 __sanitizer_syscall_post_impl_compat_12_oswapon(res, (long long)(name))
451 #define __sanitizer_syscall_pre_compat_50_getitimer(which, itv) \
452 __sanitizer_syscall_pre_impl_compat_50_getitimer((long long)(which), \
454 #define __sanitizer_syscall_post_compat_50_getitimer(res, which, itv) \
455 __sanitizer_syscall_post_impl_compat_50_getitimer(res, (long long)(which), \
457 #define __sanitizer_syscall_pre_compat_43_ogethostname(hostname, len) \
458 __sanitizer_syscall_pre_impl_compat_43_ogethostname((long long)(hostname), \
460 #define __sanitizer_syscall_post_compat_43_ogethostname(res, hostname, len) \
461 __sanitizer_syscall_post_impl_compat_43_ogethostname( \
462 res, (long long)(hostname), (long long)(len))
463 #define __sanitizer_syscall_pre_compat_43_osethostname(hostname, len) \
464 __sanitizer_syscall_pre_impl_compat_43_osethostname((long long)(hostname), \
466 #define __sanitizer_syscall_post_compat_43_osethostname(res, hostname, len) \
467 __sanitizer_syscall_post_impl_compat_43_osethostname( \
468 res, (long long)(hostname), (long long)(len))
469 #define __sanitizer_syscall_pre_compat_43_ogetdtablesize() \
470 __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize()
471 #define __sanitizer_syscall_post_compat_43_ogetdtablesize(res) \
472 __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(res)
473 #define __sanitizer_syscall_pre_dup2(from, to) \
474 __sanitizer_syscall_pre_impl_dup2((long long)(from), (long long)(to))
475 #define __sanitizer_syscall_post_dup2(res, from, to) \
476 __sanitizer_syscall_post_impl_dup2(res, (long long)(from), (long long)(to))
477 #define __sanitizer_syscall_pre_getrandom(buf, buflen, flags) \
478 __sanitizer_syscall_pre_impl_getrandom( \
479 (long long)(buf), (long long)(buflen), (long long)(flags))
480 #define __sanitizer_syscall_post_getrandom(res, buf, buflen, flags) \
481 __sanitizer_syscall_post_impl_getrandom( \
482 res, (long long)(buf), (long long)(buflen), (long long)(flags))
483 #define __sanitizer_syscall_pre_fcntl(fd, cmd, arg) \
484 __sanitizer_syscall_pre_impl_fcntl((long long)(fd), (long long)(cmd), \
486 #define __sanitizer_syscall_post_fcntl(res, fd, cmd, arg) \
487 __sanitizer_syscall_post_impl_fcntl(res, (long long)(fd), (long long)(cmd), \
489 #define __sanitizer_syscall_pre_compat_50_select(nd, in, ou, ex, tv) \
490 __sanitizer_syscall_pre_impl_compat_50_select( \
491 (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
493 #define __sanitizer_syscall_post_compat_50_select(res, nd, in, ou, ex, tv) \
494 __sanitizer_syscall_post_impl_compat_50_select( \
495 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
497 /* syscall 94 has been skipped */
498 #define __sanitizer_syscall_pre_fsync(fd) \
499 __sanitizer_syscall_pre_impl_fsync((long long)(fd))
500 #define __sanitizer_syscall_post_fsync(res, fd) \
501 __sanitizer_syscall_post_impl_fsync(res, (long long)(fd))
502 #define __sanitizer_syscall_pre_setpriority(which, who, prio) \
503 __sanitizer_syscall_pre_impl_setpriority( \
504 (long long)(which), (long long)(who), (long long)(prio))
505 #define __sanitizer_syscall_post_setpriority(res, which, who, prio) \
506 __sanitizer_syscall_post_impl_setpriority( \
507 res, (long long)(which), (long long)(who), (long long)(prio))
508 #define __sanitizer_syscall_pre_compat_30_socket(domain, type, protocol) \
509 __sanitizer_syscall_pre_impl_compat_30_socket( \
510 (long long)(domain), (long long)(type), (long long)(protocol))
511 #define __sanitizer_syscall_post_compat_30_socket(res, domain, type, protocol) \
512 __sanitizer_syscall_post_impl_compat_30_socket( \
513 res, (long long)(domain), (long long)(type), (long long)(protocol))
514 #define __sanitizer_syscall_pre_connect(s, name, namelen) \
515 __sanitizer_syscall_pre_impl_connect((long long)(s), (long long)(name), \
516 (long long)(namelen))
517 #define __sanitizer_syscall_post_connect(res, s, name, namelen) \
518 __sanitizer_syscall_post_impl_connect( \
519 res, (long long)(s), (long long)(name), (long long)(namelen))
520 #define __sanitizer_syscall_pre_compat_43_oaccept(s, name, anamelen) \
521 __sanitizer_syscall_pre_impl_compat_43_oaccept( \
522 (long long)(s), (long long)(name), (long long)(anamelen))
523 #define __sanitizer_syscall_post_compat_43_oaccept(res, s, name, anamelen) \
524 __sanitizer_syscall_post_impl_compat_43_oaccept( \
525 res, (long long)(s), (long long)(name), (long long)(anamelen))
526 #define __sanitizer_syscall_pre_getpriority(which, who) \
527 __sanitizer_syscall_pre_impl_getpriority((long long)(which), (long long)(who))
528 #define __sanitizer_syscall_post_getpriority(res, which, who) \
529 __sanitizer_syscall_post_impl_getpriority(res, (long long)(which), \
531 #define __sanitizer_syscall_pre_compat_43_osend(s, buf, len, flags) \
532 __sanitizer_syscall_pre_impl_compat_43_osend( \
533 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
534 #define __sanitizer_syscall_post_compat_43_osend(res, s, buf, len, flags) \
535 __sanitizer_syscall_post_impl_compat_43_osend( \
536 res, (long long)(s), (long long)(buf), (long long)(len), \
538 #define __sanitizer_syscall_pre_compat_43_orecv(s, buf, len, flags) \
539 __sanitizer_syscall_pre_impl_compat_43_orecv( \
540 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags))
541 #define __sanitizer_syscall_post_compat_43_orecv(res, s, buf, len, flags) \
542 __sanitizer_syscall_post_impl_compat_43_orecv( \
543 res, (long long)(s), (long long)(buf), (long long)(len), \
545 #define __sanitizer_syscall_pre_compat_13_sigreturn13(sigcntxp) \
546 __sanitizer_syscall_pre_impl_compat_13_sigreturn13((long long)(sigcntxp))
547 #define __sanitizer_syscall_post_compat_13_sigreturn13(res, sigcntxp) \
548 __sanitizer_syscall_post_impl_compat_13_sigreturn13(res, \
549 (long long)(sigcntxp))
550 #define __sanitizer_syscall_pre_bind(s, name, namelen) \
551 __sanitizer_syscall_pre_impl_bind((long long)(s), (long long)(name), \
552 (long long)(namelen))
553 #define __sanitizer_syscall_post_bind(res, s, name, namelen) \
554 __sanitizer_syscall_post_impl_bind(res, (long long)(s), (long long)(name), \
555 (long long)(namelen))
556 #define __sanitizer_syscall_pre_setsockopt(s, level, name, val, valsize) \
557 __sanitizer_syscall_pre_impl_setsockopt((long long)(s), (long long)(level), \
558 (long long)(name), (long long)(val), \
559 (long long)(valsize))
560 #define __sanitizer_syscall_post_setsockopt(res, s, level, name, val, valsize) \
561 __sanitizer_syscall_post_impl_setsockopt( \
562 res, (long long)(s), (long long)(level), (long long)(name), \
563 (long long)(val), (long long)(valsize))
564 #define __sanitizer_syscall_pre_listen(s, backlog) \
565 __sanitizer_syscall_pre_impl_listen((long long)(s), (long long)(backlog))
566 #define __sanitizer_syscall_post_listen(res, s, backlog) \
567 __sanitizer_syscall_post_impl_listen(res, (long long)(s), \
568 (long long)(backlog))
569 /* syscall 107 has been skipped */
570 #define __sanitizer_syscall_pre_compat_43_osigvec(signum, nsv, osv) \
571 __sanitizer_syscall_pre_impl_compat_43_osigvec( \
572 (long long)(signum), (long long)(nsv), (long long)(osv))
573 #define __sanitizer_syscall_post_compat_43_osigvec(res, signum, nsv, osv) \
574 __sanitizer_syscall_post_impl_compat_43_osigvec( \
575 res, (long long)(signum), (long long)(nsv), (long long)(osv))
576 #define __sanitizer_syscall_pre_compat_43_osigblock(mask) \
577 __sanitizer_syscall_pre_impl_compat_43_osigblock((long long)(mask))
578 #define __sanitizer_syscall_post_compat_43_osigblock(res, mask) \
579 __sanitizer_syscall_post_impl_compat_43_osigblock(res, (long long)(mask))
580 #define __sanitizer_syscall_pre_compat_43_osigsetmask(mask) \
581 __sanitizer_syscall_pre_impl_compat_43_osigsetmask((long long)(mask))
582 #define __sanitizer_syscall_post_compat_43_osigsetmask(res, mask) \
583 __sanitizer_syscall_post_impl_compat_43_osigsetmask(res, (long long)(mask))
584 #define __sanitizer_syscall_pre_compat_13_sigsuspend13(mask) \
585 __sanitizer_syscall_pre_impl_compat_13_sigsuspend13((long long)(mask))
586 #define __sanitizer_syscall_post_compat_13_sigsuspend13(res, mask) \
587 __sanitizer_syscall_post_impl_compat_13_sigsuspend13(res, (long long)(mask))
588 #define __sanitizer_syscall_pre_compat_43_osigstack(nss, oss) \
589 __sanitizer_syscall_pre_impl_compat_43_osigstack((long long)(nss), \
591 #define __sanitizer_syscall_post_compat_43_osigstack(res, nss, oss) \
592 __sanitizer_syscall_post_impl_compat_43_osigstack(res, (long long)(nss), \
594 #define __sanitizer_syscall_pre_compat_43_orecvmsg(s, msg, flags) \
595 __sanitizer_syscall_pre_impl_compat_43_orecvmsg( \
596 (long long)(s), (long long)(msg), (long long)(flags))
597 #define __sanitizer_syscall_post_compat_43_orecvmsg(res, s, msg, flags) \
598 __sanitizer_syscall_post_impl_compat_43_orecvmsg( \
599 res, (long long)(s), (long long)(msg), (long long)(flags))
600 #define __sanitizer_syscall_pre_compat_43_osendmsg(s, msg, flags) \
601 __sanitizer_syscall_pre_impl_compat_43_osendmsg( \
602 (long long)(s), (long long)(msg), (long long)(flags))
603 #define __sanitizer_syscall_post_compat_43_osendmsg(res, s, msg, flags) \
604 __sanitizer_syscall_post_impl_compat_43_osendmsg( \
605 res, (long long)(s), (long long)(msg), (long long)(flags))
606 /* syscall 115 has been skipped */
607 #define __sanitizer_syscall_pre_compat_50_gettimeofday(tp, tzp) \
608 __sanitizer_syscall_pre_impl_compat_50_gettimeofday((long long)(tp), \
610 #define __sanitizer_syscall_post_compat_50_gettimeofday(res, tp, tzp) \
611 __sanitizer_syscall_post_impl_compat_50_gettimeofday(res, (long long)(tp), \
613 #define __sanitizer_syscall_pre_compat_50_getrusage(who, rusage) \
614 __sanitizer_syscall_pre_impl_compat_50_getrusage((long long)(who), \
616 #define __sanitizer_syscall_post_compat_50_getrusage(res, who, rusage) \
617 __sanitizer_syscall_post_impl_compat_50_getrusage(res, (long long)(who), \
619 #define __sanitizer_syscall_pre_getsockopt(s, level, name, val, avalsize) \
620 __sanitizer_syscall_pre_impl_getsockopt((long long)(s), (long long)(level), \
621 (long long)(name), (long long)(val), \
622 (long long)(avalsize))
623 #define __sanitizer_syscall_post_getsockopt(res, s, level, name, val, \
625 __sanitizer_syscall_post_impl_getsockopt( \
626 res, (long long)(s), (long long)(level), (long long)(name), \
627 (long long)(val), (long long)(avalsize))
628 /* syscall 119 has been skipped */
629 #define __sanitizer_syscall_pre_readv(fd, iovp, iovcnt) \
630 __sanitizer_syscall_pre_impl_readv((long long)(fd), (long long)(iovp), \
632 #define __sanitizer_syscall_post_readv(res, fd, iovp, iovcnt) \
633 __sanitizer_syscall_post_impl_readv(res, (long long)(fd), (long long)(iovp), \
635 #define __sanitizer_syscall_pre_writev(fd, iovp, iovcnt) \
636 __sanitizer_syscall_pre_impl_writev((long long)(fd), (long long)(iovp), \
638 #define __sanitizer_syscall_post_writev(res, fd, iovp, iovcnt) \
639 __sanitizer_syscall_post_impl_writev(res, (long long)(fd), \
640 (long long)(iovp), (long long)(iovcnt))
641 #define __sanitizer_syscall_pre_compat_50_settimeofday(tv, tzp) \
642 __sanitizer_syscall_pre_impl_compat_50_settimeofday((long long)(tv), \
644 #define __sanitizer_syscall_post_compat_50_settimeofday(res, tv, tzp) \
645 __sanitizer_syscall_post_impl_compat_50_settimeofday(res, (long long)(tv), \
647 #define __sanitizer_syscall_pre_fchown(fd, uid, gid) \
648 __sanitizer_syscall_pre_impl_fchown((long long)(fd), (long long)(uid), \
650 #define __sanitizer_syscall_post_fchown(res, fd, uid, gid) \
651 __sanitizer_syscall_post_impl_fchown(res, (long long)(fd), (long long)(uid), \
653 #define __sanitizer_syscall_pre_fchmod(fd, mode) \
654 __sanitizer_syscall_pre_impl_fchmod((long long)(fd), (long long)(mode))
655 #define __sanitizer_syscall_post_fchmod(res, fd, mode) \
656 __sanitizer_syscall_post_impl_fchmod(res, (long long)(fd), (long long)(mode))
657 #define __sanitizer_syscall_pre_compat_43_orecvfrom(s, buf, len, flags, from, \
659 __sanitizer_syscall_pre_impl_compat_43_orecvfrom( \
660 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags), \
661 (long long)(from), (long long)(fromlenaddr))
662 #define __sanitizer_syscall_post_compat_43_orecvfrom(res, s, buf, len, flags, \
664 __sanitizer_syscall_post_impl_compat_43_orecvfrom( \
665 res, (long long)(s), (long long)(buf), (long long)(len), \
666 (long long)(flags), (long long)(from), (long long)(fromlenaddr))
667 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \
668 __sanitizer_syscall_pre_impl_setreuid((long long)(ruid), (long long)(euid))
669 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \
670 __sanitizer_syscall_post_impl_setreuid(res, (long long)(ruid), \
672 #define __sanitizer_syscall_pre_setregid(rgid, egid) \
673 __sanitizer_syscall_pre_impl_setregid((long long)(rgid), (long long)(egid))
674 #define __sanitizer_syscall_post_setregid(res, rgid, egid) \
675 __sanitizer_syscall_post_impl_setregid(res, (long long)(rgid), \
677 #define __sanitizer_syscall_pre_rename(from, to) \
678 __sanitizer_syscall_pre_impl_rename((long long)(from), (long long)(to))
679 #define __sanitizer_syscall_post_rename(res, from, to) \
680 __sanitizer_syscall_post_impl_rename(res, (long long)(from), (long long)(to))
681 #define __sanitizer_syscall_pre_compat_43_otruncate(path, length) \
682 __sanitizer_syscall_pre_impl_compat_43_otruncate((long long)(path), \
684 #define __sanitizer_syscall_post_compat_43_otruncate(res, path, length) \
685 __sanitizer_syscall_post_impl_compat_43_otruncate(res, (long long)(path), \
687 #define __sanitizer_syscall_pre_compat_43_oftruncate(fd, length) \
688 __sanitizer_syscall_pre_impl_compat_43_oftruncate((long long)(fd), \
690 #define __sanitizer_syscall_post_compat_43_oftruncate(res, fd, length) \
691 __sanitizer_syscall_post_impl_compat_43_oftruncate(res, (long long)(fd), \
693 #define __sanitizer_syscall_pre_flock(fd, how) \
694 __sanitizer_syscall_pre_impl_flock((long long)(fd), (long long)(how))
695 #define __sanitizer_syscall_post_flock(res, fd, how) \
696 __sanitizer_syscall_post_impl_flock(res, (long long)(fd), (long long)(how))
697 #define __sanitizer_syscall_pre_mkfifo(path, mode) \
698 __sanitizer_syscall_pre_impl_mkfifo((long long)(path), (long long)(mode))
699 #define __sanitizer_syscall_post_mkfifo(res, path, mode) \
700 __sanitizer_syscall_post_impl_mkfifo(res, (long long)(path), \
702 #define __sanitizer_syscall_pre_sendto(s, buf, len, flags, to, tolen) \
703 __sanitizer_syscall_pre_impl_sendto((long long)(s), (long long)(buf), \
704 (long long)(len), (long long)(flags), \
705 (long long)(to), (long long)(tolen))
706 #define __sanitizer_syscall_post_sendto(res, s, buf, len, flags, to, tolen) \
707 __sanitizer_syscall_post_impl_sendto(res, (long long)(s), (long long)(buf), \
708 (long long)(len), (long long)(flags), \
709 (long long)(to), (long long)(tolen))
710 #define __sanitizer_syscall_pre_shutdown(s, how) \
711 __sanitizer_syscall_pre_impl_shutdown((long long)(s), (long long)(how))
712 #define __sanitizer_syscall_post_shutdown(res, s, how) \
713 __sanitizer_syscall_post_impl_shutdown(res, (long long)(s), (long long)(how))
714 #define __sanitizer_syscall_pre_socketpair(domain, type, protocol, rsv) \
715 __sanitizer_syscall_pre_impl_socketpair( \
716 (long long)(domain), (long long)(type), (long long)(protocol), \
718 #define __sanitizer_syscall_post_socketpair(res, domain, type, protocol, rsv) \
719 __sanitizer_syscall_post_impl_socketpair( \
720 res, (long long)(domain), (long long)(type), (long long)(protocol), \
722 #define __sanitizer_syscall_pre_mkdir(path, mode) \
723 __sanitizer_syscall_pre_impl_mkdir((long long)(path), (long long)(mode))
724 #define __sanitizer_syscall_post_mkdir(res, path, mode) \
725 __sanitizer_syscall_post_impl_mkdir(res, (long long)(path), (long long)(mode))
726 #define __sanitizer_syscall_pre_rmdir(path) \
727 __sanitizer_syscall_pre_impl_rmdir((long long)(path))
728 #define __sanitizer_syscall_post_rmdir(res, path) \
729 __sanitizer_syscall_post_impl_rmdir(res, (long long)(path))
730 #define __sanitizer_syscall_pre_compat_50_utimes(path, tptr) \
731 __sanitizer_syscall_pre_impl_compat_50_utimes((long long)(path), \
733 #define __sanitizer_syscall_post_compat_50_utimes(res, path, tptr) \
734 __sanitizer_syscall_post_impl_compat_50_utimes(res, (long long)(path), \
736 /* syscall 139 has been skipped */
737 #define __sanitizer_syscall_pre_compat_50_adjtime(delta, olddelta) \
738 __sanitizer_syscall_pre_impl_compat_50_adjtime((long long)(delta), \
739 (long long)(olddelta))
740 #define __sanitizer_syscall_post_compat_50_adjtime(res, delta, olddelta) \
741 __sanitizer_syscall_post_impl_compat_50_adjtime(res, (long long)(delta), \
742 (long long)(olddelta))
743 #define __sanitizer_syscall_pre_compat_43_ogetpeername(fdes, asa, alen) \
744 __sanitizer_syscall_pre_impl_compat_43_ogetpeername( \
745 (long long)(fdes), (long long)(asa), (long long)(alen))
746 #define __sanitizer_syscall_post_compat_43_ogetpeername(res, fdes, asa, alen) \
747 __sanitizer_syscall_post_impl_compat_43_ogetpeername( \
748 res, (long long)(fdes), (long long)(asa), (long long)(alen))
749 #define __sanitizer_syscall_pre_compat_43_ogethostid() \
750 __sanitizer_syscall_pre_impl_compat_43_ogethostid()
751 #define __sanitizer_syscall_post_compat_43_ogethostid(res) \
752 __sanitizer_syscall_post_impl_compat_43_ogethostid(res)
753 #define __sanitizer_syscall_pre_compat_43_osethostid(hostid) \
754 __sanitizer_syscall_pre_impl_compat_43_osethostid((long long)(hostid))
755 #define __sanitizer_syscall_post_compat_43_osethostid(res, hostid) \
756 __sanitizer_syscall_post_impl_compat_43_osethostid(res, (long long)(hostid))
757 #define __sanitizer_syscall_pre_compat_43_ogetrlimit(which, rlp) \
758 __sanitizer_syscall_pre_impl_compat_43_ogetrlimit((long long)(which), \
760 #define __sanitizer_syscall_post_compat_43_ogetrlimit(res, which, rlp) \
761 __sanitizer_syscall_post_impl_compat_43_ogetrlimit(res, (long long)(which), \
763 #define __sanitizer_syscall_pre_compat_43_osetrlimit(which, rlp) \
764 __sanitizer_syscall_pre_impl_compat_43_osetrlimit((long long)(which), \
766 #define __sanitizer_syscall_post_compat_43_osetrlimit(res, which, rlp) \
767 __sanitizer_syscall_post_impl_compat_43_osetrlimit(res, (long long)(which), \
769 #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \
770 __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \
772 #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \
773 __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \
775 #define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid()
776 #define __sanitizer_syscall_post_setsid(res) \
777 __sanitizer_syscall_post_impl_setsid(res)
778 #define __sanitizer_syscall_pre_compat_50_quotactl(path, cmd, uid, arg) \
779 __sanitizer_syscall_pre_impl_compat_50_quotactl( \
780 (long long)(path), (long long)(cmd), (long long)(uid), (long long)(arg))
781 #define __sanitizer_syscall_post_compat_50_quotactl(res, path, cmd, uid, arg) \
782 __sanitizer_syscall_post_impl_compat_50_quotactl( \
783 res, (long long)(path), (long long)(cmd), (long long)(uid), \
785 #define __sanitizer_syscall_pre_compat_43_oquota() \
786 __sanitizer_syscall_pre_impl_compat_43_oquota()
787 #define __sanitizer_syscall_post_compat_43_oquota(res) \
788 __sanitizer_syscall_post_impl_compat_43_oquota(res)
789 #define __sanitizer_syscall_pre_compat_43_ogetsockname(fdec, asa, alen) \
790 __sanitizer_syscall_pre_impl_compat_43_ogetsockname( \
791 (long long)(fdec), (long long)(asa), (long long)(alen))
792 #define __sanitizer_syscall_post_compat_43_ogetsockname(res, fdec, asa, alen) \
793 __sanitizer_syscall_post_impl_compat_43_ogetsockname( \
794 res, (long long)(fdec), (long long)(asa), (long long)(alen))
795 /* syscall 151 has been skipped */
796 /* syscall 152 has been skipped */
797 /* syscall 153 has been skipped */
798 /* syscall 154 has been skipped */
799 #define __sanitizer_syscall_pre_nfssvc(flag, argp) \
800 __sanitizer_syscall_pre_impl_nfssvc((long long)(flag), (long long)(argp))
801 #define __sanitizer_syscall_post_nfssvc(res, flag, argp) \
802 __sanitizer_syscall_post_impl_nfssvc(res, (long long)(flag), \
804 #define __sanitizer_syscall_pre_compat_43_ogetdirentries(fd, buf, count, \
806 __sanitizer_syscall_pre_impl_compat_43_ogetdirentries( \
807 (long long)(fd), (long long)(buf), (long long)(count), \
809 #define __sanitizer_syscall_post_compat_43_ogetdirentries(res, fd, buf, count, \
811 __sanitizer_syscall_post_impl_compat_43_ogetdirentries( \
812 res, (long long)(fd), (long long)(buf), (long long)(count), \
814 #define __sanitizer_syscall_pre_compat_20_statfs(path, buf) \
815 __sanitizer_syscall_pre_impl_compat_20_statfs((long long)(path), \
817 #define __sanitizer_syscall_post_compat_20_statfs(res, path, buf) \
818 __sanitizer_syscall_post_impl_compat_20_statfs(res, (long long)(path), \
820 #define __sanitizer_syscall_pre_compat_20_fstatfs(fd, buf) \
821 __sanitizer_syscall_pre_impl_compat_20_fstatfs((long long)(fd), \
823 #define __sanitizer_syscall_post_compat_20_fstatfs(res, fd, buf) \
824 __sanitizer_syscall_post_impl_compat_20_fstatfs(res, (long long)(fd), \
826 /* syscall 159 has been skipped */
827 /* syscall 160 has been skipped */
828 #define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp) \
829 __sanitizer_syscall_pre_impl_compat_30_getfh((long long)(fname), \
831 #define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp) \
832 __sanitizer_syscall_post_impl_compat_30_getfh(res, (long long)(fname), \
834 #define __sanitizer_syscall_pre_compat_09_ogetdomainname(domainname, len) \
835 __sanitizer_syscall_pre_impl_compat_09_ogetdomainname( \
836 (long long)(domainname), (long long)(len))
837 #define __sanitizer_syscall_post_compat_09_ogetdomainname(res, domainname, \
839 __sanitizer_syscall_post_impl_compat_09_ogetdomainname( \
840 res, (long long)(domainname), (long long)(len))
841 #define __sanitizer_syscall_pre_compat_09_osetdomainname(domainname, len) \
842 __sanitizer_syscall_pre_impl_compat_09_osetdomainname( \
843 (long long)(domainname), (long long)(len))
844 #define __sanitizer_syscall_post_compat_09_osetdomainname(res, domainname, \
846 __sanitizer_syscall_post_impl_compat_09_osetdomainname( \
847 res, (long long)(domainname), (long long)(len))
848 #define __sanitizer_syscall_pre_compat_09_ouname(name) \
849 __sanitizer_syscall_pre_impl_compat_09_ouname((long long)(name))
850 #define __sanitizer_syscall_post_compat_09_ouname(res, name) \
851 __sanitizer_syscall_post_impl_compat_09_ouname(res, (long long)(name))
852 #define __sanitizer_syscall_pre_sysarch(op, parms) \
853 __sanitizer_syscall_pre_impl_sysarch((long long)(op), (long long)(parms))
854 #define __sanitizer_syscall_post_sysarch(res, op, parms) \
855 __sanitizer_syscall_post_impl_sysarch(res, (long long)(op), \
857 #define __sanitizer_syscall_pre___futex(uaddr, op, val, timeout, uaddr2, val2, \
859 __sanitizer_syscall_pre_impl___futex((long long)(uaddr), (long long)(op), \
860 (long long)(val), (long long)(timeout), \
861 (long long)(uaddr2), (long long)(val2), \
863 #define __sanitizer_syscall_post___futex(res, uaddr, op, val, timeout, uaddr2, \
865 __sanitizer_syscall_post_impl___futex( \
866 res, (long long)(uaddr), (long long)(op), (long long)(val), \
867 (long long)(timeout), (long long)(uaddr2), (long long)(val2), \
869 #define __sanitizer_syscall_pre___futex_set_robust_list(head, len) \
870 __sanitizer_syscall_pre_impl___futex_set_robust_list((long long)(head), \
872 #define __sanitizer_syscall_post___futex_set_robust_list(res, head, len) \
873 __sanitizer_syscall_post_impl___futex_set_robust_list( \
874 res, (long long)(head), (long long)(len))
875 #define __sanitizer_syscall_pre___futex_get_robust_list(lwpid, headp, lenp) \
876 __sanitizer_syscall_pre_impl___futex_get_robust_list( \
877 (long long)(lwpid), (long long)(headp), (long long)(lenp))
878 #define __sanitizer_syscall_post___futex_get_robust_list(res, lwpid, headp, \
880 __sanitizer_syscall_post_impl___futex_get_robust_list( \
881 res, (long long)(lwpid), (long long)(headp), (long long)(lenp))
883 #define __sanitizer_syscall_pre_compat_10_osemsys(which, a2, a3, a4, a5) \
884 __sanitizer_syscall_pre_impl_compat_10_osemsys( \
885 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \
887 #define __sanitizer_syscall_post_compat_10_osemsys(res, which, a2, a3, a4, a5) \
888 __sanitizer_syscall_post_impl_compat_10_osemsys( \
889 res, (long long)(which), (long long)(a2), (long long)(a3), \
890 (long long)(a4), (long long)(a5))
892 /* syscall 169 has been skipped */
895 #define __sanitizer_syscall_pre_compat_10_omsgsys(which, a2, a3, a4, a5, a6) \
896 __sanitizer_syscall_pre_impl_compat_10_omsgsys( \
897 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \
898 (long long)(a5), (long long)(a6))
899 #define __sanitizer_syscall_post_compat_10_omsgsys(res, which, a2, a3, a4, a5, \
901 __sanitizer_syscall_post_impl_compat_10_omsgsys( \
902 res, (long long)(which), (long long)(a2), (long long)(a3), \
903 (long long)(a4), (long long)(a5), (long long)(a6))
905 /* syscall 170 has been skipped */
908 #define __sanitizer_syscall_pre_compat_10_oshmsys(which, a2, a3, a4) \
909 __sanitizer_syscall_pre_impl_compat_10_oshmsys( \
910 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4))
911 #define __sanitizer_syscall_post_compat_10_oshmsys(res, which, a2, a3, a4) \
912 __sanitizer_syscall_post_impl_compat_10_oshmsys( \
913 res, (long long)(which), (long long)(a2), (long long)(a3), \
916 /* syscall 171 has been skipped */
918 /* syscall 172 has been skipped */
919 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \
920 __sanitizer_syscall_pre_impl_pread((long long)(fd), (long long)(buf), \
921 (long long)(nbyte), (long long)(PAD), \
923 #define __sanitizer_syscall_post_pread(res, fd, buf, nbyte, PAD, offset) \
924 __sanitizer_syscall_post_impl_pread(res, (long long)(fd), (long long)(buf), \
925 (long long)(nbyte), (long long)(PAD), \
927 #define __sanitizer_syscall_pre_pwrite(fd, buf, nbyte, PAD, offset) \
928 __sanitizer_syscall_pre_impl_pwrite((long long)(fd), (long long)(buf), \
929 (long long)(nbyte), (long long)(PAD), \
931 #define __sanitizer_syscall_post_pwrite(res, fd, buf, nbyte, PAD, offset) \
932 __sanitizer_syscall_post_impl_pwrite(res, (long long)(fd), (long long)(buf), \
933 (long long)(nbyte), (long long)(PAD), \
935 #define __sanitizer_syscall_pre_compat_30_ntp_gettime(ntvp) \
936 __sanitizer_syscall_pre_impl_compat_30_ntp_gettime((long long)(ntvp))
937 #define __sanitizer_syscall_post_compat_30_ntp_gettime(res, ntvp) \
938 __sanitizer_syscall_post_impl_compat_30_ntp_gettime(res, (long long)(ntvp))
939 #if defined(NTP) || !defined(_KERNEL_OPT)
940 #define __sanitizer_syscall_pre_ntp_adjtime(tp) \
941 __sanitizer_syscall_pre_impl_ntp_adjtime((long long)(tp))
942 #define __sanitizer_syscall_post_ntp_adjtime(res, tp) \
943 __sanitizer_syscall_post_impl_ntp_adjtime(res, (long long)(tp))
945 /* syscall 176 has been skipped */
947 /* syscall 177 has been skipped */
948 /* syscall 178 has been skipped */
949 /* syscall 179 has been skipped */
950 /* syscall 180 has been skipped */
951 #define __sanitizer_syscall_pre_setgid(gid) \
952 __sanitizer_syscall_pre_impl_setgid((long long)(gid))
953 #define __sanitizer_syscall_post_setgid(res, gid) \
954 __sanitizer_syscall_post_impl_setgid(res, (long long)(gid))
955 #define __sanitizer_syscall_pre_setegid(egid) \
956 __sanitizer_syscall_pre_impl_setegid((long long)(egid))
957 #define __sanitizer_syscall_post_setegid(res, egid) \
958 __sanitizer_syscall_post_impl_setegid(res, (long long)(egid))
959 #define __sanitizer_syscall_pre_seteuid(euid) \
960 __sanitizer_syscall_pre_impl_seteuid((long long)(euid))
961 #define __sanitizer_syscall_post_seteuid(res, euid) \
962 __sanitizer_syscall_post_impl_seteuid(res, (long long)(euid))
963 #define __sanitizer_syscall_pre_lfs_bmapv(fsidp, blkiov, blkcnt) \
964 __sanitizer_syscall_pre_impl_lfs_bmapv( \
965 (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
966 #define __sanitizer_syscall_post_lfs_bmapv(res, fsidp, blkiov, blkcnt) \
967 __sanitizer_syscall_post_impl_lfs_bmapv( \
968 res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
969 #define __sanitizer_syscall_pre_lfs_markv(fsidp, blkiov, blkcnt) \
970 __sanitizer_syscall_pre_impl_lfs_markv( \
971 (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
972 #define __sanitizer_syscall_post_lfs_markv(res, fsidp, blkiov, blkcnt) \
973 __sanitizer_syscall_post_impl_lfs_markv( \
974 res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt))
975 #define __sanitizer_syscall_pre_lfs_segclean(fsidp, segment) \
976 __sanitizer_syscall_pre_impl_lfs_segclean((long long)(fsidp), \
977 (long long)(segment))
978 #define __sanitizer_syscall_post_lfs_segclean(res, fsidp, segment) \
979 __sanitizer_syscall_post_impl_lfs_segclean(res, (long long)(fsidp), \
980 (long long)(segment))
981 #define __sanitizer_syscall_pre_compat_50_lfs_segwait(fsidp, tv) \
982 __sanitizer_syscall_pre_impl_compat_50_lfs_segwait((long long)(fsidp), \
984 #define __sanitizer_syscall_post_compat_50_lfs_segwait(res, fsidp, tv) \
985 __sanitizer_syscall_post_impl_compat_50_lfs_segwait(res, (long long)(fsidp), \
987 #define __sanitizer_syscall_pre_compat_12_stat12(path, ub) \
988 __sanitizer_syscall_pre_impl_compat_12_stat12((long long)(path), \
990 #define __sanitizer_syscall_post_compat_12_stat12(res, path, ub) \
991 __sanitizer_syscall_post_impl_compat_12_stat12(res, (long long)(path), \
993 #define __sanitizer_syscall_pre_compat_12_fstat12(fd, sb) \
994 __sanitizer_syscall_pre_impl_compat_12_fstat12((long long)(fd), \
996 #define __sanitizer_syscall_post_compat_12_fstat12(res, fd, sb) \
997 __sanitizer_syscall_post_impl_compat_12_fstat12(res, (long long)(fd), \
999 #define __sanitizer_syscall_pre_compat_12_lstat12(path, ub) \
1000 __sanitizer_syscall_pre_impl_compat_12_lstat12((long long)(path), \
1002 #define __sanitizer_syscall_post_compat_12_lstat12(res, path, ub) \
1003 __sanitizer_syscall_post_impl_compat_12_lstat12(res, (long long)(path), \
1005 #define __sanitizer_syscall_pre_pathconf(path, name) \
1006 __sanitizer_syscall_pre_impl_pathconf((long long)(path), (long long)(name))
1007 #define __sanitizer_syscall_post_pathconf(res, path, name) \
1008 __sanitizer_syscall_post_impl_pathconf(res, (long long)(path), \
1010 #define __sanitizer_syscall_pre_fpathconf(fd, name) \
1011 __sanitizer_syscall_pre_impl_fpathconf((long long)(fd), (long long)(name))
1012 #define __sanitizer_syscall_post_fpathconf(res, fd, name) \
1013 __sanitizer_syscall_post_impl_fpathconf(res, (long long)(fd), \
1015 #define __sanitizer_syscall_pre_getsockopt2(s, level, name, val, avalsize) \
1016 __sanitizer_syscall_pre_impl_getsockopt2( \
1017 (long long)(s), (long long)(level), (long long)(name), (long long)(val), \
1018 (long long)(avalsize))
1019 #define __sanitizer_syscall_post_getsockopt2(res, s, level, name, val, \
1021 __sanitizer_syscall_post_impl_getsockopt2( \
1022 res, (long long)(s), (long long)(level), (long long)(name), \
1023 (long long)(val), (long long)(avalsize))
1024 #define __sanitizer_syscall_pre_getrlimit(which, rlp) \
1025 __sanitizer_syscall_pre_impl_getrlimit((long long)(which), (long long)(rlp))
1026 #define __sanitizer_syscall_post_getrlimit(res, which, rlp) \
1027 __sanitizer_syscall_post_impl_getrlimit(res, (long long)(which), \
1029 #define __sanitizer_syscall_pre_setrlimit(which, rlp) \
1030 __sanitizer_syscall_pre_impl_setrlimit((long long)(which), (long long)(rlp))
1031 #define __sanitizer_syscall_post_setrlimit(res, which, rlp) \
1032 __sanitizer_syscall_post_impl_setrlimit(res, (long long)(which), \
1034 #define __sanitizer_syscall_pre_compat_12_getdirentries(fd, buf, count, basep) \
1035 __sanitizer_syscall_pre_impl_compat_12_getdirentries( \
1036 (long long)(fd), (long long)(buf), (long long)(count), \
1038 #define __sanitizer_syscall_post_compat_12_getdirentries(res, fd, buf, count, \
1040 __sanitizer_syscall_post_impl_compat_12_getdirentries( \
1041 res, (long long)(fd), (long long)(buf), (long long)(count), \
1043 #define __sanitizer_syscall_pre_mmap(addr, len, prot, flags, fd, PAD, pos) \
1044 __sanitizer_syscall_pre_impl_mmap( \
1045 (long long)(addr), (long long)(len), (long long)(prot), \
1046 (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
1047 #define __sanitizer_syscall_post_mmap(res, addr, len, prot, flags, fd, PAD, \
1049 __sanitizer_syscall_post_impl_mmap( \
1050 res, (long long)(addr), (long long)(len), (long long)(prot), \
1051 (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos))
1052 #define __sanitizer_syscall_pre___syscall(code, arg0, arg1, arg2, arg3, arg4, \
1054 __sanitizer_syscall_pre_impl___syscall( \
1055 (long long)(code), (long long)(arg0), (long long)(arg1), \
1056 (long long)(arg2), (long long)(arg3), (long long)(arg4), \
1057 (long long)(arg5), (long long)(arg6), (long long)(arg7))
1058 #define __sanitizer_syscall_post___syscall(res, code, arg0, arg1, arg2, arg3, \
1059 arg4, arg5, arg6, arg7) \
1060 __sanitizer_syscall_post_impl___syscall( \
1061 res, (long long)(code), (long long)(arg0), (long long)(arg1), \
1062 (long long)(arg2), (long long)(arg3), (long long)(arg4), \
1063 (long long)(arg5), (long long)(arg6), (long long)(arg7))
1064 #define __sanitizer_syscall_pre_lseek(fd, PAD, offset, whence) \
1065 __sanitizer_syscall_pre_impl_lseek((long long)(fd), (long long)(PAD), \
1066 (long long)(offset), (long long)(whence))
1067 #define __sanitizer_syscall_post_lseek(res, fd, PAD, offset, whence) \
1068 __sanitizer_syscall_post_impl_lseek(res, (long long)(fd), (long long)(PAD), \
1069 (long long)(offset), \
1070 (long long)(whence))
1071 #define __sanitizer_syscall_pre_truncate(path, PAD, length) \
1072 __sanitizer_syscall_pre_impl_truncate((long long)(path), (long long)(PAD), \
1073 (long long)(length))
1074 #define __sanitizer_syscall_post_truncate(res, path, PAD, length) \
1075 __sanitizer_syscall_post_impl_truncate( \
1076 res, (long long)(path), (long long)(PAD), (long long)(length))
1077 #define __sanitizer_syscall_pre_ftruncate(fd, PAD, length) \
1078 __sanitizer_syscall_pre_impl_ftruncate((long long)(fd), (long long)(PAD), \
1079 (long long)(length))
1080 #define __sanitizer_syscall_post_ftruncate(res, fd, PAD, length) \
1081 __sanitizer_syscall_post_impl_ftruncate( \
1082 res, (long long)(fd), (long long)(PAD), (long long)(length))
1083 #define __sanitizer_syscall_pre___sysctl(name, namelen, oldv, oldlenp, newv, \
1085 __sanitizer_syscall_pre_impl___sysctl( \
1086 (long long)(name), (long long)(namelen), (long long)(oldv), \
1087 (long long)(oldlenp), (long long)(newv), (long long)(newlen))
1088 #define __sanitizer_syscall_post___sysctl(res, name, namelen, oldv, oldlenp, \
1090 __sanitizer_syscall_post_impl___sysctl( \
1091 res, (long long)(name), (long long)(namelen), (long long)(oldv), \
1092 (long long)(oldlenp), (long long)(newv), (long long)(newlen))
1093 #define __sanitizer_syscall_pre_mlock(addr, len) \
1094 __sanitizer_syscall_pre_impl_mlock((long long)(addr), (long long)(len))
1095 #define __sanitizer_syscall_post_mlock(res, addr, len) \
1096 __sanitizer_syscall_post_impl_mlock(res, (long long)(addr), (long long)(len))
1097 #define __sanitizer_syscall_pre_munlock(addr, len) \
1098 __sanitizer_syscall_pre_impl_munlock((long long)(addr), (long long)(len))
1099 #define __sanitizer_syscall_post_munlock(res, addr, len) \
1100 __sanitizer_syscall_post_impl_munlock(res, (long long)(addr), \
1102 #define __sanitizer_syscall_pre_undelete(path) \
1103 __sanitizer_syscall_pre_impl_undelete((long long)(path))
1104 #define __sanitizer_syscall_post_undelete(res, path) \
1105 __sanitizer_syscall_post_impl_undelete(res, (long long)(path))
1106 #define __sanitizer_syscall_pre_compat_50_futimes(fd, tptr) \
1107 __sanitizer_syscall_pre_impl_compat_50_futimes((long long)(fd), \
1109 #define __sanitizer_syscall_post_compat_50_futimes(res, fd, tptr) \
1110 __sanitizer_syscall_post_impl_compat_50_futimes(res, (long long)(fd), \
1112 #define __sanitizer_syscall_pre_getpgid(pid) \
1113 __sanitizer_syscall_pre_impl_getpgid((long long)(pid))
1114 #define __sanitizer_syscall_post_getpgid(res, pid) \
1115 __sanitizer_syscall_post_impl_getpgid(res, (long long)(pid))
1116 #define __sanitizer_syscall_pre_reboot(opt, bootstr) \
1117 __sanitizer_syscall_pre_impl_reboot((long long)(opt), (long long)(bootstr))
1118 #define __sanitizer_syscall_post_reboot(res, opt, bootstr) \
1119 __sanitizer_syscall_post_impl_reboot(res, (long long)(opt), \
1120 (long long)(bootstr))
1121 #define __sanitizer_syscall_pre_poll(fds, nfds, timeout) \
1122 __sanitizer_syscall_pre_impl_poll((long long)(fds), (long long)(nfds), \
1123 (long long)(timeout))
1124 #define __sanitizer_syscall_post_poll(res, fds, nfds, timeout) \
1125 __sanitizer_syscall_post_impl_poll(res, (long long)(fds), (long long)(nfds), \
1126 (long long)(timeout))
1127 #define __sanitizer_syscall_pre_afssys(id, a1, a2, a3, a4, a5, a6) \
1128 __sanitizer_syscall_pre_impl_afssys( \
1129 (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \
1130 (long long)(a4), (long long)(a5), (long long)(a6))
1131 #define __sanitizer_syscall_post_afssys(res, id, a1, a2, a3, a4, a5, a6) \
1132 __sanitizer_syscall_post_impl_afssys( \
1133 res, (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \
1134 (long long)(a4), (long long)(a5), (long long)(a6))
1135 /* syscall 211 has been skipped */
1136 /* syscall 212 has been skipped */
1137 /* syscall 213 has been skipped */
1138 /* syscall 214 has been skipped */
1139 /* syscall 215 has been skipped */
1140 /* syscall 216 has been skipped */
1141 /* syscall 217 has been skipped */
1142 /* syscall 218 has been skipped */
1143 /* syscall 219 has been skipped */
1144 #define __sanitizer_syscall_pre_compat_14___semctl(semid, semnum, cmd, arg) \
1145 __sanitizer_syscall_pre_impl_compat_14___semctl( \
1146 (long long)(semid), (long long)(semnum), (long long)(cmd), \
1148 #define __sanitizer_syscall_post_compat_14___semctl(res, semid, semnum, cmd, \
1150 __sanitizer_syscall_post_impl_compat_14___semctl( \
1151 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
1153 #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \
1154 __sanitizer_syscall_pre_impl_semget((long long)(key), (long long)(nsems), \
1155 (long long)(semflg))
1156 #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \
1157 __sanitizer_syscall_post_impl_semget( \
1158 res, (long long)(key), (long long)(nsems), (long long)(semflg))
1159 #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \
1160 __sanitizer_syscall_pre_impl_semop((long long)(semid), (long long)(sops), \
1162 #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \
1163 __sanitizer_syscall_post_impl_semop(res, (long long)(semid), \
1164 (long long)(sops), (long long)(nsops))
1165 #define __sanitizer_syscall_pre_semconfig(flag) \
1166 __sanitizer_syscall_pre_impl_semconfig((long long)(flag))
1167 #define __sanitizer_syscall_post_semconfig(res, flag) \
1168 __sanitizer_syscall_post_impl_semconfig(res, (long long)(flag))
1169 #define __sanitizer_syscall_pre_compat_14_msgctl(msqid, cmd, buf) \
1170 __sanitizer_syscall_pre_impl_compat_14_msgctl( \
1171 (long long)(msqid), (long long)(cmd), (long long)(buf))
1172 #define __sanitizer_syscall_post_compat_14_msgctl(res, msqid, cmd, buf) \
1173 __sanitizer_syscall_post_impl_compat_14_msgctl( \
1174 res, (long long)(msqid), (long long)(cmd), (long long)(buf))
1175 #define __sanitizer_syscall_pre_msgget(key, msgflg) \
1176 __sanitizer_syscall_pre_impl_msgget((long long)(key), (long long)(msgflg))
1177 #define __sanitizer_syscall_post_msgget(res, key, msgflg) \
1178 __sanitizer_syscall_post_impl_msgget(res, (long long)(key), \
1179 (long long)(msgflg))
1180 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \
1181 __sanitizer_syscall_pre_impl_msgsnd((long long)(msqid), (long long)(msgp), \
1182 (long long)(msgsz), (long long)(msgflg))
1183 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \
1184 __sanitizer_syscall_post_impl_msgsnd(res, (long long)(msqid), \
1185 (long long)(msgp), (long long)(msgsz), \
1186 (long long)(msgflg))
1187 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \
1188 __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp), \
1189 (long long)(msgsz), (long long)(msgtyp), \
1190 (long long)(msgflg))
1191 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \
1193 __sanitizer_syscall_post_impl_msgrcv( \
1194 res, (long long)(msqid), (long long)(msgp), (long long)(msgsz), \
1195 (long long)(msgtyp), (long long)(msgflg))
1196 #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \
1197 __sanitizer_syscall_pre_impl_shmat((long long)(shmid), (long long)(shmaddr), \
1198 (long long)(shmflg))
1199 #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \
1200 __sanitizer_syscall_post_impl_shmat( \
1201 res, (long long)(shmid), (long long)(shmaddr), (long long)(shmflg))
1202 #define __sanitizer_syscall_pre_compat_14_shmctl(shmid, cmd, buf) \
1203 __sanitizer_syscall_pre_impl_compat_14_shmctl( \
1204 (long long)(shmid), (long long)(cmd), (long long)(buf))
1205 #define __sanitizer_syscall_post_compat_14_shmctl(res, shmid, cmd, buf) \
1206 __sanitizer_syscall_post_impl_compat_14_shmctl( \
1207 res, (long long)(shmid), (long long)(cmd), (long long)(buf))
1208 #define __sanitizer_syscall_pre_shmdt(shmaddr) \
1209 __sanitizer_syscall_pre_impl_shmdt((long long)(shmaddr))
1210 #define __sanitizer_syscall_post_shmdt(res, shmaddr) \
1211 __sanitizer_syscall_post_impl_shmdt(res, (long long)(shmaddr))
1212 #define __sanitizer_syscall_pre_shmget(key, size, shmflg) \
1213 __sanitizer_syscall_pre_impl_shmget((long long)(key), (long long)(size), \
1214 (long long)(shmflg))
1215 #define __sanitizer_syscall_post_shmget(res, key, size, shmflg) \
1216 __sanitizer_syscall_post_impl_shmget(res, (long long)(key), \
1217 (long long)(size), (long long)(shmflg))
1218 #define __sanitizer_syscall_pre_compat_50_clock_gettime(clock_id, tp) \
1219 __sanitizer_syscall_pre_impl_compat_50_clock_gettime((long long)(clock_id), \
1221 #define __sanitizer_syscall_post_compat_50_clock_gettime(res, clock_id, tp) \
1222 __sanitizer_syscall_post_impl_compat_50_clock_gettime( \
1223 res, (long long)(clock_id), (long long)(tp))
1224 #define __sanitizer_syscall_pre_compat_50_clock_settime(clock_id, tp) \
1225 __sanitizer_syscall_pre_impl_compat_50_clock_settime((long long)(clock_id), \
1227 #define __sanitizer_syscall_post_compat_50_clock_settime(res, clock_id, tp) \
1228 __sanitizer_syscall_post_impl_compat_50_clock_settime( \
1229 res, (long long)(clock_id), (long long)(tp))
1230 #define __sanitizer_syscall_pre_compat_50_clock_getres(clock_id, tp) \
1231 __sanitizer_syscall_pre_impl_compat_50_clock_getres((long long)(clock_id), \
1233 #define __sanitizer_syscall_post_compat_50_clock_getres(res, clock_id, tp) \
1234 __sanitizer_syscall_post_impl_compat_50_clock_getres( \
1235 res, (long long)(clock_id), (long long)(tp))
1236 #define __sanitizer_syscall_pre_timer_create(clock_id, evp, timerid) \
1237 __sanitizer_syscall_pre_impl_timer_create( \
1238 (long long)(clock_id), (long long)(evp), (long long)(timerid))
1239 #define __sanitizer_syscall_post_timer_create(res, clock_id, evp, timerid) \
1240 __sanitizer_syscall_post_impl_timer_create( \
1241 res, (long long)(clock_id), (long long)(evp), (long long)(timerid))
1242 #define __sanitizer_syscall_pre_timer_delete(timerid) \
1243 __sanitizer_syscall_pre_impl_timer_delete((long long)(timerid))
1244 #define __sanitizer_syscall_post_timer_delete(res, timerid) \
1245 __sanitizer_syscall_post_impl_timer_delete(res, (long long)(timerid))
1246 #define __sanitizer_syscall_pre_compat_50_timer_settime(timerid, flags, value, \
1248 __sanitizer_syscall_pre_impl_compat_50_timer_settime( \
1249 (long long)(timerid), (long long)(flags), (long long)(value), \
1250 (long long)(ovalue))
1251 #define __sanitizer_syscall_post_compat_50_timer_settime(res, timerid, flags, \
1253 __sanitizer_syscall_post_impl_compat_50_timer_settime( \
1254 res, (long long)(timerid), (long long)(flags), (long long)(value), \
1255 (long long)(ovalue))
1256 #define __sanitizer_syscall_pre_compat_50_timer_gettime(timerid, value) \
1257 __sanitizer_syscall_pre_impl_compat_50_timer_gettime((long long)(timerid), \
1259 #define __sanitizer_syscall_post_compat_50_timer_gettime(res, timerid, value) \
1260 __sanitizer_syscall_post_impl_compat_50_timer_gettime( \
1261 res, (long long)(timerid), (long long)(value))
1262 #define __sanitizer_syscall_pre_timer_getoverrun(timerid) \
1263 __sanitizer_syscall_pre_impl_timer_getoverrun((long long)(timerid))
1264 #define __sanitizer_syscall_post_timer_getoverrun(res, timerid) \
1265 __sanitizer_syscall_post_impl_timer_getoverrun(res, (long long)(timerid))
1266 #define __sanitizer_syscall_pre_compat_50_nanosleep(rqtp, rmtp) \
1267 __sanitizer_syscall_pre_impl_compat_50_nanosleep((long long)(rqtp), \
1269 #define __sanitizer_syscall_post_compat_50_nanosleep(res, rqtp, rmtp) \
1270 __sanitizer_syscall_post_impl_compat_50_nanosleep(res, (long long)(rqtp), \
1272 #define __sanitizer_syscall_pre_fdatasync(fd) \
1273 __sanitizer_syscall_pre_impl_fdatasync((long long)(fd))
1274 #define __sanitizer_syscall_post_fdatasync(res, fd) \
1275 __sanitizer_syscall_post_impl_fdatasync(res, (long long)(fd))
1276 #define __sanitizer_syscall_pre_mlockall(flags) \
1277 __sanitizer_syscall_pre_impl_mlockall((long long)(flags))
1278 #define __sanitizer_syscall_post_mlockall(res, flags) \
1279 __sanitizer_syscall_post_impl_mlockall(res, (long long)(flags))
1280 #define __sanitizer_syscall_pre_munlockall() \
1281 __sanitizer_syscall_pre_impl_munlockall()
1282 #define __sanitizer_syscall_post_munlockall(res) \
1283 __sanitizer_syscall_post_impl_munlockall(res)
1284 #define __sanitizer_syscall_pre_compat_50___sigtimedwait(set, info, timeout) \
1285 __sanitizer_syscall_pre_impl_compat_50___sigtimedwait( \
1286 (long long)(set), (long long)(info), (long long)(timeout))
1287 #define __sanitizer_syscall_post_compat_50___sigtimedwait(res, set, info, \
1289 __sanitizer_syscall_post_impl_compat_50___sigtimedwait( \
1290 res, (long long)(set), (long long)(info), (long long)(timeout))
1291 #define __sanitizer_syscall_pre_sigqueueinfo(pid, info) \
1292 __sanitizer_syscall_pre_impl_sigqueueinfo((long long)(pid), (long long)(info))
1293 #define __sanitizer_syscall_post_sigqueueinfo(res, pid, info) \
1294 __sanitizer_syscall_post_impl_sigqueueinfo(res, (long long)(pid), \
1296 #define __sanitizer_syscall_pre_modctl(cmd, arg) \
1297 __sanitizer_syscall_pre_impl_modctl((long long)(cmd), (long long)(arg))
1298 #define __sanitizer_syscall_post_modctl(res, cmd, arg) \
1299 __sanitizer_syscall_post_impl_modctl(res, (long long)(cmd), (long long)(arg))
1300 #define __sanitizer_syscall_pre__ksem_init(value, idp) \
1301 __sanitizer_syscall_pre_impl__ksem_init((long long)(value), (long long)(idp))
1302 #define __sanitizer_syscall_post__ksem_init(res, value, idp) \
1303 __sanitizer_syscall_post_impl__ksem_init(res, (long long)(value), \
1305 #define __sanitizer_syscall_pre__ksem_open(name, oflag, mode, value, idp) \
1306 __sanitizer_syscall_pre_impl__ksem_open( \
1307 (long long)(name), (long long)(oflag), (long long)(mode), \
1308 (long long)(value), (long long)(idp))
1309 #define __sanitizer_syscall_post__ksem_open(res, name, oflag, mode, value, \
1311 __sanitizer_syscall_post_impl__ksem_open( \
1312 res, (long long)(name), (long long)(oflag), (long long)(mode), \
1313 (long long)(value), (long long)(idp))
1314 #define __sanitizer_syscall_pre__ksem_unlink(name) \
1315 __sanitizer_syscall_pre_impl__ksem_unlink((long long)(name))
1316 #define __sanitizer_syscall_post__ksem_unlink(res, name) \
1317 __sanitizer_syscall_post_impl__ksem_unlink(res, (long long)(name))
1318 #define __sanitizer_syscall_pre__ksem_close(id) \
1319 __sanitizer_syscall_pre_impl__ksem_close((long long)(id))
1320 #define __sanitizer_syscall_post__ksem_close(res, id) \
1321 __sanitizer_syscall_post_impl__ksem_close(res, (long long)(id))
1322 #define __sanitizer_syscall_pre__ksem_post(id) \
1323 __sanitizer_syscall_pre_impl__ksem_post((long long)(id))
1324 #define __sanitizer_syscall_post__ksem_post(res, id) \
1325 __sanitizer_syscall_post_impl__ksem_post(res, (long long)(id))
1326 #define __sanitizer_syscall_pre__ksem_wait(id) \
1327 __sanitizer_syscall_pre_impl__ksem_wait((long long)(id))
1328 #define __sanitizer_syscall_post__ksem_wait(res, id) \
1329 __sanitizer_syscall_post_impl__ksem_wait(res, (long long)(id))
1330 #define __sanitizer_syscall_pre__ksem_trywait(id) \
1331 __sanitizer_syscall_pre_impl__ksem_trywait((long long)(id))
1332 #define __sanitizer_syscall_post__ksem_trywait(res, id) \
1333 __sanitizer_syscall_post_impl__ksem_trywait(res, (long long)(id))
1334 #define __sanitizer_syscall_pre__ksem_getvalue(id, value) \
1335 __sanitizer_syscall_pre_impl__ksem_getvalue((long long)(id), \
1337 #define __sanitizer_syscall_post__ksem_getvalue(res, id, value) \
1338 __sanitizer_syscall_post_impl__ksem_getvalue(res, (long long)(id), \
1340 #define __sanitizer_syscall_pre__ksem_destroy(id) \
1341 __sanitizer_syscall_pre_impl__ksem_destroy((long long)(id))
1342 #define __sanitizer_syscall_post__ksem_destroy(res, id) \
1343 __sanitizer_syscall_post_impl__ksem_destroy(res, (long long)(id))
1344 #define __sanitizer_syscall_pre__ksem_timedwait(id, abstime) \
1345 __sanitizer_syscall_pre_impl__ksem_timedwait((long long)(id), \
1346 (long long)(abstime))
1347 #define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime) \
1348 __sanitizer_syscall_post_impl__ksem_timedwait(res, (long long)(id), \
1349 (long long)(abstime))
1350 #define __sanitizer_syscall_pre_mq_open(name, oflag, mode, attr) \
1351 __sanitizer_syscall_pre_impl_mq_open((long long)(name), (long long)(oflag), \
1352 (long long)(mode), (long long)(attr))
1353 #define __sanitizer_syscall_post_mq_open(res, name, oflag, mode, attr) \
1354 __sanitizer_syscall_post_impl_mq_open(res, (long long)(name), \
1355 (long long)(oflag), (long long)(mode), \
1357 #define __sanitizer_syscall_pre_mq_close(mqdes) \
1358 __sanitizer_syscall_pre_impl_mq_close((long long)(mqdes))
1359 #define __sanitizer_syscall_post_mq_close(res, mqdes) \
1360 __sanitizer_syscall_post_impl_mq_close(res, (long long)(mqdes))
1361 #define __sanitizer_syscall_pre_mq_unlink(name) \
1362 __sanitizer_syscall_pre_impl_mq_unlink((long long)(name))
1363 #define __sanitizer_syscall_post_mq_unlink(res, name) \
1364 __sanitizer_syscall_post_impl_mq_unlink(res, (long long)(name))
1365 #define __sanitizer_syscall_pre_mq_getattr(mqdes, mqstat) \
1366 __sanitizer_syscall_pre_impl_mq_getattr((long long)(mqdes), \
1367 (long long)(mqstat))
1368 #define __sanitizer_syscall_post_mq_getattr(res, mqdes, mqstat) \
1369 __sanitizer_syscall_post_impl_mq_getattr(res, (long long)(mqdes), \
1370 (long long)(mqstat))
1371 #define __sanitizer_syscall_pre_mq_setattr(mqdes, mqstat, omqstat) \
1372 __sanitizer_syscall_pre_impl_mq_setattr( \
1373 (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
1374 #define __sanitizer_syscall_post_mq_setattr(res, mqdes, mqstat, omqstat) \
1375 __sanitizer_syscall_post_impl_mq_setattr( \
1376 res, (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
1377 #define __sanitizer_syscall_pre_mq_notify(mqdes, notification) \
1378 __sanitizer_syscall_pre_impl_mq_notify((long long)(mqdes), \
1379 (long long)(notification))
1380 #define __sanitizer_syscall_post_mq_notify(res, mqdes, notification) \
1381 __sanitizer_syscall_post_impl_mq_notify(res, (long long)(mqdes), \
1382 (long long)(notification))
1383 #define __sanitizer_syscall_pre_mq_send(mqdes, msg_ptr, msg_len, msg_prio) \
1384 __sanitizer_syscall_pre_impl_mq_send( \
1385 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1386 (long long)(msg_prio))
1387 #define __sanitizer_syscall_post_mq_send(res, mqdes, msg_ptr, msg_len, \
1389 __sanitizer_syscall_post_impl_mq_send( \
1390 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1391 (long long)(msg_prio))
1392 #define __sanitizer_syscall_pre_mq_receive(mqdes, msg_ptr, msg_len, msg_prio) \
1393 __sanitizer_syscall_pre_impl_mq_receive( \
1394 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1395 (long long)(msg_prio))
1396 #define __sanitizer_syscall_post_mq_receive(res, mqdes, msg_ptr, msg_len, \
1398 __sanitizer_syscall_post_impl_mq_receive( \
1399 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1400 (long long)(msg_prio))
1401 #define __sanitizer_syscall_pre_compat_50_mq_timedsend( \
1402 mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
1403 __sanitizer_syscall_pre_impl_compat_50_mq_timedsend( \
1404 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1405 (long long)(msg_prio), (long long)(abs_timeout))
1406 #define __sanitizer_syscall_post_compat_50_mq_timedsend( \
1407 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
1408 __sanitizer_syscall_post_impl_compat_50_mq_timedsend( \
1409 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1410 (long long)(msg_prio), (long long)(abs_timeout))
1411 #define __sanitizer_syscall_pre_compat_50_mq_timedreceive( \
1412 mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
1413 __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive( \
1414 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1415 (long long)(msg_prio), (long long)(abs_timeout))
1416 #define __sanitizer_syscall_post_compat_50_mq_timedreceive( \
1417 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
1418 __sanitizer_syscall_post_impl_compat_50_mq_timedreceive( \
1419 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
1420 (long long)(msg_prio), (long long)(abs_timeout))
1421 /* syscall 267 has been skipped */
1422 /* syscall 268 has been skipped */
1423 /* syscall 269 has been skipped */
1424 #define __sanitizer_syscall_pre___posix_rename(from, to) \
1425 __sanitizer_syscall_pre_impl___posix_rename((long long)(from), \
1427 #define __sanitizer_syscall_post___posix_rename(res, from, to) \
1428 __sanitizer_syscall_post_impl___posix_rename(res, (long long)(from), \
1430 #define __sanitizer_syscall_pre_swapctl(cmd, arg, misc) \
1431 __sanitizer_syscall_pre_impl_swapctl((long long)(cmd), (long long)(arg), \
1433 #define __sanitizer_syscall_post_swapctl(res, cmd, arg, misc) \
1434 __sanitizer_syscall_post_impl_swapctl(res, (long long)(cmd), \
1435 (long long)(arg), (long long)(misc))
1436 #define __sanitizer_syscall_pre_compat_30_getdents(fd, buf, count) \
1437 __sanitizer_syscall_pre_impl_compat_30_getdents( \
1438 (long long)(fd), (long long)(buf), (long long)(count))
1439 #define __sanitizer_syscall_post_compat_30_getdents(res, fd, buf, count) \
1440 __sanitizer_syscall_post_impl_compat_30_getdents( \
1441 res, (long long)(fd), (long long)(buf), (long long)(count))
1442 #define __sanitizer_syscall_pre_minherit(addr, len, inherit) \
1443 __sanitizer_syscall_pre_impl_minherit((long long)(addr), (long long)(len), \
1444 (long long)(inherit))
1445 #define __sanitizer_syscall_post_minherit(res, addr, len, inherit) \
1446 __sanitizer_syscall_post_impl_minherit( \
1447 res, (long long)(addr), (long long)(len), (long long)(inherit))
1448 #define __sanitizer_syscall_pre_lchmod(path, mode) \
1449 __sanitizer_syscall_pre_impl_lchmod((long long)(path), (long long)(mode))
1450 #define __sanitizer_syscall_post_lchmod(res, path, mode) \
1451 __sanitizer_syscall_post_impl_lchmod(res, (long long)(path), \
1453 #define __sanitizer_syscall_pre_lchown(path, uid, gid) \
1454 __sanitizer_syscall_pre_impl_lchown((long long)(path), (long long)(uid), \
1456 #define __sanitizer_syscall_post_lchown(res, path, uid, gid) \
1457 __sanitizer_syscall_post_impl_lchown(res, (long long)(path), \
1458 (long long)(uid), (long long)(gid))
1459 #define __sanitizer_syscall_pre_compat_50_lutimes(path, tptr) \
1460 __sanitizer_syscall_pre_impl_compat_50_lutimes((long long)(path), \
1462 #define __sanitizer_syscall_post_compat_50_lutimes(res, path, tptr) \
1463 __sanitizer_syscall_post_impl_compat_50_lutimes(res, (long long)(path), \
1465 #define __sanitizer_syscall_pre___msync13(addr, len, flags) \
1466 __sanitizer_syscall_pre_impl___msync13((long long)(addr), (long long)(len), \
1468 #define __sanitizer_syscall_post___msync13(res, addr, len, flags) \
1469 __sanitizer_syscall_post_impl___msync13( \
1470 res, (long long)(addr), (long long)(len), (long long)(flags))
1471 #define __sanitizer_syscall_pre_compat_30___stat13(path, ub) \
1472 __sanitizer_syscall_pre_impl_compat_30___stat13((long long)(path), \
1474 #define __sanitizer_syscall_post_compat_30___stat13(res, path, ub) \
1475 __sanitizer_syscall_post_impl_compat_30___stat13(res, (long long)(path), \
1477 #define __sanitizer_syscall_pre_compat_30___fstat13(fd, sb) \
1478 __sanitizer_syscall_pre_impl_compat_30___fstat13((long long)(fd), \
1480 #define __sanitizer_syscall_post_compat_30___fstat13(res, fd, sb) \
1481 __sanitizer_syscall_post_impl_compat_30___fstat13(res, (long long)(fd), \
1483 #define __sanitizer_syscall_pre_compat_30___lstat13(path, ub) \
1484 __sanitizer_syscall_pre_impl_compat_30___lstat13((long long)(path), \
1486 #define __sanitizer_syscall_post_compat_30___lstat13(res, path, ub) \
1487 __sanitizer_syscall_post_impl_compat_30___lstat13(res, (long long)(path), \
1489 #define __sanitizer_syscall_pre___sigaltstack14(nss, oss) \
1490 __sanitizer_syscall_pre_impl___sigaltstack14((long long)(nss), \
1492 #define __sanitizer_syscall_post___sigaltstack14(res, nss, oss) \
1493 __sanitizer_syscall_post_impl___sigaltstack14(res, (long long)(nss), \
1495 #define __sanitizer_syscall_pre___vfork14() \
1496 __sanitizer_syscall_pre_impl___vfork14()
1497 #define __sanitizer_syscall_post___vfork14(res) \
1498 __sanitizer_syscall_post_impl___vfork14(res)
1499 #define __sanitizer_syscall_pre___posix_chown(path, uid, gid) \
1500 __sanitizer_syscall_pre_impl___posix_chown( \
1501 (long long)(path), (long long)(uid), (long long)(gid))
1502 #define __sanitizer_syscall_post___posix_chown(res, path, uid, gid) \
1503 __sanitizer_syscall_post_impl___posix_chown( \
1504 res, (long long)(path), (long long)(uid), (long long)(gid))
1505 #define __sanitizer_syscall_pre___posix_fchown(fd, uid, gid) \
1506 __sanitizer_syscall_pre_impl___posix_fchown( \
1507 (long long)(fd), (long long)(uid), (long long)(gid))
1508 #define __sanitizer_syscall_post___posix_fchown(res, fd, uid, gid) \
1509 __sanitizer_syscall_post_impl___posix_fchown( \
1510 res, (long long)(fd), (long long)(uid), (long long)(gid))
1511 #define __sanitizer_syscall_pre___posix_lchown(path, uid, gid) \
1512 __sanitizer_syscall_pre_impl___posix_lchown( \
1513 (long long)(path), (long long)(uid), (long long)(gid))
1514 #define __sanitizer_syscall_post___posix_lchown(res, path, uid, gid) \
1515 __sanitizer_syscall_post_impl___posix_lchown( \
1516 res, (long long)(path), (long long)(uid), (long long)(gid))
1517 #define __sanitizer_syscall_pre_getsid(pid) \
1518 __sanitizer_syscall_pre_impl_getsid((long long)(pid))
1519 #define __sanitizer_syscall_post_getsid(res, pid) \
1520 __sanitizer_syscall_post_impl_getsid(res, (long long)(pid))
1521 #define __sanitizer_syscall_pre___clone(flags, stack) \
1522 __sanitizer_syscall_pre_impl___clone((long long)(flags), (long long)(stack))
1523 #define __sanitizer_syscall_post___clone(res, flags, stack) \
1524 __sanitizer_syscall_post_impl___clone(res, (long long)(flags), \
1526 #define __sanitizer_syscall_pre_fktrace(fd, ops, facs, pid) \
1527 __sanitizer_syscall_pre_impl_fktrace((long long)(fd), (long long)(ops), \
1528 (long long)(facs), (long long)(pid))
1529 #define __sanitizer_syscall_post_fktrace(res, fd, ops, facs, pid) \
1530 __sanitizer_syscall_post_impl_fktrace(res, (long long)(fd), \
1531 (long long)(ops), (long long)(facs), \
1533 #define __sanitizer_syscall_pre_preadv(fd, iovp, iovcnt, PAD, offset) \
1534 __sanitizer_syscall_pre_impl_preadv((long long)(fd), (long long)(iovp), \
1535 (long long)(iovcnt), (long long)(PAD), \
1536 (long long)(offset))
1537 #define __sanitizer_syscall_post_preadv(res, fd, iovp, iovcnt, PAD, offset) \
1538 __sanitizer_syscall_post_impl_preadv(res, (long long)(fd), \
1539 (long long)(iovp), (long long)(iovcnt), \
1540 (long long)(PAD), (long long)(offset))
1541 #define __sanitizer_syscall_pre_pwritev(fd, iovp, iovcnt, PAD, offset) \
1542 __sanitizer_syscall_pre_impl_pwritev((long long)(fd), (long long)(iovp), \
1543 (long long)(iovcnt), (long long)(PAD), \
1544 (long long)(offset))
1545 #define __sanitizer_syscall_post_pwritev(res, fd, iovp, iovcnt, PAD, offset) \
1546 __sanitizer_syscall_post_impl_pwritev( \
1547 res, (long long)(fd), (long long)(iovp), (long long)(iovcnt), \
1548 (long long)(PAD), (long long)(offset))
1549 #define __sanitizer_syscall_pre_compat_16___sigaction14(signum, nsa, osa) \
1550 __sanitizer_syscall_pre_impl_compat_16___sigaction14( \
1551 (long long)(signum), (long long)(nsa), (long long)(osa))
1552 #define __sanitizer_syscall_post_compat_16___sigaction14(res, signum, nsa, \
1554 __sanitizer_syscall_post_impl_compat_16___sigaction14( \
1555 res, (long long)(signum), (long long)(nsa), (long long)(osa))
1556 #define __sanitizer_syscall_pre___sigpending14(set) \
1557 __sanitizer_syscall_pre_impl___sigpending14((long long)(set))
1558 #define __sanitizer_syscall_post___sigpending14(res, set) \
1559 __sanitizer_syscall_post_impl___sigpending14(res, (long long)(set))
1560 #define __sanitizer_syscall_pre___sigprocmask14(how, set, oset) \
1561 __sanitizer_syscall_pre_impl___sigprocmask14( \
1562 (long long)(how), (long long)(set), (long long)(oset))
1563 #define __sanitizer_syscall_post___sigprocmask14(res, how, set, oset) \
1564 __sanitizer_syscall_post_impl___sigprocmask14( \
1565 res, (long long)(how), (long long)(set), (long long)(oset))
1566 #define __sanitizer_syscall_pre___sigsuspend14(set) \
1567 __sanitizer_syscall_pre_impl___sigsuspend14((long long)(set))
1568 #define __sanitizer_syscall_post___sigsuspend14(res, set) \
1569 __sanitizer_syscall_post_impl___sigsuspend14(res, (long long)(set))
1570 #define __sanitizer_syscall_pre_compat_16___sigreturn14(sigcntxp) \
1571 __sanitizer_syscall_pre_impl_compat_16___sigreturn14((long long)(sigcntxp))
1572 #define __sanitizer_syscall_post_compat_16___sigreturn14(res, sigcntxp) \
1573 __sanitizer_syscall_post_impl_compat_16___sigreturn14(res, \
1574 (long long)(sigcntxp))
1575 #define __sanitizer_syscall_pre___getcwd(bufp, length) \
1576 __sanitizer_syscall_pre_impl___getcwd((long long)(bufp), (long long)(length))
1577 #define __sanitizer_syscall_post___getcwd(res, bufp, length) \
1578 __sanitizer_syscall_post_impl___getcwd(res, (long long)(bufp), \
1579 (long long)(length))
1580 #define __sanitizer_syscall_pre_fchroot(fd) \
1581 __sanitizer_syscall_pre_impl_fchroot((long long)(fd))
1582 #define __sanitizer_syscall_post_fchroot(res, fd) \
1583 __sanitizer_syscall_post_impl_fchroot(res, (long long)(fd))
1584 #define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags) \
1585 __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp), \
1587 #define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags) \
1588 __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp), \
1590 #define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb) \
1591 __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp), \
1593 #define __sanitizer_syscall_post_compat_30_fhstat(res, fhp, sb) \
1594 __sanitizer_syscall_post_impl_compat_30_fhstat(res, (long long)(fhp), \
1596 #define __sanitizer_syscall_pre_compat_20_fhstatfs(fhp, buf) \
1597 __sanitizer_syscall_pre_impl_compat_20_fhstatfs((long long)(fhp), \
1599 #define __sanitizer_syscall_post_compat_20_fhstatfs(res, fhp, buf) \
1600 __sanitizer_syscall_post_impl_compat_20_fhstatfs(res, (long long)(fhp), \
1602 #define __sanitizer_syscall_pre_compat_50_____semctl13(semid, semnum, cmd, \
1604 __sanitizer_syscall_pre_impl_compat_50_____semctl13( \
1605 (long long)(semid), (long long)(semnum), (long long)(cmd), \
1607 #define __sanitizer_syscall_post_compat_50_____semctl13(res, semid, semnum, \
1609 __sanitizer_syscall_post_impl_compat_50_____semctl13( \
1610 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
1612 #define __sanitizer_syscall_pre_compat_50___msgctl13(msqid, cmd, buf) \
1613 __sanitizer_syscall_pre_impl_compat_50___msgctl13( \
1614 (long long)(msqid), (long long)(cmd), (long long)(buf))
1615 #define __sanitizer_syscall_post_compat_50___msgctl13(res, msqid, cmd, buf) \
1616 __sanitizer_syscall_post_impl_compat_50___msgctl13( \
1617 res, (long long)(msqid), (long long)(cmd), (long long)(buf))
1618 #define __sanitizer_syscall_pre_compat_50___shmctl13(shmid, cmd, buf) \
1619 __sanitizer_syscall_pre_impl_compat_50___shmctl13( \
1620 (long long)(shmid), (long long)(cmd), (long long)(buf))
1621 #define __sanitizer_syscall_post_compat_50___shmctl13(res, shmid, cmd, buf) \
1622 __sanitizer_syscall_post_impl_compat_50___shmctl13( \
1623 res, (long long)(shmid), (long long)(cmd), (long long)(buf))
1624 #define __sanitizer_syscall_pre_lchflags(path, flags) \
1625 __sanitizer_syscall_pre_impl_lchflags((long long)(path), (long long)(flags))
1626 #define __sanitizer_syscall_post_lchflags(res, path, flags) \
1627 __sanitizer_syscall_post_impl_lchflags(res, (long long)(path), \
1629 #define __sanitizer_syscall_pre_issetugid() \
1630 __sanitizer_syscall_pre_impl_issetugid()
1631 #define __sanitizer_syscall_post_issetugid(res) \
1632 __sanitizer_syscall_post_impl_issetugid(res)
1633 #define __sanitizer_syscall_pre_utrace(label, addr, len) \
1634 __sanitizer_syscall_pre_impl_utrace((long long)(label), (long long)(addr), \
1636 #define __sanitizer_syscall_post_utrace(res, label, addr, len) \
1637 __sanitizer_syscall_post_impl_utrace(res, (long long)(label), \
1638 (long long)(addr), (long long)(len))
1639 #define __sanitizer_syscall_pre_getcontext(ucp) \
1640 __sanitizer_syscall_pre_impl_getcontext((long long)(ucp))
1641 #define __sanitizer_syscall_post_getcontext(res, ucp) \
1642 __sanitizer_syscall_post_impl_getcontext(res, (long long)(ucp))
1643 #define __sanitizer_syscall_pre_setcontext(ucp) \
1644 __sanitizer_syscall_pre_impl_setcontext((long long)(ucp))
1645 #define __sanitizer_syscall_post_setcontext(res, ucp) \
1646 __sanitizer_syscall_post_impl_setcontext(res, (long long)(ucp))
1647 #define __sanitizer_syscall_pre__lwp_create(ucp, flags, new_lwp) \
1648 __sanitizer_syscall_pre_impl__lwp_create( \
1649 (long long)(ucp), (long long)(flags), (long long)(new_lwp))
1650 #define __sanitizer_syscall_post__lwp_create(res, ucp, flags, new_lwp) \
1651 __sanitizer_syscall_post_impl__lwp_create( \
1652 res, (long long)(ucp), (long long)(flags), (long long)(new_lwp))
1653 #define __sanitizer_syscall_pre__lwp_exit() \
1654 __sanitizer_syscall_pre_impl__lwp_exit()
1655 #define __sanitizer_syscall_post__lwp_exit(res) \
1656 __sanitizer_syscall_post_impl__lwp_exit(res)
1657 #define __sanitizer_syscall_pre__lwp_self() \
1658 __sanitizer_syscall_pre_impl__lwp_self()
1659 #define __sanitizer_syscall_post__lwp_self(res) \
1660 __sanitizer_syscall_post_impl__lwp_self(res)
1661 #define __sanitizer_syscall_pre__lwp_wait(wait_for, departed) \
1662 __sanitizer_syscall_pre_impl__lwp_wait((long long)(wait_for), \
1663 (long long)(departed))
1664 #define __sanitizer_syscall_post__lwp_wait(res, wait_for, departed) \
1665 __sanitizer_syscall_post_impl__lwp_wait(res, (long long)(wait_for), \
1666 (long long)(departed))
1667 #define __sanitizer_syscall_pre__lwp_suspend(target) \
1668 __sanitizer_syscall_pre_impl__lwp_suspend((long long)(target))
1669 #define __sanitizer_syscall_post__lwp_suspend(res, target) \
1670 __sanitizer_syscall_post_impl__lwp_suspend(res, (long long)(target))
1671 #define __sanitizer_syscall_pre__lwp_continue(target) \
1672 __sanitizer_syscall_pre_impl__lwp_continue((long long)(target))
1673 #define __sanitizer_syscall_post__lwp_continue(res, target) \
1674 __sanitizer_syscall_post_impl__lwp_continue(res, (long long)(target))
1675 #define __sanitizer_syscall_pre__lwp_wakeup(target) \
1676 __sanitizer_syscall_pre_impl__lwp_wakeup((long long)(target))
1677 #define __sanitizer_syscall_post__lwp_wakeup(res, target) \
1678 __sanitizer_syscall_post_impl__lwp_wakeup(res, (long long)(target))
1679 #define __sanitizer_syscall_pre__lwp_getprivate() \
1680 __sanitizer_syscall_pre_impl__lwp_getprivate()
1681 #define __sanitizer_syscall_post__lwp_getprivate(res) \
1682 __sanitizer_syscall_post_impl__lwp_getprivate(res)
1683 #define __sanitizer_syscall_pre__lwp_setprivate(ptr) \
1684 __sanitizer_syscall_pre_impl__lwp_setprivate((long long)(ptr))
1685 #define __sanitizer_syscall_post__lwp_setprivate(res, ptr) \
1686 __sanitizer_syscall_post_impl__lwp_setprivate(res, (long long)(ptr))
1687 #define __sanitizer_syscall_pre__lwp_kill(target, signo) \
1688 __sanitizer_syscall_pre_impl__lwp_kill((long long)(target), \
1690 #define __sanitizer_syscall_post__lwp_kill(res, target, signo) \
1691 __sanitizer_syscall_post_impl__lwp_kill(res, (long long)(target), \
1693 #define __sanitizer_syscall_pre__lwp_detach(target) \
1694 __sanitizer_syscall_pre_impl__lwp_detach((long long)(target))
1695 #define __sanitizer_syscall_post__lwp_detach(res, target) \
1696 __sanitizer_syscall_post_impl__lwp_detach(res, (long long)(target))
1697 #define __sanitizer_syscall_pre_compat_50__lwp_park(ts, unpark, hint, \
1699 __sanitizer_syscall_pre_impl_compat_50__lwp_park( \
1700 (long long)(ts), (long long)(unpark), (long long)(hint), \
1701 (long long)(unparkhint))
1702 #define __sanitizer_syscall_post_compat_50__lwp_park(res, ts, unpark, hint, \
1704 __sanitizer_syscall_post_impl_compat_50__lwp_park( \
1705 res, (long long)(ts), (long long)(unpark), (long long)(hint), \
1706 (long long)(unparkhint))
1707 #define __sanitizer_syscall_pre__lwp_unpark(target, hint) \
1708 __sanitizer_syscall_pre_impl__lwp_unpark((long long)(target), \
1710 #define __sanitizer_syscall_post__lwp_unpark(res, target, hint) \
1711 __sanitizer_syscall_post_impl__lwp_unpark(res, (long long)(target), \
1713 #define __sanitizer_syscall_pre__lwp_unpark_all(targets, ntargets, hint) \
1714 __sanitizer_syscall_pre_impl__lwp_unpark_all( \
1715 (long long)(targets), (long long)(ntargets), (long long)(hint))
1716 #define __sanitizer_syscall_post__lwp_unpark_all(res, targets, ntargets, hint) \
1717 __sanitizer_syscall_post_impl__lwp_unpark_all( \
1718 res, (long long)(targets), (long long)(ntargets), (long long)(hint))
1719 #define __sanitizer_syscall_pre__lwp_setname(target, name) \
1720 __sanitizer_syscall_pre_impl__lwp_setname((long long)(target), \
1722 #define __sanitizer_syscall_post__lwp_setname(res, target, name) \
1723 __sanitizer_syscall_post_impl__lwp_setname(res, (long long)(target), \
1725 #define __sanitizer_syscall_pre__lwp_getname(target, name, len) \
1726 __sanitizer_syscall_pre_impl__lwp_getname( \
1727 (long long)(target), (long long)(name), (long long)(len))
1728 #define __sanitizer_syscall_post__lwp_getname(res, target, name, len) \
1729 __sanitizer_syscall_post_impl__lwp_getname( \
1730 res, (long long)(target), (long long)(name), (long long)(len))
1731 #define __sanitizer_syscall_pre__lwp_ctl(features, address) \
1732 __sanitizer_syscall_pre_impl__lwp_ctl((long long)(features), \
1733 (long long)(address))
1734 #define __sanitizer_syscall_post__lwp_ctl(res, features, address) \
1735 __sanitizer_syscall_post_impl__lwp_ctl(res, (long long)(features), \
1736 (long long)(address))
1737 /* syscall 326 has been skipped */
1738 /* syscall 327 has been skipped */
1739 /* syscall 328 has been skipped */
1740 /* syscall 329 has been skipped */
1741 #define __sanitizer_syscall_pre_compat_60_sa_register(newv, oldv, flags, \
1743 __sanitizer_syscall_pre_impl_compat_60_sa_register( \
1744 (long long)(newv), (long long)(oldv), (long long)(flags), \
1745 (long long)(stackinfo_offset))
1746 #define __sanitizer_syscall_post_compat_60_sa_register(res, newv, oldv, flags, \
1748 __sanitizer_syscall_post_impl_compat_60_sa_register( \
1749 res, (long long)(newv), (long long)(oldv), (long long)(flags), \
1750 (long long)(stackinfo_offset))
1751 #define __sanitizer_syscall_pre_compat_60_sa_stacks(num, stacks) \
1752 __sanitizer_syscall_pre_impl_compat_60_sa_stacks((long long)(num), \
1753 (long long)(stacks))
1754 #define __sanitizer_syscall_post_compat_60_sa_stacks(res, num, stacks) \
1755 __sanitizer_syscall_post_impl_compat_60_sa_stacks(res, (long long)(num), \
1756 (long long)(stacks))
1757 #define __sanitizer_syscall_pre_compat_60_sa_enable() \
1758 __sanitizer_syscall_pre_impl_compat_60_sa_enable()
1759 #define __sanitizer_syscall_post_compat_60_sa_enable(res) \
1760 __sanitizer_syscall_post_impl_compat_60_sa_enable(res)
1761 #define __sanitizer_syscall_pre_compat_60_sa_setconcurrency(concurrency) \
1762 __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency( \
1763 (long long)(concurrency))
1764 #define __sanitizer_syscall_post_compat_60_sa_setconcurrency(res, concurrency) \
1765 __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency( \
1766 res, (long long)(concurrency))
1767 #define __sanitizer_syscall_pre_compat_60_sa_yield() \
1768 __sanitizer_syscall_pre_impl_compat_60_sa_yield()
1769 #define __sanitizer_syscall_post_compat_60_sa_yield(res) \
1770 __sanitizer_syscall_post_impl_compat_60_sa_yield(res)
1771 #define __sanitizer_syscall_pre_compat_60_sa_preempt(sa_id) \
1772 __sanitizer_syscall_pre_impl_compat_60_sa_preempt((long long)(sa_id))
1773 #define __sanitizer_syscall_post_compat_60_sa_preempt(res, sa_id) \
1774 __sanitizer_syscall_post_impl_compat_60_sa_preempt(res, (long long)(sa_id))
1775 /* syscall 336 has been skipped */
1776 /* syscall 337 has been skipped */
1777 /* syscall 338 has been skipped */
1778 /* syscall 339 has been skipped */
1779 #define __sanitizer_syscall_pre___sigaction_sigtramp(signum, nsa, osa, tramp, \
1781 __sanitizer_syscall_pre_impl___sigaction_sigtramp( \
1782 (long long)(signum), (long long)(nsa), (long long)(osa), \
1783 (long long)(tramp), (long long)(vers))
1784 #define __sanitizer_syscall_post___sigaction_sigtramp(res, signum, nsa, osa, \
1786 __sanitizer_syscall_post_impl___sigaction_sigtramp( \
1787 res, (long long)(signum), (long long)(nsa), (long long)(osa), \
1788 (long long)(tramp), (long long)(vers))
1789 /* syscall 341 has been skipped */
1790 /* syscall 342 has been skipped */
1791 #define __sanitizer_syscall_pre_rasctl(addr, len, op) \
1792 __sanitizer_syscall_pre_impl_rasctl((long long)(addr), (long long)(len), \
1794 #define __sanitizer_syscall_post_rasctl(res, addr, len, op) \
1795 __sanitizer_syscall_post_impl_rasctl(res, (long long)(addr), \
1796 (long long)(len), (long long)(op))
1797 #define __sanitizer_syscall_pre_kqueue() __sanitizer_syscall_pre_impl_kqueue()
1798 #define __sanitizer_syscall_post_kqueue(res) \
1799 __sanitizer_syscall_post_impl_kqueue(res)
1800 #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \
1801 eventlist, nevents, timeout) \
1802 __sanitizer_syscall_pre_impl_compat_50_kevent( \
1803 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
1804 (long long)(eventlist), (long long)(nevents), (long long)(timeout))
1805 #define __sanitizer_syscall_post_compat_50_kevent( \
1806 res, fd, changelist, nchanges, eventlist, nevents, timeout) \
1807 __sanitizer_syscall_post_impl_compat_50_kevent( \
1808 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
1809 (long long)(eventlist), (long long)(nevents), (long long)(timeout))
1810 #define __sanitizer_syscall_pre__sched_setparam(pid, lid, policy, params) \
1811 __sanitizer_syscall_pre_impl__sched_setparam( \
1812 (long long)(pid), (long long)(lid), (long long)(policy), \
1813 (long long)(params))
1814 #define __sanitizer_syscall_post__sched_setparam(res, pid, lid, policy, \
1816 __sanitizer_syscall_post_impl__sched_setparam( \
1817 res, (long long)(pid), (long long)(lid), (long long)(policy), \
1818 (long long)(params))
1819 #define __sanitizer_syscall_pre__sched_getparam(pid, lid, policy, params) \
1820 __sanitizer_syscall_pre_impl__sched_getparam( \
1821 (long long)(pid), (long long)(lid), (long long)(policy), \
1822 (long long)(params))
1823 #define __sanitizer_syscall_post__sched_getparam(res, pid, lid, policy, \
1825 __sanitizer_syscall_post_impl__sched_getparam( \
1826 res, (long long)(pid), (long long)(lid), (long long)(policy), \
1827 (long long)(params))
1828 #define __sanitizer_syscall_pre__sched_setaffinity(pid, lid, size, cpuset) \
1829 __sanitizer_syscall_pre_impl__sched_setaffinity( \
1830 (long long)(pid), (long long)(lid), (long long)(size), \
1831 (long long)(cpuset))
1832 #define __sanitizer_syscall_post__sched_setaffinity(res, pid, lid, size, \
1834 __sanitizer_syscall_post_impl__sched_setaffinity( \
1835 res, (long long)(pid), (long long)(lid), (long long)(size), \
1836 (long long)(cpuset))
1837 #define __sanitizer_syscall_pre__sched_getaffinity(pid, lid, size, cpuset) \
1838 __sanitizer_syscall_pre_impl__sched_getaffinity( \
1839 (long long)(pid), (long long)(lid), (long long)(size), \
1840 (long long)(cpuset))
1841 #define __sanitizer_syscall_post__sched_getaffinity(res, pid, lid, size, \
1843 __sanitizer_syscall_post_impl__sched_getaffinity( \
1844 res, (long long)(pid), (long long)(lid), (long long)(size), \
1845 (long long)(cpuset))
1846 #define __sanitizer_syscall_pre_sched_yield() \
1847 __sanitizer_syscall_pre_impl_sched_yield()
1848 #define __sanitizer_syscall_post_sched_yield(res) \
1849 __sanitizer_syscall_post_impl_sched_yield(res)
1850 #define __sanitizer_syscall_pre__sched_protect(priority) \
1851 __sanitizer_syscall_pre_impl__sched_protect((long long)(priority))
1852 #define __sanitizer_syscall_post__sched_protect(res, priority) \
1853 __sanitizer_syscall_post_impl__sched_protect(res, (long long)(priority))
1854 /* syscall 352 has been skipped */
1855 /* syscall 353 has been skipped */
1856 #define __sanitizer_syscall_pre_fsync_range(fd, flags, start, length) \
1857 __sanitizer_syscall_pre_impl_fsync_range( \
1858 (long long)(fd), (long long)(flags), (long long)(start), \
1859 (long long)(length))
1860 #define __sanitizer_syscall_post_fsync_range(res, fd, flags, start, length) \
1861 __sanitizer_syscall_post_impl_fsync_range( \
1862 res, (long long)(fd), (long long)(flags), (long long)(start), \
1863 (long long)(length))
1864 #define __sanitizer_syscall_pre_uuidgen(store, count) \
1865 __sanitizer_syscall_pre_impl_uuidgen((long long)(store), (long long)(count))
1866 #define __sanitizer_syscall_post_uuidgen(res, store, count) \
1867 __sanitizer_syscall_post_impl_uuidgen(res, (long long)(store), \
1869 #define __sanitizer_syscall_pre_compat_90_getvfsstat(buf, bufsize, flags) \
1870 __sanitizer_syscall_pre_impl_compat_90_getvfsstat( \
1871 (long long)(buf), (long long)(bufsize), (long long)(flags))
1872 #define __sanitizer_syscall_post_compat_90_getvfsstat(res, buf, bufsize, \
1874 __sanitizer_syscall_post_impl_compat_90_getvfsstat( \
1875 res, (long long)(buf), (long long)(bufsize), (long long)(flags))
1876 #define __sanitizer_syscall_pre_compat_90_statvfs1(path, buf, flags) \
1877 __sanitizer_syscall_pre_impl_compat_90_statvfs1( \
1878 (long long)(path), (long long)(buf), (long long)(flags))
1879 #define __sanitizer_syscall_post_compat_90_statvfs1(res, path, buf, flags) \
1880 __sanitizer_syscall_post_impl_compat_90_statvfs1( \
1881 res, (long long)(path), (long long)(buf), (long long)(flags))
1882 #define __sanitizer_syscall_pre_compat_90_fstatvfs1(fd, buf, flags) \
1883 __sanitizer_syscall_pre_impl_compat_90_fstatvfs1( \
1884 (long long)(fd), (long long)(buf), (long long)(flags))
1885 #define __sanitizer_syscall_post_compat_90_fstatvfs1(res, fd, buf, flags) \
1886 __sanitizer_syscall_post_impl_compat_90_fstatvfs1( \
1887 res, (long long)(fd), (long long)(buf), (long long)(flags))
1888 #define __sanitizer_syscall_pre_compat_30_fhstatvfs1(fhp, buf, flags) \
1889 __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1( \
1890 (long long)(fhp), (long long)(buf), (long long)(flags))
1891 #define __sanitizer_syscall_post_compat_30_fhstatvfs1(res, fhp, buf, flags) \
1892 __sanitizer_syscall_post_impl_compat_30_fhstatvfs1( \
1893 res, (long long)(fhp), (long long)(buf), (long long)(flags))
1894 #define __sanitizer_syscall_pre_extattrctl(path, cmd, filename, attrnamespace, \
1896 __sanitizer_syscall_pre_impl_extattrctl( \
1897 (long long)(path), (long long)(cmd), (long long)(filename), \
1898 (long long)(attrnamespace), (long long)(attrname))
1899 #define __sanitizer_syscall_post_extattrctl(res, path, cmd, filename, \
1900 attrnamespace, attrname) \
1901 __sanitizer_syscall_post_impl_extattrctl( \
1902 res, (long long)(path), (long long)(cmd), (long long)(filename), \
1903 (long long)(attrnamespace), (long long)(attrname))
1904 #define __sanitizer_syscall_pre_extattr_set_file(path, attrnamespace, \
1905 attrname, data, nbytes) \
1906 __sanitizer_syscall_pre_impl_extattr_set_file( \
1907 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
1908 (long long)(data), (long long)(nbytes))
1909 #define __sanitizer_syscall_post_extattr_set_file(res, path, attrnamespace, \
1910 attrname, data, nbytes) \
1911 __sanitizer_syscall_post_impl_extattr_set_file( \
1912 res, (long long)(path), (long long)(attrnamespace), \
1913 (long long)(attrname), (long long)(data), (long long)(nbytes))
1914 #define __sanitizer_syscall_pre_extattr_get_file(path, attrnamespace, \
1915 attrname, data, nbytes) \
1916 __sanitizer_syscall_pre_impl_extattr_get_file( \
1917 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
1918 (long long)(data), (long long)(nbytes))
1919 #define __sanitizer_syscall_post_extattr_get_file(res, path, attrnamespace, \
1920 attrname, data, nbytes) \
1921 __sanitizer_syscall_post_impl_extattr_get_file( \
1922 res, (long long)(path), (long long)(attrnamespace), \
1923 (long long)(attrname), (long long)(data), (long long)(nbytes))
1924 #define __sanitizer_syscall_pre_extattr_delete_file(path, attrnamespace, \
1926 __sanitizer_syscall_pre_impl_extattr_delete_file( \
1927 (long long)(path), (long long)(attrnamespace), (long long)(attrname))
1928 #define __sanitizer_syscall_post_extattr_delete_file(res, path, attrnamespace, \
1930 __sanitizer_syscall_post_impl_extattr_delete_file( \
1931 res, (long long)(path), (long long)(attrnamespace), \
1932 (long long)(attrname))
1933 #define __sanitizer_syscall_pre_extattr_set_fd(fd, attrnamespace, attrname, \
1935 __sanitizer_syscall_pre_impl_extattr_set_fd( \
1936 (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
1937 (long long)(data), (long long)(nbytes))
1938 #define __sanitizer_syscall_post_extattr_set_fd(res, fd, attrnamespace, \
1939 attrname, data, nbytes) \
1940 __sanitizer_syscall_post_impl_extattr_set_fd( \
1941 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
1942 (long long)(data), (long long)(nbytes))
1943 #define __sanitizer_syscall_pre_extattr_get_fd(fd, attrnamespace, attrname, \
1945 __sanitizer_syscall_pre_impl_extattr_get_fd( \
1946 (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
1947 (long long)(data), (long long)(nbytes))
1948 #define __sanitizer_syscall_post_extattr_get_fd(res, fd, attrnamespace, \
1949 attrname, data, nbytes) \
1950 __sanitizer_syscall_post_impl_extattr_get_fd( \
1951 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \
1952 (long long)(data), (long long)(nbytes))
1953 #define __sanitizer_syscall_pre_extattr_delete_fd(fd, attrnamespace, attrname) \
1954 __sanitizer_syscall_pre_impl_extattr_delete_fd( \
1955 (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
1956 #define __sanitizer_syscall_post_extattr_delete_fd(res, fd, attrnamespace, \
1958 __sanitizer_syscall_post_impl_extattr_delete_fd( \
1959 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname))
1960 #define __sanitizer_syscall_pre_extattr_set_link(path, attrnamespace, \
1961 attrname, data, nbytes) \
1962 __sanitizer_syscall_pre_impl_extattr_set_link( \
1963 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
1964 (long long)(data), (long long)(nbytes))
1965 #define __sanitizer_syscall_post_extattr_set_link(res, path, attrnamespace, \
1966 attrname, data, nbytes) \
1967 __sanitizer_syscall_post_impl_extattr_set_link( \
1968 res, (long long)(path), (long long)(attrnamespace), \
1969 (long long)(attrname), (long long)(data), (long long)(nbytes))
1970 #define __sanitizer_syscall_pre_extattr_get_link(path, attrnamespace, \
1971 attrname, data, nbytes) \
1972 __sanitizer_syscall_pre_impl_extattr_get_link( \
1973 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \
1974 (long long)(data), (long long)(nbytes))
1975 #define __sanitizer_syscall_post_extattr_get_link(res, path, attrnamespace, \
1976 attrname, data, nbytes) \
1977 __sanitizer_syscall_post_impl_extattr_get_link( \
1978 res, (long long)(path), (long long)(attrnamespace), \
1979 (long long)(attrname), (long long)(data), (long long)(nbytes))
1980 #define __sanitizer_syscall_pre_extattr_delete_link(path, attrnamespace, \
1982 __sanitizer_syscall_pre_impl_extattr_delete_link( \
1983 (long long)(path), (long long)(attrnamespace), (long long)(attrname))
1984 #define __sanitizer_syscall_post_extattr_delete_link(res, path, attrnamespace, \
1986 __sanitizer_syscall_post_impl_extattr_delete_link( \
1987 res, (long long)(path), (long long)(attrnamespace), \
1988 (long long)(attrname))
1989 #define __sanitizer_syscall_pre_extattr_list_fd(fd, attrnamespace, data, \
1991 __sanitizer_syscall_pre_impl_extattr_list_fd( \
1992 (long long)(fd), (long long)(attrnamespace), (long long)(data), \
1993 (long long)(nbytes))
1994 #define __sanitizer_syscall_post_extattr_list_fd(res, fd, attrnamespace, data, \
1996 __sanitizer_syscall_post_impl_extattr_list_fd( \
1997 res, (long long)(fd), (long long)(attrnamespace), (long long)(data), \
1998 (long long)(nbytes))
1999 #define __sanitizer_syscall_pre_extattr_list_file(path, attrnamespace, data, \
2001 __sanitizer_syscall_pre_impl_extattr_list_file( \
2002 (long long)(path), (long long)(attrnamespace), (long long)(data), \
2003 (long long)(nbytes))
2004 #define __sanitizer_syscall_post_extattr_list_file(res, path, attrnamespace, \
2006 __sanitizer_syscall_post_impl_extattr_list_file( \
2007 res, (long long)(path), (long long)(attrnamespace), (long long)(data), \
2008 (long long)(nbytes))
2009 #define __sanitizer_syscall_pre_extattr_list_link(path, attrnamespace, data, \
2011 __sanitizer_syscall_pre_impl_extattr_list_link( \
2012 (long long)(path), (long long)(attrnamespace), (long long)(data), \
2013 (long long)(nbytes))
2014 #define __sanitizer_syscall_post_extattr_list_link(res, path, attrnamespace, \
2016 __sanitizer_syscall_post_impl_extattr_list_link( \
2017 res, (long long)(path), (long long)(attrnamespace), (long long)(data), \
2018 (long long)(nbytes))
2019 #define __sanitizer_syscall_pre_compat_50_pselect(nd, in, ou, ex, ts, mask) \
2020 __sanitizer_syscall_pre_impl_compat_50_pselect( \
2021 (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
2022 (long long)(ts), (long long)(mask))
2023 #define __sanitizer_syscall_post_compat_50_pselect(res, nd, in, ou, ex, ts, \
2025 __sanitizer_syscall_post_impl_compat_50_pselect( \
2026 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
2027 (long long)(ts), (long long)(mask))
2028 #define __sanitizer_syscall_pre_compat_50_pollts(fds, nfds, ts, mask) \
2029 __sanitizer_syscall_pre_impl_compat_50_pollts( \
2030 (long long)(fds), (long long)(nfds), (long long)(ts), (long long)(mask))
2031 #define __sanitizer_syscall_post_compat_50_pollts(res, fds, nfds, ts, mask) \
2032 __sanitizer_syscall_post_impl_compat_50_pollts( \
2033 res, (long long)(fds), (long long)(nfds), (long long)(ts), \
2035 #define __sanitizer_syscall_pre_setxattr(path, name, value, size, flags) \
2036 __sanitizer_syscall_pre_impl_setxattr((long long)(path), (long long)(name), \
2037 (long long)(value), (long long)(size), \
2039 #define __sanitizer_syscall_post_setxattr(res, path, name, value, size, flags) \
2040 __sanitizer_syscall_post_impl_setxattr( \
2041 res, (long long)(path), (long long)(name), (long long)(value), \
2042 (long long)(size), (long long)(flags))
2043 #define __sanitizer_syscall_pre_lsetxattr(path, name, value, size, flags) \
2044 __sanitizer_syscall_pre_impl_lsetxattr( \
2045 (long long)(path), (long long)(name), (long long)(value), \
2046 (long long)(size), (long long)(flags))
2047 #define __sanitizer_syscall_post_lsetxattr(res, path, name, value, size, \
2049 __sanitizer_syscall_post_impl_lsetxattr( \
2050 res, (long long)(path), (long long)(name), (long long)(value), \
2051 (long long)(size), (long long)(flags))
2052 #define __sanitizer_syscall_pre_fsetxattr(fd, name, value, size, flags) \
2053 __sanitizer_syscall_pre_impl_fsetxattr( \
2054 (long long)(fd), (long long)(name), (long long)(value), \
2055 (long long)(size), (long long)(flags))
2056 #define __sanitizer_syscall_post_fsetxattr(res, fd, name, value, size, flags) \
2057 __sanitizer_syscall_post_impl_fsetxattr( \
2058 res, (long long)(fd), (long long)(name), (long long)(value), \
2059 (long long)(size), (long long)(flags))
2060 #define __sanitizer_syscall_pre_getxattr(path, name, value, size) \
2061 __sanitizer_syscall_pre_impl_getxattr((long long)(path), (long long)(name), \
2062 (long long)(value), (long long)(size))
2063 #define __sanitizer_syscall_post_getxattr(res, path, name, value, size) \
2064 __sanitizer_syscall_post_impl_getxattr( \
2065 res, (long long)(path), (long long)(name), (long long)(value), \
2067 #define __sanitizer_syscall_pre_lgetxattr(path, name, value, size) \
2068 __sanitizer_syscall_pre_impl_lgetxattr((long long)(path), (long long)(name), \
2069 (long long)(value), \
2071 #define __sanitizer_syscall_post_lgetxattr(res, path, name, value, size) \
2072 __sanitizer_syscall_post_impl_lgetxattr( \
2073 res, (long long)(path), (long long)(name), (long long)(value), \
2075 #define __sanitizer_syscall_pre_fgetxattr(fd, name, value, size) \
2076 __sanitizer_syscall_pre_impl_fgetxattr((long long)(fd), (long long)(name), \
2077 (long long)(value), \
2079 #define __sanitizer_syscall_post_fgetxattr(res, fd, name, value, size) \
2080 __sanitizer_syscall_post_impl_fgetxattr( \
2081 res, (long long)(fd), (long long)(name), (long long)(value), \
2083 #define __sanitizer_syscall_pre_listxattr(path, list, size) \
2084 __sanitizer_syscall_pre_impl_listxattr((long long)(path), (long long)(list), \
2086 #define __sanitizer_syscall_post_listxattr(res, path, list, size) \
2087 __sanitizer_syscall_post_impl_listxattr( \
2088 res, (long long)(path), (long long)(list), (long long)(size))
2089 #define __sanitizer_syscall_pre_llistxattr(path, list, size) \
2090 __sanitizer_syscall_pre_impl_llistxattr( \
2091 (long long)(path), (long long)(list), (long long)(size))
2092 #define __sanitizer_syscall_post_llistxattr(res, path, list, size) \
2093 __sanitizer_syscall_post_impl_llistxattr( \
2094 res, (long long)(path), (long long)(list), (long long)(size))
2095 #define __sanitizer_syscall_pre_flistxattr(fd, list, size) \
2096 __sanitizer_syscall_pre_impl_flistxattr((long long)(fd), (long long)(list), \
2098 #define __sanitizer_syscall_post_flistxattr(res, fd, list, size) \
2099 __sanitizer_syscall_post_impl_flistxattr( \
2100 res, (long long)(fd), (long long)(list), (long long)(size))
2101 #define __sanitizer_syscall_pre_removexattr(path, name) \
2102 __sanitizer_syscall_pre_impl_removexattr((long long)(path), (long long)(name))
2103 #define __sanitizer_syscall_post_removexattr(res, path, name) \
2104 __sanitizer_syscall_post_impl_removexattr(res, (long long)(path), \
2106 #define __sanitizer_syscall_pre_lremovexattr(path, name) \
2107 __sanitizer_syscall_pre_impl_lremovexattr((long long)(path), \
2109 #define __sanitizer_syscall_post_lremovexattr(res, path, name) \
2110 __sanitizer_syscall_post_impl_lremovexattr(res, (long long)(path), \
2112 #define __sanitizer_syscall_pre_fremovexattr(fd, name) \
2113 __sanitizer_syscall_pre_impl_fremovexattr((long long)(fd), (long long)(name))
2114 #define __sanitizer_syscall_post_fremovexattr(res, fd, name) \
2115 __sanitizer_syscall_post_impl_fremovexattr(res, (long long)(fd), \
2117 #define __sanitizer_syscall_pre_compat_50___stat30(path, ub) \
2118 __sanitizer_syscall_pre_impl_compat_50___stat30((long long)(path), \
2120 #define __sanitizer_syscall_post_compat_50___stat30(res, path, ub) \
2121 __sanitizer_syscall_post_impl_compat_50___stat30(res, (long long)(path), \
2123 #define __sanitizer_syscall_pre_compat_50___fstat30(fd, sb) \
2124 __sanitizer_syscall_pre_impl_compat_50___fstat30((long long)(fd), \
2126 #define __sanitizer_syscall_post_compat_50___fstat30(res, fd, sb) \
2127 __sanitizer_syscall_post_impl_compat_50___fstat30(res, (long long)(fd), \
2129 #define __sanitizer_syscall_pre_compat_50___lstat30(path, ub) \
2130 __sanitizer_syscall_pre_impl_compat_50___lstat30((long long)(path), \
2132 #define __sanitizer_syscall_post_compat_50___lstat30(res, path, ub) \
2133 __sanitizer_syscall_post_impl_compat_50___lstat30(res, (long long)(path), \
2135 #define __sanitizer_syscall_pre___getdents30(fd, buf, count) \
2136 __sanitizer_syscall_pre_impl___getdents30((long long)(fd), (long long)(buf), \
2138 #define __sanitizer_syscall_post___getdents30(res, fd, buf, count) \
2139 __sanitizer_syscall_post_impl___getdents30( \
2140 res, (long long)(fd), (long long)(buf), (long long)(count))
2141 #define __sanitizer_syscall_pre_posix_fadvise() \
2142 __sanitizer_syscall_pre_impl_posix_fadvise((long long)())
2143 #define __sanitizer_syscall_post_posix_fadvise(res) \
2144 __sanitizer_syscall_post_impl_posix_fadvise(res, (long long)())
2145 #define __sanitizer_syscall_pre_compat_30___fhstat30(fhp, sb) \
2146 __sanitizer_syscall_pre_impl_compat_30___fhstat30((long long)(fhp), \
2148 #define __sanitizer_syscall_post_compat_30___fhstat30(res, fhp, sb) \
2149 __sanitizer_syscall_post_impl_compat_30___fhstat30(res, (long long)(fhp), \
2151 #define __sanitizer_syscall_pre_compat_50___ntp_gettime30(ntvp) \
2152 __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30((long long)(ntvp))
2153 #define __sanitizer_syscall_post_compat_50___ntp_gettime30(res, ntvp) \
2154 __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(res, \
2156 #define __sanitizer_syscall_pre___socket30(domain, type, protocol) \
2157 __sanitizer_syscall_pre_impl___socket30( \
2158 (long long)(domain), (long long)(type), (long long)(protocol))
2159 #define __sanitizer_syscall_post___socket30(res, domain, type, protocol) \
2160 __sanitizer_syscall_post_impl___socket30( \
2161 res, (long long)(domain), (long long)(type), (long long)(protocol))
2162 #define __sanitizer_syscall_pre___getfh30(fname, fhp, fh_size) \
2163 __sanitizer_syscall_pre_impl___getfh30((long long)(fname), (long long)(fhp), \
2164 (long long)(fh_size))
2165 #define __sanitizer_syscall_post___getfh30(res, fname, fhp, fh_size) \
2166 __sanitizer_syscall_post_impl___getfh30( \
2167 res, (long long)(fname), (long long)(fhp), (long long)(fh_size))
2168 #define __sanitizer_syscall_pre___fhopen40(fhp, fh_size, flags) \
2169 __sanitizer_syscall_pre_impl___fhopen40( \
2170 (long long)(fhp), (long long)(fh_size), (long long)(flags))
2171 #define __sanitizer_syscall_post___fhopen40(res, fhp, fh_size, flags) \
2172 __sanitizer_syscall_post_impl___fhopen40( \
2173 res, (long long)(fhp), (long long)(fh_size), (long long)(flags))
2174 #define __sanitizer_syscall_pre_compat_90_fhstatvfs1(fhp, fh_size, buf, flags) \
2175 __sanitizer_syscall_pre_impl_compat_90_fhstatvfs1( \
2176 (long long)(fhp), (long long)(fh_size), (long long)(buf), \
2178 #define __sanitizer_syscall_post_compat_90_fhstatvfs1(res, fhp, fh_size, buf, \
2180 __sanitizer_syscall_post_impl_compat_90_fhstatvfs1( \
2181 res, (long long)(fhp), (long long)(fh_size), (long long)(buf), \
2183 #define __sanitizer_syscall_pre_compat_50___fhstat40(fhp, fh_size, sb) \
2184 __sanitizer_syscall_pre_impl_compat_50___fhstat40( \
2185 (long long)(fhp), (long long)(fh_size), (long long)(sb))
2186 #define __sanitizer_syscall_post_compat_50___fhstat40(res, fhp, fh_size, sb) \
2187 __sanitizer_syscall_post_impl_compat_50___fhstat40( \
2188 res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
2189 #define __sanitizer_syscall_pre_aio_cancel(fildes, aiocbp) \
2190 __sanitizer_syscall_pre_impl_aio_cancel((long long)(fildes), \
2191 (long long)(aiocbp))
2192 #define __sanitizer_syscall_post_aio_cancel(res, fildes, aiocbp) \
2193 __sanitizer_syscall_post_impl_aio_cancel(res, (long long)(fildes), \
2194 (long long)(aiocbp))
2195 #define __sanitizer_syscall_pre_aio_error(aiocbp) \
2196 __sanitizer_syscall_pre_impl_aio_error((long long)(aiocbp))
2197 #define __sanitizer_syscall_post_aio_error(res, aiocbp) \
2198 __sanitizer_syscall_post_impl_aio_error(res, (long long)(aiocbp))
2199 #define __sanitizer_syscall_pre_aio_fsync(op, aiocbp) \
2200 __sanitizer_syscall_pre_impl_aio_fsync((long long)(op), (long long)(aiocbp))
2201 #define __sanitizer_syscall_post_aio_fsync(res, op, aiocbp) \
2202 __sanitizer_syscall_post_impl_aio_fsync(res, (long long)(op), \
2203 (long long)(aiocbp))
2204 #define __sanitizer_syscall_pre_aio_read(aiocbp) \
2205 __sanitizer_syscall_pre_impl_aio_read((long long)(aiocbp))
2206 #define __sanitizer_syscall_post_aio_read(res, aiocbp) \
2207 __sanitizer_syscall_post_impl_aio_read(res, (long long)(aiocbp))
2208 #define __sanitizer_syscall_pre_aio_return(aiocbp) \
2209 __sanitizer_syscall_pre_impl_aio_return((long long)(aiocbp))
2210 #define __sanitizer_syscall_post_aio_return(res, aiocbp) \
2211 __sanitizer_syscall_post_impl_aio_return(res, (long long)(aiocbp))
2212 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \
2213 __sanitizer_syscall_pre_impl_compat_50_aio_suspend( \
2214 (long long)(list), (long long)(nent), (long long)(timeout))
2215 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \
2217 __sanitizer_syscall_post_impl_compat_50_aio_suspend( \
2218 res, (long long)(list), (long long)(nent), (long long)(timeout))
2219 #define __sanitizer_syscall_pre_aio_write(aiocbp) \
2220 __sanitizer_syscall_pre_impl_aio_write((long long)(aiocbp))
2221 #define __sanitizer_syscall_post_aio_write(res, aiocbp) \
2222 __sanitizer_syscall_post_impl_aio_write(res, (long long)(aiocbp))
2223 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \
2224 __sanitizer_syscall_pre_impl_lio_listio((long long)(mode), \
2225 (long long)(list), \
2226 (long long)(nent), (long long)(sig))
2227 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \
2228 __sanitizer_syscall_post_impl_lio_listio( \
2229 res, (long long)(mode), (long long)(list), (long long)(nent), \
2231 /* syscall 407 has been skipped */
2232 /* syscall 408 has been skipped */
2233 /* syscall 409 has been skipped */
2234 #define __sanitizer_syscall_pre___mount50(type, path, flags, data, data_len) \
2235 __sanitizer_syscall_pre_impl___mount50( \
2236 (long long)(type), (long long)(path), (long long)(flags), \
2237 (long long)(data), (long long)(data_len))
2238 #define __sanitizer_syscall_post___mount50(res, type, path, flags, data, \
2240 __sanitizer_syscall_post_impl___mount50( \
2241 res, (long long)(type), (long long)(path), (long long)(flags), \
2242 (long long)(data), (long long)(data_len))
2243 #define __sanitizer_syscall_pre_mremap(old_address, old_size, new_address, \
2245 __sanitizer_syscall_pre_impl_mremap( \
2246 (long long)(old_address), (long long)(old_size), \
2247 (long long)(new_address), (long long)(new_size), (long long)(flags))
2248 #define __sanitizer_syscall_post_mremap(res, old_address, old_size, \
2249 new_address, new_size, flags) \
2250 __sanitizer_syscall_post_impl_mremap( \
2251 res, (long long)(old_address), (long long)(old_size), \
2252 (long long)(new_address), (long long)(new_size), (long long)(flags))
2253 #define __sanitizer_syscall_pre_pset_create(psid) \
2254 __sanitizer_syscall_pre_impl_pset_create((long long)(psid))
2255 #define __sanitizer_syscall_post_pset_create(res, psid) \
2256 __sanitizer_syscall_post_impl_pset_create(res, (long long)(psid))
2257 #define __sanitizer_syscall_pre_pset_destroy(psid) \
2258 __sanitizer_syscall_pre_impl_pset_destroy((long long)(psid))
2259 #define __sanitizer_syscall_post_pset_destroy(res, psid) \
2260 __sanitizer_syscall_post_impl_pset_destroy(res, (long long)(psid))
2261 #define __sanitizer_syscall_pre_pset_assign(psid, cpuid, opsid) \
2262 __sanitizer_syscall_pre_impl_pset_assign( \
2263 (long long)(psid), (long long)(cpuid), (long long)(opsid))
2264 #define __sanitizer_syscall_post_pset_assign(res, psid, cpuid, opsid) \
2265 __sanitizer_syscall_post_impl_pset_assign( \
2266 res, (long long)(psid), (long long)(cpuid), (long long)(opsid))
2267 #define __sanitizer_syscall_pre__pset_bind(idtype, first_id, second_id, psid, \
2269 __sanitizer_syscall_pre_impl__pset_bind( \
2270 (long long)(idtype), (long long)(first_id), (long long)(second_id), \
2271 (long long)(psid), (long long)(opsid))
2272 #define __sanitizer_syscall_post__pset_bind(res, idtype, first_id, second_id, \
2274 __sanitizer_syscall_post_impl__pset_bind( \
2275 res, (long long)(idtype), (long long)(first_id), (long long)(second_id), \
2276 (long long)(psid), (long long)(opsid))
2277 #define __sanitizer_syscall_pre___posix_fadvise50(fd, PAD, offset, len, \
2279 __sanitizer_syscall_pre_impl___posix_fadvise50( \
2280 (long long)(fd), (long long)(PAD), (long long)(offset), \
2281 (long long)(len), (long long)(advice))
2282 #define __sanitizer_syscall_post___posix_fadvise50(res, fd, PAD, offset, len, \
2284 __sanitizer_syscall_post_impl___posix_fadvise50( \
2285 res, (long long)(fd), (long long)(PAD), (long long)(offset), \
2286 (long long)(len), (long long)(advice))
2287 #define __sanitizer_syscall_pre___select50(nd, in, ou, ex, tv) \
2288 __sanitizer_syscall_pre_impl___select50((long long)(nd), (long long)(in), \
2289 (long long)(ou), (long long)(ex), \
2291 #define __sanitizer_syscall_post___select50(res, nd, in, ou, ex, tv) \
2292 __sanitizer_syscall_post_impl___select50(res, (long long)(nd), \
2293 (long long)(in), (long long)(ou), \
2294 (long long)(ex), (long long)(tv))
2295 #define __sanitizer_syscall_pre___gettimeofday50(tp, tzp) \
2296 __sanitizer_syscall_pre_impl___gettimeofday50((long long)(tp), \
2298 #define __sanitizer_syscall_post___gettimeofday50(res, tp, tzp) \
2299 __sanitizer_syscall_post_impl___gettimeofday50(res, (long long)(tp), \
2301 #define __sanitizer_syscall_pre___settimeofday50(tv, tzp) \
2302 __sanitizer_syscall_pre_impl___settimeofday50((long long)(tv), \
2304 #define __sanitizer_syscall_post___settimeofday50(res, tv, tzp) \
2305 __sanitizer_syscall_post_impl___settimeofday50(res, (long long)(tv), \
2307 #define __sanitizer_syscall_pre___utimes50(path, tptr) \
2308 __sanitizer_syscall_pre_impl___utimes50((long long)(path), (long long)(tptr))
2309 #define __sanitizer_syscall_post___utimes50(res, path, tptr) \
2310 __sanitizer_syscall_post_impl___utimes50(res, (long long)(path), \
2312 #define __sanitizer_syscall_pre___adjtime50(delta, olddelta) \
2313 __sanitizer_syscall_pre_impl___adjtime50((long long)(delta), \
2314 (long long)(olddelta))
2315 #define __sanitizer_syscall_post___adjtime50(res, delta, olddelta) \
2316 __sanitizer_syscall_post_impl___adjtime50(res, (long long)(delta), \
2317 (long long)(olddelta))
2318 #define __sanitizer_syscall_pre___lfs_segwait50(fsidp, tv) \
2319 __sanitizer_syscall_pre_impl___lfs_segwait50((long long)(fsidp), \
2321 #define __sanitizer_syscall_post___lfs_segwait50(res, fsidp, tv) \
2322 __sanitizer_syscall_post_impl___lfs_segwait50(res, (long long)(fsidp), \
2324 #define __sanitizer_syscall_pre___futimes50(fd, tptr) \
2325 __sanitizer_syscall_pre_impl___futimes50((long long)(fd), (long long)(tptr))
2326 #define __sanitizer_syscall_post___futimes50(res, fd, tptr) \
2327 __sanitizer_syscall_post_impl___futimes50(res, (long long)(fd), \
2329 #define __sanitizer_syscall_pre___lutimes50(path, tptr) \
2330 __sanitizer_syscall_pre_impl___lutimes50((long long)(path), (long long)(tptr))
2331 #define __sanitizer_syscall_post___lutimes50(res, path, tptr) \
2332 __sanitizer_syscall_post_impl___lutimes50(res, (long long)(path), \
2334 #define __sanitizer_syscall_pre___setitimer50(which, itv, oitv) \
2335 __sanitizer_syscall_pre_impl___setitimer50( \
2336 (long long)(which), (long long)(itv), (long long)(oitv))
2337 #define __sanitizer_syscall_post___setitimer50(res, which, itv, oitv) \
2338 __sanitizer_syscall_post_impl___setitimer50( \
2339 res, (long long)(which), (long long)(itv), (long long)(oitv))
2340 #define __sanitizer_syscall_pre___getitimer50(which, itv) \
2341 __sanitizer_syscall_pre_impl___getitimer50((long long)(which), \
2343 #define __sanitizer_syscall_post___getitimer50(res, which, itv) \
2344 __sanitizer_syscall_post_impl___getitimer50(res, (long long)(which), \
2346 #define __sanitizer_syscall_pre___clock_gettime50(clock_id, tp) \
2347 __sanitizer_syscall_pre_impl___clock_gettime50((long long)(clock_id), \
2349 #define __sanitizer_syscall_post___clock_gettime50(res, clock_id, tp) \
2350 __sanitizer_syscall_post_impl___clock_gettime50(res, (long long)(clock_id), \
2352 #define __sanitizer_syscall_pre___clock_settime50(clock_id, tp) \
2353 __sanitizer_syscall_pre_impl___clock_settime50((long long)(clock_id), \
2355 #define __sanitizer_syscall_post___clock_settime50(res, clock_id, tp) \
2356 __sanitizer_syscall_post_impl___clock_settime50(res, (long long)(clock_id), \
2358 #define __sanitizer_syscall_pre___clock_getres50(clock_id, tp) \
2359 __sanitizer_syscall_pre_impl___clock_getres50((long long)(clock_id), \
2361 #define __sanitizer_syscall_post___clock_getres50(res, clock_id, tp) \
2362 __sanitizer_syscall_post_impl___clock_getres50(res, (long long)(clock_id), \
2364 #define __sanitizer_syscall_pre___nanosleep50(rqtp, rmtp) \
2365 __sanitizer_syscall_pre_impl___nanosleep50((long long)(rqtp), \
2367 #define __sanitizer_syscall_post___nanosleep50(res, rqtp, rmtp) \
2368 __sanitizer_syscall_post_impl___nanosleep50(res, (long long)(rqtp), \
2370 #define __sanitizer_syscall_pre_____sigtimedwait50(set, info, timeout) \
2371 __sanitizer_syscall_pre_impl_____sigtimedwait50( \
2372 (long long)(set), (long long)(info), (long long)(timeout))
2373 #define __sanitizer_syscall_post_____sigtimedwait50(res, set, info, timeout) \
2374 __sanitizer_syscall_post_impl_____sigtimedwait50( \
2375 res, (long long)(set), (long long)(info), (long long)(timeout))
2376 #define __sanitizer_syscall_pre___mq_timedsend50(mqdes, msg_ptr, msg_len, \
2377 msg_prio, abs_timeout) \
2378 __sanitizer_syscall_pre_impl___mq_timedsend50( \
2379 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
2380 (long long)(msg_prio), (long long)(abs_timeout))
2381 #define __sanitizer_syscall_post___mq_timedsend50( \
2382 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
2383 __sanitizer_syscall_post_impl___mq_timedsend50( \
2384 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
2385 (long long)(msg_prio), (long long)(abs_timeout))
2386 #define __sanitizer_syscall_pre___mq_timedreceive50(mqdes, msg_ptr, msg_len, \
2387 msg_prio, abs_timeout) \
2388 __sanitizer_syscall_pre_impl___mq_timedreceive50( \
2389 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
2390 (long long)(msg_prio), (long long)(abs_timeout))
2391 #define __sanitizer_syscall_post___mq_timedreceive50( \
2392 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \
2393 __sanitizer_syscall_post_impl___mq_timedreceive50( \
2394 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \
2395 (long long)(msg_prio), (long long)(abs_timeout))
2396 #define __sanitizer_syscall_pre_compat_60__lwp_park(ts, unpark, hint, \
2398 __sanitizer_syscall_pre_impl_compat_60__lwp_park( \
2399 (long long)(ts), (long long)(unpark), (long long)(hint), \
2400 (long long)(unparkhint))
2401 #define __sanitizer_syscall_post_compat_60__lwp_park(res, ts, unpark, hint, \
2403 __sanitizer_syscall_post_impl_compat_60__lwp_park( \
2404 res, (long long)(ts), (long long)(unpark), (long long)(hint), \
2405 (long long)(unparkhint))
2406 #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \
2407 eventlist, nevents, timeout) \
2408 __sanitizer_syscall_pre_impl___kevent50( \
2409 (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2410 (long long)(eventlist), (long long)(nevents), (long long)(timeout))
2411 #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \
2412 eventlist, nevents, timeout) \
2413 __sanitizer_syscall_post_impl___kevent50( \
2414 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \
2415 (long long)(eventlist), (long long)(nevents), (long long)(timeout))
2416 #define __sanitizer_syscall_pre___pselect50(nd, in, ou, ex, ts, mask) \
2417 __sanitizer_syscall_pre_impl___pselect50((long long)(nd), (long long)(in), \
2418 (long long)(ou), (long long)(ex), \
2419 (long long)(ts), (long long)(mask))
2420 #define __sanitizer_syscall_post___pselect50(res, nd, in, ou, ex, ts, mask) \
2421 __sanitizer_syscall_post_impl___pselect50( \
2422 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \
2423 (long long)(ts), (long long)(mask))
2424 #define __sanitizer_syscall_pre___pollts50(fds, nfds, ts, mask) \
2425 __sanitizer_syscall_pre_impl___pollts50((long long)(fds), (long long)(nfds), \
2426 (long long)(ts), (long long)(mask))
2427 #define __sanitizer_syscall_post___pollts50(res, fds, nfds, ts, mask) \
2428 __sanitizer_syscall_post_impl___pollts50(res, (long long)(fds), \
2429 (long long)(nfds), (long long)(ts), \
2431 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \
2432 __sanitizer_syscall_pre_impl___aio_suspend50( \
2433 (long long)(list), (long long)(nent), (long long)(timeout))
2434 #define __sanitizer_syscall_post___aio_suspend50(res, list, nent, timeout) \
2435 __sanitizer_syscall_post_impl___aio_suspend50( \
2436 res, (long long)(list), (long long)(nent), (long long)(timeout))
2437 #define __sanitizer_syscall_pre___stat50(path, ub) \
2438 __sanitizer_syscall_pre_impl___stat50((long long)(path), (long long)(ub))
2439 #define __sanitizer_syscall_post___stat50(res, path, ub) \
2440 __sanitizer_syscall_post_impl___stat50(res, (long long)(path), \
2442 #define __sanitizer_syscall_pre___fstat50(fd, sb) \
2443 __sanitizer_syscall_pre_impl___fstat50((long long)(fd), (long long)(sb))
2444 #define __sanitizer_syscall_post___fstat50(res, fd, sb) \
2445 __sanitizer_syscall_post_impl___fstat50(res, (long long)(fd), (long long)(sb))
2446 #define __sanitizer_syscall_pre___lstat50(path, ub) \
2447 __sanitizer_syscall_pre_impl___lstat50((long long)(path), (long long)(ub))
2448 #define __sanitizer_syscall_post___lstat50(res, path, ub) \
2449 __sanitizer_syscall_post_impl___lstat50(res, (long long)(path), \
2451 #define __sanitizer_syscall_pre_____semctl50(semid, semnum, cmd, arg) \
2452 __sanitizer_syscall_pre_impl_____semctl50( \
2453 (long long)(semid), (long long)(semnum), (long long)(cmd), \
2455 #define __sanitizer_syscall_post_____semctl50(res, semid, semnum, cmd, arg) \
2456 __sanitizer_syscall_post_impl_____semctl50( \
2457 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \
2459 #define __sanitizer_syscall_pre___shmctl50(shmid, cmd, buf) \
2460 __sanitizer_syscall_pre_impl___shmctl50((long long)(shmid), \
2461 (long long)(cmd), (long long)(buf))
2462 #define __sanitizer_syscall_post___shmctl50(res, shmid, cmd, buf) \
2463 __sanitizer_syscall_post_impl___shmctl50(res, (long long)(shmid), \
2464 (long long)(cmd), (long long)(buf))
2465 #define __sanitizer_syscall_pre___msgctl50(msqid, cmd, buf) \
2466 __sanitizer_syscall_pre_impl___msgctl50((long long)(msqid), \
2467 (long long)(cmd), (long long)(buf))
2468 #define __sanitizer_syscall_post___msgctl50(res, msqid, cmd, buf) \
2469 __sanitizer_syscall_post_impl___msgctl50(res, (long long)(msqid), \
2470 (long long)(cmd), (long long)(buf))
2471 #define __sanitizer_syscall_pre___getrusage50(who, rusage) \
2472 __sanitizer_syscall_pre_impl___getrusage50((long long)(who), \
2473 (long long)(rusage))
2474 #define __sanitizer_syscall_post___getrusage50(res, who, rusage) \
2475 __sanitizer_syscall_post_impl___getrusage50(res, (long long)(who), \
2476 (long long)(rusage))
2477 #define __sanitizer_syscall_pre___timer_settime50(timerid, flags, value, \
2479 __sanitizer_syscall_pre_impl___timer_settime50( \
2480 (long long)(timerid), (long long)(flags), (long long)(value), \
2481 (long long)(ovalue))
2482 #define __sanitizer_syscall_post___timer_settime50(res, timerid, flags, value, \
2484 __sanitizer_syscall_post_impl___timer_settime50( \
2485 res, (long long)(timerid), (long long)(flags), (long long)(value), \
2486 (long long)(ovalue))
2487 #define __sanitizer_syscall_pre___timer_gettime50(timerid, value) \
2488 __sanitizer_syscall_pre_impl___timer_gettime50((long long)(timerid), \
2490 #define __sanitizer_syscall_post___timer_gettime50(res, timerid, value) \
2491 __sanitizer_syscall_post_impl___timer_gettime50(res, (long long)(timerid), \
2493 #if defined(NTP) || !defined(_KERNEL_OPT)
2494 #define __sanitizer_syscall_pre___ntp_gettime50(ntvp) \
2495 __sanitizer_syscall_pre_impl___ntp_gettime50((long long)(ntvp))
2496 #define __sanitizer_syscall_post___ntp_gettime50(res, ntvp) \
2497 __sanitizer_syscall_post_impl___ntp_gettime50(res, (long long)(ntvp))
2499 /* syscall 448 has been skipped */
2501 #define __sanitizer_syscall_pre___wait450(pid, status, options, rusage) \
2502 __sanitizer_syscall_pre_impl___wait450( \
2503 (long long)(pid), (long long)(status), (long long)(options), \
2504 (long long)(rusage))
2505 #define __sanitizer_syscall_post___wait450(res, pid, status, options, rusage) \
2506 __sanitizer_syscall_post_impl___wait450( \
2507 res, (long long)(pid), (long long)(status), (long long)(options), \
2508 (long long)(rusage))
2509 #define __sanitizer_syscall_pre___mknod50(path, mode, dev) \
2510 __sanitizer_syscall_pre_impl___mknod50((long long)(path), (long long)(mode), \
2512 #define __sanitizer_syscall_post___mknod50(res, path, mode, dev) \
2513 __sanitizer_syscall_post_impl___mknod50(res, (long long)(path), \
2514 (long long)(mode), (long long)(dev))
2515 #define __sanitizer_syscall_pre___fhstat50(fhp, fh_size, sb) \
2516 __sanitizer_syscall_pre_impl___fhstat50( \
2517 (long long)(fhp), (long long)(fh_size), (long long)(sb))
2518 #define __sanitizer_syscall_post___fhstat50(res, fhp, fh_size, sb) \
2519 __sanitizer_syscall_post_impl___fhstat50( \
2520 res, (long long)(fhp), (long long)(fh_size), (long long)(sb))
2521 /* syscall 452 has been skipped */
2522 #define __sanitizer_syscall_pre_pipe2(fildes, flags) \
2523 __sanitizer_syscall_pre_impl_pipe2((long long)(fildes), (long long)(flags))
2524 #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \
2525 __sanitizer_syscall_post_impl_pipe2(res, (long long)(fildes), \
2527 #define __sanitizer_syscall_pre_dup3(from, to, flags) \
2528 __sanitizer_syscall_pre_impl_dup3((long long)(from), (long long)(to), \
2530 #define __sanitizer_syscall_post_dup3(res, from, to, flags) \
2531 __sanitizer_syscall_post_impl_dup3(res, (long long)(from), (long long)(to), \
2533 #define __sanitizer_syscall_pre_kqueue1(flags) \
2534 __sanitizer_syscall_pre_impl_kqueue1((long long)(flags))
2535 #define __sanitizer_syscall_post_kqueue1(res, flags) \
2536 __sanitizer_syscall_post_impl_kqueue1(res, (long long)(flags))
2537 #define __sanitizer_syscall_pre_paccept(s, name, anamelen, mask, flags) \
2538 __sanitizer_syscall_pre_impl_paccept((long long)(s), (long long)(name), \
2539 (long long)(anamelen), \
2540 (long long)(mask), (long long)(flags))
2541 #define __sanitizer_syscall_post_paccept(res, s, name, anamelen, mask, flags) \
2542 __sanitizer_syscall_post_impl_paccept( \
2543 res, (long long)(s), (long long)(name), (long long)(anamelen), \
2544 (long long)(mask), (long long)(flags))
2545 #define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags) \
2546 __sanitizer_syscall_pre_impl_linkat((long long)(fd1), (long long)(name1), \
2547 (long long)(fd2), (long long)(name2), \
2549 #define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags) \
2550 __sanitizer_syscall_post_impl_linkat(res, (long long)(fd1), \
2551 (long long)(name1), (long long)(fd2), \
2552 (long long)(name2), (long long)(flags))
2553 #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \
2554 __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \
2555 (long long)(from), (long long)(tofd), \
2557 #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \
2558 __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \
2559 (long long)(from), (long long)(tofd), \
2561 #define __sanitizer_syscall_pre_mkfifoat(fd, path, mode) \
2562 __sanitizer_syscall_pre_impl_mkfifoat((long long)(fd), (long long)(path), \
2564 #define __sanitizer_syscall_post_mkfifoat(res, fd, path, mode) \
2565 __sanitizer_syscall_post_impl_mkfifoat(res, (long long)(fd), \
2566 (long long)(path), (long long)(mode))
2567 #define __sanitizer_syscall_pre_mknodat(fd, path, mode, PAD, dev) \
2568 __sanitizer_syscall_pre_impl_mknodat((long long)(fd), (long long)(path), \
2569 (long long)(mode), (long long)(PAD), \
2571 #define __sanitizer_syscall_post_mknodat(res, fd, path, mode, PAD, dev) \
2572 __sanitizer_syscall_post_impl_mknodat(res, (long long)(fd), \
2573 (long long)(path), (long long)(mode), \
2574 (long long)(PAD), (long long)(dev))
2575 #define __sanitizer_syscall_pre_mkdirat(fd, path, mode) \
2576 __sanitizer_syscall_pre_impl_mkdirat((long long)(fd), (long long)(path), \
2578 #define __sanitizer_syscall_post_mkdirat(res, fd, path, mode) \
2579 __sanitizer_syscall_post_impl_mkdirat(res, (long long)(fd), \
2580 (long long)(path), (long long)(mode))
2581 #define __sanitizer_syscall_pre_faccessat(fd, path, amode, flag) \
2582 __sanitizer_syscall_pre_impl_faccessat((long long)(fd), (long long)(path), \
2583 (long long)(amode), \
2585 #define __sanitizer_syscall_post_faccessat(res, fd, path, amode, flag) \
2586 __sanitizer_syscall_post_impl_faccessat( \
2587 res, (long long)(fd), (long long)(path), (long long)(amode), \
2589 #define __sanitizer_syscall_pre_fchmodat(fd, path, mode, flag) \
2590 __sanitizer_syscall_pre_impl_fchmodat((long long)(fd), (long long)(path), \
2591 (long long)(mode), (long long)(flag))
2592 #define __sanitizer_syscall_post_fchmodat(res, fd, path, mode, flag) \
2593 __sanitizer_syscall_post_impl_fchmodat(res, (long long)(fd), \
2594 (long long)(path), (long long)(mode), \
2596 #define __sanitizer_syscall_pre_fchownat(fd, path, owner, group, flag) \
2597 __sanitizer_syscall_pre_impl_fchownat((long long)(fd), (long long)(path), \
2598 (long long)(owner), \
2599 (long long)(group), (long long)(flag))
2600 #define __sanitizer_syscall_post_fchownat(res, fd, path, owner, group, flag) \
2601 __sanitizer_syscall_post_impl_fchownat( \
2602 res, (long long)(fd), (long long)(path), (long long)(owner), \
2603 (long long)(group), (long long)(flag))
2604 #define __sanitizer_syscall_pre_fexecve(fd, argp, envp) \
2605 __sanitizer_syscall_pre_impl_fexecve((long long)(fd), (long long)(argp), \
2607 #define __sanitizer_syscall_post_fexecve(res, fd, argp, envp) \
2608 __sanitizer_syscall_post_impl_fexecve(res, (long long)(fd), \
2609 (long long)(argp), (long long)(envp))
2610 #define __sanitizer_syscall_pre_fstatat(fd, path, buf, flag) \
2611 __sanitizer_syscall_pre_impl_fstatat((long long)(fd), (long long)(path), \
2612 (long long)(buf), (long long)(flag))
2613 #define __sanitizer_syscall_post_fstatat(res, fd, path, buf, flag) \
2614 __sanitizer_syscall_post_impl_fstatat(res, (long long)(fd), \
2615 (long long)(path), (long long)(buf), \
2617 #define __sanitizer_syscall_pre_utimensat(fd, path, tptr, flag) \
2618 __sanitizer_syscall_pre_impl_utimensat((long long)(fd), (long long)(path), \
2619 (long long)(tptr), (long long)(flag))
2620 #define __sanitizer_syscall_post_utimensat(res, fd, path, tptr, flag) \
2621 __sanitizer_syscall_post_impl_utimensat( \
2622 res, (long long)(fd), (long long)(path), (long long)(tptr), \
2624 #define __sanitizer_syscall_pre_openat(fd, path, oflags, mode) \
2625 __sanitizer_syscall_pre_impl_openat((long long)(fd), (long long)(path), \
2626 (long long)(oflags), (long long)(mode))
2627 #define __sanitizer_syscall_post_openat(res, fd, path, oflags, mode) \
2628 __sanitizer_syscall_post_impl_openat(res, (long long)(fd), \
2629 (long long)(path), (long long)(oflags), \
2631 #define __sanitizer_syscall_pre_readlinkat(fd, path, buf, bufsize) \
2632 __sanitizer_syscall_pre_impl_readlinkat((long long)(fd), (long long)(path), \
2634 (long long)(bufsize))
2635 #define __sanitizer_syscall_post_readlinkat(res, fd, path, buf, bufsize) \
2636 __sanitizer_syscall_post_impl_readlinkat( \
2637 res, (long long)(fd), (long long)(path), (long long)(buf), \
2638 (long long)(bufsize))
2639 #define __sanitizer_syscall_pre_symlinkat(path1, fd, path2) \
2640 __sanitizer_syscall_pre_impl_symlinkat((long long)(path1), (long long)(fd), \
2642 #define __sanitizer_syscall_post_symlinkat(res, path1, fd, path2) \
2643 __sanitizer_syscall_post_impl_symlinkat(res, (long long)(path1), \
2644 (long long)(fd), (long long)(path2))
2645 #define __sanitizer_syscall_pre_unlinkat(fd, path, flag) \
2646 __sanitizer_syscall_pre_impl_unlinkat((long long)(fd), (long long)(path), \
2648 #define __sanitizer_syscall_post_unlinkat(res, fd, path, flag) \
2649 __sanitizer_syscall_post_impl_unlinkat(res, (long long)(fd), \
2650 (long long)(path), (long long)(flag))
2651 #define __sanitizer_syscall_pre_futimens(fd, tptr) \
2652 __sanitizer_syscall_pre_impl_futimens((long long)(fd), (long long)(tptr))
2653 #define __sanitizer_syscall_post_futimens(res, fd, tptr) \
2654 __sanitizer_syscall_post_impl_futimens(res, (long long)(fd), \
2656 #define __sanitizer_syscall_pre___quotactl(path, args) \
2657 __sanitizer_syscall_pre_impl___quotactl((long long)(path), (long long)(args))
2658 #define __sanitizer_syscall_post___quotactl(res, path, args) \
2659 __sanitizer_syscall_post_impl___quotactl(res, (long long)(path), \
2661 #define __sanitizer_syscall_pre_posix_spawn(pid, path, file_actions, attrp, \
2663 __sanitizer_syscall_pre_impl_posix_spawn( \
2664 (long long)(pid), (long long)(path), (long long)(file_actions), \
2665 (long long)(attrp), (long long)(argv), (long long)(envp))
2666 #define __sanitizer_syscall_post_posix_spawn(res, pid, path, file_actions, \
2667 attrp, argv, envp) \
2668 __sanitizer_syscall_post_impl_posix_spawn( \
2669 res, (long long)(pid), (long long)(path), (long long)(file_actions), \
2670 (long long)(attrp), (long long)(argv), (long long)(envp))
2671 #define __sanitizer_syscall_pre_recvmmsg(s, mmsg, vlen, flags, timeout) \
2672 __sanitizer_syscall_pre_impl_recvmmsg((long long)(s), (long long)(mmsg), \
2673 (long long)(vlen), (long long)(flags), \
2674 (long long)(timeout))
2675 #define __sanitizer_syscall_post_recvmmsg(res, s, mmsg, vlen, flags, timeout) \
2676 __sanitizer_syscall_post_impl_recvmmsg( \
2677 res, (long long)(s), (long long)(mmsg), (long long)(vlen), \
2678 (long long)(flags), (long long)(timeout))
2679 #define __sanitizer_syscall_pre_sendmmsg(s, mmsg, vlen, flags) \
2680 __sanitizer_syscall_pre_impl_sendmmsg((long long)(s), (long long)(mmsg), \
2681 (long long)(vlen), (long long)(flags))
2682 #define __sanitizer_syscall_post_sendmmsg(res, s, mmsg, vlen, flags) \
2683 __sanitizer_syscall_post_impl_sendmmsg(res, (long long)(s), \
2684 (long long)(mmsg), (long long)(vlen), \
2686 #define __sanitizer_syscall_pre_clock_nanosleep(clock_id, flags, rqtp, rmtp) \
2687 __sanitizer_syscall_pre_impl_clock_nanosleep( \
2688 (long long)(clock_id), (long long)(flags), (long long)(rqtp), \
2690 #define __sanitizer_syscall_post_clock_nanosleep(res, clock_id, flags, rqtp, \
2692 __sanitizer_syscall_post_impl_clock_nanosleep( \
2693 res, (long long)(clock_id), (long long)(flags), (long long)(rqtp), \
2695 #define __sanitizer_syscall_pre____lwp_park60(clock_id, flags, ts, unpark, \
2697 __sanitizer_syscall_pre_impl____lwp_park60( \
2698 (long long)(clock_id), (long long)(flags), (long long)(ts), \
2699 (long long)(unpark), (long long)(hint), (long long)(unparkhint))
2700 #define __sanitizer_syscall_post____lwp_park60(res, clock_id, flags, ts, \
2701 unpark, hint, unparkhint) \
2702 __sanitizer_syscall_post_impl____lwp_park60( \
2703 res, (long long)(clock_id), (long long)(flags), (long long)(ts), \
2704 (long long)(unpark), (long long)(hint), (long long)(unparkhint))
2705 #define __sanitizer_syscall_pre_posix_fallocate(fd, PAD, pos, len) \
2706 __sanitizer_syscall_pre_impl_posix_fallocate( \
2707 (long long)(fd), (long long)(PAD), (long long)(pos), (long long)(len))
2708 #define __sanitizer_syscall_post_posix_fallocate(res, fd, PAD, pos, len) \
2709 __sanitizer_syscall_post_impl_posix_fallocate( \
2710 res, (long long)(fd), (long long)(PAD), (long long)(pos), \
2712 #define __sanitizer_syscall_pre_fdiscard(fd, PAD, pos, len) \
2713 __sanitizer_syscall_pre_impl_fdiscard((long long)(fd), (long long)(PAD), \
2714 (long long)(pos), (long long)(len))
2715 #define __sanitizer_syscall_post_fdiscard(res, fd, PAD, pos, len) \
2716 __sanitizer_syscall_post_impl_fdiscard(res, (long long)(fd), \
2717 (long long)(PAD), (long long)(pos), \
2719 #define __sanitizer_syscall_pre_wait6(idtype, id, status, options, wru, info) \
2720 __sanitizer_syscall_pre_impl_wait6( \
2721 (long long)(idtype), (long long)(id), (long long)(status), \
2722 (long long)(options), (long long)(wru), (long long)(info))
2723 #define __sanitizer_syscall_post_wait6(res, idtype, id, status, options, wru, \
2725 __sanitizer_syscall_post_impl_wait6( \
2726 res, (long long)(idtype), (long long)(id), (long long)(status), \
2727 (long long)(options), (long long)(wru), (long long)(info))
2728 #define __sanitizer_syscall_pre_clock_getcpuclockid2(idtype, id, clock_id) \
2729 __sanitizer_syscall_pre_impl_clock_getcpuclockid2( \
2730 (long long)(idtype), (long long)(id), (long long)(clock_id))
2731 #define __sanitizer_syscall_post_clock_getcpuclockid2(res, idtype, id, \
2733 __sanitizer_syscall_post_impl_clock_getcpuclockid2( \
2734 res, (long long)(idtype), (long long)(id), (long long)(clock_id))
2735 #define __sanitizer_syscall_pre___getvfsstat90(buf, bufsize, flags) \
2736 __sanitizer_syscall_pre_impl___getvfsstat90( \
2737 (long long)(buf), (long long)(bufsize), (long long)(flags))
2738 #define __sanitizer_syscall_post___getvfsstat90(res, buf, bufsize, flags) \
2739 __sanitizer_syscall_post_impl___getvfsstat90( \
2740 res, (long long)(buf), (long long)(bufsize), (long long)(flags))
2741 #define __sanitizer_syscall_pre___statvfs190(path, buf, flags) \
2742 __sanitizer_syscall_pre_impl___statvfs190( \
2743 (long long)(path), (long long)(buf), (long long)(flags))
2744 #define __sanitizer_syscall_post___statvfs190(res, path, buf, flags) \
2745 __sanitizer_syscall_post_impl___statvfs190( \
2746 res, (long long)(path), (long long)(buf), (long long)(flags))
2747 #define __sanitizer_syscall_pre___fstatvfs190(fd, buf, flags) \
2748 __sanitizer_syscall_pre_impl___fstatvfs190( \
2749 (long long)(fd), (long long)(buf), (long long)(flags))
2750 #define __sanitizer_syscall_post___fstatvfs190(res, fd, buf, flags) \
2751 __sanitizer_syscall_post_impl___fstatvfs190( \
2752 res, (long long)(fd), (long long)(buf), (long long)(flags))
2753 #define __sanitizer_syscall_pre___fhstatvfs190(fhp, fh_size, buf, flags) \
2754 __sanitizer_syscall_pre_impl___fhstatvfs190( \
2755 (long long)(fhp), (long long)(fh_size), (long long)(buf), \
2757 #define __sanitizer_syscall_post___fhstatvfs190(res, fhp, fh_size, buf, flags) \
2758 __sanitizer_syscall_post_impl___fhstatvfs190( \
2759 res, (long long)(fhp), (long long)(fh_size), (long long)(buf), \
2761 #define __sanitizer_syscall_pre___acl_get_link(path, type, aclp) \
2762 __sanitizer_syscall_pre_impl___acl_get_link( \
2763 (long long)(path), (long long)(type), (long long)(aclp))
2764 #define __sanitizer_syscall_post___acl_get_link(res, path, type, aclp) \
2765 __sanitizer_syscall_post_impl___acl_get_link( \
2766 res, (long long)(path), (long long)(type), (long long)(aclp))
2767 #define __sanitizer_syscall_pre___acl_set_link(path, type, aclp) \
2768 __sanitizer_syscall_pre_impl___acl_set_link( \
2769 (long long)(path), (long long)(type), (long long)(aclp))
2770 #define __sanitizer_syscall_post___acl_set_link(res, path, type, aclp) \
2771 __sanitizer_syscall_post_impl___acl_set_link( \
2772 res, (long long)(path), (long long)(type), (long long)(aclp))
2773 #define __sanitizer_syscall_pre___acl_delete_link(path, type) \
2774 __sanitizer_syscall_pre_impl___acl_delete_link((long long)(path), \
2776 #define __sanitizer_syscall_post___acl_delete_link(res, path, type) \
2777 __sanitizer_syscall_post_impl___acl_delete_link(res, (long long)(path), \
2779 #define __sanitizer_syscall_pre___acl_aclcheck_link(path, type, aclp) \
2780 __sanitizer_syscall_pre_impl___acl_aclcheck_link( \
2781 (long long)(path), (long long)(type), (long long)(aclp))
2782 #define __sanitizer_syscall_post___acl_aclcheck_link(res, path, type, aclp) \
2783 __sanitizer_syscall_post_impl___acl_aclcheck_link( \
2784 res, (long long)(path), (long long)(type), (long long)(aclp))
2785 #define __sanitizer_syscall_pre___acl_get_file(path, type, aclp) \
2786 __sanitizer_syscall_pre_impl___acl_get_file( \
2787 (long long)(path), (long long)(type), (long long)(aclp))
2788 #define __sanitizer_syscall_post___acl_get_file(res, path, type, aclp) \
2789 __sanitizer_syscall_post_impl___acl_get_file( \
2790 res, (long long)(path), (long long)(type), (long long)(aclp))
2791 #define __sanitizer_syscall_pre___acl_set_file(path, type, aclp) \
2792 __sanitizer_syscall_pre_impl___acl_set_file( \
2793 (long long)(path), (long long)(type), (long long)(aclp))
2794 #define __sanitizer_syscall_post___acl_set_file(res, path, type, aclp) \
2795 __sanitizer_syscall_post_impl___acl_set_file( \
2796 res, (long long)(path), (long long)(type), (long long)(aclp))
2797 #define __sanitizer_syscall_pre___acl_get_fd(filedes, type, aclp) \
2798 __sanitizer_syscall_pre_impl___acl_get_fd( \
2799 (long long)(filedes), (long long)(type), (long long)(aclp))
2800 #define __sanitizer_syscall_post___acl_get_fd(res, filedes, type, aclp) \
2801 __sanitizer_syscall_post_impl___acl_get_fd( \
2802 res, (long long)(filedes), (long long)(type), (long long)(aclp))
2803 #define __sanitizer_syscall_pre___acl_set_fd(filedes, type, aclp) \
2804 __sanitizer_syscall_pre_impl___acl_set_fd( \
2805 (long long)(filedes), (long long)(type), (long long)(aclp))
2806 #define __sanitizer_syscall_post___acl_set_fd(res, filedes, type, aclp) \
2807 __sanitizer_syscall_post_impl___acl_set_fd( \
2808 res, (long long)(filedes), (long long)(type), (long long)(aclp))
2809 #define __sanitizer_syscall_pre___acl_delete_file(path, type) \
2810 __sanitizer_syscall_pre_impl___acl_delete_file((long long)(path), \
2812 #define __sanitizer_syscall_post___acl_delete_file(res, path, type) \
2813 __sanitizer_syscall_post_impl___acl_delete_file(res, (long long)(path), \
2815 #define __sanitizer_syscall_pre___acl_delete_fd(filedes, type) \
2816 __sanitizer_syscall_pre_impl___acl_delete_fd((long long)(filedes), \
2818 #define __sanitizer_syscall_post___acl_delete_fd(res, filedes, type) \
2819 __sanitizer_syscall_post_impl___acl_delete_fd(res, (long long)(filedes), \
2821 #define __sanitizer_syscall_pre___acl_aclcheck_file(path, type, aclp) \
2822 __sanitizer_syscall_pre_impl___acl_aclcheck_file( \
2823 (long long)(path), (long long)(type), (long long)(aclp))
2824 #define __sanitizer_syscall_post___acl_aclcheck_file(res, path, type, aclp) \
2825 __sanitizer_syscall_post_impl___acl_aclcheck_file( \
2826 res, (long long)(path), (long long)(type), (long long)(aclp))
2827 #define __sanitizer_syscall_pre___acl_aclcheck_fd(filedes, type, aclp) \
2828 __sanitizer_syscall_pre_impl___acl_aclcheck_fd( \
2829 (long long)(filedes), (long long)(type), (long long)(aclp))
2830 #define __sanitizer_syscall_post___acl_aclcheck_fd(res, filedes, type, aclp) \
2831 __sanitizer_syscall_post_impl___acl_aclcheck_fd( \
2832 res, (long long)(filedes), (long long)(type), (long long)(aclp))
2833 #define __sanitizer_syscall_pre_lpathconf(path, name) \
2834 __sanitizer_syscall_pre_impl_lpathconf((long long)(path), (long long)(name))
2835 #define __sanitizer_syscall_post_lpathconf(res, path, name) \
2836 __sanitizer_syscall_post_impl_lpathconf(res, (long long)(path), \
2839 /* Compat with older releases */
2840 #define __sanitizer_syscall_pre_getvfsstat \
2841 __sanitizer_syscall_pre_compat_90_getvfsstat
2842 #define __sanitizer_syscall_post_getvfsstat \
2843 __sanitizer_syscall_post_compat_90_getvfsstat
2845 #define __sanitizer_syscall_pre_statvfs1 \
2846 __sanitizer_syscall_pre_compat_90_statvfs1
2847 #define __sanitizer_syscall_post_statvfs1 \
2848 __sanitizer_syscall_post_compat_90_statvfs1
2850 #define __sanitizer_syscall_pre_fstatvfs1 \
2851 __sanitizer_syscall_pre_compat_90_fstatvfs1
2852 #define __sanitizer_syscall_post_fstatvfs1 \
2853 __sanitizer_syscall_post_compat_90_fstatvfs1
2855 #define __sanitizer_syscall_pre___fhstatvfs140 \
2856 __sanitizer_syscall_pre_compat_90_fhstatvfs1
2857 #define __sanitizer_syscall_post___fhstatvfs140 \
2858 __sanitizer_syscall_post_compat_90_fhstatvfs1
2864 // Private declarations. Do not call directly from user code. Use macros above.
2866 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
2868 void __sanitizer_syscall_pre_impl_syscall(long long code
, long long arg0
,
2869 long long arg1
, long long arg2
,
2870 long long arg3
, long long arg4
,
2871 long long arg5
, long long arg6
,
2873 void __sanitizer_syscall_post_impl_syscall(long long res
, long long code
,
2874 long long arg0
, long long arg1
,
2875 long long arg2
, long long arg3
,
2876 long long arg4
, long long arg5
,
2877 long long arg6
, long long arg7
);
2878 void __sanitizer_syscall_pre_impl_exit(long long rval
);
2879 void __sanitizer_syscall_post_impl_exit(long long res
, long long rval
);
2880 void __sanitizer_syscall_pre_impl_fork(void);
2881 void __sanitizer_syscall_post_impl_fork(long long res
);
2882 void __sanitizer_syscall_pre_impl_read(long long fd
, long long buf
,
2884 void __sanitizer_syscall_post_impl_read(long long res
, long long fd
,
2885 long long buf
, long long nbyte
);
2886 void __sanitizer_syscall_pre_impl_write(long long fd
, long long buf
,
2888 void __sanitizer_syscall_post_impl_write(long long res
, long long fd
,
2889 long long buf
, long long nbyte
);
2890 void __sanitizer_syscall_pre_impl_open(long long path
, long long flags
,
2892 void __sanitizer_syscall_post_impl_open(long long res
, long long path
,
2893 long long flags
, long long mode
);
2894 void __sanitizer_syscall_pre_impl_close(long long fd
);
2895 void __sanitizer_syscall_post_impl_close(long long res
, long long fd
);
2896 void __sanitizer_syscall_pre_impl_compat_50_wait4(long long pid
,
2900 void __sanitizer_syscall_post_impl_compat_50_wait4(long long res
, long long pid
,
2904 void __sanitizer_syscall_pre_impl_compat_43_ocreat(long long path
,
2906 void __sanitizer_syscall_post_impl_compat_43_ocreat(long long res
,
2909 void __sanitizer_syscall_pre_impl_link(long long path
, long long link
);
2910 void __sanitizer_syscall_post_impl_link(long long res
, long long path
,
2912 void __sanitizer_syscall_pre_impl_unlink(long long path
);
2913 void __sanitizer_syscall_post_impl_unlink(long long res
, long long path
);
2914 /* syscall 11 has been skipped */
2915 void __sanitizer_syscall_pre_impl_chdir(long long path
);
2916 void __sanitizer_syscall_post_impl_chdir(long long res
, long long path
);
2917 void __sanitizer_syscall_pre_impl_fchdir(long long fd
);
2918 void __sanitizer_syscall_post_impl_fchdir(long long res
, long long fd
);
2919 void __sanitizer_syscall_pre_impl_compat_50_mknod(long long path
,
2922 void __sanitizer_syscall_post_impl_compat_50_mknod(long long res
,
2926 void __sanitizer_syscall_pre_impl_chmod(long long path
, long long mode
);
2927 void __sanitizer_syscall_post_impl_chmod(long long res
, long long path
,
2929 void __sanitizer_syscall_pre_impl_chown(long long path
, long long uid
,
2931 void __sanitizer_syscall_post_impl_chown(long long res
, long long path
,
2932 long long uid
, long long gid
);
2933 void __sanitizer_syscall_pre_impl_break(long long nsize
);
2934 void __sanitizer_syscall_post_impl_break(long long res
, long long nsize
);
2935 void __sanitizer_syscall_pre_impl_compat_20_getfsstat(long long buf
,
2938 void __sanitizer_syscall_post_impl_compat_20_getfsstat(long long res
,
2942 void __sanitizer_syscall_pre_impl_compat_43_olseek(long long fd
,
2945 void __sanitizer_syscall_post_impl_compat_43_olseek(long long res
, long long fd
,
2948 void __sanitizer_syscall_pre_impl_getpid(void);
2949 void __sanitizer_syscall_post_impl_getpid(long long res
);
2950 void __sanitizer_syscall_pre_impl_compat_40_mount(long long type
,
2954 void __sanitizer_syscall_post_impl_compat_40_mount(long long res
,
2959 void __sanitizer_syscall_pre_impl_unmount(long long path
, long long flags
);
2960 void __sanitizer_syscall_post_impl_unmount(long long res
, long long path
,
2962 void __sanitizer_syscall_pre_impl_setuid(long long uid
);
2963 void __sanitizer_syscall_post_impl_setuid(long long res
, long long uid
);
2964 void __sanitizer_syscall_pre_impl_getuid(void);
2965 void __sanitizer_syscall_post_impl_getuid(long long res
);
2966 void __sanitizer_syscall_pre_impl_geteuid(void);
2967 void __sanitizer_syscall_post_impl_geteuid(long long res
);
2968 void __sanitizer_syscall_pre_impl_ptrace(long long req
, long long pid
,
2969 long long addr
, long long data
);
2970 void __sanitizer_syscall_post_impl_ptrace(long long res
, long long req
,
2971 long long pid
, long long addr
,
2973 void __sanitizer_syscall_pre_impl_recvmsg(long long s
, long long msg
,
2975 void __sanitizer_syscall_post_impl_recvmsg(long long res
, long long s
,
2976 long long msg
, long long flags
);
2977 void __sanitizer_syscall_pre_impl_sendmsg(long long s
, long long msg
,
2979 void __sanitizer_syscall_post_impl_sendmsg(long long res
, long long s
,
2980 long long msg
, long long flags
);
2981 void __sanitizer_syscall_pre_impl_recvfrom(long long s
, long long buf
,
2982 long long len
, long long flags
,
2984 long long fromlenaddr
);
2985 void __sanitizer_syscall_post_impl_recvfrom(long long res
, long long s
,
2986 long long buf
, long long len
,
2987 long long flags
, long long from
,
2988 long long fromlenaddr
);
2989 void __sanitizer_syscall_pre_impl_accept(long long s
, long long name
,
2990 long long anamelen
);
2991 void __sanitizer_syscall_post_impl_accept(long long res
, long long s
,
2992 long long name
, long long anamelen
);
2993 void __sanitizer_syscall_pre_impl_getpeername(long long fdes
, long long asa
,
2995 void __sanitizer_syscall_post_impl_getpeername(long long res
, long long fdes
,
2996 long long asa
, long long alen
);
2997 void __sanitizer_syscall_pre_impl_getsockname(long long fdes
, long long asa
,
2999 void __sanitizer_syscall_post_impl_getsockname(long long res
, long long fdes
,
3000 long long asa
, long long alen
);
3001 void __sanitizer_syscall_pre_impl_access(long long path
, long long flags
);
3002 void __sanitizer_syscall_post_impl_access(long long res
, long long path
,
3004 void __sanitizer_syscall_pre_impl_chflags(long long path
, long long flags
);
3005 void __sanitizer_syscall_post_impl_chflags(long long res
, long long path
,
3007 void __sanitizer_syscall_pre_impl_fchflags(long long fd
, long long flags
);
3008 void __sanitizer_syscall_post_impl_fchflags(long long res
, long long fd
,
3010 void __sanitizer_syscall_pre_impl_sync(void);
3011 void __sanitizer_syscall_post_impl_sync(long long res
);
3012 void __sanitizer_syscall_pre_impl_kill(long long pid
, long long signum
);
3013 void __sanitizer_syscall_post_impl_kill(long long res
, long long pid
,
3015 void __sanitizer_syscall_pre_impl_compat_43_stat43(long long path
,
3017 void __sanitizer_syscall_post_impl_compat_43_stat43(long long res
,
3020 void __sanitizer_syscall_pre_impl_getppid(void);
3021 void __sanitizer_syscall_post_impl_getppid(long long res
);
3022 void __sanitizer_syscall_pre_impl_compat_43_lstat43(long long path
,
3024 void __sanitizer_syscall_post_impl_compat_43_lstat43(long long res
,
3027 void __sanitizer_syscall_pre_impl_dup(long long fd
);
3028 void __sanitizer_syscall_post_impl_dup(long long res
, long long fd
);
3029 void __sanitizer_syscall_pre_impl_pipe(void);
3030 void __sanitizer_syscall_post_impl_pipe(long long res
);
3031 void __sanitizer_syscall_pre_impl_getegid(void);
3032 void __sanitizer_syscall_post_impl_getegid(long long res
);
3033 void __sanitizer_syscall_pre_impl_profil(long long samples
, long long size
,
3034 long long offset
, long long scale
);
3035 void __sanitizer_syscall_post_impl_profil(long long res
, long long samples
,
3036 long long size
, long long offset
,
3038 void __sanitizer_syscall_pre_impl_ktrace(long long fname
, long long ops
,
3039 long long facs
, long long pid
);
3040 void __sanitizer_syscall_post_impl_ktrace(long long res
, long long fname
,
3041 long long ops
, long long facs
,
3043 void __sanitizer_syscall_pre_impl_compat_13_sigaction13(long long signum
,
3046 void __sanitizer_syscall_post_impl_compat_13_sigaction13(long long res
,
3050 void __sanitizer_syscall_pre_impl_getgid(void);
3051 void __sanitizer_syscall_post_impl_getgid(long long res
);
3052 void __sanitizer_syscall_pre_impl_compat_13_sigprocmask13(long long how
,
3054 void __sanitizer_syscall_post_impl_compat_13_sigprocmask13(long long res
,
3057 void __sanitizer_syscall_pre_impl___getlogin(long long namebuf
,
3059 void __sanitizer_syscall_post_impl___getlogin(long long res
, long long namebuf
,
3061 void __sanitizer_syscall_pre_impl___setlogin(long long namebuf
);
3062 void __sanitizer_syscall_post_impl___setlogin(long long res
, long long namebuf
);
3063 void __sanitizer_syscall_pre_impl_acct(long long path
);
3064 void __sanitizer_syscall_post_impl_acct(long long res
, long long path
);
3065 void __sanitizer_syscall_pre_impl_compat_13_sigpending13(void);
3066 void __sanitizer_syscall_post_impl_compat_13_sigpending13(long long res
);
3067 void __sanitizer_syscall_pre_impl_compat_13_sigaltstack13(long long nss
,
3069 void __sanitizer_syscall_post_impl_compat_13_sigaltstack13(long long res
,
3072 void __sanitizer_syscall_pre_impl_ioctl(long long fd
, long long com
,
3074 void __sanitizer_syscall_post_impl_ioctl(long long res
, long long fd
,
3075 long long com
, long long data
);
3076 void __sanitizer_syscall_pre_impl_compat_12_oreboot(long long opt
);
3077 void __sanitizer_syscall_post_impl_compat_12_oreboot(long long res
,
3079 void __sanitizer_syscall_pre_impl_revoke(long long path
);
3080 void __sanitizer_syscall_post_impl_revoke(long long res
, long long path
);
3081 void __sanitizer_syscall_pre_impl_symlink(long long path
, long long link
);
3082 void __sanitizer_syscall_post_impl_symlink(long long res
, long long path
,
3084 void __sanitizer_syscall_pre_impl_readlink(long long path
, long long buf
,
3086 void __sanitizer_syscall_post_impl_readlink(long long res
, long long path
,
3087 long long buf
, long long count
);
3088 void __sanitizer_syscall_pre_impl_execve(long long path
, long long argp
,
3090 void __sanitizer_syscall_post_impl_execve(long long res
, long long path
,
3091 long long argp
, long long envp
);
3092 void __sanitizer_syscall_pre_impl_umask(long long newmask
);
3093 void __sanitizer_syscall_post_impl_umask(long long res
, long long newmask
);
3094 void __sanitizer_syscall_pre_impl_chroot(long long path
);
3095 void __sanitizer_syscall_post_impl_chroot(long long res
, long long path
);
3096 void __sanitizer_syscall_pre_impl_compat_43_fstat43(long long fd
, long long sb
);
3097 void __sanitizer_syscall_post_impl_compat_43_fstat43(long long res
,
3100 void __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo(long long op
,
3104 void __sanitizer_syscall_post_impl_compat_43_ogetkerninfo(long long res
,
3109 void __sanitizer_syscall_pre_impl_compat_43_ogetpagesize(void);
3110 void __sanitizer_syscall_post_impl_compat_43_ogetpagesize(long long res
);
3111 void __sanitizer_syscall_pre_impl_compat_12_msync(long long addr
,
3113 void __sanitizer_syscall_post_impl_compat_12_msync(long long res
,
3116 void __sanitizer_syscall_pre_impl_vfork(void);
3117 void __sanitizer_syscall_post_impl_vfork(long long res
);
3118 /* syscall 67 has been skipped */
3119 /* syscall 68 has been skipped */
3120 /* syscall 69 has been skipped */
3121 /* syscall 70 has been skipped */
3122 void __sanitizer_syscall_pre_impl_compat_43_ommap(long long addr
, long long len
,
3124 long long flags
, long long fd
,
3126 void __sanitizer_syscall_post_impl_compat_43_ommap(
3127 long long res
, long long addr
, long long len
, long long prot
,
3128 long long flags
, long long fd
, long long pos
);
3129 void __sanitizer_syscall_pre_impl_vadvise(long long anom
);
3130 void __sanitizer_syscall_post_impl_vadvise(long long res
, long long anom
);
3131 void __sanitizer_syscall_pre_impl_munmap(long long addr
, long long len
);
3132 void __sanitizer_syscall_post_impl_munmap(long long res
, long long addr
,
3134 void __sanitizer_syscall_pre_impl_mprotect(long long addr
, long long len
,
3136 void __sanitizer_syscall_post_impl_mprotect(long long res
, long long addr
,
3137 long long len
, long long prot
);
3138 void __sanitizer_syscall_pre_impl_madvise(long long addr
, long long len
,
3140 void __sanitizer_syscall_post_impl_madvise(long long res
, long long addr
,
3141 long long len
, long long behav
);
3142 /* syscall 76 has been skipped */
3143 /* syscall 77 has been skipped */
3144 void __sanitizer_syscall_pre_impl_mincore(long long addr
, long long len
,
3146 void __sanitizer_syscall_post_impl_mincore(long long res
, long long addr
,
3147 long long len
, long long vec
);
3148 void __sanitizer_syscall_pre_impl_getgroups(long long gidsetsize
,
3150 void __sanitizer_syscall_post_impl_getgroups(long long res
,
3151 long long gidsetsize
,
3153 void __sanitizer_syscall_pre_impl_setgroups(long long gidsetsize
,
3155 void __sanitizer_syscall_post_impl_setgroups(long long res
,
3156 long long gidsetsize
,
3158 void __sanitizer_syscall_pre_impl_getpgrp(void);
3159 void __sanitizer_syscall_post_impl_getpgrp(long long res
);
3160 void __sanitizer_syscall_pre_impl_setpgid(long long pid
, long long pgid
);
3161 void __sanitizer_syscall_post_impl_setpgid(long long res
, long long pid
,
3163 void __sanitizer_syscall_pre_impl_compat_50_setitimer(long long which
,
3166 void __sanitizer_syscall_post_impl_compat_50_setitimer(long long res
,
3170 void __sanitizer_syscall_pre_impl_compat_43_owait(void);
3171 void __sanitizer_syscall_post_impl_compat_43_owait(long long res
);
3172 void __sanitizer_syscall_pre_impl_compat_12_oswapon(long long name
);
3173 void __sanitizer_syscall_post_impl_compat_12_oswapon(long long res
,
3175 void __sanitizer_syscall_pre_impl_compat_50_getitimer(long long which
,
3177 void __sanitizer_syscall_post_impl_compat_50_getitimer(long long res
,
3180 void __sanitizer_syscall_pre_impl_compat_43_ogethostname(long long hostname
,
3182 void __sanitizer_syscall_post_impl_compat_43_ogethostname(long long res
,
3185 void __sanitizer_syscall_pre_impl_compat_43_osethostname(long long hostname
,
3187 void __sanitizer_syscall_post_impl_compat_43_osethostname(long long res
,
3190 void __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize(void);
3191 void __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(long long res
);
3192 void __sanitizer_syscall_pre_impl_dup2(long long from
, long long to
);
3193 void __sanitizer_syscall_post_impl_dup2(long long res
, long long from
,
3195 void __sanitizer_syscall_pre_impl_getrandom(long long buf
, long long buflen
,
3197 void __sanitizer_syscall_post_impl_getrandom(long long res
, long long buf
,
3198 long long buflen
, long long flags
);
3199 void __sanitizer_syscall_pre_impl_fcntl(long long fd
, long long cmd
,
3201 void __sanitizer_syscall_post_impl_fcntl(long long res
, long long fd
,
3202 long long cmd
, long long arg
);
3203 void __sanitizer_syscall_pre_impl_compat_50_select(long long nd
, long long in
,
3204 long long ou
, long long ex
,
3206 void __sanitizer_syscall_post_impl_compat_50_select(long long res
, long long nd
,
3207 long long in
, long long ou
,
3208 long long ex
, long long tv
);
3209 /* syscall 94 has been skipped */
3210 void __sanitizer_syscall_pre_impl_fsync(long long fd
);
3211 void __sanitizer_syscall_post_impl_fsync(long long res
, long long fd
);
3212 void __sanitizer_syscall_pre_impl_setpriority(long long which
, long long who
,
3214 void __sanitizer_syscall_post_impl_setpriority(long long res
, long long which
,
3215 long long who
, long long prio
);
3216 void __sanitizer_syscall_pre_impl_compat_30_socket(long long domain
,
3218 long long protocol
);
3219 void __sanitizer_syscall_post_impl_compat_30_socket(long long res
,
3222 long long protocol
);
3223 void __sanitizer_syscall_pre_impl_connect(long long s
, long long name
,
3225 void __sanitizer_syscall_post_impl_connect(long long res
, long long s
,
3226 long long name
, long long namelen
);
3227 void __sanitizer_syscall_pre_impl_compat_43_oaccept(long long s
, long long name
,
3228 long long anamelen
);
3229 void __sanitizer_syscall_post_impl_compat_43_oaccept(long long res
, long long s
,
3231 long long anamelen
);
3232 void __sanitizer_syscall_pre_impl_getpriority(long long which
, long long who
);
3233 void __sanitizer_syscall_post_impl_getpriority(long long res
, long long which
,
3235 void __sanitizer_syscall_pre_impl_compat_43_osend(long long s
, long long buf
,
3238 void __sanitizer_syscall_post_impl_compat_43_osend(long long res
, long long s
,
3239 long long buf
, long long len
,
3241 void __sanitizer_syscall_pre_impl_compat_43_orecv(long long s
, long long buf
,
3244 void __sanitizer_syscall_post_impl_compat_43_orecv(long long res
, long long s
,
3245 long long buf
, long long len
,
3247 void __sanitizer_syscall_pre_impl_compat_13_sigreturn13(long long sigcntxp
);
3248 void __sanitizer_syscall_post_impl_compat_13_sigreturn13(long long res
,
3249 long long sigcntxp
);
3250 void __sanitizer_syscall_pre_impl_bind(long long s
, long long name
,
3252 void __sanitizer_syscall_post_impl_bind(long long res
, long long s
,
3253 long long name
, long long namelen
);
3254 void __sanitizer_syscall_pre_impl_setsockopt(long long s
, long long level
,
3255 long long name
, long long val
,
3257 void __sanitizer_syscall_post_impl_setsockopt(long long res
, long long s
,
3258 long long level
, long long name
,
3259 long long val
, long long valsize
);
3260 void __sanitizer_syscall_pre_impl_listen(long long s
, long long backlog
);
3261 void __sanitizer_syscall_post_impl_listen(long long res
, long long s
,
3263 /* syscall 107 has been skipped */
3264 void __sanitizer_syscall_pre_impl_compat_43_osigvec(long long signum
,
3267 void __sanitizer_syscall_post_impl_compat_43_osigvec(long long res
,
3271 void __sanitizer_syscall_pre_impl_compat_43_osigblock(long long mask
);
3272 void __sanitizer_syscall_post_impl_compat_43_osigblock(long long res
,
3274 void __sanitizer_syscall_pre_impl_compat_43_osigsetmask(long long mask
);
3275 void __sanitizer_syscall_post_impl_compat_43_osigsetmask(long long res
,
3277 void __sanitizer_syscall_pre_impl_compat_13_sigsuspend13(long long mask
);
3278 void __sanitizer_syscall_post_impl_compat_13_sigsuspend13(long long res
,
3280 void __sanitizer_syscall_pre_impl_compat_43_osigstack(long long nss
,
3282 void __sanitizer_syscall_post_impl_compat_43_osigstack(long long res
,
3285 void __sanitizer_syscall_pre_impl_compat_43_orecvmsg(long long s
, long long msg
,
3287 void __sanitizer_syscall_post_impl_compat_43_orecvmsg(long long res
,
3291 void __sanitizer_syscall_pre_impl_compat_43_osendmsg(long long s
, long long msg
,
3293 void __sanitizer_syscall_post_impl_compat_43_osendmsg(long long res
,
3297 /* syscall 115 has been skipped */
3298 void __sanitizer_syscall_pre_impl_compat_50_gettimeofday(long long tp
,
3300 void __sanitizer_syscall_post_impl_compat_50_gettimeofday(long long res
,
3303 void __sanitizer_syscall_pre_impl_compat_50_getrusage(long long who
,
3305 void __sanitizer_syscall_post_impl_compat_50_getrusage(long long res
,
3308 void __sanitizer_syscall_pre_impl_getsockopt(long long s
, long long level
,
3309 long long name
, long long val
,
3310 long long avalsize
);
3311 void __sanitizer_syscall_post_impl_getsockopt(long long res
, long long s
,
3312 long long level
, long long name
,
3314 long long avalsize
);
3315 /* syscall 119 has been skipped */
3316 void __sanitizer_syscall_pre_impl_readv(long long fd
, long long iovp
,
3318 void __sanitizer_syscall_post_impl_readv(long long res
, long long fd
,
3319 long long iovp
, long long iovcnt
);
3320 void __sanitizer_syscall_pre_impl_writev(long long fd
, long long iovp
,
3322 void __sanitizer_syscall_post_impl_writev(long long res
, long long fd
,
3323 long long iovp
, long long iovcnt
);
3324 void __sanitizer_syscall_pre_impl_compat_50_settimeofday(long long tv
,
3326 void __sanitizer_syscall_post_impl_compat_50_settimeofday(long long res
,
3329 void __sanitizer_syscall_pre_impl_fchown(long long fd
, long long uid
,
3331 void __sanitizer_syscall_post_impl_fchown(long long res
, long long fd
,
3332 long long uid
, long long gid
);
3333 void __sanitizer_syscall_pre_impl_fchmod(long long fd
, long long mode
);
3334 void __sanitizer_syscall_post_impl_fchmod(long long res
, long long fd
,
3336 void __sanitizer_syscall_pre_impl_compat_43_orecvfrom(
3337 long long s
, long long buf
, long long len
, long long flags
, long long from
,
3338 long long fromlenaddr
);
3339 void __sanitizer_syscall_post_impl_compat_43_orecvfrom(
3340 long long res
, long long s
, long long buf
, long long len
, long long flags
,
3341 long long from
, long long fromlenaddr
);
3342 void __sanitizer_syscall_pre_impl_setreuid(long long ruid
, long long euid
);
3343 void __sanitizer_syscall_post_impl_setreuid(long long res
, long long ruid
,
3345 void __sanitizer_syscall_pre_impl_setregid(long long rgid
, long long egid
);
3346 void __sanitizer_syscall_post_impl_setregid(long long res
, long long rgid
,
3348 void __sanitizer_syscall_pre_impl_rename(long long from
, long long to
);
3349 void __sanitizer_syscall_post_impl_rename(long long res
, long long from
,
3351 void __sanitizer_syscall_pre_impl_compat_43_otruncate(long long path
,
3353 void __sanitizer_syscall_post_impl_compat_43_otruncate(long long res
,
3356 void __sanitizer_syscall_pre_impl_compat_43_oftruncate(long long fd
,
3358 void __sanitizer_syscall_post_impl_compat_43_oftruncate(long long res
,
3361 void __sanitizer_syscall_pre_impl_flock(long long fd
, long long how
);
3362 void __sanitizer_syscall_post_impl_flock(long long res
, long long fd
,
3364 void __sanitizer_syscall_pre_impl_mkfifo(long long path
, long long mode
);
3365 void __sanitizer_syscall_post_impl_mkfifo(long long res
, long long path
,
3367 void __sanitizer_syscall_pre_impl_sendto(long long s
, long long buf
,
3368 long long len
, long long flags
,
3369 long long to
, long long tolen
);
3370 void __sanitizer_syscall_post_impl_sendto(long long res
, long long s
,
3371 long long buf
, long long len
,
3372 long long flags
, long long to
,
3374 void __sanitizer_syscall_pre_impl_shutdown(long long s
, long long how
);
3375 void __sanitizer_syscall_post_impl_shutdown(long long res
, long long s
,
3377 void __sanitizer_syscall_pre_impl_socketpair(long long domain
, long long type
,
3378 long long protocol
, long long rsv
);
3379 void __sanitizer_syscall_post_impl_socketpair(long long res
, long long domain
,
3383 void __sanitizer_syscall_pre_impl_mkdir(long long path
, long long mode
);
3384 void __sanitizer_syscall_post_impl_mkdir(long long res
, long long path
,
3386 void __sanitizer_syscall_pre_impl_rmdir(long long path
);
3387 void __sanitizer_syscall_post_impl_rmdir(long long res
, long long path
);
3388 void __sanitizer_syscall_pre_impl_compat_50_utimes(long long path
,
3390 void __sanitizer_syscall_post_impl_compat_50_utimes(long long res
,
3393 /* syscall 139 has been skipped */
3394 void __sanitizer_syscall_pre_impl_compat_50_adjtime(long long delta
,
3395 long long olddelta
);
3396 void __sanitizer_syscall_post_impl_compat_50_adjtime(long long res
,
3398 long long olddelta
);
3399 void __sanitizer_syscall_pre_impl_compat_43_ogetpeername(long long fdes
,
3402 void __sanitizer_syscall_post_impl_compat_43_ogetpeername(long long res
,
3406 void __sanitizer_syscall_pre_impl_compat_43_ogethostid(void);
3407 void __sanitizer_syscall_post_impl_compat_43_ogethostid(long long res
);
3408 void __sanitizer_syscall_pre_impl_compat_43_osethostid(long long hostid
);
3409 void __sanitizer_syscall_post_impl_compat_43_osethostid(long long res
,
3411 void __sanitizer_syscall_pre_impl_compat_43_ogetrlimit(long long which
,
3413 void __sanitizer_syscall_post_impl_compat_43_ogetrlimit(long long res
,
3416 void __sanitizer_syscall_pre_impl_compat_43_osetrlimit(long long which
,
3418 void __sanitizer_syscall_post_impl_compat_43_osetrlimit(long long res
,
3421 void __sanitizer_syscall_pre_impl_compat_43_okillpg(long long pgid
,
3423 void __sanitizer_syscall_post_impl_compat_43_okillpg(long long res
,
3426 void __sanitizer_syscall_pre_impl_setsid(void);
3427 void __sanitizer_syscall_post_impl_setsid(long long res
);
3428 void __sanitizer_syscall_pre_impl_compat_50_quotactl(long long path
,
3432 void __sanitizer_syscall_post_impl_compat_50_quotactl(
3433 long long res
, long long path
, long long cmd
, long long uid
, long long arg
);
3434 void __sanitizer_syscall_pre_impl_compat_43_oquota(void);
3435 void __sanitizer_syscall_post_impl_compat_43_oquota(long long res
);
3436 void __sanitizer_syscall_pre_impl_compat_43_ogetsockname(long long fdec
,
3439 void __sanitizer_syscall_post_impl_compat_43_ogetsockname(long long res
,
3443 /* syscall 151 has been skipped */
3444 /* syscall 152 has been skipped */
3445 /* syscall 153 has been skipped */
3446 /* syscall 154 has been skipped */
3447 void __sanitizer_syscall_pre_impl_nfssvc(long long flag
, long long argp
);
3448 void __sanitizer_syscall_post_impl_nfssvc(long long res
, long long flag
,
3450 void __sanitizer_syscall_pre_impl_compat_43_ogetdirentries(long long fd
,
3454 void __sanitizer_syscall_post_impl_compat_43_ogetdirentries(long long res
,
3459 void __sanitizer_syscall_pre_impl_compat_20_statfs(long long path
,
3461 void __sanitizer_syscall_post_impl_compat_20_statfs(long long res
,
3464 void __sanitizer_syscall_pre_impl_compat_20_fstatfs(long long fd
,
3466 void __sanitizer_syscall_post_impl_compat_20_fstatfs(long long res
,
3469 /* syscall 159 has been skipped */
3470 /* syscall 160 has been skipped */
3471 void __sanitizer_syscall_pre_impl_compat_30_getfh(long long fname
,
3473 void __sanitizer_syscall_post_impl_compat_30_getfh(long long res
,
3476 void __sanitizer_syscall_pre_impl_compat_09_ogetdomainname(long long domainname
,
3478 void __sanitizer_syscall_post_impl_compat_09_ogetdomainname(
3479 long long res
, long long domainname
, long long len
);
3480 void __sanitizer_syscall_pre_impl_compat_09_osetdomainname(long long domainname
,
3482 void __sanitizer_syscall_post_impl_compat_09_osetdomainname(
3483 long long res
, long long domainname
, long long len
);
3484 void __sanitizer_syscall_pre_impl_compat_09_ouname(long long name
);
3485 void __sanitizer_syscall_post_impl_compat_09_ouname(long long res
,
3487 void __sanitizer_syscall_pre_impl_sysarch(long long op
, long long parms
);
3488 void __sanitizer_syscall_post_impl_sysarch(long long res
, long long op
,
3490 void __sanitizer_syscall_pre_impl___futex(long long uaddr
, long long op
,
3491 long long val
, long long timeout
,
3492 long long uaddr2
, long long val2
,
3494 void __sanitizer_syscall_post_impl___futex(long long res
, long long uaddr
,
3495 long long op
, long long val
,
3496 long long timeout
, long long uaddr2
,
3497 long long val2
, long long val3
);
3498 void __sanitizer_syscall_pre_impl___futex_set_robust_list(long long head
,
3500 void __sanitizer_syscall_post_impl___futex_set_robust_list(long long res
,
3503 void __sanitizer_syscall_pre_impl___futex_get_robust_list(long long lwpid
,
3506 void __sanitizer_syscall_post_impl___futex_get_robust_list(long long res
,
3511 void __sanitizer_syscall_pre_impl_compat_10_osemsys(long long which
,
3512 long long a2
, long long a3
,
3513 long long a4
, long long a5
);
3514 void __sanitizer_syscall_post_impl_compat_10_osemsys(long long res
,
3516 long long a2
, long long a3
,
3520 /* syscall 169 has been skipped */
3523 void __sanitizer_syscall_pre_impl_compat_10_omsgsys(long long which
,
3524 long long a2
, long long a3
,
3525 long long a4
, long long a5
,
3527 void __sanitizer_syscall_post_impl_compat_10_omsgsys(long long res
,
3529 long long a2
, long long a3
,
3530 long long a4
, long long a5
,
3533 /* syscall 170 has been skipped */
3536 void __sanitizer_syscall_pre_impl_compat_10_oshmsys(long long which
,
3537 long long a2
, long long a3
,
3539 void __sanitizer_syscall_post_impl_compat_10_oshmsys(long long res
,
3541 long long a2
, long long a3
,
3544 /* syscall 171 has been skipped */
3546 /* syscall 172 has been skipped */
3547 void __sanitizer_syscall_pre_impl_pread(long long fd
, long long buf
,
3548 long long nbyte
, long long PAD
,
3550 void __sanitizer_syscall_post_impl_pread(long long res
, long long fd
,
3551 long long buf
, long long nbyte
,
3552 long long PAD
, long long offset
);
3553 void __sanitizer_syscall_pre_impl_pwrite(long long fd
, long long buf
,
3554 long long nbyte
, long long PAD
,
3556 void __sanitizer_syscall_post_impl_pwrite(long long res
, long long fd
,
3557 long long buf
, long long nbyte
,
3558 long long PAD
, long long offset
);
3559 void __sanitizer_syscall_pre_impl_compat_30_ntp_gettime(long long ntvp
);
3560 void __sanitizer_syscall_post_impl_compat_30_ntp_gettime(long long res
,
3562 #if defined(NTP) || !defined(_KERNEL_OPT)
3563 void __sanitizer_syscall_pre_impl_ntp_adjtime(long long tp
);
3564 void __sanitizer_syscall_post_impl_ntp_adjtime(long long res
, long long tp
);
3566 /* syscall 176 has been skipped */
3568 /* syscall 177 has been skipped */
3569 /* syscall 178 has been skipped */
3570 /* syscall 179 has been skipped */
3571 /* syscall 180 has been skipped */
3572 void __sanitizer_syscall_pre_impl_setgid(long long gid
);
3573 void __sanitizer_syscall_post_impl_setgid(long long res
, long long gid
);
3574 void __sanitizer_syscall_pre_impl_setegid(long long egid
);
3575 void __sanitizer_syscall_post_impl_setegid(long long res
, long long egid
);
3576 void __sanitizer_syscall_pre_impl_seteuid(long long euid
);
3577 void __sanitizer_syscall_post_impl_seteuid(long long res
, long long euid
);
3578 void __sanitizer_syscall_pre_impl_lfs_bmapv(long long fsidp
, long long blkiov
,
3580 void __sanitizer_syscall_post_impl_lfs_bmapv(long long res
, long long fsidp
,
3583 void __sanitizer_syscall_pre_impl_lfs_markv(long long fsidp
, long long blkiov
,
3585 void __sanitizer_syscall_post_impl_lfs_markv(long long res
, long long fsidp
,
3588 void __sanitizer_syscall_pre_impl_lfs_segclean(long long fsidp
,
3590 void __sanitizer_syscall_post_impl_lfs_segclean(long long res
, long long fsidp
,
3592 void __sanitizer_syscall_pre_impl_compat_50_lfs_segwait(long long fsidp
,
3594 void __sanitizer_syscall_post_impl_compat_50_lfs_segwait(long long res
,
3597 void __sanitizer_syscall_pre_impl_compat_12_stat12(long long path
,
3599 void __sanitizer_syscall_post_impl_compat_12_stat12(long long res
,
3602 void __sanitizer_syscall_pre_impl_compat_12_fstat12(long long fd
, long long sb
);
3603 void __sanitizer_syscall_post_impl_compat_12_fstat12(long long res
,
3606 void __sanitizer_syscall_pre_impl_compat_12_lstat12(long long path
,
3608 void __sanitizer_syscall_post_impl_compat_12_lstat12(long long res
,
3611 void __sanitizer_syscall_pre_impl_pathconf(long long path
, long long name
);
3612 void __sanitizer_syscall_post_impl_pathconf(long long res
, long long path
,
3614 void __sanitizer_syscall_pre_impl_fpathconf(long long fd
, long long name
);
3615 void __sanitizer_syscall_post_impl_fpathconf(long long res
, long long fd
,
3617 void __sanitizer_syscall_pre_impl_getsockopt2(long long s
, long long level
,
3618 long long name
, long long val
,
3619 long long avalsize
);
3620 void __sanitizer_syscall_post_impl_getsockopt2(long long res
, long long s
,
3621 long long level
, long long name
,
3623 long long avalsize
);
3624 void __sanitizer_syscall_pre_impl_getrlimit(long long which
, long long rlp
);
3625 void __sanitizer_syscall_post_impl_getrlimit(long long res
, long long which
,
3627 void __sanitizer_syscall_pre_impl_setrlimit(long long which
, long long rlp
);
3628 void __sanitizer_syscall_post_impl_setrlimit(long long res
, long long which
,
3630 void __sanitizer_syscall_pre_impl_compat_12_getdirentries(long long fd
,
3634 void __sanitizer_syscall_post_impl_compat_12_getdirentries(long long res
,
3639 void __sanitizer_syscall_pre_impl_mmap(long long addr
, long long len
,
3640 long long prot
, long long flags
,
3641 long long fd
, long long PAD
,
3643 void __sanitizer_syscall_post_impl_mmap(long long res
, long long addr
,
3644 long long len
, long long prot
,
3645 long long flags
, long long fd
,
3646 long long PAD
, long long pos
);
3647 void __sanitizer_syscall_pre_impl___syscall(long long code
, long long arg0
,
3648 long long arg1
, long long arg2
,
3649 long long arg3
, long long arg4
,
3650 long long arg5
, long long arg6
,
3652 void __sanitizer_syscall_post_impl___syscall(long long res
, long long code
,
3653 long long arg0
, long long arg1
,
3654 long long arg2
, long long arg3
,
3655 long long arg4
, long long arg5
,
3656 long long arg6
, long long arg7
);
3657 void __sanitizer_syscall_pre_impl_lseek(long long fd
, long long PAD
,
3658 long long offset
, long long whence
);
3659 void __sanitizer_syscall_post_impl_lseek(long long res
, long long fd
,
3660 long long PAD
, long long offset
,
3662 void __sanitizer_syscall_pre_impl_truncate(long long path
, long long PAD
,
3664 void __sanitizer_syscall_post_impl_truncate(long long res
, long long path
,
3665 long long PAD
, long long length
);
3666 void __sanitizer_syscall_pre_impl_ftruncate(long long fd
, long long PAD
,
3668 void __sanitizer_syscall_post_impl_ftruncate(long long res
, long long fd
,
3669 long long PAD
, long long length
);
3670 void __sanitizer_syscall_pre_impl___sysctl(long long name
, long long namelen
,
3671 long long oldv
, long long oldlenp
,
3672 long long newv
, long long newlen
);
3673 void __sanitizer_syscall_post_impl___sysctl(long long res
, long long name
,
3674 long long namelen
, long long oldv
,
3675 long long oldlenp
, long long newv
,
3677 void __sanitizer_syscall_pre_impl_mlock(long long addr
, long long len
);
3678 void __sanitizer_syscall_post_impl_mlock(long long res
, long long addr
,
3680 void __sanitizer_syscall_pre_impl_munlock(long long addr
, long long len
);
3681 void __sanitizer_syscall_post_impl_munlock(long long res
, long long addr
,
3683 void __sanitizer_syscall_pre_impl_undelete(long long path
);
3684 void __sanitizer_syscall_post_impl_undelete(long long res
, long long path
);
3685 void __sanitizer_syscall_pre_impl_compat_50_futimes(long long fd
,
3687 void __sanitizer_syscall_post_impl_compat_50_futimes(long long res
,
3690 void __sanitizer_syscall_pre_impl_getpgid(long long pid
);
3691 void __sanitizer_syscall_post_impl_getpgid(long long res
, long long pid
);
3692 void __sanitizer_syscall_pre_impl_reboot(long long opt
, long long bootstr
);
3693 void __sanitizer_syscall_post_impl_reboot(long long res
, long long opt
,
3695 void __sanitizer_syscall_pre_impl_poll(long long fds
, long long nfds
,
3697 void __sanitizer_syscall_post_impl_poll(long long res
, long long fds
,
3698 long long nfds
, long long timeout
);
3699 void __sanitizer_syscall_pre_impl_afssys(long long id
, long long a1
,
3700 long long a2
, long long a3
,
3701 long long a4
, long long a5
,
3703 void __sanitizer_syscall_post_impl_afssys(long long res
, long long id
,
3704 long long a1
, long long a2
,
3705 long long a3
, long long a4
,
3706 long long a5
, long long a6
);
3707 /* syscall 211 has been skipped */
3708 /* syscall 212 has been skipped */
3709 /* syscall 213 has been skipped */
3710 /* syscall 214 has been skipped */
3711 /* syscall 215 has been skipped */
3712 /* syscall 216 has been skipped */
3713 /* syscall 217 has been skipped */
3714 /* syscall 218 has been skipped */
3715 /* syscall 219 has been skipped */
3716 void __sanitizer_syscall_pre_impl_compat_14___semctl(long long semid
,
3720 void __sanitizer_syscall_post_impl_compat_14___semctl(long long res
,
3725 void __sanitizer_syscall_pre_impl_semget(long long key
, long long nsems
,
3727 void __sanitizer_syscall_post_impl_semget(long long res
, long long key
,
3728 long long nsems
, long long semflg
);
3729 void __sanitizer_syscall_pre_impl_semop(long long semid
, long long sops
,
3731 void __sanitizer_syscall_post_impl_semop(long long res
, long long semid
,
3732 long long sops
, long long nsops
);
3733 void __sanitizer_syscall_pre_impl_semconfig(long long flag
);
3734 void __sanitizer_syscall_post_impl_semconfig(long long res
, long long flag
);
3735 void __sanitizer_syscall_pre_impl_compat_14_msgctl(long long msqid
,
3738 void __sanitizer_syscall_post_impl_compat_14_msgctl(long long res
,
3742 void __sanitizer_syscall_pre_impl_msgget(long long key
, long long msgflg
);
3743 void __sanitizer_syscall_post_impl_msgget(long long res
, long long key
,
3745 void __sanitizer_syscall_pre_impl_msgsnd(long long msqid
, long long msgp
,
3746 long long msgsz
, long long msgflg
);
3747 void __sanitizer_syscall_post_impl_msgsnd(long long res
, long long msqid
,
3748 long long msgp
, long long msgsz
,
3750 void __sanitizer_syscall_pre_impl_msgrcv(long long msqid
, long long msgp
,
3751 long long msgsz
, long long msgtyp
,
3753 void __sanitizer_syscall_post_impl_msgrcv(long long res
, long long msqid
,
3754 long long msgp
, long long msgsz
,
3755 long long msgtyp
, long long msgflg
);
3756 void __sanitizer_syscall_pre_impl_shmat(long long shmid
, long long shmaddr
,
3758 void __sanitizer_syscall_post_impl_shmat(long long res
, long long shmid
,
3759 long long shmaddr
, long long shmflg
);
3760 void __sanitizer_syscall_pre_impl_compat_14_shmctl(long long shmid
,
3763 void __sanitizer_syscall_post_impl_compat_14_shmctl(long long res
,
3767 void __sanitizer_syscall_pre_impl_shmdt(long long shmaddr
);
3768 void __sanitizer_syscall_post_impl_shmdt(long long res
, long long shmaddr
);
3769 void __sanitizer_syscall_pre_impl_shmget(long long key
, long long size
,
3771 void __sanitizer_syscall_post_impl_shmget(long long res
, long long key
,
3772 long long size
, long long shmflg
);
3773 void __sanitizer_syscall_pre_impl_compat_50_clock_gettime(long long clock_id
,
3775 void __sanitizer_syscall_post_impl_compat_50_clock_gettime(long long res
,
3778 void __sanitizer_syscall_pre_impl_compat_50_clock_settime(long long clock_id
,
3780 void __sanitizer_syscall_post_impl_compat_50_clock_settime(long long res
,
3783 void __sanitizer_syscall_pre_impl_compat_50_clock_getres(long long clock_id
,
3785 void __sanitizer_syscall_post_impl_compat_50_clock_getres(long long res
,
3788 void __sanitizer_syscall_pre_impl_timer_create(long long clock_id
,
3791 void __sanitizer_syscall_post_impl_timer_create(long long res
,
3795 void __sanitizer_syscall_pre_impl_timer_delete(long long timerid
);
3796 void __sanitizer_syscall_post_impl_timer_delete(long long res
,
3798 void __sanitizer_syscall_pre_impl_compat_50_timer_settime(long long timerid
,
3802 void __sanitizer_syscall_post_impl_compat_50_timer_settime(long long res
,
3807 void __sanitizer_syscall_pre_impl_compat_50_timer_gettime(long long timerid
,
3809 void __sanitizer_syscall_post_impl_compat_50_timer_gettime(long long res
,
3812 void __sanitizer_syscall_pre_impl_timer_getoverrun(long long timerid
);
3813 void __sanitizer_syscall_post_impl_timer_getoverrun(long long res
,
3815 void __sanitizer_syscall_pre_impl_compat_50_nanosleep(long long rqtp
,
3817 void __sanitizer_syscall_post_impl_compat_50_nanosleep(long long res
,
3820 void __sanitizer_syscall_pre_impl_fdatasync(long long fd
);
3821 void __sanitizer_syscall_post_impl_fdatasync(long long res
, long long fd
);
3822 void __sanitizer_syscall_pre_impl_mlockall(long long flags
);
3823 void __sanitizer_syscall_post_impl_mlockall(long long res
, long long flags
);
3824 void __sanitizer_syscall_pre_impl_munlockall(void);
3825 void __sanitizer_syscall_post_impl_munlockall(long long res
);
3826 void __sanitizer_syscall_pre_impl_compat_50___sigtimedwait(long long set
,
3829 void __sanitizer_syscall_post_impl_compat_50___sigtimedwait(long long res
,
3833 void __sanitizer_syscall_pre_impl_sigqueueinfo(long long pid
, long long info
);
3834 void __sanitizer_syscall_post_impl_sigqueueinfo(long long res
, long long pid
,
3836 void __sanitizer_syscall_pre_impl_modctl(long long cmd
, long long arg
);
3837 void __sanitizer_syscall_post_impl_modctl(long long res
, long long cmd
,
3839 void __sanitizer_syscall_pre_impl__ksem_init(long long value
, long long idp
);
3840 void __sanitizer_syscall_post_impl__ksem_init(long long res
, long long value
,
3842 void __sanitizer_syscall_pre_impl__ksem_open(long long name
, long long oflag
,
3843 long long mode
, long long value
,
3845 void __sanitizer_syscall_post_impl__ksem_open(long long res
, long long name
,
3846 long long oflag
, long long mode
,
3847 long long value
, long long idp
);
3848 void __sanitizer_syscall_pre_impl__ksem_unlink(long long name
);
3849 void __sanitizer_syscall_post_impl__ksem_unlink(long long res
, long long name
);
3850 void __sanitizer_syscall_pre_impl__ksem_close(long long id
);
3851 void __sanitizer_syscall_post_impl__ksem_close(long long res
, long long id
);
3852 void __sanitizer_syscall_pre_impl__ksem_post(long long id
);
3853 void __sanitizer_syscall_post_impl__ksem_post(long long res
, long long id
);
3854 void __sanitizer_syscall_pre_impl__ksem_wait(long long id
);
3855 void __sanitizer_syscall_post_impl__ksem_wait(long long res
, long long id
);
3856 void __sanitizer_syscall_pre_impl__ksem_trywait(long long id
);
3857 void __sanitizer_syscall_post_impl__ksem_trywait(long long res
, long long id
);
3858 void __sanitizer_syscall_pre_impl__ksem_getvalue(long long id
, long long value
);
3859 void __sanitizer_syscall_post_impl__ksem_getvalue(long long res
, long long id
,
3861 void __sanitizer_syscall_pre_impl__ksem_destroy(long long id
);
3862 void __sanitizer_syscall_post_impl__ksem_destroy(long long res
, long long id
);
3863 void __sanitizer_syscall_pre_impl__ksem_timedwait(long long id
,
3865 void __sanitizer_syscall_post_impl__ksem_timedwait(long long res
, long long id
,
3867 void __sanitizer_syscall_pre_impl_mq_open(long long name
, long long oflag
,
3868 long long mode
, long long attr
);
3869 void __sanitizer_syscall_post_impl_mq_open(long long res
, long long name
,
3870 long long oflag
, long long mode
,
3872 void __sanitizer_syscall_pre_impl_mq_close(long long mqdes
);
3873 void __sanitizer_syscall_post_impl_mq_close(long long res
, long long mqdes
);
3874 void __sanitizer_syscall_pre_impl_mq_unlink(long long name
);
3875 void __sanitizer_syscall_post_impl_mq_unlink(long long res
, long long name
);
3876 void __sanitizer_syscall_pre_impl_mq_getattr(long long mqdes
, long long mqstat
);
3877 void __sanitizer_syscall_post_impl_mq_getattr(long long res
, long long mqdes
,
3879 void __sanitizer_syscall_pre_impl_mq_setattr(long long mqdes
, long long mqstat
,
3881 void __sanitizer_syscall_post_impl_mq_setattr(long long res
, long long mqdes
,
3884 void __sanitizer_syscall_pre_impl_mq_notify(long long mqdes
,
3885 long long notification
);
3886 void __sanitizer_syscall_post_impl_mq_notify(long long res
, long long mqdes
,
3887 long long notification
);
3888 void __sanitizer_syscall_pre_impl_mq_send(long long mqdes
, long long msg_ptr
,
3890 long long msg_prio
);
3891 void __sanitizer_syscall_post_impl_mq_send(long long res
, long long mqdes
,
3892 long long msg_ptr
, long long msg_len
,
3893 long long msg_prio
);
3894 void __sanitizer_syscall_pre_impl_mq_receive(long long mqdes
, long long msg_ptr
,
3896 long long msg_prio
);
3897 void __sanitizer_syscall_post_impl_mq_receive(long long res
, long long mqdes
,
3900 long long msg_prio
);
3901 void __sanitizer_syscall_pre_impl_compat_50_mq_timedsend(long long mqdes
,
3905 long long abs_timeout
);
3906 void __sanitizer_syscall_post_impl_compat_50_mq_timedsend(
3907 long long res
, long long mqdes
, long long msg_ptr
, long long msg_len
,
3908 long long msg_prio
, long long abs_timeout
);
3909 void __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive(
3910 long long mqdes
, long long msg_ptr
, long long msg_len
, long long msg_prio
,
3911 long long abs_timeout
);
3912 void __sanitizer_syscall_post_impl_compat_50_mq_timedreceive(
3913 long long res
, long long mqdes
, long long msg_ptr
, long long msg_len
,
3914 long long msg_prio
, long long abs_timeout
);
3915 /* syscall 267 has been skipped */
3916 /* syscall 268 has been skipped */
3917 /* syscall 269 has been skipped */
3918 void __sanitizer_syscall_pre_impl___posix_rename(long long from
, long long to
);
3919 void __sanitizer_syscall_post_impl___posix_rename(long long res
, long long from
,
3921 void __sanitizer_syscall_pre_impl_swapctl(long long cmd
, long long arg
,
3923 void __sanitizer_syscall_post_impl_swapctl(long long res
, long long cmd
,
3924 long long arg
, long long misc
);
3925 void __sanitizer_syscall_pre_impl_compat_30_getdents(long long fd
,
3928 void __sanitizer_syscall_post_impl_compat_30_getdents(long long res
,
3932 void __sanitizer_syscall_pre_impl_minherit(long long addr
, long long len
,
3934 void __sanitizer_syscall_post_impl_minherit(long long res
, long long addr
,
3935 long long len
, long long inherit
);
3936 void __sanitizer_syscall_pre_impl_lchmod(long long path
, long long mode
);
3937 void __sanitizer_syscall_post_impl_lchmod(long long res
, long long path
,
3939 void __sanitizer_syscall_pre_impl_lchown(long long path
, long long uid
,
3941 void __sanitizer_syscall_post_impl_lchown(long long res
, long long path
,
3942 long long uid
, long long gid
);
3943 void __sanitizer_syscall_pre_impl_compat_50_lutimes(long long path
,
3945 void __sanitizer_syscall_post_impl_compat_50_lutimes(long long res
,
3948 void __sanitizer_syscall_pre_impl___msync13(long long addr
, long long len
,
3950 void __sanitizer_syscall_post_impl___msync13(long long res
, long long addr
,
3951 long long len
, long long flags
);
3952 void __sanitizer_syscall_pre_impl_compat_30___stat13(long long path
,
3954 void __sanitizer_syscall_post_impl_compat_30___stat13(long long res
,
3957 void __sanitizer_syscall_pre_impl_compat_30___fstat13(long long fd
,
3959 void __sanitizer_syscall_post_impl_compat_30___fstat13(long long res
,
3962 void __sanitizer_syscall_pre_impl_compat_30___lstat13(long long path
,
3964 void __sanitizer_syscall_post_impl_compat_30___lstat13(long long res
,
3967 void __sanitizer_syscall_pre_impl___sigaltstack14(long long nss
, long long oss
);
3968 void __sanitizer_syscall_post_impl___sigaltstack14(long long res
, long long nss
,
3970 void __sanitizer_syscall_pre_impl___vfork14(void);
3971 void __sanitizer_syscall_post_impl___vfork14(long long res
);
3972 void __sanitizer_syscall_pre_impl___posix_chown(long long path
, long long uid
,
3974 void __sanitizer_syscall_post_impl___posix_chown(long long res
, long long path
,
3975 long long uid
, long long gid
);
3976 void __sanitizer_syscall_pre_impl___posix_fchown(long long fd
, long long uid
,
3978 void __sanitizer_syscall_post_impl___posix_fchown(long long res
, long long fd
,
3979 long long uid
, long long gid
);
3980 void __sanitizer_syscall_pre_impl___posix_lchown(long long path
, long long uid
,
3982 void __sanitizer_syscall_post_impl___posix_lchown(long long res
, long long path
,
3983 long long uid
, long long gid
);
3984 void __sanitizer_syscall_pre_impl_getsid(long long pid
);
3985 void __sanitizer_syscall_post_impl_getsid(long long res
, long long pid
);
3986 void __sanitizer_syscall_pre_impl___clone(long long flags
, long long stack
);
3987 void __sanitizer_syscall_post_impl___clone(long long res
, long long flags
,
3989 void __sanitizer_syscall_pre_impl_fktrace(long long fd
, long long ops
,
3990 long long facs
, long long pid
);
3991 void __sanitizer_syscall_post_impl_fktrace(long long res
, long long fd
,
3992 long long ops
, long long facs
,
3994 void __sanitizer_syscall_pre_impl_preadv(long long fd
, long long iovp
,
3995 long long iovcnt
, long long PAD
,
3997 void __sanitizer_syscall_post_impl_preadv(long long res
, long long fd
,
3998 long long iovp
, long long iovcnt
,
3999 long long PAD
, long long offset
);
4000 void __sanitizer_syscall_pre_impl_pwritev(long long fd
, long long iovp
,
4001 long long iovcnt
, long long PAD
,
4003 void __sanitizer_syscall_post_impl_pwritev(long long res
, long long fd
,
4004 long long iovp
, long long iovcnt
,
4005 long long PAD
, long long offset
);
4006 void __sanitizer_syscall_pre_impl_compat_16___sigaction14(long long signum
,
4009 void __sanitizer_syscall_post_impl_compat_16___sigaction14(long long res
,
4013 void __sanitizer_syscall_pre_impl___sigpending14(long long set
);
4014 void __sanitizer_syscall_post_impl___sigpending14(long long res
, long long set
);
4015 void __sanitizer_syscall_pre_impl___sigprocmask14(long long how
, long long set
,
4017 void __sanitizer_syscall_post_impl___sigprocmask14(long long res
, long long how
,
4020 void __sanitizer_syscall_pre_impl___sigsuspend14(long long set
);
4021 void __sanitizer_syscall_post_impl___sigsuspend14(long long res
, long long set
);
4022 void __sanitizer_syscall_pre_impl_compat_16___sigreturn14(long long sigcntxp
);
4023 void __sanitizer_syscall_post_impl_compat_16___sigreturn14(long long res
,
4024 long long sigcntxp
);
4025 void __sanitizer_syscall_pre_impl___getcwd(long long bufp
, long long length
);
4026 void __sanitizer_syscall_post_impl___getcwd(long long res
, long long bufp
,
4028 void __sanitizer_syscall_pre_impl_fchroot(long long fd
);
4029 void __sanitizer_syscall_post_impl_fchroot(long long res
, long long fd
);
4030 void __sanitizer_syscall_pre_impl_compat_30_fhopen(long long fhp
,
4032 void __sanitizer_syscall_post_impl_compat_30_fhopen(long long res
,
4035 void __sanitizer_syscall_pre_impl_compat_30_fhstat(long long fhp
, long long sb
);
4036 void __sanitizer_syscall_post_impl_compat_30_fhstat(long long res
,
4039 void __sanitizer_syscall_pre_impl_compat_20_fhstatfs(long long fhp
,
4041 void __sanitizer_syscall_post_impl_compat_20_fhstatfs(long long res
,
4044 void __sanitizer_syscall_pre_impl_compat_50_____semctl13(long long semid
,
4048 void __sanitizer_syscall_post_impl_compat_50_____semctl13(long long res
,
4053 void __sanitizer_syscall_pre_impl_compat_50___msgctl13(long long msqid
,
4056 void __sanitizer_syscall_post_impl_compat_50___msgctl13(long long res
,
4060 void __sanitizer_syscall_pre_impl_compat_50___shmctl13(long long shmid
,
4063 void __sanitizer_syscall_post_impl_compat_50___shmctl13(long long res
,
4067 void __sanitizer_syscall_pre_impl_lchflags(long long path
, long long flags
);
4068 void __sanitizer_syscall_post_impl_lchflags(long long res
, long long path
,
4070 void __sanitizer_syscall_pre_impl_issetugid(void);
4071 void __sanitizer_syscall_post_impl_issetugid(long long res
);
4072 void __sanitizer_syscall_pre_impl_utrace(long long label
, long long addr
,
4074 void __sanitizer_syscall_post_impl_utrace(long long res
, long long label
,
4075 long long addr
, long long len
);
4076 void __sanitizer_syscall_pre_impl_getcontext(long long ucp
);
4077 void __sanitizer_syscall_post_impl_getcontext(long long res
, long long ucp
);
4078 void __sanitizer_syscall_pre_impl_setcontext(long long ucp
);
4079 void __sanitizer_syscall_post_impl_setcontext(long long res
, long long ucp
);
4080 void __sanitizer_syscall_pre_impl__lwp_create(long long ucp
, long long flags
,
4082 void __sanitizer_syscall_post_impl__lwp_create(long long res
, long long ucp
,
4085 void __sanitizer_syscall_pre_impl__lwp_exit(void);
4086 void __sanitizer_syscall_post_impl__lwp_exit(long long res
);
4087 void __sanitizer_syscall_pre_impl__lwp_self(void);
4088 void __sanitizer_syscall_post_impl__lwp_self(long long res
);
4089 void __sanitizer_syscall_pre_impl__lwp_wait(long long wait_for
,
4090 long long departed
);
4091 void __sanitizer_syscall_post_impl__lwp_wait(long long res
, long long wait_for
,
4092 long long departed
);
4093 void __sanitizer_syscall_pre_impl__lwp_suspend(long long target
);
4094 void __sanitizer_syscall_post_impl__lwp_suspend(long long res
,
4096 void __sanitizer_syscall_pre_impl__lwp_continue(long long target
);
4097 void __sanitizer_syscall_post_impl__lwp_continue(long long res
,
4099 void __sanitizer_syscall_pre_impl__lwp_wakeup(long long target
);
4100 void __sanitizer_syscall_post_impl__lwp_wakeup(long long res
, long long target
);
4101 void __sanitizer_syscall_pre_impl__lwp_getprivate(void);
4102 void __sanitizer_syscall_post_impl__lwp_getprivate(long long res
);
4103 void __sanitizer_syscall_pre_impl__lwp_setprivate(long long ptr
);
4104 void __sanitizer_syscall_post_impl__lwp_setprivate(long long res
,
4106 void __sanitizer_syscall_pre_impl__lwp_kill(long long target
, long long signo
);
4107 void __sanitizer_syscall_post_impl__lwp_kill(long long res
, long long target
,
4109 void __sanitizer_syscall_pre_impl__lwp_detach(long long target
);
4110 void __sanitizer_syscall_post_impl__lwp_detach(long long res
, long long target
);
4111 void __sanitizer_syscall_pre_impl_compat_50__lwp_park(long long ts
,
4114 long long unparkhint
);
4115 void __sanitizer_syscall_post_impl_compat_50__lwp_park(long long res
,
4119 long long unparkhint
);
4120 void __sanitizer_syscall_pre_impl__lwp_unpark(long long target
, long long hint
);
4121 void __sanitizer_syscall_post_impl__lwp_unpark(long long res
, long long target
,
4123 void __sanitizer_syscall_pre_impl__lwp_unpark_all(long long targets
,
4126 void __sanitizer_syscall_post_impl__lwp_unpark_all(long long res
,
4130 void __sanitizer_syscall_pre_impl__lwp_setname(long long target
,
4132 void __sanitizer_syscall_post_impl__lwp_setname(long long res
, long long target
,
4134 void __sanitizer_syscall_pre_impl__lwp_getname(long long target
, long long name
,
4136 void __sanitizer_syscall_post_impl__lwp_getname(long long res
, long long target
,
4137 long long name
, long long len
);
4138 void __sanitizer_syscall_pre_impl__lwp_ctl(long long features
,
4140 void __sanitizer_syscall_post_impl__lwp_ctl(long long res
, long long features
,
4142 /* syscall 326 has been skipped */
4143 /* syscall 327 has been skipped */
4144 /* syscall 328 has been skipped */
4145 /* syscall 329 has been skipped */
4146 void __sanitizer_syscall_pre_impl_compat_60_sa_register(
4147 long long newv
, long long oldv
, long long flags
,
4148 long long stackinfo_offset
);
4149 void __sanitizer_syscall_post_impl_compat_60_sa_register(
4150 long long res
, long long newv
, long long oldv
, long long flags
,
4151 long long stackinfo_offset
);
4152 void __sanitizer_syscall_pre_impl_compat_60_sa_stacks(long long num
,
4154 void __sanitizer_syscall_post_impl_compat_60_sa_stacks(long long res
,
4157 void __sanitizer_syscall_pre_impl_compat_60_sa_enable(void);
4158 void __sanitizer_syscall_post_impl_compat_60_sa_enable(long long res
);
4159 void __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency(
4160 long long concurrency
);
4161 void __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency(
4162 long long res
, long long concurrency
);
4163 void __sanitizer_syscall_pre_impl_compat_60_sa_yield(void);
4164 void __sanitizer_syscall_post_impl_compat_60_sa_yield(long long res
);
4165 void __sanitizer_syscall_pre_impl_compat_60_sa_preempt(long long sa_id
);
4166 void __sanitizer_syscall_post_impl_compat_60_sa_preempt(long long res
,
4168 /* syscall 336 has been skipped */
4169 /* syscall 337 has been skipped */
4170 /* syscall 338 has been skipped */
4171 /* syscall 339 has been skipped */
4172 void __sanitizer_syscall_pre_impl___sigaction_sigtramp(long long signum
,
4177 void __sanitizer_syscall_post_impl___sigaction_sigtramp(
4178 long long res
, long long signum
, long long nsa
, long long osa
,
4179 long long tramp
, long long vers
);
4180 /* syscall 341 has been skipped */
4181 /* syscall 342 has been skipped */
4182 void __sanitizer_syscall_pre_impl_rasctl(long long addr
, long long len
,
4184 void __sanitizer_syscall_post_impl_rasctl(long long res
, long long addr
,
4185 long long len
, long long op
);
4186 void __sanitizer_syscall_pre_impl_kqueue(void);
4187 void __sanitizer_syscall_post_impl_kqueue(long long res
);
4188 void __sanitizer_syscall_pre_impl_compat_50_kevent(
4189 long long fd
, long long changelist
, long long nchanges
, long long eventlist
,
4190 long long nevents
, long long timeout
);
4191 void __sanitizer_syscall_post_impl_compat_50_kevent(
4192 long long res
, long long fd
, long long changelist
, long long nchanges
,
4193 long long eventlist
, long long nevents
, long long timeout
);
4194 void __sanitizer_syscall_pre_impl__sched_setparam(long long pid
, long long lid
,
4197 void __sanitizer_syscall_post_impl__sched_setparam(long long res
, long long pid
,
4201 void __sanitizer_syscall_pre_impl__sched_getparam(long long pid
, long long lid
,
4204 void __sanitizer_syscall_post_impl__sched_getparam(long long res
, long long pid
,
4208 void __sanitizer_syscall_pre_impl__sched_setaffinity(long long pid
,
4212 void __sanitizer_syscall_post_impl__sched_setaffinity(long long res
,
4217 void __sanitizer_syscall_pre_impl__sched_getaffinity(long long pid
,
4221 void __sanitizer_syscall_post_impl__sched_getaffinity(long long res
,
4226 void __sanitizer_syscall_pre_impl_sched_yield(void);
4227 void __sanitizer_syscall_post_impl_sched_yield(long long res
);
4228 void __sanitizer_syscall_pre_impl__sched_protect(long long priority
);
4229 void __sanitizer_syscall_post_impl__sched_protect(long long res
,
4230 long long priority
);
4231 /* syscall 352 has been skipped */
4232 /* syscall 353 has been skipped */
4233 void __sanitizer_syscall_pre_impl_fsync_range(long long fd
, long long flags
,
4236 void __sanitizer_syscall_post_impl_fsync_range(long long res
, long long fd
,
4237 long long flags
, long long start
,
4239 void __sanitizer_syscall_pre_impl_uuidgen(long long store
, long long count
);
4240 void __sanitizer_syscall_post_impl_uuidgen(long long res
, long long store
,
4242 void __sanitizer_syscall_pre_impl_compat_90_getvfsstat(long long buf
,
4245 void __sanitizer_syscall_post_impl_compat_90_getvfsstat(long long res
,
4249 void __sanitizer_syscall_pre_impl_compat_90_statvfs1(long long path
,
4252 void __sanitizer_syscall_post_impl_compat_90_statvfs1(long long res
,
4256 void __sanitizer_syscall_pre_impl_compat_90_fstatvfs1(long long fd
,
4259 void __sanitizer_syscall_post_impl_compat_90_fstatvfs1(long long res
,
4263 void __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1(long long fhp
,
4266 void __sanitizer_syscall_post_impl_compat_30_fhstatvfs1(long long res
,
4270 void __sanitizer_syscall_pre_impl_extattrctl(long long path
, long long cmd
,
4272 long long attrnamespace
,
4273 long long attrname
);
4274 void __sanitizer_syscall_post_impl_extattrctl(long long res
, long long path
,
4275 long long cmd
, long long filename
,
4276 long long attrnamespace
,
4277 long long attrname
);
4278 void __sanitizer_syscall_pre_impl_extattr_set_file(long long path
,
4279 long long attrnamespace
,
4283 void __sanitizer_syscall_post_impl_extattr_set_file(
4284 long long res
, long long path
, long long attrnamespace
, long long attrname
,
4285 long long data
, long long nbytes
);
4286 void __sanitizer_syscall_pre_impl_extattr_get_file(long long path
,
4287 long long attrnamespace
,
4291 void __sanitizer_syscall_post_impl_extattr_get_file(
4292 long long res
, long long path
, long long attrnamespace
, long long attrname
,
4293 long long data
, long long nbytes
);
4294 void __sanitizer_syscall_pre_impl_extattr_delete_file(long long path
,
4295 long long attrnamespace
,
4296 long long attrname
);
4297 void __sanitizer_syscall_post_impl_extattr_delete_file(long long res
,
4299 long long attrnamespace
,
4300 long long attrname
);
4301 void __sanitizer_syscall_pre_impl_extattr_set_fd(long long fd
,
4302 long long attrnamespace
,
4306 void __sanitizer_syscall_post_impl_extattr_set_fd(long long res
, long long fd
,
4307 long long attrnamespace
,
4311 void __sanitizer_syscall_pre_impl_extattr_get_fd(long long fd
,
4312 long long attrnamespace
,
4316 void __sanitizer_syscall_post_impl_extattr_get_fd(long long res
, long long fd
,
4317 long long attrnamespace
,
4321 void __sanitizer_syscall_pre_impl_extattr_delete_fd(long long fd
,
4322 long long attrnamespace
,
4323 long long attrname
);
4324 void __sanitizer_syscall_post_impl_extattr_delete_fd(long long res
,
4326 long long attrnamespace
,
4327 long long attrname
);
4328 void __sanitizer_syscall_pre_impl_extattr_set_link(long long path
,
4329 long long attrnamespace
,
4333 void __sanitizer_syscall_post_impl_extattr_set_link(
4334 long long res
, long long path
, long long attrnamespace
, long long attrname
,
4335 long long data
, long long nbytes
);
4336 void __sanitizer_syscall_pre_impl_extattr_get_link(long long path
,
4337 long long attrnamespace
,
4341 void __sanitizer_syscall_post_impl_extattr_get_link(
4342 long long res
, long long path
, long long attrnamespace
, long long attrname
,
4343 long long data
, long long nbytes
);
4344 void __sanitizer_syscall_pre_impl_extattr_delete_link(long long path
,
4345 long long attrnamespace
,
4346 long long attrname
);
4347 void __sanitizer_syscall_post_impl_extattr_delete_link(long long res
,
4349 long long attrnamespace
,
4350 long long attrname
);
4351 void __sanitizer_syscall_pre_impl_extattr_list_fd(long long fd
,
4352 long long attrnamespace
,
4355 void __sanitizer_syscall_post_impl_extattr_list_fd(long long res
, long long fd
,
4356 long long attrnamespace
,
4359 void __sanitizer_syscall_pre_impl_extattr_list_file(long long path
,
4360 long long attrnamespace
,
4363 void __sanitizer_syscall_post_impl_extattr_list_file(long long res
,
4365 long long attrnamespace
,
4368 void __sanitizer_syscall_pre_impl_extattr_list_link(long long path
,
4369 long long attrnamespace
,
4372 void __sanitizer_syscall_post_impl_extattr_list_link(long long res
,
4374 long long attrnamespace
,
4377 void __sanitizer_syscall_pre_impl_compat_50_pselect(long long nd
, long long in
,
4378 long long ou
, long long ex
,
4381 void __sanitizer_syscall_post_impl_compat_50_pselect(long long res
,
4382 long long nd
, long long in
,
4383 long long ou
, long long ex
,
4386 void __sanitizer_syscall_pre_impl_compat_50_pollts(long long fds
,
4387 long long nfds
, long long ts
,
4389 void __sanitizer_syscall_post_impl_compat_50_pollts(
4390 long long res
, long long fds
, long long nfds
, long long ts
, long long mask
);
4391 void __sanitizer_syscall_pre_impl_setxattr(long long path
, long long name
,
4392 long long value
, long long size
,
4394 void __sanitizer_syscall_post_impl_setxattr(long long res
, long long path
,
4395 long long name
, long long value
,
4396 long long size
, long long flags
);
4397 void __sanitizer_syscall_pre_impl_lsetxattr(long long path
, long long name
,
4398 long long value
, long long size
,
4400 void __sanitizer_syscall_post_impl_lsetxattr(long long res
, long long path
,
4401 long long name
, long long value
,
4402 long long size
, long long flags
);
4403 void __sanitizer_syscall_pre_impl_fsetxattr(long long fd
, long long name
,
4404 long long value
, long long size
,
4406 void __sanitizer_syscall_post_impl_fsetxattr(long long res
, long long fd
,
4407 long long name
, long long value
,
4408 long long size
, long long flags
);
4409 void __sanitizer_syscall_pre_impl_getxattr(long long path
, long long name
,
4410 long long value
, long long size
);
4411 void __sanitizer_syscall_post_impl_getxattr(long long res
, long long path
,
4412 long long name
, long long value
,
4414 void __sanitizer_syscall_pre_impl_lgetxattr(long long path
, long long name
,
4415 long long value
, long long size
);
4416 void __sanitizer_syscall_post_impl_lgetxattr(long long res
, long long path
,
4417 long long name
, long long value
,
4419 void __sanitizer_syscall_pre_impl_fgetxattr(long long fd
, long long name
,
4420 long long value
, long long size
);
4421 void __sanitizer_syscall_post_impl_fgetxattr(long long res
, long long fd
,
4422 long long name
, long long value
,
4424 void __sanitizer_syscall_pre_impl_listxattr(long long path
, long long list
,
4426 void __sanitizer_syscall_post_impl_listxattr(long long res
, long long path
,
4427 long long list
, long long size
);
4428 void __sanitizer_syscall_pre_impl_llistxattr(long long path
, long long list
,
4430 void __sanitizer_syscall_post_impl_llistxattr(long long res
, long long path
,
4431 long long list
, long long size
);
4432 void __sanitizer_syscall_pre_impl_flistxattr(long long fd
, long long list
,
4434 void __sanitizer_syscall_post_impl_flistxattr(long long res
, long long fd
,
4435 long long list
, long long size
);
4436 void __sanitizer_syscall_pre_impl_removexattr(long long path
, long long name
);
4437 void __sanitizer_syscall_post_impl_removexattr(long long res
, long long path
,
4439 void __sanitizer_syscall_pre_impl_lremovexattr(long long path
, long long name
);
4440 void __sanitizer_syscall_post_impl_lremovexattr(long long res
, long long path
,
4442 void __sanitizer_syscall_pre_impl_fremovexattr(long long fd
, long long name
);
4443 void __sanitizer_syscall_post_impl_fremovexattr(long long res
, long long fd
,
4445 void __sanitizer_syscall_pre_impl_compat_50___stat30(long long path
,
4447 void __sanitizer_syscall_post_impl_compat_50___stat30(long long res
,
4450 void __sanitizer_syscall_pre_impl_compat_50___fstat30(long long fd
,
4452 void __sanitizer_syscall_post_impl_compat_50___fstat30(long long res
,
4455 void __sanitizer_syscall_pre_impl_compat_50___lstat30(long long path
,
4457 void __sanitizer_syscall_post_impl_compat_50___lstat30(long long res
,
4460 void __sanitizer_syscall_pre_impl___getdents30(long long fd
, long long buf
,
4462 void __sanitizer_syscall_post_impl___getdents30(long long res
, long long fd
,
4463 long long buf
, long long count
);
4464 void __sanitizer_syscall_pre_impl_posix_fadvise(long long);
4465 void __sanitizer_syscall_post_impl_posix_fadvise(long long res
, long long);
4466 void __sanitizer_syscall_pre_impl_compat_30___fhstat30(long long fhp
,
4468 void __sanitizer_syscall_post_impl_compat_30___fhstat30(long long res
,
4471 void __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30(long long ntvp
);
4472 void __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(long long res
,
4474 void __sanitizer_syscall_pre_impl___socket30(long long domain
, long long type
,
4475 long long protocol
);
4476 void __sanitizer_syscall_post_impl___socket30(long long res
, long long domain
,
4478 long long protocol
);
4479 void __sanitizer_syscall_pre_impl___getfh30(long long fname
, long long fhp
,
4481 void __sanitizer_syscall_post_impl___getfh30(long long res
, long long fname
,
4482 long long fhp
, long long fh_size
);
4483 void __sanitizer_syscall_pre_impl___fhopen40(long long fhp
, long long fh_size
,
4485 void __sanitizer_syscall_post_impl___fhopen40(long long res
, long long fhp
,
4488 void __sanitizer_syscall_pre_impl_compat_90_fhstatvfs1(long long fhp
,
4492 void __sanitizer_syscall_post_impl_compat_90_fhstatvfs1(long long res
,
4497 void __sanitizer_syscall_pre_impl_compat_50___fhstat40(long long fhp
,
4500 void __sanitizer_syscall_post_impl_compat_50___fhstat40(long long res
,
4504 void __sanitizer_syscall_pre_impl_aio_cancel(long long fildes
,
4506 void __sanitizer_syscall_post_impl_aio_cancel(long long res
, long long fildes
,
4508 void __sanitizer_syscall_pre_impl_aio_error(long long aiocbp
);
4509 void __sanitizer_syscall_post_impl_aio_error(long long res
, long long aiocbp
);
4510 void __sanitizer_syscall_pre_impl_aio_fsync(long long op
, long long aiocbp
);
4511 void __sanitizer_syscall_post_impl_aio_fsync(long long res
, long long op
,
4513 void __sanitizer_syscall_pre_impl_aio_read(long long aiocbp
);
4514 void __sanitizer_syscall_post_impl_aio_read(long long res
, long long aiocbp
);
4515 void __sanitizer_syscall_pre_impl_aio_return(long long aiocbp
);
4516 void __sanitizer_syscall_post_impl_aio_return(long long res
, long long aiocbp
);
4517 void __sanitizer_syscall_pre_impl_compat_50_aio_suspend(long long list
,
4520 void __sanitizer_syscall_post_impl_compat_50_aio_suspend(long long res
,
4524 void __sanitizer_syscall_pre_impl_aio_write(long long aiocbp
);
4525 void __sanitizer_syscall_post_impl_aio_write(long long res
, long long aiocbp
);
4526 void __sanitizer_syscall_pre_impl_lio_listio(long long mode
, long long list
,
4527 long long nent
, long long sig
);
4528 void __sanitizer_syscall_post_impl_lio_listio(long long res
, long long mode
,
4529 long long list
, long long nent
,
4531 /* syscall 407 has been skipped */
4532 /* syscall 408 has been skipped */
4533 /* syscall 409 has been skipped */
4534 void __sanitizer_syscall_pre_impl___mount50(long long type
, long long path
,
4535 long long flags
, long long data
,
4536 long long data_len
);
4537 void __sanitizer_syscall_post_impl___mount50(long long res
, long long type
,
4538 long long path
, long long flags
,
4540 long long data_len
);
4541 void __sanitizer_syscall_pre_impl_mremap(long long old_address
,
4543 long long new_address
,
4544 long long new_size
, long long flags
);
4545 void __sanitizer_syscall_post_impl_mremap(long long res
, long long old_address
,
4547 long long new_address
,
4548 long long new_size
, long long flags
);
4549 void __sanitizer_syscall_pre_impl_pset_create(long long psid
);
4550 void __sanitizer_syscall_post_impl_pset_create(long long res
, long long psid
);
4551 void __sanitizer_syscall_pre_impl_pset_destroy(long long psid
);
4552 void __sanitizer_syscall_post_impl_pset_destroy(long long res
, long long psid
);
4553 void __sanitizer_syscall_pre_impl_pset_assign(long long psid
, long long cpuid
,
4555 void __sanitizer_syscall_post_impl_pset_assign(long long res
, long long psid
,
4558 void __sanitizer_syscall_pre_impl__pset_bind(long long idtype
,
4560 long long second_id
,
4561 long long psid
, long long opsid
);
4562 void __sanitizer_syscall_post_impl__pset_bind(long long res
, long long idtype
,
4564 long long second_id
,
4565 long long psid
, long long opsid
);
4566 void __sanitizer_syscall_pre_impl___posix_fadvise50(long long fd
, long long PAD
,
4570 void __sanitizer_syscall_post_impl___posix_fadvise50(
4571 long long res
, long long fd
, long long PAD
, long long offset
, long long len
,
4573 void __sanitizer_syscall_pre_impl___select50(long long nd
, long long in
,
4574 long long ou
, long long ex
,
4576 void __sanitizer_syscall_post_impl___select50(long long res
, long long nd
,
4577 long long in
, long long ou
,
4578 long long ex
, long long tv
);
4579 void __sanitizer_syscall_pre_impl___gettimeofday50(long long tp
, long long tzp
);
4580 void __sanitizer_syscall_post_impl___gettimeofday50(long long res
, long long tp
,
4582 void __sanitizer_syscall_pre_impl___settimeofday50(long long tv
, long long tzp
);
4583 void __sanitizer_syscall_post_impl___settimeofday50(long long res
, long long tv
,
4585 void __sanitizer_syscall_pre_impl___utimes50(long long path
, long long tptr
);
4586 void __sanitizer_syscall_post_impl___utimes50(long long res
, long long path
,
4588 void __sanitizer_syscall_pre_impl___adjtime50(long long delta
,
4589 long long olddelta
);
4590 void __sanitizer_syscall_post_impl___adjtime50(long long res
, long long delta
,
4591 long long olddelta
);
4592 void __sanitizer_syscall_pre_impl___lfs_segwait50(long long fsidp
,
4594 void __sanitizer_syscall_post_impl___lfs_segwait50(long long res
,
4597 void __sanitizer_syscall_pre_impl___futimes50(long long fd
, long long tptr
);
4598 void __sanitizer_syscall_post_impl___futimes50(long long res
, long long fd
,
4600 void __sanitizer_syscall_pre_impl___lutimes50(long long path
, long long tptr
);
4601 void __sanitizer_syscall_post_impl___lutimes50(long long res
, long long path
,
4603 void __sanitizer_syscall_pre_impl___setitimer50(long long which
, long long itv
,
4605 void __sanitizer_syscall_post_impl___setitimer50(long long res
, long long which
,
4606 long long itv
, long long oitv
);
4607 void __sanitizer_syscall_pre_impl___getitimer50(long long which
, long long itv
);
4608 void __sanitizer_syscall_post_impl___getitimer50(long long res
, long long which
,
4610 void __sanitizer_syscall_pre_impl___clock_gettime50(long long clock_id
,
4612 void __sanitizer_syscall_post_impl___clock_gettime50(long long res
,
4615 void __sanitizer_syscall_pre_impl___clock_settime50(long long clock_id
,
4617 void __sanitizer_syscall_post_impl___clock_settime50(long long res
,
4620 void __sanitizer_syscall_pre_impl___clock_getres50(long long clock_id
,
4622 void __sanitizer_syscall_post_impl___clock_getres50(long long res
,
4625 void __sanitizer_syscall_pre_impl___nanosleep50(long long rqtp
, long long rmtp
);
4626 void __sanitizer_syscall_post_impl___nanosleep50(long long res
, long long rqtp
,
4628 void __sanitizer_syscall_pre_impl_____sigtimedwait50(long long set
,
4631 void __sanitizer_syscall_post_impl_____sigtimedwait50(long long res
,
4635 void __sanitizer_syscall_pre_impl___mq_timedsend50(long long mqdes
,
4639 long long abs_timeout
);
4640 void __sanitizer_syscall_post_impl___mq_timedsend50(
4641 long long res
, long long mqdes
, long long msg_ptr
, long long msg_len
,
4642 long long msg_prio
, long long abs_timeout
);
4643 void __sanitizer_syscall_pre_impl___mq_timedreceive50(long long mqdes
,
4647 long long abs_timeout
);
4648 void __sanitizer_syscall_post_impl___mq_timedreceive50(
4649 long long res
, long long mqdes
, long long msg_ptr
, long long msg_len
,
4650 long long msg_prio
, long long abs_timeout
);
4651 void __sanitizer_syscall_pre_impl_compat_60__lwp_park(long long ts
,
4654 long long unparkhint
);
4655 void __sanitizer_syscall_post_impl_compat_60__lwp_park(long long res
,
4659 long long unparkhint
);
4660 void __sanitizer_syscall_pre_impl___kevent50(long long fd
, long long changelist
,
4662 long long eventlist
,
4665 void __sanitizer_syscall_post_impl___kevent50(
4666 long long res
, long long fd
, long long changelist
, long long nchanges
,
4667 long long eventlist
, long long nevents
, long long timeout
);
4668 void __sanitizer_syscall_pre_impl___pselect50(long long nd
, long long in
,
4669 long long ou
, long long ex
,
4670 long long ts
, long long mask
);
4671 void __sanitizer_syscall_post_impl___pselect50(long long res
, long long nd
,
4672 long long in
, long long ou
,
4673 long long ex
, long long ts
,
4675 void __sanitizer_syscall_pre_impl___pollts50(long long fds
, long long nfds
,
4676 long long ts
, long long mask
);
4677 void __sanitizer_syscall_post_impl___pollts50(long long res
, long long fds
,
4678 long long nfds
, long long ts
,
4680 void __sanitizer_syscall_pre_impl___aio_suspend50(long long list
,
4683 void __sanitizer_syscall_post_impl___aio_suspend50(long long res
,
4687 void __sanitizer_syscall_pre_impl___stat50(long long path
, long long ub
);
4688 void __sanitizer_syscall_post_impl___stat50(long long res
, long long path
,
4690 void __sanitizer_syscall_pre_impl___fstat50(long long fd
, long long sb
);
4691 void __sanitizer_syscall_post_impl___fstat50(long long res
, long long fd
,
4693 void __sanitizer_syscall_pre_impl___lstat50(long long path
, long long ub
);
4694 void __sanitizer_syscall_post_impl___lstat50(long long res
, long long path
,
4696 void __sanitizer_syscall_pre_impl_____semctl50(long long semid
,
4697 long long semnum
, long long cmd
,
4699 void __sanitizer_syscall_post_impl_____semctl50(long long res
, long long semid
,
4700 long long semnum
, long long cmd
,
4702 void __sanitizer_syscall_pre_impl___shmctl50(long long shmid
, long long cmd
,
4704 void __sanitizer_syscall_post_impl___shmctl50(long long res
, long long shmid
,
4705 long long cmd
, long long buf
);
4706 void __sanitizer_syscall_pre_impl___msgctl50(long long msqid
, long long cmd
,
4708 void __sanitizer_syscall_post_impl___msgctl50(long long res
, long long msqid
,
4709 long long cmd
, long long buf
);
4710 void __sanitizer_syscall_pre_impl___getrusage50(long long who
,
4712 void __sanitizer_syscall_post_impl___getrusage50(long long res
, long long who
,
4714 void __sanitizer_syscall_pre_impl___timer_settime50(long long timerid
,
4718 void __sanitizer_syscall_post_impl___timer_settime50(long long res
,
4723 void __sanitizer_syscall_pre_impl___timer_gettime50(long long timerid
,
4725 void __sanitizer_syscall_post_impl___timer_gettime50(long long res
,
4728 #if defined(NTP) || !defined(_KERNEL_OPT)
4729 void __sanitizer_syscall_pre_impl___ntp_gettime50(long long ntvp
);
4730 void __sanitizer_syscall_post_impl___ntp_gettime50(long long res
,
4733 /* syscall 448 has been skipped */
4735 void __sanitizer_syscall_pre_impl___wait450(long long pid
, long long status
,
4738 void __sanitizer_syscall_post_impl___wait450(long long res
, long long pid
,
4742 void __sanitizer_syscall_pre_impl___mknod50(long long path
, long long mode
,
4744 void __sanitizer_syscall_post_impl___mknod50(long long res
, long long path
,
4745 long long mode
, long long dev
);
4746 void __sanitizer_syscall_pre_impl___fhstat50(long long fhp
, long long fh_size
,
4748 void __sanitizer_syscall_post_impl___fhstat50(long long res
, long long fhp
,
4749 long long fh_size
, long long sb
);
4750 /* syscall 452 has been skipped */
4751 void __sanitizer_syscall_pre_impl_pipe2(long long fildes
, long long flags
);
4752 void __sanitizer_syscall_post_impl_pipe2(long long res
, long long fildes
,
4754 void __sanitizer_syscall_pre_impl_dup3(long long from
, long long to
,
4756 void __sanitizer_syscall_post_impl_dup3(long long res
, long long from
,
4757 long long to
, long long flags
);
4758 void __sanitizer_syscall_pre_impl_kqueue1(long long flags
);
4759 void __sanitizer_syscall_post_impl_kqueue1(long long res
, long long flags
);
4760 void __sanitizer_syscall_pre_impl_paccept(long long s
, long long name
,
4761 long long anamelen
, long long mask
,
4763 void __sanitizer_syscall_post_impl_paccept(long long res
, long long s
,
4764 long long name
, long long anamelen
,
4765 long long mask
, long long flags
);
4766 void __sanitizer_syscall_pre_impl_linkat(long long fd1
, long long name1
,
4767 long long fd2
, long long name2
,
4769 void __sanitizer_syscall_post_impl_linkat(long long res
, long long fd1
,
4770 long long name1
, long long fd2
,
4771 long long name2
, long long flags
);
4772 void __sanitizer_syscall_pre_impl_renameat(long long fromfd
, long long from
,
4773 long long tofd
, long long to
);
4774 void __sanitizer_syscall_post_impl_renameat(long long res
, long long fromfd
,
4775 long long from
, long long tofd
,
4777 void __sanitizer_syscall_pre_impl_mkfifoat(long long fd
, long long path
,
4779 void __sanitizer_syscall_post_impl_mkfifoat(long long res
, long long fd
,
4780 long long path
, long long mode
);
4781 void __sanitizer_syscall_pre_impl_mknodat(long long fd
, long long path
,
4782 long long mode
, long long PAD
,
4784 void __sanitizer_syscall_post_impl_mknodat(long long res
, long long fd
,
4785 long long path
, long long mode
,
4786 long long PAD
, long long dev
);
4787 void __sanitizer_syscall_pre_impl_mkdirat(long long fd
, long long path
,
4789 void __sanitizer_syscall_post_impl_mkdirat(long long res
, long long fd
,
4790 long long path
, long long mode
);
4791 void __sanitizer_syscall_pre_impl_faccessat(long long fd
, long long path
,
4792 long long amode
, long long flag
);
4793 void __sanitizer_syscall_post_impl_faccessat(long long res
, long long fd
,
4794 long long path
, long long amode
,
4796 void __sanitizer_syscall_pre_impl_fchmodat(long long fd
, long long path
,
4797 long long mode
, long long flag
);
4798 void __sanitizer_syscall_post_impl_fchmodat(long long res
, long long fd
,
4799 long long path
, long long mode
,
4801 void __sanitizer_syscall_pre_impl_fchownat(long long fd
, long long path
,
4802 long long owner
, long long group
,
4804 void __sanitizer_syscall_post_impl_fchownat(long long res
, long long fd
,
4805 long long path
, long long owner
,
4806 long long group
, long long flag
);
4807 void __sanitizer_syscall_pre_impl_fexecve(long long fd
, long long argp
,
4809 void __sanitizer_syscall_post_impl_fexecve(long long res
, long long fd
,
4810 long long argp
, long long envp
);
4811 void __sanitizer_syscall_pre_impl_fstatat(long long fd
, long long path
,
4812 long long buf
, long long flag
);
4813 void __sanitizer_syscall_post_impl_fstatat(long long res
, long long fd
,
4814 long long path
, long long buf
,
4816 void __sanitizer_syscall_pre_impl_utimensat(long long fd
, long long path
,
4817 long long tptr
, long long flag
);
4818 void __sanitizer_syscall_post_impl_utimensat(long long res
, long long fd
,
4819 long long path
, long long tptr
,
4821 void __sanitizer_syscall_pre_impl_openat(long long fd
, long long path
,
4822 long long oflags
, long long mode
);
4823 void __sanitizer_syscall_post_impl_openat(long long res
, long long fd
,
4824 long long path
, long long oflags
,
4826 void __sanitizer_syscall_pre_impl_readlinkat(long long fd
, long long path
,
4827 long long buf
, long long bufsize
);
4828 void __sanitizer_syscall_post_impl_readlinkat(long long res
, long long fd
,
4829 long long path
, long long buf
,
4831 void __sanitizer_syscall_pre_impl_symlinkat(long long path1
, long long fd
,
4833 void __sanitizer_syscall_post_impl_symlinkat(long long res
, long long path1
,
4834 long long fd
, long long path2
);
4835 void __sanitizer_syscall_pre_impl_unlinkat(long long fd
, long long path
,
4837 void __sanitizer_syscall_post_impl_unlinkat(long long res
, long long fd
,
4838 long long path
, long long flag
);
4839 void __sanitizer_syscall_pre_impl_futimens(long long fd
, long long tptr
);
4840 void __sanitizer_syscall_post_impl_futimens(long long res
, long long fd
,
4842 void __sanitizer_syscall_pre_impl___quotactl(long long path
, long long args
);
4843 void __sanitizer_syscall_post_impl___quotactl(long long res
, long long path
,
4845 void __sanitizer_syscall_pre_impl_posix_spawn(long long pid
, long long path
,
4846 long long file_actions
,
4847 long long attrp
, long long argv
,
4849 void __sanitizer_syscall_post_impl_posix_spawn(long long res
, long long pid
,
4851 long long file_actions
,
4852 long long attrp
, long long argv
,
4854 void __sanitizer_syscall_pre_impl_recvmmsg(long long s
, long long mmsg
,
4855 long long vlen
, long long flags
,
4857 void __sanitizer_syscall_post_impl_recvmmsg(long long res
, long long s
,
4858 long long mmsg
, long long vlen
,
4859 long long flags
, long long timeout
);
4860 void __sanitizer_syscall_pre_impl_sendmmsg(long long s
, long long mmsg
,
4861 long long vlen
, long long flags
);
4862 void __sanitizer_syscall_post_impl_sendmmsg(long long res
, long long s
,
4863 long long mmsg
, long long vlen
,
4865 void __sanitizer_syscall_pre_impl_clock_nanosleep(long long clock_id
,
4869 void __sanitizer_syscall_post_impl_clock_nanosleep(long long res
,
4874 void __sanitizer_syscall_pre_impl____lwp_park60(long long clock_id
,
4875 long long flags
, long long ts
,
4878 long long unparkhint
);
4879 void __sanitizer_syscall_post_impl____lwp_park60(
4880 long long res
, long long clock_id
, long long flags
, long long ts
,
4881 long long unpark
, long long hint
, long long unparkhint
);
4882 void __sanitizer_syscall_pre_impl_posix_fallocate(long long fd
, long long PAD
,
4883 long long pos
, long long len
);
4884 void __sanitizer_syscall_post_impl_posix_fallocate(long long res
, long long fd
,
4885 long long PAD
, long long pos
,
4887 void __sanitizer_syscall_pre_impl_fdiscard(long long fd
, long long PAD
,
4888 long long pos
, long long len
);
4889 void __sanitizer_syscall_post_impl_fdiscard(long long res
, long long fd
,
4890 long long PAD
, long long pos
,
4892 void __sanitizer_syscall_pre_impl_wait6(long long idtype
, long long id
,
4893 long long status
, long long options
,
4894 long long wru
, long long info
);
4895 void __sanitizer_syscall_post_impl_wait6(long long res
, long long idtype
,
4896 long long id
, long long status
,
4897 long long options
, long long wru
,
4899 void __sanitizer_syscall_pre_impl_clock_getcpuclockid2(long long idtype
,
4901 long long clock_id
);
4902 void __sanitizer_syscall_post_impl_clock_getcpuclockid2(long long res
,
4905 long long clock_id
);
4906 void __sanitizer_syscall_pre_impl___getvfsstat90(long long buf
,
4909 void __sanitizer_syscall_post_impl___getvfsstat90(long long res
, long long buf
,
4912 void __sanitizer_syscall_pre_impl___statvfs190(long long path
, long long buf
,
4914 void __sanitizer_syscall_post_impl___statvfs190(long long res
, long long path
,
4915 long long buf
, long long flags
);
4916 void __sanitizer_syscall_pre_impl___fstatvfs190(long long fd
, long long buf
,
4918 void __sanitizer_syscall_post_impl___fstatvfs190(long long res
, long long fd
,
4921 void __sanitizer_syscall_pre_impl___fhstatvfs190(long long fhp
,
4925 void __sanitizer_syscall_post_impl___fhstatvfs190(long long res
, long long fhp
,
4929 void __sanitizer_syscall_pre_impl___acl_get_link(long long path
, long long type
,
4931 void __sanitizer_syscall_post_impl___acl_get_link(long long res
, long long path
,
4934 void __sanitizer_syscall_pre_impl___acl_set_link(long long path
, long long type
,
4936 void __sanitizer_syscall_post_impl___acl_set_link(long long res
, long long path
,
4939 void __sanitizer_syscall_pre_impl___acl_delete_link(long long path
,
4941 void __sanitizer_syscall_post_impl___acl_delete_link(long long res
,
4944 void __sanitizer_syscall_pre_impl___acl_aclcheck_link(long long path
,
4947 void __sanitizer_syscall_post_impl___acl_aclcheck_link(long long res
,
4951 void __sanitizer_syscall_pre_impl___acl_get_file(long long path
, long long type
,
4953 void __sanitizer_syscall_post_impl___acl_get_file(long long res
, long long path
,
4956 void __sanitizer_syscall_pre_impl___acl_set_file(long long path
, long long type
,
4958 void __sanitizer_syscall_post_impl___acl_set_file(long long res
, long long path
,
4961 void __sanitizer_syscall_pre_impl___acl_get_fd(long long filedes
,
4962 long long type
, long long aclp
);
4963 void __sanitizer_syscall_post_impl___acl_get_fd(long long res
,
4965 long long type
, long long aclp
);
4966 void __sanitizer_syscall_pre_impl___acl_set_fd(long long filedes
,
4967 long long type
, long long aclp
);
4968 void __sanitizer_syscall_post_impl___acl_set_fd(long long res
,
4970 long long type
, long long aclp
);
4971 void __sanitizer_syscall_pre_impl___acl_delete_file(long long path
,
4973 void __sanitizer_syscall_post_impl___acl_delete_file(long long res
,
4976 void __sanitizer_syscall_pre_impl___acl_delete_fd(long long filedes
,
4978 void __sanitizer_syscall_post_impl___acl_delete_fd(long long res
,
4981 void __sanitizer_syscall_pre_impl___acl_aclcheck_file(long long path
,
4984 void __sanitizer_syscall_post_impl___acl_aclcheck_file(long long res
,
4988 void __sanitizer_syscall_pre_impl___acl_aclcheck_fd(long long filedes
,
4991 void __sanitizer_syscall_post_impl___acl_aclcheck_fd(long long res
,
4995 void __sanitizer_syscall_pre_impl_lpathconf(long long path
, long long name
);
4996 void __sanitizer_syscall_post_impl_lpathconf(long long res
, long long path
,
5003 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
5005 #endif // SANITIZER_NETBSD_SYSCALL_HOOKS_H