1 //===-- netbsd_syscall_hooks.h --------------------------------------------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file is a part of public sanitizer interface. 10 // 11 // System call handlers. 12 // 13 // Interface methods declared in this header implement pre- and post- syscall 14 // actions for the active sanitizer. 15 // Usage: 16 // __sanitizer_syscall_pre_getfoo(...args...); 17 // long long res = syscall(SYS_getfoo, ...args...); 18 // __sanitizer_syscall_post_getfoo(res, ...args...); 19 // 20 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED! 21 // 22 // Generated with: generate_netbsd_syscalls.awk 23 // Generated date: 2018-10-30 24 // Generated from: syscalls.master,v 1.293 2018/07/31 13:00:13 rjs Exp 25 // 26 //===----------------------------------------------------------------------===// 27 #ifndef SANITIZER_NETBSD_SYSCALL_HOOKS_H 28 #define SANITIZER_NETBSD_SYSCALL_HOOKS_H 29 30 #define __sanitizer_syscall_pre_syscall(code, arg0, arg1, arg2, arg3, arg4, \ 31 arg5, arg6, arg7) \ 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), \ 51 (long long)(nbyte)) 52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ 53 __sanitizer_syscall_post_impl_read(res, (long long)(fd), (long long)(buf), \ 54 (long long)(nbyte)) 55 #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \ 56 __sanitizer_syscall_pre_impl_write((long long)(fd), (long long)(buf), \ 57 (long long)(nbyte)) 58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ 59 __sanitizer_syscall_post_impl_write(res, (long long)(fd), (long long)(buf), \ 60 (long long)(nbyte)) 61 #define __sanitizer_syscall_pre_open(path, flags, mode) \ 62 __sanitizer_syscall_pre_impl_open((long long)(path), (long long)(flags), \ 63 (long long)(mode)) 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), \ 74 (long long)(rusage)) 75 #define __sanitizer_syscall_post_compat_50_wait4(res, pid, status, options, \ 76 rusage) \ 77 __sanitizer_syscall_post_impl_compat_50_wait4( \ 78 res, (long long)(pid), (long long)(status), (long long)(options), \ 79 (long long)(rusage)) 80 #define __sanitizer_syscall_pre_compat_43_ocreat(path, mode) \ 81 __sanitizer_syscall_pre_impl_compat_43_ocreat((long long)(path), \ 82 (long long)(mode)) 83 #define __sanitizer_syscall_post_compat_43_ocreat(res, path, mode) \ 84 __sanitizer_syscall_post_impl_compat_43_ocreat(res, (long long)(path), \ 85 (long long)(mode)) 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), \ 115 (long long)(gid)) 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), \ 141 (long long)(data)) 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), \ 145 (long long)(data)) 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), \ 150 (long long)(flags)) 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), \ 167 (long long)(data)) 168 #define __sanitizer_syscall_pre_recvmsg(s, msg, flags) \ 169 __sanitizer_syscall_pre_impl_recvmsg((long long)(s), (long long)(msg), \ 170 (long long)(flags)) 171 #define __sanitizer_syscall_post_recvmsg(res, s, msg, flags) \ 172 __sanitizer_syscall_post_impl_recvmsg(res, (long long)(s), (long long)(msg), \ 173 (long long)(flags)) 174 #define __sanitizer_syscall_pre_sendmsg(s, msg, flags) \ 175 __sanitizer_syscall_pre_impl_sendmsg((long long)(s), (long long)(msg), \ 176 (long long)(flags)) 177 #define __sanitizer_syscall_post_sendmsg(res, s, msg, flags) \ 178 __sanitizer_syscall_post_impl_sendmsg(res, (long long)(s), (long long)(msg), \ 179 (long long)(flags)) 180 #define __sanitizer_syscall_pre_recvfrom(s, buf, len, flags, from, \ 181 fromlenaddr) \ 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, \ 186 fromlenaddr) \ 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), \ 212 (long long)(flags)) 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), \ 217 (long long)(flags)) 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), \ 222 (long long)(flags)) 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), \ 232 (long long)(ub)) 233 #define __sanitizer_syscall_post_compat_43_stat43(res, path, ub) \ 234 __sanitizer_syscall_post_impl_compat_43_stat43(res, (long long)(path), \ 235 (long long)(ub)) 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), \ 241 (long long)(ub)) 242 #define __sanitizer_syscall_post_compat_43_lstat43(res, path, ub) \ 243 __sanitizer_syscall_post_impl_compat_43_lstat43(res, (long long)(path), \ 244 (long long)(ub)) 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), \ 261 (long long)(scale)) 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), \ 268 (long long)(pid)) 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), \ 280 (long long)(mask)) 281 #define __sanitizer_syscall_post_compat_13_sigprocmask13(res, how, mask) \ 282 __sanitizer_syscall_post_impl_compat_13_sigprocmask13(res, (long long)(how), \ 283 (long long)(mask)) 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), \ 304 (long long)(oss)) 305 #define __sanitizer_syscall_post_compat_13_sigaltstack13(res, nss, oss) \ 306 __sanitizer_syscall_post_impl_compat_13_sigaltstack13(res, (long long)(nss), \ 307 (long long)(oss)) 308 #define __sanitizer_syscall_pre_ioctl(fd, com, data) \ 309 __sanitizer_syscall_pre_impl_ioctl((long long)(fd), (long long)(com), \ 310 (long long)(data)) 311 #define __sanitizer_syscall_post_ioctl(res, fd, com, data) \ 312 __sanitizer_syscall_post_impl_ioctl(res, (long long)(fd), (long long)(com), \ 313 (long long)(data)) 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), \ 326 (long long)(link)) 327 #define __sanitizer_syscall_pre_readlink(path, buf, count) \ 328 __sanitizer_syscall_pre_impl_readlink((long long)(path), (long long)(buf), \ 329 (long long)(count)) 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), \ 335 (long long)(envp)) 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), \ 349 (long long)(sb)) 350 #define __sanitizer_syscall_post_compat_43_fstat43(res, fd, sb) \ 351 __sanitizer_syscall_post_impl_compat_43_fstat43(res, (long long)(fd), \ 352 (long long)(sb)) 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), \ 356 (long long)(arg)) 357 #define __sanitizer_syscall_post_compat_43_ogetkerninfo(res, op, where, size, \ 358 arg) \ 359 __sanitizer_syscall_post_impl_compat_43_ogetkerninfo( \ 360 res, (long long)(op), (long long)(where), (long long)(size), \ 361 (long long)(arg)) 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), \ 368 (long long)(len)) 369 #define __sanitizer_syscall_post_compat_12_msync(res, addr, len) \ 370 __sanitizer_syscall_post_impl_compat_12_msync(res, (long long)(addr), \ 371 (long long)(len)) 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, \ 380 pos) \ 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, \ 385 fd, pos) \ 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), \ 399 (long long)(prot)) 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), \ 405 (long long)(behav)) 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), \ 413 (long long)(vec)) 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), \ 419 (long long)(gidset)) 420 #define __sanitizer_syscall_post_getgroups(res, gidsetsize, gidset) \ 421 __sanitizer_syscall_post_impl_getgroups(res, (long long)(gidsetsize), \ 422 (long long)(gidset)) 423 #define __sanitizer_syscall_pre_setgroups(gidsetsize, gidset) \ 424 __sanitizer_syscall_pre_impl_setgroups((long long)(gidsetsize), \ 425 (long long)(gidset)) 426 #define __sanitizer_syscall_post_setgroups(res, gidsetsize, gidset) \ 427 __sanitizer_syscall_post_impl_setgroups(res, (long long)(gidsetsize), \ 428 (long long)(gidset)) 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), \ 436 (long long)(pgid)) 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), \ 453 (long long)(itv)) 454 #define __sanitizer_syscall_post_compat_50_getitimer(res, which, itv) \ 455 __sanitizer_syscall_post_impl_compat_50_getitimer(res, (long long)(which), \ 456 (long long)(itv)) 457 #define __sanitizer_syscall_pre_compat_43_ogethostname(hostname, len) \ 458 __sanitizer_syscall_pre_impl_compat_43_ogethostname((long long)(hostname), \ 459 (long long)(len)) 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), \ 465 (long long)(len)) 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 /* syscall 91 has been skipped */ 478 #define __sanitizer_syscall_pre_fcntl(fd, cmd, arg) \ 479 __sanitizer_syscall_pre_impl_fcntl((long long)(fd), (long long)(cmd), \ 480 (long long)(arg)) 481 #define __sanitizer_syscall_post_fcntl(res, fd, cmd, arg) \ 482 __sanitizer_syscall_post_impl_fcntl(res, (long long)(fd), (long long)(cmd), \ 483 (long long)(arg)) 484 #define __sanitizer_syscall_pre_compat_50_select(nd, in, ou, ex, tv) \ 485 __sanitizer_syscall_pre_impl_compat_50_select( \ 486 (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \ 487 (long long)(tv)) 488 #define __sanitizer_syscall_post_compat_50_select(res, nd, in, ou, ex, tv) \ 489 __sanitizer_syscall_post_impl_compat_50_select( \ 490 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \ 491 (long long)(tv)) 492 /* syscall 94 has been skipped */ 493 #define __sanitizer_syscall_pre_fsync(fd) \ 494 __sanitizer_syscall_pre_impl_fsync((long long)(fd)) 495 #define __sanitizer_syscall_post_fsync(res, fd) \ 496 __sanitizer_syscall_post_impl_fsync(res, (long long)(fd)) 497 #define __sanitizer_syscall_pre_setpriority(which, who, prio) \ 498 __sanitizer_syscall_pre_impl_setpriority( \ 499 (long long)(which), (long long)(who), (long long)(prio)) 500 #define __sanitizer_syscall_post_setpriority(res, which, who, prio) \ 501 __sanitizer_syscall_post_impl_setpriority( \ 502 res, (long long)(which), (long long)(who), (long long)(prio)) 503 #define __sanitizer_syscall_pre_compat_30_socket(domain, type, protocol) \ 504 __sanitizer_syscall_pre_impl_compat_30_socket( \ 505 (long long)(domain), (long long)(type), (long long)(protocol)) 506 #define __sanitizer_syscall_post_compat_30_socket(res, domain, type, protocol) \ 507 __sanitizer_syscall_post_impl_compat_30_socket( \ 508 res, (long long)(domain), (long long)(type), (long long)(protocol)) 509 #define __sanitizer_syscall_pre_connect(s, name, namelen) \ 510 __sanitizer_syscall_pre_impl_connect((long long)(s), (long long)(name), \ 511 (long long)(namelen)) 512 #define __sanitizer_syscall_post_connect(res, s, name, namelen) \ 513 __sanitizer_syscall_post_impl_connect( \ 514 res, (long long)(s), (long long)(name), (long long)(namelen)) 515 #define __sanitizer_syscall_pre_compat_43_oaccept(s, name, anamelen) \ 516 __sanitizer_syscall_pre_impl_compat_43_oaccept( \ 517 (long long)(s), (long long)(name), (long long)(anamelen)) 518 #define __sanitizer_syscall_post_compat_43_oaccept(res, s, name, anamelen) \ 519 __sanitizer_syscall_post_impl_compat_43_oaccept( \ 520 res, (long long)(s), (long long)(name), (long long)(anamelen)) 521 #define __sanitizer_syscall_pre_getpriority(which, who) \ 522 __sanitizer_syscall_pre_impl_getpriority((long long)(which), (long long)(who)) 523 #define __sanitizer_syscall_post_getpriority(res, which, who) \ 524 __sanitizer_syscall_post_impl_getpriority(res, (long long)(which), \ 525 (long long)(who)) 526 #define __sanitizer_syscall_pre_compat_43_osend(s, buf, len, flags) \ 527 __sanitizer_syscall_pre_impl_compat_43_osend( \ 528 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags)) 529 #define __sanitizer_syscall_post_compat_43_osend(res, s, buf, len, flags) \ 530 __sanitizer_syscall_post_impl_compat_43_osend( \ 531 res, (long long)(s), (long long)(buf), (long long)(len), \ 532 (long long)(flags)) 533 #define __sanitizer_syscall_pre_compat_43_orecv(s, buf, len, flags) \ 534 __sanitizer_syscall_pre_impl_compat_43_orecv( \ 535 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags)) 536 #define __sanitizer_syscall_post_compat_43_orecv(res, s, buf, len, flags) \ 537 __sanitizer_syscall_post_impl_compat_43_orecv( \ 538 res, (long long)(s), (long long)(buf), (long long)(len), \ 539 (long long)(flags)) 540 #define __sanitizer_syscall_pre_compat_13_sigreturn13(sigcntxp) \ 541 __sanitizer_syscall_pre_impl_compat_13_sigreturn13((long long)(sigcntxp)) 542 #define __sanitizer_syscall_post_compat_13_sigreturn13(res, sigcntxp) \ 543 __sanitizer_syscall_post_impl_compat_13_sigreturn13(res, \ 544 (long long)(sigcntxp)) 545 #define __sanitizer_syscall_pre_bind(s, name, namelen) \ 546 __sanitizer_syscall_pre_impl_bind((long long)(s), (long long)(name), \ 547 (long long)(namelen)) 548 #define __sanitizer_syscall_post_bind(res, s, name, namelen) \ 549 __sanitizer_syscall_post_impl_bind(res, (long long)(s), (long long)(name), \ 550 (long long)(namelen)) 551 #define __sanitizer_syscall_pre_setsockopt(s, level, name, val, valsize) \ 552 __sanitizer_syscall_pre_impl_setsockopt((long long)(s), (long long)(level), \ 553 (long long)(name), (long long)(val), \ 554 (long long)(valsize)) 555 #define __sanitizer_syscall_post_setsockopt(res, s, level, name, val, valsize) \ 556 __sanitizer_syscall_post_impl_setsockopt( \ 557 res, (long long)(s), (long long)(level), (long long)(name), \ 558 (long long)(val), (long long)(valsize)) 559 #define __sanitizer_syscall_pre_listen(s, backlog) \ 560 __sanitizer_syscall_pre_impl_listen((long long)(s), (long long)(backlog)) 561 #define __sanitizer_syscall_post_listen(res, s, backlog) \ 562 __sanitizer_syscall_post_impl_listen(res, (long long)(s), \ 563 (long long)(backlog)) 564 /* syscall 107 has been skipped */ 565 #define __sanitizer_syscall_pre_compat_43_osigvec(signum, nsv, osv) \ 566 __sanitizer_syscall_pre_impl_compat_43_osigvec( \ 567 (long long)(signum), (long long)(nsv), (long long)(osv)) 568 #define __sanitizer_syscall_post_compat_43_osigvec(res, signum, nsv, osv) \ 569 __sanitizer_syscall_post_impl_compat_43_osigvec( \ 570 res, (long long)(signum), (long long)(nsv), (long long)(osv)) 571 #define __sanitizer_syscall_pre_compat_43_osigblock(mask) \ 572 __sanitizer_syscall_pre_impl_compat_43_osigblock((long long)(mask)) 573 #define __sanitizer_syscall_post_compat_43_osigblock(res, mask) \ 574 __sanitizer_syscall_post_impl_compat_43_osigblock(res, (long long)(mask)) 575 #define __sanitizer_syscall_pre_compat_43_osigsetmask(mask) \ 576 __sanitizer_syscall_pre_impl_compat_43_osigsetmask((long long)(mask)) 577 #define __sanitizer_syscall_post_compat_43_osigsetmask(res, mask) \ 578 __sanitizer_syscall_post_impl_compat_43_osigsetmask(res, (long long)(mask)) 579 #define __sanitizer_syscall_pre_compat_13_sigsuspend13(mask) \ 580 __sanitizer_syscall_pre_impl_compat_13_sigsuspend13((long long)(mask)) 581 #define __sanitizer_syscall_post_compat_13_sigsuspend13(res, mask) \ 582 __sanitizer_syscall_post_impl_compat_13_sigsuspend13(res, (long long)(mask)) 583 #define __sanitizer_syscall_pre_compat_43_osigstack(nss, oss) \ 584 __sanitizer_syscall_pre_impl_compat_43_osigstack((long long)(nss), \ 585 (long long)(oss)) 586 #define __sanitizer_syscall_post_compat_43_osigstack(res, nss, oss) \ 587 __sanitizer_syscall_post_impl_compat_43_osigstack(res, (long long)(nss), \ 588 (long long)(oss)) 589 #define __sanitizer_syscall_pre_compat_43_orecvmsg(s, msg, flags) \ 590 __sanitizer_syscall_pre_impl_compat_43_orecvmsg( \ 591 (long long)(s), (long long)(msg), (long long)(flags)) 592 #define __sanitizer_syscall_post_compat_43_orecvmsg(res, s, msg, flags) \ 593 __sanitizer_syscall_post_impl_compat_43_orecvmsg( \ 594 res, (long long)(s), (long long)(msg), (long long)(flags)) 595 #define __sanitizer_syscall_pre_compat_43_osendmsg(s, msg, flags) \ 596 __sanitizer_syscall_pre_impl_compat_43_osendmsg( \ 597 (long long)(s), (long long)(msg), (long long)(flags)) 598 #define __sanitizer_syscall_post_compat_43_osendmsg(res, s, msg, flags) \ 599 __sanitizer_syscall_post_impl_compat_43_osendmsg( \ 600 res, (long long)(s), (long long)(msg), (long long)(flags)) 601 /* syscall 115 has been skipped */ 602 #define __sanitizer_syscall_pre_compat_50_gettimeofday(tp, tzp) \ 603 __sanitizer_syscall_pre_impl_compat_50_gettimeofday((long long)(tp), \ 604 (long long)(tzp)) 605 #define __sanitizer_syscall_post_compat_50_gettimeofday(res, tp, tzp) \ 606 __sanitizer_syscall_post_impl_compat_50_gettimeofday(res, (long long)(tp), \ 607 (long long)(tzp)) 608 #define __sanitizer_syscall_pre_compat_50_getrusage(who, rusage) \ 609 __sanitizer_syscall_pre_impl_compat_50_getrusage((long long)(who), \ 610 (long long)(rusage)) 611 #define __sanitizer_syscall_post_compat_50_getrusage(res, who, rusage) \ 612 __sanitizer_syscall_post_impl_compat_50_getrusage(res, (long long)(who), \ 613 (long long)(rusage)) 614 #define __sanitizer_syscall_pre_getsockopt(s, level, name, val, avalsize) \ 615 __sanitizer_syscall_pre_impl_getsockopt((long long)(s), (long long)(level), \ 616 (long long)(name), (long long)(val), \ 617 (long long)(avalsize)) 618 #define __sanitizer_syscall_post_getsockopt(res, s, level, name, val, \ 619 avalsize) \ 620 __sanitizer_syscall_post_impl_getsockopt( \ 621 res, (long long)(s), (long long)(level), (long long)(name), \ 622 (long long)(val), (long long)(avalsize)) 623 /* syscall 119 has been skipped */ 624 #define __sanitizer_syscall_pre_readv(fd, iovp, iovcnt) \ 625 __sanitizer_syscall_pre_impl_readv((long long)(fd), (long long)(iovp), \ 626 (long long)(iovcnt)) 627 #define __sanitizer_syscall_post_readv(res, fd, iovp, iovcnt) \ 628 __sanitizer_syscall_post_impl_readv(res, (long long)(fd), (long long)(iovp), \ 629 (long long)(iovcnt)) 630 #define __sanitizer_syscall_pre_writev(fd, iovp, iovcnt) \ 631 __sanitizer_syscall_pre_impl_writev((long long)(fd), (long long)(iovp), \ 632 (long long)(iovcnt)) 633 #define __sanitizer_syscall_post_writev(res, fd, iovp, iovcnt) \ 634 __sanitizer_syscall_post_impl_writev(res, (long long)(fd), \ 635 (long long)(iovp), (long long)(iovcnt)) 636 #define __sanitizer_syscall_pre_compat_50_settimeofday(tv, tzp) \ 637 __sanitizer_syscall_pre_impl_compat_50_settimeofday((long long)(tv), \ 638 (long long)(tzp)) 639 #define __sanitizer_syscall_post_compat_50_settimeofday(res, tv, tzp) \ 640 __sanitizer_syscall_post_impl_compat_50_settimeofday(res, (long long)(tv), \ 641 (long long)(tzp)) 642 #define __sanitizer_syscall_pre_fchown(fd, uid, gid) \ 643 __sanitizer_syscall_pre_impl_fchown((long long)(fd), (long long)(uid), \ 644 (long long)(gid)) 645 #define __sanitizer_syscall_post_fchown(res, fd, uid, gid) \ 646 __sanitizer_syscall_post_impl_fchown(res, (long long)(fd), (long long)(uid), \ 647 (long long)(gid)) 648 #define __sanitizer_syscall_pre_fchmod(fd, mode) \ 649 __sanitizer_syscall_pre_impl_fchmod((long long)(fd), (long long)(mode)) 650 #define __sanitizer_syscall_post_fchmod(res, fd, mode) \ 651 __sanitizer_syscall_post_impl_fchmod(res, (long long)(fd), (long long)(mode)) 652 #define __sanitizer_syscall_pre_compat_43_orecvfrom(s, buf, len, flags, from, \ 653 fromlenaddr) \ 654 __sanitizer_syscall_pre_impl_compat_43_orecvfrom( \ 655 (long long)(s), (long long)(buf), (long long)(len), (long long)(flags), \ 656 (long long)(from), (long long)(fromlenaddr)) 657 #define __sanitizer_syscall_post_compat_43_orecvfrom(res, s, buf, len, flags, \ 658 from, fromlenaddr) \ 659 __sanitizer_syscall_post_impl_compat_43_orecvfrom( \ 660 res, (long long)(s), (long long)(buf), (long long)(len), \ 661 (long long)(flags), (long long)(from), (long long)(fromlenaddr)) 662 #define __sanitizer_syscall_pre_setreuid(ruid, euid) \ 663 __sanitizer_syscall_pre_impl_setreuid((long long)(ruid), (long long)(euid)) 664 #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ 665 __sanitizer_syscall_post_impl_setreuid(res, (long long)(ruid), \ 666 (long long)(euid)) 667 #define __sanitizer_syscall_pre_setregid(rgid, egid) \ 668 __sanitizer_syscall_pre_impl_setregid((long long)(rgid), (long long)(egid)) 669 #define __sanitizer_syscall_post_setregid(res, rgid, egid) \ 670 __sanitizer_syscall_post_impl_setregid(res, (long long)(rgid), \ 671 (long long)(egid)) 672 #define __sanitizer_syscall_pre_rename(from, to) \ 673 __sanitizer_syscall_pre_impl_rename((long long)(from), (long long)(to)) 674 #define __sanitizer_syscall_post_rename(res, from, to) \ 675 __sanitizer_syscall_post_impl_rename(res, (long long)(from), (long long)(to)) 676 #define __sanitizer_syscall_pre_compat_43_otruncate(path, length) \ 677 __sanitizer_syscall_pre_impl_compat_43_otruncate((long long)(path), \ 678 (long long)(length)) 679 #define __sanitizer_syscall_post_compat_43_otruncate(res, path, length) \ 680 __sanitizer_syscall_post_impl_compat_43_otruncate(res, (long long)(path), \ 681 (long long)(length)) 682 #define __sanitizer_syscall_pre_compat_43_oftruncate(fd, length) \ 683 __sanitizer_syscall_pre_impl_compat_43_oftruncate((long long)(fd), \ 684 (long long)(length)) 685 #define __sanitizer_syscall_post_compat_43_oftruncate(res, fd, length) \ 686 __sanitizer_syscall_post_impl_compat_43_oftruncate(res, (long long)(fd), \ 687 (long long)(length)) 688 #define __sanitizer_syscall_pre_flock(fd, how) \ 689 __sanitizer_syscall_pre_impl_flock((long long)(fd), (long long)(how)) 690 #define __sanitizer_syscall_post_flock(res, fd, how) \ 691 __sanitizer_syscall_post_impl_flock(res, (long long)(fd), (long long)(how)) 692 #define __sanitizer_syscall_pre_mkfifo(path, mode) \ 693 __sanitizer_syscall_pre_impl_mkfifo((long long)(path), (long long)(mode)) 694 #define __sanitizer_syscall_post_mkfifo(res, path, mode) \ 695 __sanitizer_syscall_post_impl_mkfifo(res, (long long)(path), \ 696 (long long)(mode)) 697 #define __sanitizer_syscall_pre_sendto(s, buf, len, flags, to, tolen) \ 698 __sanitizer_syscall_pre_impl_sendto((long long)(s), (long long)(buf), \ 699 (long long)(len), (long long)(flags), \ 700 (long long)(to), (long long)(tolen)) 701 #define __sanitizer_syscall_post_sendto(res, s, buf, len, flags, to, tolen) \ 702 __sanitizer_syscall_post_impl_sendto(res, (long long)(s), (long long)(buf), \ 703 (long long)(len), (long long)(flags), \ 704 (long long)(to), (long long)(tolen)) 705 #define __sanitizer_syscall_pre_shutdown(s, how) \ 706 __sanitizer_syscall_pre_impl_shutdown((long long)(s), (long long)(how)) 707 #define __sanitizer_syscall_post_shutdown(res, s, how) \ 708 __sanitizer_syscall_post_impl_shutdown(res, (long long)(s), (long long)(how)) 709 #define __sanitizer_syscall_pre_socketpair(domain, type, protocol, rsv) \ 710 __sanitizer_syscall_pre_impl_socketpair( \ 711 (long long)(domain), (long long)(type), (long long)(protocol), \ 712 (long long)(rsv)) 713 #define __sanitizer_syscall_post_socketpair(res, domain, type, protocol, rsv) \ 714 __sanitizer_syscall_post_impl_socketpair( \ 715 res, (long long)(domain), (long long)(type), (long long)(protocol), \ 716 (long long)(rsv)) 717 #define __sanitizer_syscall_pre_mkdir(path, mode) \ 718 __sanitizer_syscall_pre_impl_mkdir((long long)(path), (long long)(mode)) 719 #define __sanitizer_syscall_post_mkdir(res, path, mode) \ 720 __sanitizer_syscall_post_impl_mkdir(res, (long long)(path), (long long)(mode)) 721 #define __sanitizer_syscall_pre_rmdir(path) \ 722 __sanitizer_syscall_pre_impl_rmdir((long long)(path)) 723 #define __sanitizer_syscall_post_rmdir(res, path) \ 724 __sanitizer_syscall_post_impl_rmdir(res, (long long)(path)) 725 #define __sanitizer_syscall_pre_compat_50_utimes(path, tptr) \ 726 __sanitizer_syscall_pre_impl_compat_50_utimes((long long)(path), \ 727 (long long)(tptr)) 728 #define __sanitizer_syscall_post_compat_50_utimes(res, path, tptr) \ 729 __sanitizer_syscall_post_impl_compat_50_utimes(res, (long long)(path), \ 730 (long long)(tptr)) 731 /* syscall 139 has been skipped */ 732 #define __sanitizer_syscall_pre_compat_50_adjtime(delta, olddelta) \ 733 __sanitizer_syscall_pre_impl_compat_50_adjtime((long long)(delta), \ 734 (long long)(olddelta)) 735 #define __sanitizer_syscall_post_compat_50_adjtime(res, delta, olddelta) \ 736 __sanitizer_syscall_post_impl_compat_50_adjtime(res, (long long)(delta), \ 737 (long long)(olddelta)) 738 #define __sanitizer_syscall_pre_compat_43_ogetpeername(fdes, asa, alen) \ 739 __sanitizer_syscall_pre_impl_compat_43_ogetpeername( \ 740 (long long)(fdes), (long long)(asa), (long long)(alen)) 741 #define __sanitizer_syscall_post_compat_43_ogetpeername(res, fdes, asa, alen) \ 742 __sanitizer_syscall_post_impl_compat_43_ogetpeername( \ 743 res, (long long)(fdes), (long long)(asa), (long long)(alen)) 744 #define __sanitizer_syscall_pre_compat_43_ogethostid() \ 745 __sanitizer_syscall_pre_impl_compat_43_ogethostid() 746 #define __sanitizer_syscall_post_compat_43_ogethostid(res) \ 747 __sanitizer_syscall_post_impl_compat_43_ogethostid(res) 748 #define __sanitizer_syscall_pre_compat_43_osethostid(hostid) \ 749 __sanitizer_syscall_pre_impl_compat_43_osethostid((long long)(hostid)) 750 #define __sanitizer_syscall_post_compat_43_osethostid(res, hostid) \ 751 __sanitizer_syscall_post_impl_compat_43_osethostid(res, (long long)(hostid)) 752 #define __sanitizer_syscall_pre_compat_43_ogetrlimit(which, rlp) \ 753 __sanitizer_syscall_pre_impl_compat_43_ogetrlimit((long long)(which), \ 754 (long long)(rlp)) 755 #define __sanitizer_syscall_post_compat_43_ogetrlimit(res, which, rlp) \ 756 __sanitizer_syscall_post_impl_compat_43_ogetrlimit(res, (long long)(which), \ 757 (long long)(rlp)) 758 #define __sanitizer_syscall_pre_compat_43_osetrlimit(which, rlp) \ 759 __sanitizer_syscall_pre_impl_compat_43_osetrlimit((long long)(which), \ 760 (long long)(rlp)) 761 #define __sanitizer_syscall_post_compat_43_osetrlimit(res, which, rlp) \ 762 __sanitizer_syscall_post_impl_compat_43_osetrlimit(res, (long long)(which), \ 763 (long long)(rlp)) 764 #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \ 765 __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \ 766 (long long)(signum)) 767 #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \ 768 __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \ 769 (long long)(signum)) 770 #define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid() 771 #define __sanitizer_syscall_post_setsid(res) \ 772 __sanitizer_syscall_post_impl_setsid(res) 773 #define __sanitizer_syscall_pre_compat_50_quotactl(path, cmd, uid, arg) \ 774 __sanitizer_syscall_pre_impl_compat_50_quotactl( \ 775 (long long)(path), (long long)(cmd), (long long)(uid), (long long)(arg)) 776 #define __sanitizer_syscall_post_compat_50_quotactl(res, path, cmd, uid, arg) \ 777 __sanitizer_syscall_post_impl_compat_50_quotactl( \ 778 res, (long long)(path), (long long)(cmd), (long long)(uid), \ 779 (long long)(arg)) 780 #define __sanitizer_syscall_pre_compat_43_oquota() \ 781 __sanitizer_syscall_pre_impl_compat_43_oquota() 782 #define __sanitizer_syscall_post_compat_43_oquota(res) \ 783 __sanitizer_syscall_post_impl_compat_43_oquota(res) 784 #define __sanitizer_syscall_pre_compat_43_ogetsockname(fdec, asa, alen) \ 785 __sanitizer_syscall_pre_impl_compat_43_ogetsockname( \ 786 (long long)(fdec), (long long)(asa), (long long)(alen)) 787 #define __sanitizer_syscall_post_compat_43_ogetsockname(res, fdec, asa, alen) \ 788 __sanitizer_syscall_post_impl_compat_43_ogetsockname( \ 789 res, (long long)(fdec), (long long)(asa), (long long)(alen)) 790 /* syscall 151 has been skipped */ 791 /* syscall 152 has been skipped */ 792 /* syscall 153 has been skipped */ 793 /* syscall 154 has been skipped */ 794 #define __sanitizer_syscall_pre_nfssvc(flag, argp) \ 795 __sanitizer_syscall_pre_impl_nfssvc((long long)(flag), (long long)(argp)) 796 #define __sanitizer_syscall_post_nfssvc(res, flag, argp) \ 797 __sanitizer_syscall_post_impl_nfssvc(res, (long long)(flag), \ 798 (long long)(argp)) 799 #define __sanitizer_syscall_pre_compat_43_ogetdirentries(fd, buf, count, \ 800 basep) \ 801 __sanitizer_syscall_pre_impl_compat_43_ogetdirentries( \ 802 (long long)(fd), (long long)(buf), (long long)(count), \ 803 (long long)(basep)) 804 #define __sanitizer_syscall_post_compat_43_ogetdirentries(res, fd, buf, count, \ 805 basep) \ 806 __sanitizer_syscall_post_impl_compat_43_ogetdirentries( \ 807 res, (long long)(fd), (long long)(buf), (long long)(count), \ 808 (long long)(basep)) 809 #define __sanitizer_syscall_pre_compat_20_statfs(path, buf) \ 810 __sanitizer_syscall_pre_impl_compat_20_statfs((long long)(path), \ 811 (long long)(buf)) 812 #define __sanitizer_syscall_post_compat_20_statfs(res, path, buf) \ 813 __sanitizer_syscall_post_impl_compat_20_statfs(res, (long long)(path), \ 814 (long long)(buf)) 815 #define __sanitizer_syscall_pre_compat_20_fstatfs(fd, buf) \ 816 __sanitizer_syscall_pre_impl_compat_20_fstatfs((long long)(fd), \ 817 (long long)(buf)) 818 #define __sanitizer_syscall_post_compat_20_fstatfs(res, fd, buf) \ 819 __sanitizer_syscall_post_impl_compat_20_fstatfs(res, (long long)(fd), \ 820 (long long)(buf)) 821 /* syscall 159 has been skipped */ 822 /* syscall 160 has been skipped */ 823 #define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp) \ 824 __sanitizer_syscall_pre_impl_compat_30_getfh((long long)(fname), \ 825 (long long)(fhp)) 826 #define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp) \ 827 __sanitizer_syscall_post_impl_compat_30_getfh(res, (long long)(fname), \ 828 (long long)(fhp)) 829 #define __sanitizer_syscall_pre_compat_09_ogetdomainname(domainname, len) \ 830 __sanitizer_syscall_pre_impl_compat_09_ogetdomainname( \ 831 (long long)(domainname), (long long)(len)) 832 #define __sanitizer_syscall_post_compat_09_ogetdomainname(res, domainname, \ 833 len) \ 834 __sanitizer_syscall_post_impl_compat_09_ogetdomainname( \ 835 res, (long long)(domainname), (long long)(len)) 836 #define __sanitizer_syscall_pre_compat_09_osetdomainname(domainname, len) \ 837 __sanitizer_syscall_pre_impl_compat_09_osetdomainname( \ 838 (long long)(domainname), (long long)(len)) 839 #define __sanitizer_syscall_post_compat_09_osetdomainname(res, domainname, \ 840 len) \ 841 __sanitizer_syscall_post_impl_compat_09_osetdomainname( \ 842 res, (long long)(domainname), (long long)(len)) 843 #define __sanitizer_syscall_pre_compat_09_ouname(name) \ 844 __sanitizer_syscall_pre_impl_compat_09_ouname((long long)(name)) 845 #define __sanitizer_syscall_post_compat_09_ouname(res, name) \ 846 __sanitizer_syscall_post_impl_compat_09_ouname(res, (long long)(name)) 847 #define __sanitizer_syscall_pre_sysarch(op, parms) \ 848 __sanitizer_syscall_pre_impl_sysarch((long long)(op), (long long)(parms)) 849 #define __sanitizer_syscall_post_sysarch(res, op, parms) \ 850 __sanitizer_syscall_post_impl_sysarch(res, (long long)(op), \ 851 (long long)(parms)) 852 /* syscall 166 has been skipped */ 853 /* syscall 167 has been skipped */ 854 /* syscall 168 has been skipped */ 855 #if !defined(_LP64) 856 #define __sanitizer_syscall_pre_compat_10_osemsys(which, a2, a3, a4, a5) \ 857 __sanitizer_syscall_pre_impl_compat_10_osemsys( \ 858 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \ 859 (long long)(a5)) 860 #define __sanitizer_syscall_post_compat_10_osemsys(res, which, a2, a3, a4, a5) \ 861 __sanitizer_syscall_post_impl_compat_10_osemsys( \ 862 res, (long long)(which), (long long)(a2), (long long)(a3), \ 863 (long long)(a4), (long long)(a5)) 864 #else 865 /* syscall 169 has been skipped */ 866 #endif 867 #if !defined(_LP64) 868 #define __sanitizer_syscall_pre_compat_10_omsgsys(which, a2, a3, a4, a5, a6) \ 869 __sanitizer_syscall_pre_impl_compat_10_omsgsys( \ 870 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4), \ 871 (long long)(a5), (long long)(a6)) 872 #define __sanitizer_syscall_post_compat_10_omsgsys(res, which, a2, a3, a4, a5, \ 873 a6) \ 874 __sanitizer_syscall_post_impl_compat_10_omsgsys( \ 875 res, (long long)(which), (long long)(a2), (long long)(a3), \ 876 (long long)(a4), (long long)(a5), (long long)(a6)) 877 #else 878 /* syscall 170 has been skipped */ 879 #endif 880 #if !defined(_LP64) 881 #define __sanitizer_syscall_pre_compat_10_oshmsys(which, a2, a3, a4) \ 882 __sanitizer_syscall_pre_impl_compat_10_oshmsys( \ 883 (long long)(which), (long long)(a2), (long long)(a3), (long long)(a4)) 884 #define __sanitizer_syscall_post_compat_10_oshmsys(res, which, a2, a3, a4) \ 885 __sanitizer_syscall_post_impl_compat_10_oshmsys( \ 886 res, (long long)(which), (long long)(a2), (long long)(a3), \ 887 (long long)(a4)) 888 #else 889 /* syscall 171 has been skipped */ 890 #endif 891 /* syscall 172 has been skipped */ 892 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \ 893 __sanitizer_syscall_pre_impl_pread((long long)(fd), (long long)(buf), \ 894 (long long)(nbyte), (long long)(PAD), \ 895 (long long)(offset)) 896 #define __sanitizer_syscall_post_pread(res, fd, buf, nbyte, PAD, offset) \ 897 __sanitizer_syscall_post_impl_pread(res, (long long)(fd), (long long)(buf), \ 898 (long long)(nbyte), (long long)(PAD), \ 899 (long long)(offset)) 900 #define __sanitizer_syscall_pre_pwrite(fd, buf, nbyte, PAD, offset) \ 901 __sanitizer_syscall_pre_impl_pwrite((long long)(fd), (long long)(buf), \ 902 (long long)(nbyte), (long long)(PAD), \ 903 (long long)(offset)) 904 #define __sanitizer_syscall_post_pwrite(res, fd, buf, nbyte, PAD, offset) \ 905 __sanitizer_syscall_post_impl_pwrite(res, (long long)(fd), (long long)(buf), \ 906 (long long)(nbyte), (long long)(PAD), \ 907 (long long)(offset)) 908 #define __sanitizer_syscall_pre_compat_30_ntp_gettime(ntvp) \ 909 __sanitizer_syscall_pre_impl_compat_30_ntp_gettime((long long)(ntvp)) 910 #define __sanitizer_syscall_post_compat_30_ntp_gettime(res, ntvp) \ 911 __sanitizer_syscall_post_impl_compat_30_ntp_gettime(res, (long long)(ntvp)) 912 #if defined(NTP) || !defined(_KERNEL_OPT) 913 #define __sanitizer_syscall_pre_ntp_adjtime(tp) \ 914 __sanitizer_syscall_pre_impl_ntp_adjtime((long long)(tp)) 915 #define __sanitizer_syscall_post_ntp_adjtime(res, tp) \ 916 __sanitizer_syscall_post_impl_ntp_adjtime(res, (long long)(tp)) 917 #else 918 /* syscall 176 has been skipped */ 919 #endif 920 /* syscall 177 has been skipped */ 921 /* syscall 178 has been skipped */ 922 /* syscall 179 has been skipped */ 923 /* syscall 180 has been skipped */ 924 #define __sanitizer_syscall_pre_setgid(gid) \ 925 __sanitizer_syscall_pre_impl_setgid((long long)(gid)) 926 #define __sanitizer_syscall_post_setgid(res, gid) \ 927 __sanitizer_syscall_post_impl_setgid(res, (long long)(gid)) 928 #define __sanitizer_syscall_pre_setegid(egid) \ 929 __sanitizer_syscall_pre_impl_setegid((long long)(egid)) 930 #define __sanitizer_syscall_post_setegid(res, egid) \ 931 __sanitizer_syscall_post_impl_setegid(res, (long long)(egid)) 932 #define __sanitizer_syscall_pre_seteuid(euid) \ 933 __sanitizer_syscall_pre_impl_seteuid((long long)(euid)) 934 #define __sanitizer_syscall_post_seteuid(res, euid) \ 935 __sanitizer_syscall_post_impl_seteuid(res, (long long)(euid)) 936 #define __sanitizer_syscall_pre_lfs_bmapv(fsidp, blkiov, blkcnt) \ 937 __sanitizer_syscall_pre_impl_lfs_bmapv( \ 938 (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt)) 939 #define __sanitizer_syscall_post_lfs_bmapv(res, fsidp, blkiov, blkcnt) \ 940 __sanitizer_syscall_post_impl_lfs_bmapv( \ 941 res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt)) 942 #define __sanitizer_syscall_pre_lfs_markv(fsidp, blkiov, blkcnt) \ 943 __sanitizer_syscall_pre_impl_lfs_markv( \ 944 (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt)) 945 #define __sanitizer_syscall_post_lfs_markv(res, fsidp, blkiov, blkcnt) \ 946 __sanitizer_syscall_post_impl_lfs_markv( \ 947 res, (long long)(fsidp), (long long)(blkiov), (long long)(blkcnt)) 948 #define __sanitizer_syscall_pre_lfs_segclean(fsidp, segment) \ 949 __sanitizer_syscall_pre_impl_lfs_segclean((long long)(fsidp), \ 950 (long long)(segment)) 951 #define __sanitizer_syscall_post_lfs_segclean(res, fsidp, segment) \ 952 __sanitizer_syscall_post_impl_lfs_segclean(res, (long long)(fsidp), \ 953 (long long)(segment)) 954 #define __sanitizer_syscall_pre_compat_50_lfs_segwait(fsidp, tv) \ 955 __sanitizer_syscall_pre_impl_compat_50_lfs_segwait((long long)(fsidp), \ 956 (long long)(tv)) 957 #define __sanitizer_syscall_post_compat_50_lfs_segwait(res, fsidp, tv) \ 958 __sanitizer_syscall_post_impl_compat_50_lfs_segwait(res, (long long)(fsidp), \ 959 (long long)(tv)) 960 #define __sanitizer_syscall_pre_compat_12_stat12(path, ub) \ 961 __sanitizer_syscall_pre_impl_compat_12_stat12((long long)(path), \ 962 (long long)(ub)) 963 #define __sanitizer_syscall_post_compat_12_stat12(res, path, ub) \ 964 __sanitizer_syscall_post_impl_compat_12_stat12(res, (long long)(path), \ 965 (long long)(ub)) 966 #define __sanitizer_syscall_pre_compat_12_fstat12(fd, sb) \ 967 __sanitizer_syscall_pre_impl_compat_12_fstat12((long long)(fd), \ 968 (long long)(sb)) 969 #define __sanitizer_syscall_post_compat_12_fstat12(res, fd, sb) \ 970 __sanitizer_syscall_post_impl_compat_12_fstat12(res, (long long)(fd), \ 971 (long long)(sb)) 972 #define __sanitizer_syscall_pre_compat_12_lstat12(path, ub) \ 973 __sanitizer_syscall_pre_impl_compat_12_lstat12((long long)(path), \ 974 (long long)(ub)) 975 #define __sanitizer_syscall_post_compat_12_lstat12(res, path, ub) \ 976 __sanitizer_syscall_post_impl_compat_12_lstat12(res, (long long)(path), \ 977 (long long)(ub)) 978 #define __sanitizer_syscall_pre_pathconf(path, name) \ 979 __sanitizer_syscall_pre_impl_pathconf((long long)(path), (long long)(name)) 980 #define __sanitizer_syscall_post_pathconf(res, path, name) \ 981 __sanitizer_syscall_post_impl_pathconf(res, (long long)(path), \ 982 (long long)(name)) 983 #define __sanitizer_syscall_pre_fpathconf(fd, name) \ 984 __sanitizer_syscall_pre_impl_fpathconf((long long)(fd), (long long)(name)) 985 #define __sanitizer_syscall_post_fpathconf(res, fd, name) \ 986 __sanitizer_syscall_post_impl_fpathconf(res, (long long)(fd), \ 987 (long long)(name)) 988 #define __sanitizer_syscall_pre_getsockopt2(s, level, name, val, avalsize) \ 989 __sanitizer_syscall_pre_impl_getsockopt2( \ 990 (long long)(s), (long long)(level), (long long)(name), (long long)(val), \ 991 (long long)(avalsize)) 992 #define __sanitizer_syscall_post_getsockopt2(res, s, level, name, val, \ 993 avalsize) \ 994 __sanitizer_syscall_post_impl_getsockopt2( \ 995 res, (long long)(s), (long long)(level), (long long)(name), \ 996 (long long)(val), (long long)(avalsize)) 997 #define __sanitizer_syscall_pre_getrlimit(which, rlp) \ 998 __sanitizer_syscall_pre_impl_getrlimit((long long)(which), (long long)(rlp)) 999 #define __sanitizer_syscall_post_getrlimit(res, which, rlp) \ 1000 __sanitizer_syscall_post_impl_getrlimit(res, (long long)(which), \ 1001 (long long)(rlp)) 1002 #define __sanitizer_syscall_pre_setrlimit(which, rlp) \ 1003 __sanitizer_syscall_pre_impl_setrlimit((long long)(which), (long long)(rlp)) 1004 #define __sanitizer_syscall_post_setrlimit(res, which, rlp) \ 1005 __sanitizer_syscall_post_impl_setrlimit(res, (long long)(which), \ 1006 (long long)(rlp)) 1007 #define __sanitizer_syscall_pre_compat_12_getdirentries(fd, buf, count, basep) \ 1008 __sanitizer_syscall_pre_impl_compat_12_getdirentries( \ 1009 (long long)(fd), (long long)(buf), (long long)(count), \ 1010 (long long)(basep)) 1011 #define __sanitizer_syscall_post_compat_12_getdirentries(res, fd, buf, count, \ 1012 basep) \ 1013 __sanitizer_syscall_post_impl_compat_12_getdirentries( \ 1014 res, (long long)(fd), (long long)(buf), (long long)(count), \ 1015 (long long)(basep)) 1016 #define __sanitizer_syscall_pre_mmap(addr, len, prot, flags, fd, PAD, pos) \ 1017 __sanitizer_syscall_pre_impl_mmap( \ 1018 (long long)(addr), (long long)(len), (long long)(prot), \ 1019 (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos)) 1020 #define __sanitizer_syscall_post_mmap(res, addr, len, prot, flags, fd, PAD, \ 1021 pos) \ 1022 __sanitizer_syscall_post_impl_mmap( \ 1023 res, (long long)(addr), (long long)(len), (long long)(prot), \ 1024 (long long)(flags), (long long)(fd), (long long)(PAD), (long long)(pos)) 1025 #define __sanitizer_syscall_pre___syscall(code, arg0, arg1, arg2, arg3, arg4, \ 1026 arg5, arg6, arg7) \ 1027 __sanitizer_syscall_pre_impl___syscall( \ 1028 (long long)(code), (long long)(arg0), (long long)(arg1), \ 1029 (long long)(arg2), (long long)(arg3), (long long)(arg4), \ 1030 (long long)(arg5), (long long)(arg6), (long long)(arg7)) 1031 #define __sanitizer_syscall_post___syscall(res, code, arg0, arg1, arg2, arg3, \ 1032 arg4, arg5, arg6, arg7) \ 1033 __sanitizer_syscall_post_impl___syscall( \ 1034 res, (long long)(code), (long long)(arg0), (long long)(arg1), \ 1035 (long long)(arg2), (long long)(arg3), (long long)(arg4), \ 1036 (long long)(arg5), (long long)(arg6), (long long)(arg7)) 1037 #define __sanitizer_syscall_pre_lseek(fd, PAD, offset, whence) \ 1038 __sanitizer_syscall_pre_impl_lseek((long long)(fd), (long long)(PAD), \ 1039 (long long)(offset), (long long)(whence)) 1040 #define __sanitizer_syscall_post_lseek(res, fd, PAD, offset, whence) \ 1041 __sanitizer_syscall_post_impl_lseek(res, (long long)(fd), (long long)(PAD), \ 1042 (long long)(offset), \ 1043 (long long)(whence)) 1044 #define __sanitizer_syscall_pre_truncate(path, PAD, length) \ 1045 __sanitizer_syscall_pre_impl_truncate((long long)(path), (long long)(PAD), \ 1046 (long long)(length)) 1047 #define __sanitizer_syscall_post_truncate(res, path, PAD, length) \ 1048 __sanitizer_syscall_post_impl_truncate( \ 1049 res, (long long)(path), (long long)(PAD), (long long)(length)) 1050 #define __sanitizer_syscall_pre_ftruncate(fd, PAD, length) \ 1051 __sanitizer_syscall_pre_impl_ftruncate((long long)(fd), (long long)(PAD), \ 1052 (long long)(length)) 1053 #define __sanitizer_syscall_post_ftruncate(res, fd, PAD, length) \ 1054 __sanitizer_syscall_post_impl_ftruncate( \ 1055 res, (long long)(fd), (long long)(PAD), (long long)(length)) 1056 #define __sanitizer_syscall_pre___sysctl(name, namelen, oldv, oldlenp, newv, \ 1057 newlen) \ 1058 __sanitizer_syscall_pre_impl___sysctl( \ 1059 (long long)(name), (long long)(namelen), (long long)(oldv), \ 1060 (long long)(oldlenp), (long long)(newv), (long long)(newlen)) 1061 #define __sanitizer_syscall_post___sysctl(res, name, namelen, oldv, oldlenp, \ 1062 newv, newlen) \ 1063 __sanitizer_syscall_post_impl___sysctl( \ 1064 res, (long long)(name), (long long)(namelen), (long long)(oldv), \ 1065 (long long)(oldlenp), (long long)(newv), (long long)(newlen)) 1066 #define __sanitizer_syscall_pre_mlock(addr, len) \ 1067 __sanitizer_syscall_pre_impl_mlock((long long)(addr), (long long)(len)) 1068 #define __sanitizer_syscall_post_mlock(res, addr, len) \ 1069 __sanitizer_syscall_post_impl_mlock(res, (long long)(addr), (long long)(len)) 1070 #define __sanitizer_syscall_pre_munlock(addr, len) \ 1071 __sanitizer_syscall_pre_impl_munlock((long long)(addr), (long long)(len)) 1072 #define __sanitizer_syscall_post_munlock(res, addr, len) \ 1073 __sanitizer_syscall_post_impl_munlock(res, (long long)(addr), \ 1074 (long long)(len)) 1075 #define __sanitizer_syscall_pre_undelete(path) \ 1076 __sanitizer_syscall_pre_impl_undelete((long long)(path)) 1077 #define __sanitizer_syscall_post_undelete(res, path) \ 1078 __sanitizer_syscall_post_impl_undelete(res, (long long)(path)) 1079 #define __sanitizer_syscall_pre_compat_50_futimes(fd, tptr) \ 1080 __sanitizer_syscall_pre_impl_compat_50_futimes((long long)(fd), \ 1081 (long long)(tptr)) 1082 #define __sanitizer_syscall_post_compat_50_futimes(res, fd, tptr) \ 1083 __sanitizer_syscall_post_impl_compat_50_futimes(res, (long long)(fd), \ 1084 (long long)(tptr)) 1085 #define __sanitizer_syscall_pre_getpgid(pid) \ 1086 __sanitizer_syscall_pre_impl_getpgid((long long)(pid)) 1087 #define __sanitizer_syscall_post_getpgid(res, pid) \ 1088 __sanitizer_syscall_post_impl_getpgid(res, (long long)(pid)) 1089 #define __sanitizer_syscall_pre_reboot(opt, bootstr) \ 1090 __sanitizer_syscall_pre_impl_reboot((long long)(opt), (long long)(bootstr)) 1091 #define __sanitizer_syscall_post_reboot(res, opt, bootstr) \ 1092 __sanitizer_syscall_post_impl_reboot(res, (long long)(opt), \ 1093 (long long)(bootstr)) 1094 #define __sanitizer_syscall_pre_poll(fds, nfds, timeout) \ 1095 __sanitizer_syscall_pre_impl_poll((long long)(fds), (long long)(nfds), \ 1096 (long long)(timeout)) 1097 #define __sanitizer_syscall_post_poll(res, fds, nfds, timeout) \ 1098 __sanitizer_syscall_post_impl_poll(res, (long long)(fds), (long long)(nfds), \ 1099 (long long)(timeout)) 1100 #define __sanitizer_syscall_pre_afssys(id, a1, a2, a3, a4, a5, a6) \ 1101 __sanitizer_syscall_pre_impl_afssys( \ 1102 (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \ 1103 (long long)(a4), (long long)(a5), (long long)(a6)) 1104 #define __sanitizer_syscall_post_afssys(res, id, a1, a2, a3, a4, a5, a6) \ 1105 __sanitizer_syscall_post_impl_afssys( \ 1106 res, (long long)(id), (long long)(a1), (long long)(a2), (long long)(a3), \ 1107 (long long)(a4), (long long)(a5), (long long)(a6)) 1108 /* syscall 211 has been skipped */ 1109 /* syscall 212 has been skipped */ 1110 /* syscall 213 has been skipped */ 1111 /* syscall 214 has been skipped */ 1112 /* syscall 215 has been skipped */ 1113 /* syscall 216 has been skipped */ 1114 /* syscall 217 has been skipped */ 1115 /* syscall 218 has been skipped */ 1116 /* syscall 219 has been skipped */ 1117 #define __sanitizer_syscall_pre_compat_14___semctl(semid, semnum, cmd, arg) \ 1118 __sanitizer_syscall_pre_impl_compat_14___semctl( \ 1119 (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1120 (long long)(arg)) 1121 #define __sanitizer_syscall_post_compat_14___semctl(res, semid, semnum, cmd, \ 1122 arg) \ 1123 __sanitizer_syscall_post_impl_compat_14___semctl( \ 1124 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1125 (long long)(arg)) 1126 #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \ 1127 __sanitizer_syscall_pre_impl_semget((long long)(key), (long long)(nsems), \ 1128 (long long)(semflg)) 1129 #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \ 1130 __sanitizer_syscall_post_impl_semget( \ 1131 res, (long long)(key), (long long)(nsems), (long long)(semflg)) 1132 #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \ 1133 __sanitizer_syscall_pre_impl_semop((long long)(semid), (long long)(sops), \ 1134 (long long)(nsops)) 1135 #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \ 1136 __sanitizer_syscall_post_impl_semop(res, (long long)(semid), \ 1137 (long long)(sops), (long long)(nsops)) 1138 #define __sanitizer_syscall_pre_semconfig(flag) \ 1139 __sanitizer_syscall_pre_impl_semconfig((long long)(flag)) 1140 #define __sanitizer_syscall_post_semconfig(res, flag) \ 1141 __sanitizer_syscall_post_impl_semconfig(res, (long long)(flag)) 1142 #define __sanitizer_syscall_pre_compat_14_msgctl(msqid, cmd, buf) \ 1143 __sanitizer_syscall_pre_impl_compat_14_msgctl( \ 1144 (long long)(msqid), (long long)(cmd), (long long)(buf)) 1145 #define __sanitizer_syscall_post_compat_14_msgctl(res, msqid, cmd, buf) \ 1146 __sanitizer_syscall_post_impl_compat_14_msgctl( \ 1147 res, (long long)(msqid), (long long)(cmd), (long long)(buf)) 1148 #define __sanitizer_syscall_pre_msgget(key, msgflg) \ 1149 __sanitizer_syscall_pre_impl_msgget((long long)(key), (long long)(msgflg)) 1150 #define __sanitizer_syscall_post_msgget(res, key, msgflg) \ 1151 __sanitizer_syscall_post_impl_msgget(res, (long long)(key), \ 1152 (long long)(msgflg)) 1153 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \ 1154 __sanitizer_syscall_pre_impl_msgsnd((long long)(msqid), (long long)(msgp), \ 1155 (long long)(msgsz), (long long)(msgflg)) 1156 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \ 1157 __sanitizer_syscall_post_impl_msgsnd(res, (long long)(msqid), \ 1158 (long long)(msgp), (long long)(msgsz), \ 1159 (long long)(msgflg)) 1160 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ 1161 __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp), \ 1162 (long long)(msgsz), (long long)(msgtyp), \ 1163 (long long)(msgflg)) 1164 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \ 1165 msgflg) \ 1166 __sanitizer_syscall_post_impl_msgrcv( \ 1167 res, (long long)(msqid), (long long)(msgp), (long long)(msgsz), \ 1168 (long long)(msgtyp), (long long)(msgflg)) 1169 #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \ 1170 __sanitizer_syscall_pre_impl_shmat((long long)(shmid), (long long)(shmaddr), \ 1171 (long long)(shmflg)) 1172 #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \ 1173 __sanitizer_syscall_post_impl_shmat( \ 1174 res, (long long)(shmid), (long long)(shmaddr), (long long)(shmflg)) 1175 #define __sanitizer_syscall_pre_compat_14_shmctl(shmid, cmd, buf) \ 1176 __sanitizer_syscall_pre_impl_compat_14_shmctl( \ 1177 (long long)(shmid), (long long)(cmd), (long long)(buf)) 1178 #define __sanitizer_syscall_post_compat_14_shmctl(res, shmid, cmd, buf) \ 1179 __sanitizer_syscall_post_impl_compat_14_shmctl( \ 1180 res, (long long)(shmid), (long long)(cmd), (long long)(buf)) 1181 #define __sanitizer_syscall_pre_shmdt(shmaddr) \ 1182 __sanitizer_syscall_pre_impl_shmdt((long long)(shmaddr)) 1183 #define __sanitizer_syscall_post_shmdt(res, shmaddr) \ 1184 __sanitizer_syscall_post_impl_shmdt(res, (long long)(shmaddr)) 1185 #define __sanitizer_syscall_pre_shmget(key, size, shmflg) \ 1186 __sanitizer_syscall_pre_impl_shmget((long long)(key), (long long)(size), \ 1187 (long long)(shmflg)) 1188 #define __sanitizer_syscall_post_shmget(res, key, size, shmflg) \ 1189 __sanitizer_syscall_post_impl_shmget(res, (long long)(key), \ 1190 (long long)(size), (long long)(shmflg)) 1191 #define __sanitizer_syscall_pre_compat_50_clock_gettime(clock_id, tp) \ 1192 __sanitizer_syscall_pre_impl_compat_50_clock_gettime((long long)(clock_id), \ 1193 (long long)(tp)) 1194 #define __sanitizer_syscall_post_compat_50_clock_gettime(res, clock_id, tp) \ 1195 __sanitizer_syscall_post_impl_compat_50_clock_gettime( \ 1196 res, (long long)(clock_id), (long long)(tp)) 1197 #define __sanitizer_syscall_pre_compat_50_clock_settime(clock_id, tp) \ 1198 __sanitizer_syscall_pre_impl_compat_50_clock_settime((long long)(clock_id), \ 1199 (long long)(tp)) 1200 #define __sanitizer_syscall_post_compat_50_clock_settime(res, clock_id, tp) \ 1201 __sanitizer_syscall_post_impl_compat_50_clock_settime( \ 1202 res, (long long)(clock_id), (long long)(tp)) 1203 #define __sanitizer_syscall_pre_compat_50_clock_getres(clock_id, tp) \ 1204 __sanitizer_syscall_pre_impl_compat_50_clock_getres((long long)(clock_id), \ 1205 (long long)(tp)) 1206 #define __sanitizer_syscall_post_compat_50_clock_getres(res, clock_id, tp) \ 1207 __sanitizer_syscall_post_impl_compat_50_clock_getres( \ 1208 res, (long long)(clock_id), (long long)(tp)) 1209 #define __sanitizer_syscall_pre_timer_create(clock_id, evp, timerid) \ 1210 __sanitizer_syscall_pre_impl_timer_create( \ 1211 (long long)(clock_id), (long long)(evp), (long long)(timerid)) 1212 #define __sanitizer_syscall_post_timer_create(res, clock_id, evp, timerid) \ 1213 __sanitizer_syscall_post_impl_timer_create( \ 1214 res, (long long)(clock_id), (long long)(evp), (long long)(timerid)) 1215 #define __sanitizer_syscall_pre_timer_delete(timerid) \ 1216 __sanitizer_syscall_pre_impl_timer_delete((long long)(timerid)) 1217 #define __sanitizer_syscall_post_timer_delete(res, timerid) \ 1218 __sanitizer_syscall_post_impl_timer_delete(res, (long long)(timerid)) 1219 #define __sanitizer_syscall_pre_compat_50_timer_settime(timerid, flags, value, \ 1220 ovalue) \ 1221 __sanitizer_syscall_pre_impl_compat_50_timer_settime( \ 1222 (long long)(timerid), (long long)(flags), (long long)(value), \ 1223 (long long)(ovalue)) 1224 #define __sanitizer_syscall_post_compat_50_timer_settime(res, timerid, flags, \ 1225 value, ovalue) \ 1226 __sanitizer_syscall_post_impl_compat_50_timer_settime( \ 1227 res, (long long)(timerid), (long long)(flags), (long long)(value), \ 1228 (long long)(ovalue)) 1229 #define __sanitizer_syscall_pre_compat_50_timer_gettime(timerid, value) \ 1230 __sanitizer_syscall_pre_impl_compat_50_timer_gettime((long long)(timerid), \ 1231 (long long)(value)) 1232 #define __sanitizer_syscall_post_compat_50_timer_gettime(res, timerid, value) \ 1233 __sanitizer_syscall_post_impl_compat_50_timer_gettime( \ 1234 res, (long long)(timerid), (long long)(value)) 1235 #define __sanitizer_syscall_pre_timer_getoverrun(timerid) \ 1236 __sanitizer_syscall_pre_impl_timer_getoverrun((long long)(timerid)) 1237 #define __sanitizer_syscall_post_timer_getoverrun(res, timerid) \ 1238 __sanitizer_syscall_post_impl_timer_getoverrun(res, (long long)(timerid)) 1239 #define __sanitizer_syscall_pre_compat_50_nanosleep(rqtp, rmtp) \ 1240 __sanitizer_syscall_pre_impl_compat_50_nanosleep((long long)(rqtp), \ 1241 (long long)(rmtp)) 1242 #define __sanitizer_syscall_post_compat_50_nanosleep(res, rqtp, rmtp) \ 1243 __sanitizer_syscall_post_impl_compat_50_nanosleep(res, (long long)(rqtp), \ 1244 (long long)(rmtp)) 1245 #define __sanitizer_syscall_pre_fdatasync(fd) \ 1246 __sanitizer_syscall_pre_impl_fdatasync((long long)(fd)) 1247 #define __sanitizer_syscall_post_fdatasync(res, fd) \ 1248 __sanitizer_syscall_post_impl_fdatasync(res, (long long)(fd)) 1249 #define __sanitizer_syscall_pre_mlockall(flags) \ 1250 __sanitizer_syscall_pre_impl_mlockall((long long)(flags)) 1251 #define __sanitizer_syscall_post_mlockall(res, flags) \ 1252 __sanitizer_syscall_post_impl_mlockall(res, (long long)(flags)) 1253 #define __sanitizer_syscall_pre_munlockall() \ 1254 __sanitizer_syscall_pre_impl_munlockall() 1255 #define __sanitizer_syscall_post_munlockall(res) \ 1256 __sanitizer_syscall_post_impl_munlockall(res) 1257 #define __sanitizer_syscall_pre_compat_50___sigtimedwait(set, info, timeout) \ 1258 __sanitizer_syscall_pre_impl_compat_50___sigtimedwait( \ 1259 (long long)(set), (long long)(info), (long long)(timeout)) 1260 #define __sanitizer_syscall_post_compat_50___sigtimedwait(res, set, info, \ 1261 timeout) \ 1262 __sanitizer_syscall_post_impl_compat_50___sigtimedwait( \ 1263 res, (long long)(set), (long long)(info), (long long)(timeout)) 1264 #define __sanitizer_syscall_pre_sigqueueinfo(pid, info) \ 1265 __sanitizer_syscall_pre_impl_sigqueueinfo((long long)(pid), (long long)(info)) 1266 #define __sanitizer_syscall_post_sigqueueinfo(res, pid, info) \ 1267 __sanitizer_syscall_post_impl_sigqueueinfo(res, (long long)(pid), \ 1268 (long long)(info)) 1269 #define __sanitizer_syscall_pre_modctl(cmd, arg) \ 1270 __sanitizer_syscall_pre_impl_modctl((long long)(cmd), (long long)(arg)) 1271 #define __sanitizer_syscall_post_modctl(res, cmd, arg) \ 1272 __sanitizer_syscall_post_impl_modctl(res, (long long)(cmd), (long long)(arg)) 1273 #define __sanitizer_syscall_pre__ksem_init(value, idp) \ 1274 __sanitizer_syscall_pre_impl__ksem_init((long long)(value), (long long)(idp)) 1275 #define __sanitizer_syscall_post__ksem_init(res, value, idp) \ 1276 __sanitizer_syscall_post_impl__ksem_init(res, (long long)(value), \ 1277 (long long)(idp)) 1278 #define __sanitizer_syscall_pre__ksem_open(name, oflag, mode, value, idp) \ 1279 __sanitizer_syscall_pre_impl__ksem_open( \ 1280 (long long)(name), (long long)(oflag), (long long)(mode), \ 1281 (long long)(value), (long long)(idp)) 1282 #define __sanitizer_syscall_post__ksem_open(res, name, oflag, mode, value, \ 1283 idp) \ 1284 __sanitizer_syscall_post_impl__ksem_open( \ 1285 res, (long long)(name), (long long)(oflag), (long long)(mode), \ 1286 (long long)(value), (long long)(idp)) 1287 #define __sanitizer_syscall_pre__ksem_unlink(name) \ 1288 __sanitizer_syscall_pre_impl__ksem_unlink((long long)(name)) 1289 #define __sanitizer_syscall_post__ksem_unlink(res, name) \ 1290 __sanitizer_syscall_post_impl__ksem_unlink(res, (long long)(name)) 1291 #define __sanitizer_syscall_pre__ksem_close(id) \ 1292 __sanitizer_syscall_pre_impl__ksem_close((long long)(id)) 1293 #define __sanitizer_syscall_post__ksem_close(res, id) \ 1294 __sanitizer_syscall_post_impl__ksem_close(res, (long long)(id)) 1295 #define __sanitizer_syscall_pre__ksem_post(id) \ 1296 __sanitizer_syscall_pre_impl__ksem_post((long long)(id)) 1297 #define __sanitizer_syscall_post__ksem_post(res, id) \ 1298 __sanitizer_syscall_post_impl__ksem_post(res, (long long)(id)) 1299 #define __sanitizer_syscall_pre__ksem_wait(id) \ 1300 __sanitizer_syscall_pre_impl__ksem_wait((long long)(id)) 1301 #define __sanitizer_syscall_post__ksem_wait(res, id) \ 1302 __sanitizer_syscall_post_impl__ksem_wait(res, (long long)(id)) 1303 #define __sanitizer_syscall_pre__ksem_trywait(id) \ 1304 __sanitizer_syscall_pre_impl__ksem_trywait((long long)(id)) 1305 #define __sanitizer_syscall_post__ksem_trywait(res, id) \ 1306 __sanitizer_syscall_post_impl__ksem_trywait(res, (long long)(id)) 1307 #define __sanitizer_syscall_pre__ksem_getvalue(id, value) \ 1308 __sanitizer_syscall_pre_impl__ksem_getvalue((long long)(id), \ 1309 (long long)(value)) 1310 #define __sanitizer_syscall_post__ksem_getvalue(res, id, value) \ 1311 __sanitizer_syscall_post_impl__ksem_getvalue(res, (long long)(id), \ 1312 (long long)(value)) 1313 #define __sanitizer_syscall_pre__ksem_destroy(id) \ 1314 __sanitizer_syscall_pre_impl__ksem_destroy((long long)(id)) 1315 #define __sanitizer_syscall_post__ksem_destroy(res, id) \ 1316 __sanitizer_syscall_post_impl__ksem_destroy(res, (long long)(id)) 1317 #define __sanitizer_syscall_pre__ksem_timedwait(id, abstime) \ 1318 __sanitizer_syscall_pre_impl__ksem_timedwait((long long)(id), \ 1319 (long long)(abstime)) 1320 #define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime) \ 1321 __sanitizer_syscall_post_impl__ksem_timedwait(res, (long long)(id), \ 1322 (long long)(abstime)) 1323 #define __sanitizer_syscall_pre_mq_open(name, oflag, mode, attr) \ 1324 __sanitizer_syscall_pre_impl_mq_open((long long)(name), (long long)(oflag), \ 1325 (long long)(mode), (long long)(attr)) 1326 #define __sanitizer_syscall_post_mq_open(res, name, oflag, mode, attr) \ 1327 __sanitizer_syscall_post_impl_mq_open(res, (long long)(name), \ 1328 (long long)(oflag), (long long)(mode), \ 1329 (long long)(attr)) 1330 #define __sanitizer_syscall_pre_mq_close(mqdes) \ 1331 __sanitizer_syscall_pre_impl_mq_close((long long)(mqdes)) 1332 #define __sanitizer_syscall_post_mq_close(res, mqdes) \ 1333 __sanitizer_syscall_post_impl_mq_close(res, (long long)(mqdes)) 1334 #define __sanitizer_syscall_pre_mq_unlink(name) \ 1335 __sanitizer_syscall_pre_impl_mq_unlink((long long)(name)) 1336 #define __sanitizer_syscall_post_mq_unlink(res, name) \ 1337 __sanitizer_syscall_post_impl_mq_unlink(res, (long long)(name)) 1338 #define __sanitizer_syscall_pre_mq_getattr(mqdes, mqstat) \ 1339 __sanitizer_syscall_pre_impl_mq_getattr((long long)(mqdes), \ 1340 (long long)(mqstat)) 1341 #define __sanitizer_syscall_post_mq_getattr(res, mqdes, mqstat) \ 1342 __sanitizer_syscall_post_impl_mq_getattr(res, (long long)(mqdes), \ 1343 (long long)(mqstat)) 1344 #define __sanitizer_syscall_pre_mq_setattr(mqdes, mqstat, omqstat) \ 1345 __sanitizer_syscall_pre_impl_mq_setattr( \ 1346 (long long)(mqdes), (long long)(mqstat), (long long)(omqstat)) 1347 #define __sanitizer_syscall_post_mq_setattr(res, mqdes, mqstat, omqstat) \ 1348 __sanitizer_syscall_post_impl_mq_setattr( \ 1349 res, (long long)(mqdes), (long long)(mqstat), (long long)(omqstat)) 1350 #define __sanitizer_syscall_pre_mq_notify(mqdes, notification) \ 1351 __sanitizer_syscall_pre_impl_mq_notify((long long)(mqdes), \ 1352 (long long)(notification)) 1353 #define __sanitizer_syscall_post_mq_notify(res, mqdes, notification) \ 1354 __sanitizer_syscall_post_impl_mq_notify(res, (long long)(mqdes), \ 1355 (long long)(notification)) 1356 #define __sanitizer_syscall_pre_mq_send(mqdes, msg_ptr, msg_len, msg_prio) \ 1357 __sanitizer_syscall_pre_impl_mq_send( \ 1358 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1359 (long long)(msg_prio)) 1360 #define __sanitizer_syscall_post_mq_send(res, mqdes, msg_ptr, msg_len, \ 1361 msg_prio) \ 1362 __sanitizer_syscall_post_impl_mq_send( \ 1363 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1364 (long long)(msg_prio)) 1365 #define __sanitizer_syscall_pre_mq_receive(mqdes, msg_ptr, msg_len, msg_prio) \ 1366 __sanitizer_syscall_pre_impl_mq_receive( \ 1367 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1368 (long long)(msg_prio)) 1369 #define __sanitizer_syscall_post_mq_receive(res, mqdes, msg_ptr, msg_len, \ 1370 msg_prio) \ 1371 __sanitizer_syscall_post_impl_mq_receive( \ 1372 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1373 (long long)(msg_prio)) 1374 #define __sanitizer_syscall_pre_compat_50_mq_timedsend( \ 1375 mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 1376 __sanitizer_syscall_pre_impl_compat_50_mq_timedsend( \ 1377 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1378 (long long)(msg_prio), (long long)(abs_timeout)) 1379 #define __sanitizer_syscall_post_compat_50_mq_timedsend( \ 1380 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 1381 __sanitizer_syscall_post_impl_compat_50_mq_timedsend( \ 1382 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1383 (long long)(msg_prio), (long long)(abs_timeout)) 1384 #define __sanitizer_syscall_pre_compat_50_mq_timedreceive( \ 1385 mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 1386 __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive( \ 1387 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1388 (long long)(msg_prio), (long long)(abs_timeout)) 1389 #define __sanitizer_syscall_post_compat_50_mq_timedreceive( \ 1390 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 1391 __sanitizer_syscall_post_impl_compat_50_mq_timedreceive( \ 1392 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 1393 (long long)(msg_prio), (long long)(abs_timeout)) 1394 /* syscall 267 has been skipped */ 1395 /* syscall 268 has been skipped */ 1396 /* syscall 269 has been skipped */ 1397 #define __sanitizer_syscall_pre___posix_rename(from, to) \ 1398 __sanitizer_syscall_pre_impl___posix_rename((long long)(from), \ 1399 (long long)(to)) 1400 #define __sanitizer_syscall_post___posix_rename(res, from, to) \ 1401 __sanitizer_syscall_post_impl___posix_rename(res, (long long)(from), \ 1402 (long long)(to)) 1403 #define __sanitizer_syscall_pre_swapctl(cmd, arg, misc) \ 1404 __sanitizer_syscall_pre_impl_swapctl((long long)(cmd), (long long)(arg), \ 1405 (long long)(misc)) 1406 #define __sanitizer_syscall_post_swapctl(res, cmd, arg, misc) \ 1407 __sanitizer_syscall_post_impl_swapctl(res, (long long)(cmd), \ 1408 (long long)(arg), (long long)(misc)) 1409 #define __sanitizer_syscall_pre_compat_30_getdents(fd, buf, count) \ 1410 __sanitizer_syscall_pre_impl_compat_30_getdents( \ 1411 (long long)(fd), (long long)(buf), (long long)(count)) 1412 #define __sanitizer_syscall_post_compat_30_getdents(res, fd, buf, count) \ 1413 __sanitizer_syscall_post_impl_compat_30_getdents( \ 1414 res, (long long)(fd), (long long)(buf), (long long)(count)) 1415 #define __sanitizer_syscall_pre_minherit(addr, len, inherit) \ 1416 __sanitizer_syscall_pre_impl_minherit((long long)(addr), (long long)(len), \ 1417 (long long)(inherit)) 1418 #define __sanitizer_syscall_post_minherit(res, addr, len, inherit) \ 1419 __sanitizer_syscall_post_impl_minherit( \ 1420 res, (long long)(addr), (long long)(len), (long long)(inherit)) 1421 #define __sanitizer_syscall_pre_lchmod(path, mode) \ 1422 __sanitizer_syscall_pre_impl_lchmod((long long)(path), (long long)(mode)) 1423 #define __sanitizer_syscall_post_lchmod(res, path, mode) \ 1424 __sanitizer_syscall_post_impl_lchmod(res, (long long)(path), \ 1425 (long long)(mode)) 1426 #define __sanitizer_syscall_pre_lchown(path, uid, gid) \ 1427 __sanitizer_syscall_pre_impl_lchown((long long)(path), (long long)(uid), \ 1428 (long long)(gid)) 1429 #define __sanitizer_syscall_post_lchown(res, path, uid, gid) \ 1430 __sanitizer_syscall_post_impl_lchown(res, (long long)(path), \ 1431 (long long)(uid), (long long)(gid)) 1432 #define __sanitizer_syscall_pre_compat_50_lutimes(path, tptr) \ 1433 __sanitizer_syscall_pre_impl_compat_50_lutimes((long long)(path), \ 1434 (long long)(tptr)) 1435 #define __sanitizer_syscall_post_compat_50_lutimes(res, path, tptr) \ 1436 __sanitizer_syscall_post_impl_compat_50_lutimes(res, (long long)(path), \ 1437 (long long)(tptr)) 1438 #define __sanitizer_syscall_pre___msync13(addr, len, flags) \ 1439 __sanitizer_syscall_pre_impl___msync13((long long)(addr), (long long)(len), \ 1440 (long long)(flags)) 1441 #define __sanitizer_syscall_post___msync13(res, addr, len, flags) \ 1442 __sanitizer_syscall_post_impl___msync13( \ 1443 res, (long long)(addr), (long long)(len), (long long)(flags)) 1444 #define __sanitizer_syscall_pre_compat_30___stat13(path, ub) \ 1445 __sanitizer_syscall_pre_impl_compat_30___stat13((long long)(path), \ 1446 (long long)(ub)) 1447 #define __sanitizer_syscall_post_compat_30___stat13(res, path, ub) \ 1448 __sanitizer_syscall_post_impl_compat_30___stat13(res, (long long)(path), \ 1449 (long long)(ub)) 1450 #define __sanitizer_syscall_pre_compat_30___fstat13(fd, sb) \ 1451 __sanitizer_syscall_pre_impl_compat_30___fstat13((long long)(fd), \ 1452 (long long)(sb)) 1453 #define __sanitizer_syscall_post_compat_30___fstat13(res, fd, sb) \ 1454 __sanitizer_syscall_post_impl_compat_30___fstat13(res, (long long)(fd), \ 1455 (long long)(sb)) 1456 #define __sanitizer_syscall_pre_compat_30___lstat13(path, ub) \ 1457 __sanitizer_syscall_pre_impl_compat_30___lstat13((long long)(path), \ 1458 (long long)(ub)) 1459 #define __sanitizer_syscall_post_compat_30___lstat13(res, path, ub) \ 1460 __sanitizer_syscall_post_impl_compat_30___lstat13(res, (long long)(path), \ 1461 (long long)(ub)) 1462 #define __sanitizer_syscall_pre___sigaltstack14(nss, oss) \ 1463 __sanitizer_syscall_pre_impl___sigaltstack14((long long)(nss), \ 1464 (long long)(oss)) 1465 #define __sanitizer_syscall_post___sigaltstack14(res, nss, oss) \ 1466 __sanitizer_syscall_post_impl___sigaltstack14(res, (long long)(nss), \ 1467 (long long)(oss)) 1468 #define __sanitizer_syscall_pre___vfork14() \ 1469 __sanitizer_syscall_pre_impl___vfork14() 1470 #define __sanitizer_syscall_post___vfork14(res) \ 1471 __sanitizer_syscall_post_impl___vfork14(res) 1472 #define __sanitizer_syscall_pre___posix_chown(path, uid, gid) \ 1473 __sanitizer_syscall_pre_impl___posix_chown( \ 1474 (long long)(path), (long long)(uid), (long long)(gid)) 1475 #define __sanitizer_syscall_post___posix_chown(res, path, uid, gid) \ 1476 __sanitizer_syscall_post_impl___posix_chown( \ 1477 res, (long long)(path), (long long)(uid), (long long)(gid)) 1478 #define __sanitizer_syscall_pre___posix_fchown(fd, uid, gid) \ 1479 __sanitizer_syscall_pre_impl___posix_fchown( \ 1480 (long long)(fd), (long long)(uid), (long long)(gid)) 1481 #define __sanitizer_syscall_post___posix_fchown(res, fd, uid, gid) \ 1482 __sanitizer_syscall_post_impl___posix_fchown( \ 1483 res, (long long)(fd), (long long)(uid), (long long)(gid)) 1484 #define __sanitizer_syscall_pre___posix_lchown(path, uid, gid) \ 1485 __sanitizer_syscall_pre_impl___posix_lchown( \ 1486 (long long)(path), (long long)(uid), (long long)(gid)) 1487 #define __sanitizer_syscall_post___posix_lchown(res, path, uid, gid) \ 1488 __sanitizer_syscall_post_impl___posix_lchown( \ 1489 res, (long long)(path), (long long)(uid), (long long)(gid)) 1490 #define __sanitizer_syscall_pre_getsid(pid) \ 1491 __sanitizer_syscall_pre_impl_getsid((long long)(pid)) 1492 #define __sanitizer_syscall_post_getsid(res, pid) \ 1493 __sanitizer_syscall_post_impl_getsid(res, (long long)(pid)) 1494 #define __sanitizer_syscall_pre___clone(flags, stack) \ 1495 __sanitizer_syscall_pre_impl___clone((long long)(flags), (long long)(stack)) 1496 #define __sanitizer_syscall_post___clone(res, flags, stack) \ 1497 __sanitizer_syscall_post_impl___clone(res, (long long)(flags), \ 1498 (long long)(stack)) 1499 #define __sanitizer_syscall_pre_fktrace(fd, ops, facs, pid) \ 1500 __sanitizer_syscall_pre_impl_fktrace((long long)(fd), (long long)(ops), \ 1501 (long long)(facs), (long long)(pid)) 1502 #define __sanitizer_syscall_post_fktrace(res, fd, ops, facs, pid) \ 1503 __sanitizer_syscall_post_impl_fktrace(res, (long long)(fd), \ 1504 (long long)(ops), (long long)(facs), \ 1505 (long long)(pid)) 1506 #define __sanitizer_syscall_pre_preadv(fd, iovp, iovcnt, PAD, offset) \ 1507 __sanitizer_syscall_pre_impl_preadv((long long)(fd), (long long)(iovp), \ 1508 (long long)(iovcnt), (long long)(PAD), \ 1509 (long long)(offset)) 1510 #define __sanitizer_syscall_post_preadv(res, fd, iovp, iovcnt, PAD, offset) \ 1511 __sanitizer_syscall_post_impl_preadv(res, (long long)(fd), \ 1512 (long long)(iovp), (long long)(iovcnt), \ 1513 (long long)(PAD), (long long)(offset)) 1514 #define __sanitizer_syscall_pre_pwritev(fd, iovp, iovcnt, PAD, offset) \ 1515 __sanitizer_syscall_pre_impl_pwritev((long long)(fd), (long long)(iovp), \ 1516 (long long)(iovcnt), (long long)(PAD), \ 1517 (long long)(offset)) 1518 #define __sanitizer_syscall_post_pwritev(res, fd, iovp, iovcnt, PAD, offset) \ 1519 __sanitizer_syscall_post_impl_pwritev( \ 1520 res, (long long)(fd), (long long)(iovp), (long long)(iovcnt), \ 1521 (long long)(PAD), (long long)(offset)) 1522 #define __sanitizer_syscall_pre_compat_16___sigaction14(signum, nsa, osa) \ 1523 __sanitizer_syscall_pre_impl_compat_16___sigaction14( \ 1524 (long long)(signum), (long long)(nsa), (long long)(osa)) 1525 #define __sanitizer_syscall_post_compat_16___sigaction14(res, signum, nsa, \ 1526 osa) \ 1527 __sanitizer_syscall_post_impl_compat_16___sigaction14( \ 1528 res, (long long)(signum), (long long)(nsa), (long long)(osa)) 1529 #define __sanitizer_syscall_pre___sigpending14(set) \ 1530 __sanitizer_syscall_pre_impl___sigpending14((long long)(set)) 1531 #define __sanitizer_syscall_post___sigpending14(res, set) \ 1532 __sanitizer_syscall_post_impl___sigpending14(res, (long long)(set)) 1533 #define __sanitizer_syscall_pre___sigprocmask14(how, set, oset) \ 1534 __sanitizer_syscall_pre_impl___sigprocmask14( \ 1535 (long long)(how), (long long)(set), (long long)(oset)) 1536 #define __sanitizer_syscall_post___sigprocmask14(res, how, set, oset) \ 1537 __sanitizer_syscall_post_impl___sigprocmask14( \ 1538 res, (long long)(how), (long long)(set), (long long)(oset)) 1539 #define __sanitizer_syscall_pre___sigsuspend14(set) \ 1540 __sanitizer_syscall_pre_impl___sigsuspend14((long long)(set)) 1541 #define __sanitizer_syscall_post___sigsuspend14(res, set) \ 1542 __sanitizer_syscall_post_impl___sigsuspend14(res, (long long)(set)) 1543 #define __sanitizer_syscall_pre_compat_16___sigreturn14(sigcntxp) \ 1544 __sanitizer_syscall_pre_impl_compat_16___sigreturn14((long long)(sigcntxp)) 1545 #define __sanitizer_syscall_post_compat_16___sigreturn14(res, sigcntxp) \ 1546 __sanitizer_syscall_post_impl_compat_16___sigreturn14(res, \ 1547 (long long)(sigcntxp)) 1548 #define __sanitizer_syscall_pre___getcwd(bufp, length) \ 1549 __sanitizer_syscall_pre_impl___getcwd((long long)(bufp), (long long)(length)) 1550 #define __sanitizer_syscall_post___getcwd(res, bufp, length) \ 1551 __sanitizer_syscall_post_impl___getcwd(res, (long long)(bufp), \ 1552 (long long)(length)) 1553 #define __sanitizer_syscall_pre_fchroot(fd) \ 1554 __sanitizer_syscall_pre_impl_fchroot((long long)(fd)) 1555 #define __sanitizer_syscall_post_fchroot(res, fd) \ 1556 __sanitizer_syscall_post_impl_fchroot(res, (long long)(fd)) 1557 #define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags) \ 1558 __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp), \ 1559 (long long)(flags)) 1560 #define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags) \ 1561 __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp), \ 1562 (long long)(flags)) 1563 #define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb) \ 1564 __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp), \ 1565 (long long)(sb)) 1566 #define __sanitizer_syscall_post_compat_30_fhstat(res, fhp, sb) \ 1567 __sanitizer_syscall_post_impl_compat_30_fhstat(res, (long long)(fhp), \ 1568 (long long)(sb)) 1569 #define __sanitizer_syscall_pre_compat_20_fhstatfs(fhp, buf) \ 1570 __sanitizer_syscall_pre_impl_compat_20_fhstatfs((long long)(fhp), \ 1571 (long long)(buf)) 1572 #define __sanitizer_syscall_post_compat_20_fhstatfs(res, fhp, buf) \ 1573 __sanitizer_syscall_post_impl_compat_20_fhstatfs(res, (long long)(fhp), \ 1574 (long long)(buf)) 1575 #define __sanitizer_syscall_pre_compat_50_____semctl13(semid, semnum, cmd, \ 1576 arg) \ 1577 __sanitizer_syscall_pre_impl_compat_50_____semctl13( \ 1578 (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1579 (long long)(arg)) 1580 #define __sanitizer_syscall_post_compat_50_____semctl13(res, semid, semnum, \ 1581 cmd, arg) \ 1582 __sanitizer_syscall_post_impl_compat_50_____semctl13( \ 1583 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1584 (long long)(arg)) 1585 #define __sanitizer_syscall_pre_compat_50___msgctl13(msqid, cmd, buf) \ 1586 __sanitizer_syscall_pre_impl_compat_50___msgctl13( \ 1587 (long long)(msqid), (long long)(cmd), (long long)(buf)) 1588 #define __sanitizer_syscall_post_compat_50___msgctl13(res, msqid, cmd, buf) \ 1589 __sanitizer_syscall_post_impl_compat_50___msgctl13( \ 1590 res, (long long)(msqid), (long long)(cmd), (long long)(buf)) 1591 #define __sanitizer_syscall_pre_compat_50___shmctl13(shmid, cmd, buf) \ 1592 __sanitizer_syscall_pre_impl_compat_50___shmctl13( \ 1593 (long long)(shmid), (long long)(cmd), (long long)(buf)) 1594 #define __sanitizer_syscall_post_compat_50___shmctl13(res, shmid, cmd, buf) \ 1595 __sanitizer_syscall_post_impl_compat_50___shmctl13( \ 1596 res, (long long)(shmid), (long long)(cmd), (long long)(buf)) 1597 #define __sanitizer_syscall_pre_lchflags(path, flags) \ 1598 __sanitizer_syscall_pre_impl_lchflags((long long)(path), (long long)(flags)) 1599 #define __sanitizer_syscall_post_lchflags(res, path, flags) \ 1600 __sanitizer_syscall_post_impl_lchflags(res, (long long)(path), \ 1601 (long long)(flags)) 1602 #define __sanitizer_syscall_pre_issetugid() \ 1603 __sanitizer_syscall_pre_impl_issetugid() 1604 #define __sanitizer_syscall_post_issetugid(res) \ 1605 __sanitizer_syscall_post_impl_issetugid(res) 1606 #define __sanitizer_syscall_pre_utrace(label, addr, len) \ 1607 __sanitizer_syscall_pre_impl_utrace((long long)(label), (long long)(addr), \ 1608 (long long)(len)) 1609 #define __sanitizer_syscall_post_utrace(res, label, addr, len) \ 1610 __sanitizer_syscall_post_impl_utrace(res, (long long)(label), \ 1611 (long long)(addr), (long long)(len)) 1612 #define __sanitizer_syscall_pre_getcontext(ucp) \ 1613 __sanitizer_syscall_pre_impl_getcontext((long long)(ucp)) 1614 #define __sanitizer_syscall_post_getcontext(res, ucp) \ 1615 __sanitizer_syscall_post_impl_getcontext(res, (long long)(ucp)) 1616 #define __sanitizer_syscall_pre_setcontext(ucp) \ 1617 __sanitizer_syscall_pre_impl_setcontext((long long)(ucp)) 1618 #define __sanitizer_syscall_post_setcontext(res, ucp) \ 1619 __sanitizer_syscall_post_impl_setcontext(res, (long long)(ucp)) 1620 #define __sanitizer_syscall_pre__lwp_create(ucp, flags, new_lwp) \ 1621 __sanitizer_syscall_pre_impl__lwp_create( \ 1622 (long long)(ucp), (long long)(flags), (long long)(new_lwp)) 1623 #define __sanitizer_syscall_post__lwp_create(res, ucp, flags, new_lwp) \ 1624 __sanitizer_syscall_post_impl__lwp_create( \ 1625 res, (long long)(ucp), (long long)(flags), (long long)(new_lwp)) 1626 #define __sanitizer_syscall_pre__lwp_exit() \ 1627 __sanitizer_syscall_pre_impl__lwp_exit() 1628 #define __sanitizer_syscall_post__lwp_exit(res) \ 1629 __sanitizer_syscall_post_impl__lwp_exit(res) 1630 #define __sanitizer_syscall_pre__lwp_self() \ 1631 __sanitizer_syscall_pre_impl__lwp_self() 1632 #define __sanitizer_syscall_post__lwp_self(res) \ 1633 __sanitizer_syscall_post_impl__lwp_self(res) 1634 #define __sanitizer_syscall_pre__lwp_wait(wait_for, departed) \ 1635 __sanitizer_syscall_pre_impl__lwp_wait((long long)(wait_for), \ 1636 (long long)(departed)) 1637 #define __sanitizer_syscall_post__lwp_wait(res, wait_for, departed) \ 1638 __sanitizer_syscall_post_impl__lwp_wait(res, (long long)(wait_for), \ 1639 (long long)(departed)) 1640 #define __sanitizer_syscall_pre__lwp_suspend(target) \ 1641 __sanitizer_syscall_pre_impl__lwp_suspend((long long)(target)) 1642 #define __sanitizer_syscall_post__lwp_suspend(res, target) \ 1643 __sanitizer_syscall_post_impl__lwp_suspend(res, (long long)(target)) 1644 #define __sanitizer_syscall_pre__lwp_continue(target) \ 1645 __sanitizer_syscall_pre_impl__lwp_continue((long long)(target)) 1646 #define __sanitizer_syscall_post__lwp_continue(res, target) \ 1647 __sanitizer_syscall_post_impl__lwp_continue(res, (long long)(target)) 1648 #define __sanitizer_syscall_pre__lwp_wakeup(target) \ 1649 __sanitizer_syscall_pre_impl__lwp_wakeup((long long)(target)) 1650 #define __sanitizer_syscall_post__lwp_wakeup(res, target) \ 1651 __sanitizer_syscall_post_impl__lwp_wakeup(res, (long long)(target)) 1652 #define __sanitizer_syscall_pre__lwp_getprivate() \ 1653 __sanitizer_syscall_pre_impl__lwp_getprivate() 1654 #define __sanitizer_syscall_post__lwp_getprivate(res) \ 1655 __sanitizer_syscall_post_impl__lwp_getprivate(res) 1656 #define __sanitizer_syscall_pre__lwp_setprivate(ptr) \ 1657 __sanitizer_syscall_pre_impl__lwp_setprivate((long long)(ptr)) 1658 #define __sanitizer_syscall_post__lwp_setprivate(res, ptr) \ 1659 __sanitizer_syscall_post_impl__lwp_setprivate(res, (long long)(ptr)) 1660 #define __sanitizer_syscall_pre__lwp_kill(target, signo) \ 1661 __sanitizer_syscall_pre_impl__lwp_kill((long long)(target), \ 1662 (long long)(signo)) 1663 #define __sanitizer_syscall_post__lwp_kill(res, target, signo) \ 1664 __sanitizer_syscall_post_impl__lwp_kill(res, (long long)(target), \ 1665 (long long)(signo)) 1666 #define __sanitizer_syscall_pre__lwp_detach(target) \ 1667 __sanitizer_syscall_pre_impl__lwp_detach((long long)(target)) 1668 #define __sanitizer_syscall_post__lwp_detach(res, target) \ 1669 __sanitizer_syscall_post_impl__lwp_detach(res, (long long)(target)) 1670 #define __sanitizer_syscall_pre_compat_50__lwp_park(ts, unpark, hint, \ 1671 unparkhint) \ 1672 __sanitizer_syscall_pre_impl_compat_50__lwp_park( \ 1673 (long long)(ts), (long long)(unpark), (long long)(hint), \ 1674 (long long)(unparkhint)) 1675 #define __sanitizer_syscall_post_compat_50__lwp_park(res, ts, unpark, hint, \ 1676 unparkhint) \ 1677 __sanitizer_syscall_post_impl_compat_50__lwp_park( \ 1678 res, (long long)(ts), (long long)(unpark), (long long)(hint), \ 1679 (long long)(unparkhint)) 1680 #define __sanitizer_syscall_pre__lwp_unpark(target, hint) \ 1681 __sanitizer_syscall_pre_impl__lwp_unpark((long long)(target), \ 1682 (long long)(hint)) 1683 #define __sanitizer_syscall_post__lwp_unpark(res, target, hint) \ 1684 __sanitizer_syscall_post_impl__lwp_unpark(res, (long long)(target), \ 1685 (long long)(hint)) 1686 #define __sanitizer_syscall_pre__lwp_unpark_all(targets, ntargets, hint) \ 1687 __sanitizer_syscall_pre_impl__lwp_unpark_all( \ 1688 (long long)(targets), (long long)(ntargets), (long long)(hint)) 1689 #define __sanitizer_syscall_post__lwp_unpark_all(res, targets, ntargets, hint) \ 1690 __sanitizer_syscall_post_impl__lwp_unpark_all( \ 1691 res, (long long)(targets), (long long)(ntargets), (long long)(hint)) 1692 #define __sanitizer_syscall_pre__lwp_setname(target, name) \ 1693 __sanitizer_syscall_pre_impl__lwp_setname((long long)(target), \ 1694 (long long)(name)) 1695 #define __sanitizer_syscall_post__lwp_setname(res, target, name) \ 1696 __sanitizer_syscall_post_impl__lwp_setname(res, (long long)(target), \ 1697 (long long)(name)) 1698 #define __sanitizer_syscall_pre__lwp_getname(target, name, len) \ 1699 __sanitizer_syscall_pre_impl__lwp_getname( \ 1700 (long long)(target), (long long)(name), (long long)(len)) 1701 #define __sanitizer_syscall_post__lwp_getname(res, target, name, len) \ 1702 __sanitizer_syscall_post_impl__lwp_getname( \ 1703 res, (long long)(target), (long long)(name), (long long)(len)) 1704 #define __sanitizer_syscall_pre__lwp_ctl(features, address) \ 1705 __sanitizer_syscall_pre_impl__lwp_ctl((long long)(features), \ 1706 (long long)(address)) 1707 #define __sanitizer_syscall_post__lwp_ctl(res, features, address) \ 1708 __sanitizer_syscall_post_impl__lwp_ctl(res, (long long)(features), \ 1709 (long long)(address)) 1710 /* syscall 326 has been skipped */ 1711 /* syscall 327 has been skipped */ 1712 /* syscall 328 has been skipped */ 1713 /* syscall 329 has been skipped */ 1714 #define __sanitizer_syscall_pre_compat_60_sa_register(newv, oldv, flags, \ 1715 stackinfo_offset) \ 1716 __sanitizer_syscall_pre_impl_compat_60_sa_register( \ 1717 (long long)(newv), (long long)(oldv), (long long)(flags), \ 1718 (long long)(stackinfo_offset)) 1719 #define __sanitizer_syscall_post_compat_60_sa_register(res, newv, oldv, flags, \ 1720 stackinfo_offset) \ 1721 __sanitizer_syscall_post_impl_compat_60_sa_register( \ 1722 res, (long long)(newv), (long long)(oldv), (long long)(flags), \ 1723 (long long)(stackinfo_offset)) 1724 #define __sanitizer_syscall_pre_compat_60_sa_stacks(num, stacks) \ 1725 __sanitizer_syscall_pre_impl_compat_60_sa_stacks((long long)(num), \ 1726 (long long)(stacks)) 1727 #define __sanitizer_syscall_post_compat_60_sa_stacks(res, num, stacks) \ 1728 __sanitizer_syscall_post_impl_compat_60_sa_stacks(res, (long long)(num), \ 1729 (long long)(stacks)) 1730 #define __sanitizer_syscall_pre_compat_60_sa_enable() \ 1731 __sanitizer_syscall_pre_impl_compat_60_sa_enable() 1732 #define __sanitizer_syscall_post_compat_60_sa_enable(res) \ 1733 __sanitizer_syscall_post_impl_compat_60_sa_enable(res) 1734 #define __sanitizer_syscall_pre_compat_60_sa_setconcurrency(concurrency) \ 1735 __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency( \ 1736 (long long)(concurrency)) 1737 #define __sanitizer_syscall_post_compat_60_sa_setconcurrency(res, concurrency) \ 1738 __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency( \ 1739 res, (long long)(concurrency)) 1740 #define __sanitizer_syscall_pre_compat_60_sa_yield() \ 1741 __sanitizer_syscall_pre_impl_compat_60_sa_yield() 1742 #define __sanitizer_syscall_post_compat_60_sa_yield(res) \ 1743 __sanitizer_syscall_post_impl_compat_60_sa_yield(res) 1744 #define __sanitizer_syscall_pre_compat_60_sa_preempt(sa_id) \ 1745 __sanitizer_syscall_pre_impl_compat_60_sa_preempt((long long)(sa_id)) 1746 #define __sanitizer_syscall_post_compat_60_sa_preempt(res, sa_id) \ 1747 __sanitizer_syscall_post_impl_compat_60_sa_preempt(res, (long long)(sa_id)) 1748 /* syscall 336 has been skipped */ 1749 /* syscall 337 has been skipped */ 1750 /* syscall 338 has been skipped */ 1751 /* syscall 339 has been skipped */ 1752 #define __sanitizer_syscall_pre___sigaction_sigtramp(signum, nsa, osa, tramp, \ 1753 vers) \ 1754 __sanitizer_syscall_pre_impl___sigaction_sigtramp( \ 1755 (long long)(signum), (long long)(nsa), (long long)(osa), \ 1756 (long long)(tramp), (long long)(vers)) 1757 #define __sanitizer_syscall_post___sigaction_sigtramp(res, signum, nsa, osa, \ 1758 tramp, vers) \ 1759 __sanitizer_syscall_post_impl___sigaction_sigtramp( \ 1760 res, (long long)(signum), (long long)(nsa), (long long)(osa), \ 1761 (long long)(tramp), (long long)(vers)) 1762 /* syscall 341 has been skipped */ 1763 /* syscall 342 has been skipped */ 1764 #define __sanitizer_syscall_pre_rasctl(addr, len, op) \ 1765 __sanitizer_syscall_pre_impl_rasctl((long long)(addr), (long long)(len), \ 1766 (long long)(op)) 1767 #define __sanitizer_syscall_post_rasctl(res, addr, len, op) \ 1768 __sanitizer_syscall_post_impl_rasctl(res, (long long)(addr), \ 1769 (long long)(len), (long long)(op)) 1770 #define __sanitizer_syscall_pre_kqueue() __sanitizer_syscall_pre_impl_kqueue() 1771 #define __sanitizer_syscall_post_kqueue(res) \ 1772 __sanitizer_syscall_post_impl_kqueue(res) 1773 #define __sanitizer_syscall_pre_compat_50_kevent(fd, changelist, nchanges, \ 1774 eventlist, nevents, timeout) \ 1775 __sanitizer_syscall_pre_impl_compat_50_kevent( \ 1776 (long long)(fd), (long long)(changelist), (long long)(nchanges), \ 1777 (long long)(eventlist), (long long)(nevents), (long long)(timeout)) 1778 #define __sanitizer_syscall_post_compat_50_kevent( \ 1779 res, fd, changelist, nchanges, eventlist, nevents, timeout) \ 1780 __sanitizer_syscall_post_impl_compat_50_kevent( \ 1781 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \ 1782 (long long)(eventlist), (long long)(nevents), (long long)(timeout)) 1783 #define __sanitizer_syscall_pre__sched_setparam(pid, lid, policy, params) \ 1784 __sanitizer_syscall_pre_impl__sched_setparam( \ 1785 (long long)(pid), (long long)(lid), (long long)(policy), \ 1786 (long long)(params)) 1787 #define __sanitizer_syscall_post__sched_setparam(res, pid, lid, policy, \ 1788 params) \ 1789 __sanitizer_syscall_post_impl__sched_setparam( \ 1790 res, (long long)(pid), (long long)(lid), (long long)(policy), \ 1791 (long long)(params)) 1792 #define __sanitizer_syscall_pre__sched_getparam(pid, lid, policy, params) \ 1793 __sanitizer_syscall_pre_impl__sched_getparam( \ 1794 (long long)(pid), (long long)(lid), (long long)(policy), \ 1795 (long long)(params)) 1796 #define __sanitizer_syscall_post__sched_getparam(res, pid, lid, policy, \ 1797 params) \ 1798 __sanitizer_syscall_post_impl__sched_getparam( \ 1799 res, (long long)(pid), (long long)(lid), (long long)(policy), \ 1800 (long long)(params)) 1801 #define __sanitizer_syscall_pre__sched_setaffinity(pid, lid, size, cpuset) \ 1802 __sanitizer_syscall_pre_impl__sched_setaffinity( \ 1803 (long long)(pid), (long long)(lid), (long long)(size), \ 1804 (long long)(cpuset)) 1805 #define __sanitizer_syscall_post__sched_setaffinity(res, pid, lid, size, \ 1806 cpuset) \ 1807 __sanitizer_syscall_post_impl__sched_setaffinity( \ 1808 res, (long long)(pid), (long long)(lid), (long long)(size), \ 1809 (long long)(cpuset)) 1810 #define __sanitizer_syscall_pre__sched_getaffinity(pid, lid, size, cpuset) \ 1811 __sanitizer_syscall_pre_impl__sched_getaffinity( \ 1812 (long long)(pid), (long long)(lid), (long long)(size), \ 1813 (long long)(cpuset)) 1814 #define __sanitizer_syscall_post__sched_getaffinity(res, pid, lid, size, \ 1815 cpuset) \ 1816 __sanitizer_syscall_post_impl__sched_getaffinity( \ 1817 res, (long long)(pid), (long long)(lid), (long long)(size), \ 1818 (long long)(cpuset)) 1819 #define __sanitizer_syscall_pre_sched_yield() \ 1820 __sanitizer_syscall_pre_impl_sched_yield() 1821 #define __sanitizer_syscall_post_sched_yield(res) \ 1822 __sanitizer_syscall_post_impl_sched_yield(res) 1823 #define __sanitizer_syscall_pre__sched_protect(priority) \ 1824 __sanitizer_syscall_pre_impl__sched_protect((long long)(priority)) 1825 #define __sanitizer_syscall_post__sched_protect(res, priority) \ 1826 __sanitizer_syscall_post_impl__sched_protect(res, (long long)(priority)) 1827 /* syscall 352 has been skipped */ 1828 /* syscall 353 has been skipped */ 1829 #define __sanitizer_syscall_pre_fsync_range(fd, flags, start, length) \ 1830 __sanitizer_syscall_pre_impl_fsync_range( \ 1831 (long long)(fd), (long long)(flags), (long long)(start), \ 1832 (long long)(length)) 1833 #define __sanitizer_syscall_post_fsync_range(res, fd, flags, start, length) \ 1834 __sanitizer_syscall_post_impl_fsync_range( \ 1835 res, (long long)(fd), (long long)(flags), (long long)(start), \ 1836 (long long)(length)) 1837 #define __sanitizer_syscall_pre_uuidgen(store, count) \ 1838 __sanitizer_syscall_pre_impl_uuidgen((long long)(store), (long long)(count)) 1839 #define __sanitizer_syscall_post_uuidgen(res, store, count) \ 1840 __sanitizer_syscall_post_impl_uuidgen(res, (long long)(store), \ 1841 (long long)(count)) 1842 #define __sanitizer_syscall_pre_getvfsstat(buf, bufsize, flags) \ 1843 __sanitizer_syscall_pre_impl_getvfsstat( \ 1844 (long long)(buf), (long long)(bufsize), (long long)(flags)) 1845 #define __sanitizer_syscall_post_getvfsstat(res, buf, bufsize, flags) \ 1846 __sanitizer_syscall_post_impl_getvfsstat( \ 1847 res, (long long)(buf), (long long)(bufsize), (long long)(flags)) 1848 #define __sanitizer_syscall_pre_statvfs1(path, buf, flags) \ 1849 __sanitizer_syscall_pre_impl_statvfs1((long long)(path), (long long)(buf), \ 1850 (long long)(flags)) 1851 #define __sanitizer_syscall_post_statvfs1(res, path, buf, flags) \ 1852 __sanitizer_syscall_post_impl_statvfs1(res, (long long)(path), \ 1853 (long long)(buf), (long long)(flags)) 1854 #define __sanitizer_syscall_pre_fstatvfs1(fd, buf, flags) \ 1855 __sanitizer_syscall_pre_impl_fstatvfs1((long long)(fd), (long long)(buf), \ 1856 (long long)(flags)) 1857 #define __sanitizer_syscall_post_fstatvfs1(res, fd, buf, flags) \ 1858 __sanitizer_syscall_post_impl_fstatvfs1( \ 1859 res, (long long)(fd), (long long)(buf), (long long)(flags)) 1860 #define __sanitizer_syscall_pre_compat_30_fhstatvfs1(fhp, buf, flags) \ 1861 __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1( \ 1862 (long long)(fhp), (long long)(buf), (long long)(flags)) 1863 #define __sanitizer_syscall_post_compat_30_fhstatvfs1(res, fhp, buf, flags) \ 1864 __sanitizer_syscall_post_impl_compat_30_fhstatvfs1( \ 1865 res, (long long)(fhp), (long long)(buf), (long long)(flags)) 1866 #define __sanitizer_syscall_pre_extattrctl(path, cmd, filename, attrnamespace, \ 1867 attrname) \ 1868 __sanitizer_syscall_pre_impl_extattrctl( \ 1869 (long long)(path), (long long)(cmd), (long long)(filename), \ 1870 (long long)(attrnamespace), (long long)(attrname)) 1871 #define __sanitizer_syscall_post_extattrctl(res, path, cmd, filename, \ 1872 attrnamespace, attrname) \ 1873 __sanitizer_syscall_post_impl_extattrctl( \ 1874 res, (long long)(path), (long long)(cmd), (long long)(filename), \ 1875 (long long)(attrnamespace), (long long)(attrname)) 1876 #define __sanitizer_syscall_pre_extattr_set_file(path, attrnamespace, \ 1877 attrname, data, nbytes) \ 1878 __sanitizer_syscall_pre_impl_extattr_set_file( \ 1879 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \ 1880 (long long)(data), (long long)(nbytes)) 1881 #define __sanitizer_syscall_post_extattr_set_file(res, path, attrnamespace, \ 1882 attrname, data, nbytes) \ 1883 __sanitizer_syscall_post_impl_extattr_set_file( \ 1884 res, (long long)(path), (long long)(attrnamespace), \ 1885 (long long)(attrname), (long long)(data), (long long)(nbytes)) 1886 #define __sanitizer_syscall_pre_extattr_get_file(path, attrnamespace, \ 1887 attrname, data, nbytes) \ 1888 __sanitizer_syscall_pre_impl_extattr_get_file( \ 1889 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \ 1890 (long long)(data), (long long)(nbytes)) 1891 #define __sanitizer_syscall_post_extattr_get_file(res, path, attrnamespace, \ 1892 attrname, data, nbytes) \ 1893 __sanitizer_syscall_post_impl_extattr_get_file( \ 1894 res, (long long)(path), (long long)(attrnamespace), \ 1895 (long long)(attrname), (long long)(data), (long long)(nbytes)) 1896 #define __sanitizer_syscall_pre_extattr_delete_file(path, attrnamespace, \ 1897 attrname) \ 1898 __sanitizer_syscall_pre_impl_extattr_delete_file( \ 1899 (long long)(path), (long long)(attrnamespace), (long long)(attrname)) 1900 #define __sanitizer_syscall_post_extattr_delete_file(res, path, attrnamespace, \ 1901 attrname) \ 1902 __sanitizer_syscall_post_impl_extattr_delete_file( \ 1903 res, (long long)(path), (long long)(attrnamespace), \ 1904 (long long)(attrname)) 1905 #define __sanitizer_syscall_pre_extattr_set_fd(fd, attrnamespace, attrname, \ 1906 data, nbytes) \ 1907 __sanitizer_syscall_pre_impl_extattr_set_fd( \ 1908 (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \ 1909 (long long)(data), (long long)(nbytes)) 1910 #define __sanitizer_syscall_post_extattr_set_fd(res, fd, attrnamespace, \ 1911 attrname, data, nbytes) \ 1912 __sanitizer_syscall_post_impl_extattr_set_fd( \ 1913 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \ 1914 (long long)(data), (long long)(nbytes)) 1915 #define __sanitizer_syscall_pre_extattr_get_fd(fd, attrnamespace, attrname, \ 1916 data, nbytes) \ 1917 __sanitizer_syscall_pre_impl_extattr_get_fd( \ 1918 (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \ 1919 (long long)(data), (long long)(nbytes)) 1920 #define __sanitizer_syscall_post_extattr_get_fd(res, fd, attrnamespace, \ 1921 attrname, data, nbytes) \ 1922 __sanitizer_syscall_post_impl_extattr_get_fd( \ 1923 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname), \ 1924 (long long)(data), (long long)(nbytes)) 1925 #define __sanitizer_syscall_pre_extattr_delete_fd(fd, attrnamespace, attrname) \ 1926 __sanitizer_syscall_pre_impl_extattr_delete_fd( \ 1927 (long long)(fd), (long long)(attrnamespace), (long long)(attrname)) 1928 #define __sanitizer_syscall_post_extattr_delete_fd(res, fd, attrnamespace, \ 1929 attrname) \ 1930 __sanitizer_syscall_post_impl_extattr_delete_fd( \ 1931 res, (long long)(fd), (long long)(attrnamespace), (long long)(attrname)) 1932 #define __sanitizer_syscall_pre_extattr_set_link(path, attrnamespace, \ 1933 attrname, data, nbytes) \ 1934 __sanitizer_syscall_pre_impl_extattr_set_link( \ 1935 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \ 1936 (long long)(data), (long long)(nbytes)) 1937 #define __sanitizer_syscall_post_extattr_set_link(res, path, attrnamespace, \ 1938 attrname, data, nbytes) \ 1939 __sanitizer_syscall_post_impl_extattr_set_link( \ 1940 res, (long long)(path), (long long)(attrnamespace), \ 1941 (long long)(attrname), (long long)(data), (long long)(nbytes)) 1942 #define __sanitizer_syscall_pre_extattr_get_link(path, attrnamespace, \ 1943 attrname, data, nbytes) \ 1944 __sanitizer_syscall_pre_impl_extattr_get_link( \ 1945 (long long)(path), (long long)(attrnamespace), (long long)(attrname), \ 1946 (long long)(data), (long long)(nbytes)) 1947 #define __sanitizer_syscall_post_extattr_get_link(res, path, attrnamespace, \ 1948 attrname, data, nbytes) \ 1949 __sanitizer_syscall_post_impl_extattr_get_link( \ 1950 res, (long long)(path), (long long)(attrnamespace), \ 1951 (long long)(attrname), (long long)(data), (long long)(nbytes)) 1952 #define __sanitizer_syscall_pre_extattr_delete_link(path, attrnamespace, \ 1953 attrname) \ 1954 __sanitizer_syscall_pre_impl_extattr_delete_link( \ 1955 (long long)(path), (long long)(attrnamespace), (long long)(attrname)) 1956 #define __sanitizer_syscall_post_extattr_delete_link(res, path, attrnamespace, \ 1957 attrname) \ 1958 __sanitizer_syscall_post_impl_extattr_delete_link( \ 1959 res, (long long)(path), (long long)(attrnamespace), \ 1960 (long long)(attrname)) 1961 #define __sanitizer_syscall_pre_extattr_list_fd(fd, attrnamespace, data, \ 1962 nbytes) \ 1963 __sanitizer_syscall_pre_impl_extattr_list_fd( \ 1964 (long long)(fd), (long long)(attrnamespace), (long long)(data), \ 1965 (long long)(nbytes)) 1966 #define __sanitizer_syscall_post_extattr_list_fd(res, fd, attrnamespace, data, \ 1967 nbytes) \ 1968 __sanitizer_syscall_post_impl_extattr_list_fd( \ 1969 res, (long long)(fd), (long long)(attrnamespace), (long long)(data), \ 1970 (long long)(nbytes)) 1971 #define __sanitizer_syscall_pre_extattr_list_file(path, attrnamespace, data, \ 1972 nbytes) \ 1973 __sanitizer_syscall_pre_impl_extattr_list_file( \ 1974 (long long)(path), (long long)(attrnamespace), (long long)(data), \ 1975 (long long)(nbytes)) 1976 #define __sanitizer_syscall_post_extattr_list_file(res, path, attrnamespace, \ 1977 data, nbytes) \ 1978 __sanitizer_syscall_post_impl_extattr_list_file( \ 1979 res, (long long)(path), (long long)(attrnamespace), (long long)(data), \ 1980 (long long)(nbytes)) 1981 #define __sanitizer_syscall_pre_extattr_list_link(path, attrnamespace, data, \ 1982 nbytes) \ 1983 __sanitizer_syscall_pre_impl_extattr_list_link( \ 1984 (long long)(path), (long long)(attrnamespace), (long long)(data), \ 1985 (long long)(nbytes)) 1986 #define __sanitizer_syscall_post_extattr_list_link(res, path, attrnamespace, \ 1987 data, nbytes) \ 1988 __sanitizer_syscall_post_impl_extattr_list_link( \ 1989 res, (long long)(path), (long long)(attrnamespace), (long long)(data), \ 1990 (long long)(nbytes)) 1991 #define __sanitizer_syscall_pre_compat_50_pselect(nd, in, ou, ex, ts, mask) \ 1992 __sanitizer_syscall_pre_impl_compat_50_pselect( \ 1993 (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \ 1994 (long long)(ts), (long long)(mask)) 1995 #define __sanitizer_syscall_post_compat_50_pselect(res, nd, in, ou, ex, ts, \ 1996 mask) \ 1997 __sanitizer_syscall_post_impl_compat_50_pselect( \ 1998 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \ 1999 (long long)(ts), (long long)(mask)) 2000 #define __sanitizer_syscall_pre_compat_50_pollts(fds, nfds, ts, mask) \ 2001 __sanitizer_syscall_pre_impl_compat_50_pollts( \ 2002 (long long)(fds), (long long)(nfds), (long long)(ts), (long long)(mask)) 2003 #define __sanitizer_syscall_post_compat_50_pollts(res, fds, nfds, ts, mask) \ 2004 __sanitizer_syscall_post_impl_compat_50_pollts( \ 2005 res, (long long)(fds), (long long)(nfds), (long long)(ts), \ 2006 (long long)(mask)) 2007 #define __sanitizer_syscall_pre_setxattr(path, name, value, size, flags) \ 2008 __sanitizer_syscall_pre_impl_setxattr((long long)(path), (long long)(name), \ 2009 (long long)(value), (long long)(size), \ 2010 (long long)(flags)) 2011 #define __sanitizer_syscall_post_setxattr(res, path, name, value, size, flags) \ 2012 __sanitizer_syscall_post_impl_setxattr( \ 2013 res, (long long)(path), (long long)(name), (long long)(value), \ 2014 (long long)(size), (long long)(flags)) 2015 #define __sanitizer_syscall_pre_lsetxattr(path, name, value, size, flags) \ 2016 __sanitizer_syscall_pre_impl_lsetxattr( \ 2017 (long long)(path), (long long)(name), (long long)(value), \ 2018 (long long)(size), (long long)(flags)) 2019 #define __sanitizer_syscall_post_lsetxattr(res, path, name, value, size, \ 2020 flags) \ 2021 __sanitizer_syscall_post_impl_lsetxattr( \ 2022 res, (long long)(path), (long long)(name), (long long)(value), \ 2023 (long long)(size), (long long)(flags)) 2024 #define __sanitizer_syscall_pre_fsetxattr(fd, name, value, size, flags) \ 2025 __sanitizer_syscall_pre_impl_fsetxattr( \ 2026 (long long)(fd), (long long)(name), (long long)(value), \ 2027 (long long)(size), (long long)(flags)) 2028 #define __sanitizer_syscall_post_fsetxattr(res, fd, name, value, size, flags) \ 2029 __sanitizer_syscall_post_impl_fsetxattr( \ 2030 res, (long long)(fd), (long long)(name), (long long)(value), \ 2031 (long long)(size), (long long)(flags)) 2032 #define __sanitizer_syscall_pre_getxattr(path, name, value, size) \ 2033 __sanitizer_syscall_pre_impl_getxattr((long long)(path), (long long)(name), \ 2034 (long long)(value), (long long)(size)) 2035 #define __sanitizer_syscall_post_getxattr(res, path, name, value, size) \ 2036 __sanitizer_syscall_post_impl_getxattr( \ 2037 res, (long long)(path), (long long)(name), (long long)(value), \ 2038 (long long)(size)) 2039 #define __sanitizer_syscall_pre_lgetxattr(path, name, value, size) \ 2040 __sanitizer_syscall_pre_impl_lgetxattr((long long)(path), (long long)(name), \ 2041 (long long)(value), \ 2042 (long long)(size)) 2043 #define __sanitizer_syscall_post_lgetxattr(res, path, name, value, size) \ 2044 __sanitizer_syscall_post_impl_lgetxattr( \ 2045 res, (long long)(path), (long long)(name), (long long)(value), \ 2046 (long long)(size)) 2047 #define __sanitizer_syscall_pre_fgetxattr(fd, name, value, size) \ 2048 __sanitizer_syscall_pre_impl_fgetxattr((long long)(fd), (long long)(name), \ 2049 (long long)(value), \ 2050 (long long)(size)) 2051 #define __sanitizer_syscall_post_fgetxattr(res, fd, name, value, size) \ 2052 __sanitizer_syscall_post_impl_fgetxattr( \ 2053 res, (long long)(fd), (long long)(name), (long long)(value), \ 2054 (long long)(size)) 2055 #define __sanitizer_syscall_pre_listxattr(path, list, size) \ 2056 __sanitizer_syscall_pre_impl_listxattr((long long)(path), (long long)(list), \ 2057 (long long)(size)) 2058 #define __sanitizer_syscall_post_listxattr(res, path, list, size) \ 2059 __sanitizer_syscall_post_impl_listxattr( \ 2060 res, (long long)(path), (long long)(list), (long long)(size)) 2061 #define __sanitizer_syscall_pre_llistxattr(path, list, size) \ 2062 __sanitizer_syscall_pre_impl_llistxattr( \ 2063 (long long)(path), (long long)(list), (long long)(size)) 2064 #define __sanitizer_syscall_post_llistxattr(res, path, list, size) \ 2065 __sanitizer_syscall_post_impl_llistxattr( \ 2066 res, (long long)(path), (long long)(list), (long long)(size)) 2067 #define __sanitizer_syscall_pre_flistxattr(fd, list, size) \ 2068 __sanitizer_syscall_pre_impl_flistxattr((long long)(fd), (long long)(list), \ 2069 (long long)(size)) 2070 #define __sanitizer_syscall_post_flistxattr(res, fd, list, size) \ 2071 __sanitizer_syscall_post_impl_flistxattr( \ 2072 res, (long long)(fd), (long long)(list), (long long)(size)) 2073 #define __sanitizer_syscall_pre_removexattr(path, name) \ 2074 __sanitizer_syscall_pre_impl_removexattr((long long)(path), (long long)(name)) 2075 #define __sanitizer_syscall_post_removexattr(res, path, name) \ 2076 __sanitizer_syscall_post_impl_removexattr(res, (long long)(path), \ 2077 (long long)(name)) 2078 #define __sanitizer_syscall_pre_lremovexattr(path, name) \ 2079 __sanitizer_syscall_pre_impl_lremovexattr((long long)(path), \ 2080 (long long)(name)) 2081 #define __sanitizer_syscall_post_lremovexattr(res, path, name) \ 2082 __sanitizer_syscall_post_impl_lremovexattr(res, (long long)(path), \ 2083 (long long)(name)) 2084 #define __sanitizer_syscall_pre_fremovexattr(fd, name) \ 2085 __sanitizer_syscall_pre_impl_fremovexattr((long long)(fd), (long long)(name)) 2086 #define __sanitizer_syscall_post_fremovexattr(res, fd, name) \ 2087 __sanitizer_syscall_post_impl_fremovexattr(res, (long long)(fd), \ 2088 (long long)(name)) 2089 #define __sanitizer_syscall_pre_compat_50___stat30(path, ub) \ 2090 __sanitizer_syscall_pre_impl_compat_50___stat30((long long)(path), \ 2091 (long long)(ub)) 2092 #define __sanitizer_syscall_post_compat_50___stat30(res, path, ub) \ 2093 __sanitizer_syscall_post_impl_compat_50___stat30(res, (long long)(path), \ 2094 (long long)(ub)) 2095 #define __sanitizer_syscall_pre_compat_50___fstat30(fd, sb) \ 2096 __sanitizer_syscall_pre_impl_compat_50___fstat30((long long)(fd), \ 2097 (long long)(sb)) 2098 #define __sanitizer_syscall_post_compat_50___fstat30(res, fd, sb) \ 2099 __sanitizer_syscall_post_impl_compat_50___fstat30(res, (long long)(fd), \ 2100 (long long)(sb)) 2101 #define __sanitizer_syscall_pre_compat_50___lstat30(path, ub) \ 2102 __sanitizer_syscall_pre_impl_compat_50___lstat30((long long)(path), \ 2103 (long long)(ub)) 2104 #define __sanitizer_syscall_post_compat_50___lstat30(res, path, ub) \ 2105 __sanitizer_syscall_post_impl_compat_50___lstat30(res, (long long)(path), \ 2106 (long long)(ub)) 2107 #define __sanitizer_syscall_pre___getdents30(fd, buf, count) \ 2108 __sanitizer_syscall_pre_impl___getdents30((long long)(fd), (long long)(buf), \ 2109 (long long)(count)) 2110 #define __sanitizer_syscall_post___getdents30(res, fd, buf, count) \ 2111 __sanitizer_syscall_post_impl___getdents30( \ 2112 res, (long long)(fd), (long long)(buf), (long long)(count)) 2113 #define __sanitizer_syscall_pre_posix_fadvise() \ 2114 __sanitizer_syscall_pre_impl_posix_fadvise((long long)()) 2115 #define __sanitizer_syscall_post_posix_fadvise(res) \ 2116 __sanitizer_syscall_post_impl_posix_fadvise(res, (long long)()) 2117 #define __sanitizer_syscall_pre_compat_30___fhstat30(fhp, sb) \ 2118 __sanitizer_syscall_pre_impl_compat_30___fhstat30((long long)(fhp), \ 2119 (long long)(sb)) 2120 #define __sanitizer_syscall_post_compat_30___fhstat30(res, fhp, sb) \ 2121 __sanitizer_syscall_post_impl_compat_30___fhstat30(res, (long long)(fhp), \ 2122 (long long)(sb)) 2123 #define __sanitizer_syscall_pre_compat_50___ntp_gettime30(ntvp) \ 2124 __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30((long long)(ntvp)) 2125 #define __sanitizer_syscall_post_compat_50___ntp_gettime30(res, ntvp) \ 2126 __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(res, \ 2127 (long long)(ntvp)) 2128 #define __sanitizer_syscall_pre___socket30(domain, type, protocol) \ 2129 __sanitizer_syscall_pre_impl___socket30( \ 2130 (long long)(domain), (long long)(type), (long long)(protocol)) 2131 #define __sanitizer_syscall_post___socket30(res, domain, type, protocol) \ 2132 __sanitizer_syscall_post_impl___socket30( \ 2133 res, (long long)(domain), (long long)(type), (long long)(protocol)) 2134 #define __sanitizer_syscall_pre___getfh30(fname, fhp, fh_size) \ 2135 __sanitizer_syscall_pre_impl___getfh30((long long)(fname), (long long)(fhp), \ 2136 (long long)(fh_size)) 2137 #define __sanitizer_syscall_post___getfh30(res, fname, fhp, fh_size) \ 2138 __sanitizer_syscall_post_impl___getfh30( \ 2139 res, (long long)(fname), (long long)(fhp), (long long)(fh_size)) 2140 #define __sanitizer_syscall_pre___fhopen40(fhp, fh_size, flags) \ 2141 __sanitizer_syscall_pre_impl___fhopen40( \ 2142 (long long)(fhp), (long long)(fh_size), (long long)(flags)) 2143 #define __sanitizer_syscall_post___fhopen40(res, fhp, fh_size, flags) \ 2144 __sanitizer_syscall_post_impl___fhopen40( \ 2145 res, (long long)(fhp), (long long)(fh_size), (long long)(flags)) 2146 #define __sanitizer_syscall_pre___fhstatvfs140(fhp, fh_size, buf, flags) \ 2147 __sanitizer_syscall_pre_impl___fhstatvfs140( \ 2148 (long long)(fhp), (long long)(fh_size), (long long)(buf), \ 2149 (long long)(flags)) 2150 #define __sanitizer_syscall_post___fhstatvfs140(res, fhp, fh_size, buf, flags) \ 2151 __sanitizer_syscall_post_impl___fhstatvfs140( \ 2152 res, (long long)(fhp), (long long)(fh_size), (long long)(buf), \ 2153 (long long)(flags)) 2154 #define __sanitizer_syscall_pre_compat_50___fhstat40(fhp, fh_size, sb) \ 2155 __sanitizer_syscall_pre_impl_compat_50___fhstat40( \ 2156 (long long)(fhp), (long long)(fh_size), (long long)(sb)) 2157 #define __sanitizer_syscall_post_compat_50___fhstat40(res, fhp, fh_size, sb) \ 2158 __sanitizer_syscall_post_impl_compat_50___fhstat40( \ 2159 res, (long long)(fhp), (long long)(fh_size), (long long)(sb)) 2160 #define __sanitizer_syscall_pre_aio_cancel(fildes, aiocbp) \ 2161 __sanitizer_syscall_pre_impl_aio_cancel((long long)(fildes), \ 2162 (long long)(aiocbp)) 2163 #define __sanitizer_syscall_post_aio_cancel(res, fildes, aiocbp) \ 2164 __sanitizer_syscall_post_impl_aio_cancel(res, (long long)(fildes), \ 2165 (long long)(aiocbp)) 2166 #define __sanitizer_syscall_pre_aio_error(aiocbp) \ 2167 __sanitizer_syscall_pre_impl_aio_error((long long)(aiocbp)) 2168 #define __sanitizer_syscall_post_aio_error(res, aiocbp) \ 2169 __sanitizer_syscall_post_impl_aio_error(res, (long long)(aiocbp)) 2170 #define __sanitizer_syscall_pre_aio_fsync(op, aiocbp) \ 2171 __sanitizer_syscall_pre_impl_aio_fsync((long long)(op), (long long)(aiocbp)) 2172 #define __sanitizer_syscall_post_aio_fsync(res, op, aiocbp) \ 2173 __sanitizer_syscall_post_impl_aio_fsync(res, (long long)(op), \ 2174 (long long)(aiocbp)) 2175 #define __sanitizer_syscall_pre_aio_read(aiocbp) \ 2176 __sanitizer_syscall_pre_impl_aio_read((long long)(aiocbp)) 2177 #define __sanitizer_syscall_post_aio_read(res, aiocbp) \ 2178 __sanitizer_syscall_post_impl_aio_read(res, (long long)(aiocbp)) 2179 #define __sanitizer_syscall_pre_aio_return(aiocbp) \ 2180 __sanitizer_syscall_pre_impl_aio_return((long long)(aiocbp)) 2181 #define __sanitizer_syscall_post_aio_return(res, aiocbp) \ 2182 __sanitizer_syscall_post_impl_aio_return(res, (long long)(aiocbp)) 2183 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \ 2184 __sanitizer_syscall_pre_impl_compat_50_aio_suspend( \ 2185 (long long)(list), (long long)(nent), (long long)(timeout)) 2186 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \ 2187 timeout) \ 2188 __sanitizer_syscall_post_impl_compat_50_aio_suspend( \ 2189 res, (long long)(list), (long long)(nent), (long long)(timeout)) 2190 #define __sanitizer_syscall_pre_aio_write(aiocbp) \ 2191 __sanitizer_syscall_pre_impl_aio_write((long long)(aiocbp)) 2192 #define __sanitizer_syscall_post_aio_write(res, aiocbp) \ 2193 __sanitizer_syscall_post_impl_aio_write(res, (long long)(aiocbp)) 2194 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \ 2195 __sanitizer_syscall_pre_impl_lio_listio((long long)(mode), \ 2196 (long long)(list), \ 2197 (long long)(nent), (long long)(sig)) 2198 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \ 2199 __sanitizer_syscall_post_impl_lio_listio( \ 2200 res, (long long)(mode), (long long)(list), (long long)(nent), \ 2201 (long long)(sig)) 2202 /* syscall 407 has been skipped */ 2203 /* syscall 408 has been skipped */ 2204 /* syscall 409 has been skipped */ 2205 #define __sanitizer_syscall_pre___mount50(type, path, flags, data, data_len) \ 2206 __sanitizer_syscall_pre_impl___mount50( \ 2207 (long long)(type), (long long)(path), (long long)(flags), \ 2208 (long long)(data), (long long)(data_len)) 2209 #define __sanitizer_syscall_post___mount50(res, type, path, flags, data, \ 2210 data_len) \ 2211 __sanitizer_syscall_post_impl___mount50( \ 2212 res, (long long)(type), (long long)(path), (long long)(flags), \ 2213 (long long)(data), (long long)(data_len)) 2214 #define __sanitizer_syscall_pre_mremap(old_address, old_size, new_address, \ 2215 new_size, flags) \ 2216 __sanitizer_syscall_pre_impl_mremap( \ 2217 (long long)(old_address), (long long)(old_size), \ 2218 (long long)(new_address), (long long)(new_size), (long long)(flags)) 2219 #define __sanitizer_syscall_post_mremap(res, old_address, old_size, \ 2220 new_address, new_size, flags) \ 2221 __sanitizer_syscall_post_impl_mremap( \ 2222 res, (long long)(old_address), (long long)(old_size), \ 2223 (long long)(new_address), (long long)(new_size), (long long)(flags)) 2224 #define __sanitizer_syscall_pre_pset_create(psid) \ 2225 __sanitizer_syscall_pre_impl_pset_create((long long)(psid)) 2226 #define __sanitizer_syscall_post_pset_create(res, psid) \ 2227 __sanitizer_syscall_post_impl_pset_create(res, (long long)(psid)) 2228 #define __sanitizer_syscall_pre_pset_destroy(psid) \ 2229 __sanitizer_syscall_pre_impl_pset_destroy((long long)(psid)) 2230 #define __sanitizer_syscall_post_pset_destroy(res, psid) \ 2231 __sanitizer_syscall_post_impl_pset_destroy(res, (long long)(psid)) 2232 #define __sanitizer_syscall_pre_pset_assign(psid, cpuid, opsid) \ 2233 __sanitizer_syscall_pre_impl_pset_assign( \ 2234 (long long)(psid), (long long)(cpuid), (long long)(opsid)) 2235 #define __sanitizer_syscall_post_pset_assign(res, psid, cpuid, opsid) \ 2236 __sanitizer_syscall_post_impl_pset_assign( \ 2237 res, (long long)(psid), (long long)(cpuid), (long long)(opsid)) 2238 #define __sanitizer_syscall_pre__pset_bind(idtype, first_id, second_id, psid, \ 2239 opsid) \ 2240 __sanitizer_syscall_pre_impl__pset_bind( \ 2241 (long long)(idtype), (long long)(first_id), (long long)(second_id), \ 2242 (long long)(psid), (long long)(opsid)) 2243 #define __sanitizer_syscall_post__pset_bind(res, idtype, first_id, second_id, \ 2244 psid, opsid) \ 2245 __sanitizer_syscall_post_impl__pset_bind( \ 2246 res, (long long)(idtype), (long long)(first_id), (long long)(second_id), \ 2247 (long long)(psid), (long long)(opsid)) 2248 #define __sanitizer_syscall_pre___posix_fadvise50(fd, PAD, offset, len, \ 2249 advice) \ 2250 __sanitizer_syscall_pre_impl___posix_fadvise50( \ 2251 (long long)(fd), (long long)(PAD), (long long)(offset), \ 2252 (long long)(len), (long long)(advice)) 2253 #define __sanitizer_syscall_post___posix_fadvise50(res, fd, PAD, offset, len, \ 2254 advice) \ 2255 __sanitizer_syscall_post_impl___posix_fadvise50( \ 2256 res, (long long)(fd), (long long)(PAD), (long long)(offset), \ 2257 (long long)(len), (long long)(advice)) 2258 #define __sanitizer_syscall_pre___select50(nd, in, ou, ex, tv) \ 2259 __sanitizer_syscall_pre_impl___select50((long long)(nd), (long long)(in), \ 2260 (long long)(ou), (long long)(ex), \ 2261 (long long)(tv)) 2262 #define __sanitizer_syscall_post___select50(res, nd, in, ou, ex, tv) \ 2263 __sanitizer_syscall_post_impl___select50(res, (long long)(nd), \ 2264 (long long)(in), (long long)(ou), \ 2265 (long long)(ex), (long long)(tv)) 2266 #define __sanitizer_syscall_pre___gettimeofday50(tp, tzp) \ 2267 __sanitizer_syscall_pre_impl___gettimeofday50((long long)(tp), \ 2268 (long long)(tzp)) 2269 #define __sanitizer_syscall_post___gettimeofday50(res, tp, tzp) \ 2270 __sanitizer_syscall_post_impl___gettimeofday50(res, (long long)(tp), \ 2271 (long long)(tzp)) 2272 #define __sanitizer_syscall_pre___settimeofday50(tv, tzp) \ 2273 __sanitizer_syscall_pre_impl___settimeofday50((long long)(tv), \ 2274 (long long)(tzp)) 2275 #define __sanitizer_syscall_post___settimeofday50(res, tv, tzp) \ 2276 __sanitizer_syscall_post_impl___settimeofday50(res, (long long)(tv), \ 2277 (long long)(tzp)) 2278 #define __sanitizer_syscall_pre___utimes50(path, tptr) \ 2279 __sanitizer_syscall_pre_impl___utimes50((long long)(path), (long long)(tptr)) 2280 #define __sanitizer_syscall_post___utimes50(res, path, tptr) \ 2281 __sanitizer_syscall_post_impl___utimes50(res, (long long)(path), \ 2282 (long long)(tptr)) 2283 #define __sanitizer_syscall_pre___adjtime50(delta, olddelta) \ 2284 __sanitizer_syscall_pre_impl___adjtime50((long long)(delta), \ 2285 (long long)(olddelta)) 2286 #define __sanitizer_syscall_post___adjtime50(res, delta, olddelta) \ 2287 __sanitizer_syscall_post_impl___adjtime50(res, (long long)(delta), \ 2288 (long long)(olddelta)) 2289 #define __sanitizer_syscall_pre___lfs_segwait50(fsidp, tv) \ 2290 __sanitizer_syscall_pre_impl___lfs_segwait50((long long)(fsidp), \ 2291 (long long)(tv)) 2292 #define __sanitizer_syscall_post___lfs_segwait50(res, fsidp, tv) \ 2293 __sanitizer_syscall_post_impl___lfs_segwait50(res, (long long)(fsidp), \ 2294 (long long)(tv)) 2295 #define __sanitizer_syscall_pre___futimes50(fd, tptr) \ 2296 __sanitizer_syscall_pre_impl___futimes50((long long)(fd), (long long)(tptr)) 2297 #define __sanitizer_syscall_post___futimes50(res, fd, tptr) \ 2298 __sanitizer_syscall_post_impl___futimes50(res, (long long)(fd), \ 2299 (long long)(tptr)) 2300 #define __sanitizer_syscall_pre___lutimes50(path, tptr) \ 2301 __sanitizer_syscall_pre_impl___lutimes50((long long)(path), (long long)(tptr)) 2302 #define __sanitizer_syscall_post___lutimes50(res, path, tptr) \ 2303 __sanitizer_syscall_post_impl___lutimes50(res, (long long)(path), \ 2304 (long long)(tptr)) 2305 #define __sanitizer_syscall_pre___setitimer50(which, itv, oitv) \ 2306 __sanitizer_syscall_pre_impl___setitimer50( \ 2307 (long long)(which), (long long)(itv), (long long)(oitv)) 2308 #define __sanitizer_syscall_post___setitimer50(res, which, itv, oitv) \ 2309 __sanitizer_syscall_post_impl___setitimer50( \ 2310 res, (long long)(which), (long long)(itv), (long long)(oitv)) 2311 #define __sanitizer_syscall_pre___getitimer50(which, itv) \ 2312 __sanitizer_syscall_pre_impl___getitimer50((long long)(which), \ 2313 (long long)(itv)) 2314 #define __sanitizer_syscall_post___getitimer50(res, which, itv) \ 2315 __sanitizer_syscall_post_impl___getitimer50(res, (long long)(which), \ 2316 (long long)(itv)) 2317 #define __sanitizer_syscall_pre___clock_gettime50(clock_id, tp) \ 2318 __sanitizer_syscall_pre_impl___clock_gettime50((long long)(clock_id), \ 2319 (long long)(tp)) 2320 #define __sanitizer_syscall_post___clock_gettime50(res, clock_id, tp) \ 2321 __sanitizer_syscall_post_impl___clock_gettime50(res, (long long)(clock_id), \ 2322 (long long)(tp)) 2323 #define __sanitizer_syscall_pre___clock_settime50(clock_id, tp) \ 2324 __sanitizer_syscall_pre_impl___clock_settime50((long long)(clock_id), \ 2325 (long long)(tp)) 2326 #define __sanitizer_syscall_post___clock_settime50(res, clock_id, tp) \ 2327 __sanitizer_syscall_post_impl___clock_settime50(res, (long long)(clock_id), \ 2328 (long long)(tp)) 2329 #define __sanitizer_syscall_pre___clock_getres50(clock_id, tp) \ 2330 __sanitizer_syscall_pre_impl___clock_getres50((long long)(clock_id), \ 2331 (long long)(tp)) 2332 #define __sanitizer_syscall_post___clock_getres50(res, clock_id, tp) \ 2333 __sanitizer_syscall_post_impl___clock_getres50(res, (long long)(clock_id), \ 2334 (long long)(tp)) 2335 #define __sanitizer_syscall_pre___nanosleep50(rqtp, rmtp) \ 2336 __sanitizer_syscall_pre_impl___nanosleep50((long long)(rqtp), \ 2337 (long long)(rmtp)) 2338 #define __sanitizer_syscall_post___nanosleep50(res, rqtp, rmtp) \ 2339 __sanitizer_syscall_post_impl___nanosleep50(res, (long long)(rqtp), \ 2340 (long long)(rmtp)) 2341 #define __sanitizer_syscall_pre_____sigtimedwait50(set, info, timeout) \ 2342 __sanitizer_syscall_pre_impl_____sigtimedwait50( \ 2343 (long long)(set), (long long)(info), (long long)(timeout)) 2344 #define __sanitizer_syscall_post_____sigtimedwait50(res, set, info, timeout) \ 2345 __sanitizer_syscall_post_impl_____sigtimedwait50( \ 2346 res, (long long)(set), (long long)(info), (long long)(timeout)) 2347 #define __sanitizer_syscall_pre___mq_timedsend50(mqdes, msg_ptr, msg_len, \ 2348 msg_prio, abs_timeout) \ 2349 __sanitizer_syscall_pre_impl___mq_timedsend50( \ 2350 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 2351 (long long)(msg_prio), (long long)(abs_timeout)) 2352 #define __sanitizer_syscall_post___mq_timedsend50( \ 2353 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 2354 __sanitizer_syscall_post_impl___mq_timedsend50( \ 2355 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 2356 (long long)(msg_prio), (long long)(abs_timeout)) 2357 #define __sanitizer_syscall_pre___mq_timedreceive50(mqdes, msg_ptr, msg_len, \ 2358 msg_prio, abs_timeout) \ 2359 __sanitizer_syscall_pre_impl___mq_timedreceive50( \ 2360 (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 2361 (long long)(msg_prio), (long long)(abs_timeout)) 2362 #define __sanitizer_syscall_post___mq_timedreceive50( \ 2363 res, mqdes, msg_ptr, msg_len, msg_prio, abs_timeout) \ 2364 __sanitizer_syscall_post_impl___mq_timedreceive50( \ 2365 res, (long long)(mqdes), (long long)(msg_ptr), (long long)(msg_len), \ 2366 (long long)(msg_prio), (long long)(abs_timeout)) 2367 #define __sanitizer_syscall_pre_compat_60__lwp_park(ts, unpark, hint, \ 2368 unparkhint) \ 2369 __sanitizer_syscall_pre_impl_compat_60__lwp_park( \ 2370 (long long)(ts), (long long)(unpark), (long long)(hint), \ 2371 (long long)(unparkhint)) 2372 #define __sanitizer_syscall_post_compat_60__lwp_park(res, ts, unpark, hint, \ 2373 unparkhint) \ 2374 __sanitizer_syscall_post_impl_compat_60__lwp_park( \ 2375 res, (long long)(ts), (long long)(unpark), (long long)(hint), \ 2376 (long long)(unparkhint)) 2377 #define __sanitizer_syscall_pre___kevent50(fd, changelist, nchanges, \ 2378 eventlist, nevents, timeout) \ 2379 __sanitizer_syscall_pre_impl___kevent50( \ 2380 (long long)(fd), (long long)(changelist), (long long)(nchanges), \ 2381 (long long)(eventlist), (long long)(nevents), (long long)(timeout)) 2382 #define __sanitizer_syscall_post___kevent50(res, fd, changelist, nchanges, \ 2383 eventlist, nevents, timeout) \ 2384 __sanitizer_syscall_post_impl___kevent50( \ 2385 res, (long long)(fd), (long long)(changelist), (long long)(nchanges), \ 2386 (long long)(eventlist), (long long)(nevents), (long long)(timeout)) 2387 #define __sanitizer_syscall_pre___pselect50(nd, in, ou, ex, ts, mask) \ 2388 __sanitizer_syscall_pre_impl___pselect50((long long)(nd), (long long)(in), \ 2389 (long long)(ou), (long long)(ex), \ 2390 (long long)(ts), (long long)(mask)) 2391 #define __sanitizer_syscall_post___pselect50(res, nd, in, ou, ex, ts, mask) \ 2392 __sanitizer_syscall_post_impl___pselect50( \ 2393 res, (long long)(nd), (long long)(in), (long long)(ou), (long long)(ex), \ 2394 (long long)(ts), (long long)(mask)) 2395 #define __sanitizer_syscall_pre___pollts50(fds, nfds, ts, mask) \ 2396 __sanitizer_syscall_pre_impl___pollts50((long long)(fds), (long long)(nfds), \ 2397 (long long)(ts), (long long)(mask)) 2398 #define __sanitizer_syscall_post___pollts50(res, fds, nfds, ts, mask) \ 2399 __sanitizer_syscall_post_impl___pollts50(res, (long long)(fds), \ 2400 (long long)(nfds), (long long)(ts), \ 2401 (long long)(mask)) 2402 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \ 2403 __sanitizer_syscall_pre_impl___aio_suspend50( \ 2404 (long long)(list), (long long)(nent), (long long)(timeout)) 2405 #define __sanitizer_syscall_post___aio_suspend50(res, list, nent, timeout) \ 2406 __sanitizer_syscall_post_impl___aio_suspend50( \ 2407 res, (long long)(list), (long long)(nent), (long long)(timeout)) 2408 #define __sanitizer_syscall_pre___stat50(path, ub) \ 2409 __sanitizer_syscall_pre_impl___stat50((long long)(path), (long long)(ub)) 2410 #define __sanitizer_syscall_post___stat50(res, path, ub) \ 2411 __sanitizer_syscall_post_impl___stat50(res, (long long)(path), \ 2412 (long long)(ub)) 2413 #define __sanitizer_syscall_pre___fstat50(fd, sb) \ 2414 __sanitizer_syscall_pre_impl___fstat50((long long)(fd), (long long)(sb)) 2415 #define __sanitizer_syscall_post___fstat50(res, fd, sb) \ 2416 __sanitizer_syscall_post_impl___fstat50(res, (long long)(fd), (long long)(sb)) 2417 #define __sanitizer_syscall_pre___lstat50(path, ub) \ 2418 __sanitizer_syscall_pre_impl___lstat50((long long)(path), (long long)(ub)) 2419 #define __sanitizer_syscall_post___lstat50(res, path, ub) \ 2420 __sanitizer_syscall_post_impl___lstat50(res, (long long)(path), \ 2421 (long long)(ub)) 2422 #define __sanitizer_syscall_pre_____semctl50(semid, semnum, cmd, arg) \ 2423 __sanitizer_syscall_pre_impl_____semctl50( \ 2424 (long long)(semid), (long long)(semnum), (long long)(cmd), \ 2425 (long long)(arg)) 2426 #define __sanitizer_syscall_post_____semctl50(res, semid, semnum, cmd, arg) \ 2427 __sanitizer_syscall_post_impl_____semctl50( \ 2428 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \ 2429 (long long)(arg)) 2430 #define __sanitizer_syscall_pre___shmctl50(shmid, cmd, buf) \ 2431 __sanitizer_syscall_pre_impl___shmctl50((long long)(shmid), \ 2432 (long long)(cmd), (long long)(buf)) 2433 #define __sanitizer_syscall_post___shmctl50(res, shmid, cmd, buf) \ 2434 __sanitizer_syscall_post_impl___shmctl50(res, (long long)(shmid), \ 2435 (long long)(cmd), (long long)(buf)) 2436 #define __sanitizer_syscall_pre___msgctl50(msqid, cmd, buf) \ 2437 __sanitizer_syscall_pre_impl___msgctl50((long long)(msqid), \ 2438 (long long)(cmd), (long long)(buf)) 2439 #define __sanitizer_syscall_post___msgctl50(res, msqid, cmd, buf) \ 2440 __sanitizer_syscall_post_impl___msgctl50(res, (long long)(msqid), \ 2441 (long long)(cmd), (long long)(buf)) 2442 #define __sanitizer_syscall_pre___getrusage50(who, rusage) \ 2443 __sanitizer_syscall_pre_impl___getrusage50((long long)(who), \ 2444 (long long)(rusage)) 2445 #define __sanitizer_syscall_post___getrusage50(res, who, rusage) \ 2446 __sanitizer_syscall_post_impl___getrusage50(res, (long long)(who), \ 2447 (long long)(rusage)) 2448 #define __sanitizer_syscall_pre___timer_settime50(timerid, flags, value, \ 2449 ovalue) \ 2450 __sanitizer_syscall_pre_impl___timer_settime50( \ 2451 (long long)(timerid), (long long)(flags), (long long)(value), \ 2452 (long long)(ovalue)) 2453 #define __sanitizer_syscall_post___timer_settime50(res, timerid, flags, value, \ 2454 ovalue) \ 2455 __sanitizer_syscall_post_impl___timer_settime50( \ 2456 res, (long long)(timerid), (long long)(flags), (long long)(value), \ 2457 (long long)(ovalue)) 2458 #define __sanitizer_syscall_pre___timer_gettime50(timerid, value) \ 2459 __sanitizer_syscall_pre_impl___timer_gettime50((long long)(timerid), \ 2460 (long long)(value)) 2461 #define __sanitizer_syscall_post___timer_gettime50(res, timerid, value) \ 2462 __sanitizer_syscall_post_impl___timer_gettime50(res, (long long)(timerid), \ 2463 (long long)(value)) 2464 #if defined(NTP) || !defined(_KERNEL_OPT) 2465 #define __sanitizer_syscall_pre___ntp_gettime50(ntvp) \ 2466 __sanitizer_syscall_pre_impl___ntp_gettime50((long long)(ntvp)) 2467 #define __sanitizer_syscall_post___ntp_gettime50(res, ntvp) \ 2468 __sanitizer_syscall_post_impl___ntp_gettime50(res, (long long)(ntvp)) 2469 #else 2470 /* syscall 448 has been skipped */ 2471 #endif 2472 #define __sanitizer_syscall_pre___wait450(pid, status, options, rusage) \ 2473 __sanitizer_syscall_pre_impl___wait450( \ 2474 (long long)(pid), (long long)(status), (long long)(options), \ 2475 (long long)(rusage)) 2476 #define __sanitizer_syscall_post___wait450(res, pid, status, options, rusage) \ 2477 __sanitizer_syscall_post_impl___wait450( \ 2478 res, (long long)(pid), (long long)(status), (long long)(options), \ 2479 (long long)(rusage)) 2480 #define __sanitizer_syscall_pre___mknod50(path, mode, dev) \ 2481 __sanitizer_syscall_pre_impl___mknod50((long long)(path), (long long)(mode), \ 2482 (long long)(dev)) 2483 #define __sanitizer_syscall_post___mknod50(res, path, mode, dev) \ 2484 __sanitizer_syscall_post_impl___mknod50(res, (long long)(path), \ 2485 (long long)(mode), (long long)(dev)) 2486 #define __sanitizer_syscall_pre___fhstat50(fhp, fh_size, sb) \ 2487 __sanitizer_syscall_pre_impl___fhstat50( \ 2488 (long long)(fhp), (long long)(fh_size), (long long)(sb)) 2489 #define __sanitizer_syscall_post___fhstat50(res, fhp, fh_size, sb) \ 2490 __sanitizer_syscall_post_impl___fhstat50( \ 2491 res, (long long)(fhp), (long long)(fh_size), (long long)(sb)) 2492 /* syscall 452 has been skipped */ 2493 #define __sanitizer_syscall_pre_pipe2(fildes, flags) \ 2494 __sanitizer_syscall_pre_impl_pipe2((long long)(fildes), (long long)(flags)) 2495 #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \ 2496 __sanitizer_syscall_post_impl_pipe2(res, (long long)(fildes), \ 2497 (long long)(flags)) 2498 #define __sanitizer_syscall_pre_dup3(from, to, flags) \ 2499 __sanitizer_syscall_pre_impl_dup3((long long)(from), (long long)(to), \ 2500 (long long)(flags)) 2501 #define __sanitizer_syscall_post_dup3(res, from, to, flags) \ 2502 __sanitizer_syscall_post_impl_dup3(res, (long long)(from), (long long)(to), \ 2503 (long long)(flags)) 2504 #define __sanitizer_syscall_pre_kqueue1(flags) \ 2505 __sanitizer_syscall_pre_impl_kqueue1((long long)(flags)) 2506 #define __sanitizer_syscall_post_kqueue1(res, flags) \ 2507 __sanitizer_syscall_post_impl_kqueue1(res, (long long)(flags)) 2508 #define __sanitizer_syscall_pre_paccept(s, name, anamelen, mask, flags) \ 2509 __sanitizer_syscall_pre_impl_paccept((long long)(s), (long long)(name), \ 2510 (long long)(anamelen), \ 2511 (long long)(mask), (long long)(flags)) 2512 #define __sanitizer_syscall_post_paccept(res, s, name, anamelen, mask, flags) \ 2513 __sanitizer_syscall_post_impl_paccept( \ 2514 res, (long long)(s), (long long)(name), (long long)(anamelen), \ 2515 (long long)(mask), (long long)(flags)) 2516 #define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags) \ 2517 __sanitizer_syscall_pre_impl_linkat((long long)(fd1), (long long)(name1), \ 2518 (long long)(fd2), (long long)(name2), \ 2519 (long long)(flags)) 2520 #define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags) \ 2521 __sanitizer_syscall_post_impl_linkat(res, (long long)(fd1), \ 2522 (long long)(name1), (long long)(fd2), \ 2523 (long long)(name2), (long long)(flags)) 2524 #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \ 2525 __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \ 2526 (long long)(from), (long long)(tofd), \ 2527 (long long)(to)) 2528 #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \ 2529 __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \ 2530 (long long)(from), (long long)(tofd), \ 2531 (long long)(to)) 2532 #define __sanitizer_syscall_pre_mkfifoat(fd, path, mode) \ 2533 __sanitizer_syscall_pre_impl_mkfifoat((long long)(fd), (long long)(path), \ 2534 (long long)(mode)) 2535 #define __sanitizer_syscall_post_mkfifoat(res, fd, path, mode) \ 2536 __sanitizer_syscall_post_impl_mkfifoat(res, (long long)(fd), \ 2537 (long long)(path), (long long)(mode)) 2538 #define __sanitizer_syscall_pre_mknodat(fd, path, mode, PAD, dev) \ 2539 __sanitizer_syscall_pre_impl_mknodat((long long)(fd), (long long)(path), \ 2540 (long long)(mode), (long long)(PAD), \ 2541 (long long)(dev)) 2542 #define __sanitizer_syscall_post_mknodat(res, fd, path, mode, PAD, dev) \ 2543 __sanitizer_syscall_post_impl_mknodat(res, (long long)(fd), \ 2544 (long long)(path), (long long)(mode), \ 2545 (long long)(PAD), (long long)(dev)) 2546 #define __sanitizer_syscall_pre_mkdirat(fd, path, mode) \ 2547 __sanitizer_syscall_pre_impl_mkdirat((long long)(fd), (long long)(path), \ 2548 (long long)(mode)) 2549 #define __sanitizer_syscall_post_mkdirat(res, fd, path, mode) \ 2550 __sanitizer_syscall_post_impl_mkdirat(res, (long long)(fd), \ 2551 (long long)(path), (long long)(mode)) 2552 #define __sanitizer_syscall_pre_faccessat(fd, path, amode, flag) \ 2553 __sanitizer_syscall_pre_impl_faccessat((long long)(fd), (long long)(path), \ 2554 (long long)(amode), \ 2555 (long long)(flag)) 2556 #define __sanitizer_syscall_post_faccessat(res, fd, path, amode, flag) \ 2557 __sanitizer_syscall_post_impl_faccessat( \ 2558 res, (long long)(fd), (long long)(path), (long long)(amode), \ 2559 (long long)(flag)) 2560 #define __sanitizer_syscall_pre_fchmodat(fd, path, mode, flag) \ 2561 __sanitizer_syscall_pre_impl_fchmodat((long long)(fd), (long long)(path), \ 2562 (long long)(mode), (long long)(flag)) 2563 #define __sanitizer_syscall_post_fchmodat(res, fd, path, mode, flag) \ 2564 __sanitizer_syscall_post_impl_fchmodat(res, (long long)(fd), \ 2565 (long long)(path), (long long)(mode), \ 2566 (long long)(flag)) 2567 #define __sanitizer_syscall_pre_fchownat(fd, path, owner, group, flag) \ 2568 __sanitizer_syscall_pre_impl_fchownat((long long)(fd), (long long)(path), \ 2569 (long long)(owner), \ 2570 (long long)(group), (long long)(flag)) 2571 #define __sanitizer_syscall_post_fchownat(res, fd, path, owner, group, flag) \ 2572 __sanitizer_syscall_post_impl_fchownat( \ 2573 res, (long long)(fd), (long long)(path), (long long)(owner), \ 2574 (long long)(group), (long long)(flag)) 2575 #define __sanitizer_syscall_pre_fexecve(fd, argp, envp) \ 2576 __sanitizer_syscall_pre_impl_fexecve((long long)(fd), (long long)(argp), \ 2577 (long long)(envp)) 2578 #define __sanitizer_syscall_post_fexecve(res, fd, argp, envp) \ 2579 __sanitizer_syscall_post_impl_fexecve(res, (long long)(fd), \ 2580 (long long)(argp), (long long)(envp)) 2581 #define __sanitizer_syscall_pre_fstatat(fd, path, buf, flag) \ 2582 __sanitizer_syscall_pre_impl_fstatat((long long)(fd), (long long)(path), \ 2583 (long long)(buf), (long long)(flag)) 2584 #define __sanitizer_syscall_post_fstatat(res, fd, path, buf, flag) \ 2585 __sanitizer_syscall_post_impl_fstatat(res, (long long)(fd), \ 2586 (long long)(path), (long long)(buf), \ 2587 (long long)(flag)) 2588 #define __sanitizer_syscall_pre_utimensat(fd, path, tptr, flag) \ 2589 __sanitizer_syscall_pre_impl_utimensat((long long)(fd), (long long)(path), \ 2590 (long long)(tptr), (long long)(flag)) 2591 #define __sanitizer_syscall_post_utimensat(res, fd, path, tptr, flag) \ 2592 __sanitizer_syscall_post_impl_utimensat( \ 2593 res, (long long)(fd), (long long)(path), (long long)(tptr), \ 2594 (long long)(flag)) 2595 #define __sanitizer_syscall_pre_openat(fd, path, oflags, mode) \ 2596 __sanitizer_syscall_pre_impl_openat((long long)(fd), (long long)(path), \ 2597 (long long)(oflags), (long long)(mode)) 2598 #define __sanitizer_syscall_post_openat(res, fd, path, oflags, mode) \ 2599 __sanitizer_syscall_post_impl_openat(res, (long long)(fd), \ 2600 (long long)(path), (long long)(oflags), \ 2601 (long long)(mode)) 2602 #define __sanitizer_syscall_pre_readlinkat(fd, path, buf, bufsize) \ 2603 __sanitizer_syscall_pre_impl_readlinkat((long long)(fd), (long long)(path), \ 2604 (long long)(buf), \ 2605 (long long)(bufsize)) 2606 #define __sanitizer_syscall_post_readlinkat(res, fd, path, buf, bufsize) \ 2607 __sanitizer_syscall_post_impl_readlinkat( \ 2608 res, (long long)(fd), (long long)(path), (long long)(buf), \ 2609 (long long)(bufsize)) 2610 #define __sanitizer_syscall_pre_symlinkat(path1, fd, path2) \ 2611 __sanitizer_syscall_pre_impl_symlinkat((long long)(path1), (long long)(fd), \ 2612 (long long)(path2)) 2613 #define __sanitizer_syscall_post_symlinkat(res, path1, fd, path2) \ 2614 __sanitizer_syscall_post_impl_symlinkat(res, (long long)(path1), \ 2615 (long long)(fd), (long long)(path2)) 2616 #define __sanitizer_syscall_pre_unlinkat(fd, path, flag) \ 2617 __sanitizer_syscall_pre_impl_unlinkat((long long)(fd), (long long)(path), \ 2618 (long long)(flag)) 2619 #define __sanitizer_syscall_post_unlinkat(res, fd, path, flag) \ 2620 __sanitizer_syscall_post_impl_unlinkat(res, (long long)(fd), \ 2621 (long long)(path), (long long)(flag)) 2622 #define __sanitizer_syscall_pre_futimens(fd, tptr) \ 2623 __sanitizer_syscall_pre_impl_futimens((long long)(fd), (long long)(tptr)) 2624 #define __sanitizer_syscall_post_futimens(res, fd, tptr) \ 2625 __sanitizer_syscall_post_impl_futimens(res, (long long)(fd), \ 2626 (long long)(tptr)) 2627 #define __sanitizer_syscall_pre___quotactl(path, args) \ 2628 __sanitizer_syscall_pre_impl___quotactl((long long)(path), (long long)(args)) 2629 #define __sanitizer_syscall_post___quotactl(res, path, args) \ 2630 __sanitizer_syscall_post_impl___quotactl(res, (long long)(path), \ 2631 (long long)(args)) 2632 #define __sanitizer_syscall_pre_posix_spawn(pid, path, file_actions, attrp, \ 2633 argv, envp) \ 2634 __sanitizer_syscall_pre_impl_posix_spawn( \ 2635 (long long)(pid), (long long)(path), (long long)(file_actions), \ 2636 (long long)(attrp), (long long)(argv), (long long)(envp)) 2637 #define __sanitizer_syscall_post_posix_spawn(res, pid, path, file_actions, \ 2638 attrp, argv, envp) \ 2639 __sanitizer_syscall_post_impl_posix_spawn( \ 2640 res, (long long)(pid), (long long)(path), (long long)(file_actions), \ 2641 (long long)(attrp), (long long)(argv), (long long)(envp)) 2642 #define __sanitizer_syscall_pre_recvmmsg(s, mmsg, vlen, flags, timeout) \ 2643 __sanitizer_syscall_pre_impl_recvmmsg((long long)(s), (long long)(mmsg), \ 2644 (long long)(vlen), (long long)(flags), \ 2645 (long long)(timeout)) 2646 #define __sanitizer_syscall_post_recvmmsg(res, s, mmsg, vlen, flags, timeout) \ 2647 __sanitizer_syscall_post_impl_recvmmsg( \ 2648 res, (long long)(s), (long long)(mmsg), (long long)(vlen), \ 2649 (long long)(flags), (long long)(timeout)) 2650 #define __sanitizer_syscall_pre_sendmmsg(s, mmsg, vlen, flags) \ 2651 __sanitizer_syscall_pre_impl_sendmmsg((long long)(s), (long long)(mmsg), \ 2652 (long long)(vlen), (long long)(flags)) 2653 #define __sanitizer_syscall_post_sendmmsg(res, s, mmsg, vlen, flags) \ 2654 __sanitizer_syscall_post_impl_sendmmsg(res, (long long)(s), \ 2655 (long long)(mmsg), (long long)(vlen), \ 2656 (long long)(flags)) 2657 #define __sanitizer_syscall_pre_clock_nanosleep(clock_id, flags, rqtp, rmtp) \ 2658 __sanitizer_syscall_pre_impl_clock_nanosleep( \ 2659 (long long)(clock_id), (long long)(flags), (long long)(rqtp), \ 2660 (long long)(rmtp)) 2661 #define __sanitizer_syscall_post_clock_nanosleep(res, clock_id, flags, rqtp, \ 2662 rmtp) \ 2663 __sanitizer_syscall_post_impl_clock_nanosleep( \ 2664 res, (long long)(clock_id), (long long)(flags), (long long)(rqtp), \ 2665 (long long)(rmtp)) 2666 #define __sanitizer_syscall_pre____lwp_park60(clock_id, flags, ts, unpark, \ 2667 hint, unparkhint) \ 2668 __sanitizer_syscall_pre_impl____lwp_park60( \ 2669 (long long)(clock_id), (long long)(flags), (long long)(ts), \ 2670 (long long)(unpark), (long long)(hint), (long long)(unparkhint)) 2671 #define __sanitizer_syscall_post____lwp_park60(res, clock_id, flags, ts, \ 2672 unpark, hint, unparkhint) \ 2673 __sanitizer_syscall_post_impl____lwp_park60( \ 2674 res, (long long)(clock_id), (long long)(flags), (long long)(ts), \ 2675 (long long)(unpark), (long long)(hint), (long long)(unparkhint)) 2676 #define __sanitizer_syscall_pre_posix_fallocate(fd, PAD, pos, len) \ 2677 __sanitizer_syscall_pre_impl_posix_fallocate( \ 2678 (long long)(fd), (long long)(PAD), (long long)(pos), (long long)(len)) 2679 #define __sanitizer_syscall_post_posix_fallocate(res, fd, PAD, pos, len) \ 2680 __sanitizer_syscall_post_impl_posix_fallocate( \ 2681 res, (long long)(fd), (long long)(PAD), (long long)(pos), \ 2682 (long long)(len)) 2683 #define __sanitizer_syscall_pre_fdiscard(fd, PAD, pos, len) \ 2684 __sanitizer_syscall_pre_impl_fdiscard((long long)(fd), (long long)(PAD), \ 2685 (long long)(pos), (long long)(len)) 2686 #define __sanitizer_syscall_post_fdiscard(res, fd, PAD, pos, len) \ 2687 __sanitizer_syscall_post_impl_fdiscard(res, (long long)(fd), \ 2688 (long long)(PAD), (long long)(pos), \ 2689 (long long)(len)) 2690 #define __sanitizer_syscall_pre_wait6(idtype, id, status, options, wru, info) \ 2691 __sanitizer_syscall_pre_impl_wait6( \ 2692 (long long)(idtype), (long long)(id), (long long)(status), \ 2693 (long long)(options), (long long)(wru), (long long)(info)) 2694 #define __sanitizer_syscall_post_wait6(res, idtype, id, status, options, wru, \ 2695 info) \ 2696 __sanitizer_syscall_post_impl_wait6( \ 2697 res, (long long)(idtype), (long long)(id), (long long)(status), \ 2698 (long long)(options), (long long)(wru), (long long)(info)) 2699 #define __sanitizer_syscall_pre_clock_getcpuclockid2(idtype, id, clock_id) \ 2700 __sanitizer_syscall_pre_impl_clock_getcpuclockid2( \ 2701 (long long)(idtype), (long long)(id), (long long)(clock_id)) 2702 #define __sanitizer_syscall_post_clock_getcpuclockid2(res, idtype, id, \ 2703 clock_id) \ 2704 __sanitizer_syscall_post_impl_clock_getcpuclockid2( \ 2705 res, (long long)(idtype), (long long)(id), (long long)(clock_id)) 2706 2707 #ifdef __cplusplus 2708 extern "C" { 2709 #endif 2710 2711 // Private declarations. Do not call directly from user code. Use macros above. 2712 2713 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED! 2714 2715 void __sanitizer_syscall_pre_impl_syscall(long long code, long long arg0, 2716 long long arg1, long long arg2, 2717 long long arg3, long long arg4, 2718 long long arg5, long long arg6, 2719 long long arg7); 2720 void __sanitizer_syscall_post_impl_syscall(long long res, long long code, 2721 long long arg0, long long arg1, 2722 long long arg2, long long arg3, 2723 long long arg4, long long arg5, 2724 long long arg6, long long arg7); 2725 void __sanitizer_syscall_pre_impl_exit(long long rval); 2726 void __sanitizer_syscall_post_impl_exit(long long res, long long rval); 2727 void __sanitizer_syscall_pre_impl_fork(void); 2728 void __sanitizer_syscall_post_impl_fork(long long res); 2729 void __sanitizer_syscall_pre_impl_read(long long fd, long long buf, 2730 long long nbyte); 2731 void __sanitizer_syscall_post_impl_read(long long res, long long fd, 2732 long long buf, long long nbyte); 2733 void __sanitizer_syscall_pre_impl_write(long long fd, long long buf, 2734 long long nbyte); 2735 void __sanitizer_syscall_post_impl_write(long long res, long long fd, 2736 long long buf, long long nbyte); 2737 void __sanitizer_syscall_pre_impl_open(long long path, long long flags, 2738 long long mode); 2739 void __sanitizer_syscall_post_impl_open(long long res, long long path, 2740 long long flags, long long mode); 2741 void __sanitizer_syscall_pre_impl_close(long long fd); 2742 void __sanitizer_syscall_post_impl_close(long long res, long long fd); 2743 void __sanitizer_syscall_pre_impl_compat_50_wait4(long long pid, 2744 long long status, 2745 long long options, 2746 long long rusage); 2747 void __sanitizer_syscall_post_impl_compat_50_wait4(long long res, long long pid, 2748 long long status, 2749 long long options, 2750 long long rusage); 2751 void __sanitizer_syscall_pre_impl_compat_43_ocreat(long long path, 2752 long long mode); 2753 void __sanitizer_syscall_post_impl_compat_43_ocreat(long long res, 2754 long long path, 2755 long long mode); 2756 void __sanitizer_syscall_pre_impl_link(long long path, long long link); 2757 void __sanitizer_syscall_post_impl_link(long long res, long long path, 2758 long long link); 2759 void __sanitizer_syscall_pre_impl_unlink(long long path); 2760 void __sanitizer_syscall_post_impl_unlink(long long res, long long path); 2761 /* syscall 11 has been skipped */ 2762 void __sanitizer_syscall_pre_impl_chdir(long long path); 2763 void __sanitizer_syscall_post_impl_chdir(long long res, long long path); 2764 void __sanitizer_syscall_pre_impl_fchdir(long long fd); 2765 void __sanitizer_syscall_post_impl_fchdir(long long res, long long fd); 2766 void __sanitizer_syscall_pre_impl_compat_50_mknod(long long path, 2767 long long mode, 2768 long long dev); 2769 void __sanitizer_syscall_post_impl_compat_50_mknod(long long res, 2770 long long path, 2771 long long mode, 2772 long long dev); 2773 void __sanitizer_syscall_pre_impl_chmod(long long path, long long mode); 2774 void __sanitizer_syscall_post_impl_chmod(long long res, long long path, 2775 long long mode); 2776 void __sanitizer_syscall_pre_impl_chown(long long path, long long uid, 2777 long long gid); 2778 void __sanitizer_syscall_post_impl_chown(long long res, long long path, 2779 long long uid, long long gid); 2780 void __sanitizer_syscall_pre_impl_break(long long nsize); 2781 void __sanitizer_syscall_post_impl_break(long long res, long long nsize); 2782 void __sanitizer_syscall_pre_impl_compat_20_getfsstat(long long buf, 2783 long long bufsize, 2784 long long flags); 2785 void __sanitizer_syscall_post_impl_compat_20_getfsstat(long long res, 2786 long long buf, 2787 long long bufsize, 2788 long long flags); 2789 void __sanitizer_syscall_pre_impl_compat_43_olseek(long long fd, 2790 long long offset, 2791 long long whence); 2792 void __sanitizer_syscall_post_impl_compat_43_olseek(long long res, long long fd, 2793 long long offset, 2794 long long whence); 2795 void __sanitizer_syscall_pre_impl_getpid(void); 2796 void __sanitizer_syscall_post_impl_getpid(long long res); 2797 void __sanitizer_syscall_pre_impl_compat_40_mount(long long type, 2798 long long path, 2799 long long flags, 2800 long long data); 2801 void __sanitizer_syscall_post_impl_compat_40_mount(long long res, 2802 long long type, 2803 long long path, 2804 long long flags, 2805 long long data); 2806 void __sanitizer_syscall_pre_impl_unmount(long long path, long long flags); 2807 void __sanitizer_syscall_post_impl_unmount(long long res, long long path, 2808 long long flags); 2809 void __sanitizer_syscall_pre_impl_setuid(long long uid); 2810 void __sanitizer_syscall_post_impl_setuid(long long res, long long uid); 2811 void __sanitizer_syscall_pre_impl_getuid(void); 2812 void __sanitizer_syscall_post_impl_getuid(long long res); 2813 void __sanitizer_syscall_pre_impl_geteuid(void); 2814 void __sanitizer_syscall_post_impl_geteuid(long long res); 2815 void __sanitizer_syscall_pre_impl_ptrace(long long req, long long pid, 2816 long long addr, long long data); 2817 void __sanitizer_syscall_post_impl_ptrace(long long res, long long req, 2818 long long pid, long long addr, 2819 long long data); 2820 void __sanitizer_syscall_pre_impl_recvmsg(long long s, long long msg, 2821 long long flags); 2822 void __sanitizer_syscall_post_impl_recvmsg(long long res, long long s, 2823 long long msg, long long flags); 2824 void __sanitizer_syscall_pre_impl_sendmsg(long long s, long long msg, 2825 long long flags); 2826 void __sanitizer_syscall_post_impl_sendmsg(long long res, long long s, 2827 long long msg, long long flags); 2828 void __sanitizer_syscall_pre_impl_recvfrom(long long s, long long buf, 2829 long long len, long long flags, 2830 long long from, 2831 long long fromlenaddr); 2832 void __sanitizer_syscall_post_impl_recvfrom(long long res, long long s, 2833 long long buf, long long len, 2834 long long flags, long long from, 2835 long long fromlenaddr); 2836 void __sanitizer_syscall_pre_impl_accept(long long s, long long name, 2837 long long anamelen); 2838 void __sanitizer_syscall_post_impl_accept(long long res, long long s, 2839 long long name, long long anamelen); 2840 void __sanitizer_syscall_pre_impl_getpeername(long long fdes, long long asa, 2841 long long alen); 2842 void __sanitizer_syscall_post_impl_getpeername(long long res, long long fdes, 2843 long long asa, long long alen); 2844 void __sanitizer_syscall_pre_impl_getsockname(long long fdes, long long asa, 2845 long long alen); 2846 void __sanitizer_syscall_post_impl_getsockname(long long res, long long fdes, 2847 long long asa, long long alen); 2848 void __sanitizer_syscall_pre_impl_access(long long path, long long flags); 2849 void __sanitizer_syscall_post_impl_access(long long res, long long path, 2850 long long flags); 2851 void __sanitizer_syscall_pre_impl_chflags(long long path, long long flags); 2852 void __sanitizer_syscall_post_impl_chflags(long long res, long long path, 2853 long long flags); 2854 void __sanitizer_syscall_pre_impl_fchflags(long long fd, long long flags); 2855 void __sanitizer_syscall_post_impl_fchflags(long long res, long long fd, 2856 long long flags); 2857 void __sanitizer_syscall_pre_impl_sync(void); 2858 void __sanitizer_syscall_post_impl_sync(long long res); 2859 void __sanitizer_syscall_pre_impl_kill(long long pid, long long signum); 2860 void __sanitizer_syscall_post_impl_kill(long long res, long long pid, 2861 long long signum); 2862 void __sanitizer_syscall_pre_impl_compat_43_stat43(long long path, 2863 long long ub); 2864 void __sanitizer_syscall_post_impl_compat_43_stat43(long long res, 2865 long long path, 2866 long long ub); 2867 void __sanitizer_syscall_pre_impl_getppid(void); 2868 void __sanitizer_syscall_post_impl_getppid(long long res); 2869 void __sanitizer_syscall_pre_impl_compat_43_lstat43(long long path, 2870 long long ub); 2871 void __sanitizer_syscall_post_impl_compat_43_lstat43(long long res, 2872 long long path, 2873 long long ub); 2874 void __sanitizer_syscall_pre_impl_dup(long long fd); 2875 void __sanitizer_syscall_post_impl_dup(long long res, long long fd); 2876 void __sanitizer_syscall_pre_impl_pipe(void); 2877 void __sanitizer_syscall_post_impl_pipe(long long res); 2878 void __sanitizer_syscall_pre_impl_getegid(void); 2879 void __sanitizer_syscall_post_impl_getegid(long long res); 2880 void __sanitizer_syscall_pre_impl_profil(long long samples, long long size, 2881 long long offset, long long scale); 2882 void __sanitizer_syscall_post_impl_profil(long long res, long long samples, 2883 long long size, long long offset, 2884 long long scale); 2885 void __sanitizer_syscall_pre_impl_ktrace(long long fname, long long ops, 2886 long long facs, long long pid); 2887 void __sanitizer_syscall_post_impl_ktrace(long long res, long long fname, 2888 long long ops, long long facs, 2889 long long pid); 2890 void __sanitizer_syscall_pre_impl_compat_13_sigaction13(long long signum, 2891 long long nsa, 2892 long long osa); 2893 void __sanitizer_syscall_post_impl_compat_13_sigaction13(long long res, 2894 long long signum, 2895 long long nsa, 2896 long long osa); 2897 void __sanitizer_syscall_pre_impl_getgid(void); 2898 void __sanitizer_syscall_post_impl_getgid(long long res); 2899 void __sanitizer_syscall_pre_impl_compat_13_sigprocmask13(long long how, 2900 long long mask); 2901 void __sanitizer_syscall_post_impl_compat_13_sigprocmask13(long long res, 2902 long long how, 2903 long long mask); 2904 void __sanitizer_syscall_pre_impl___getlogin(long long namebuf, 2905 long long namelen); 2906 void __sanitizer_syscall_post_impl___getlogin(long long res, long long namebuf, 2907 long long namelen); 2908 void __sanitizer_syscall_pre_impl___setlogin(long long namebuf); 2909 void __sanitizer_syscall_post_impl___setlogin(long long res, long long namebuf); 2910 void __sanitizer_syscall_pre_impl_acct(long long path); 2911 void __sanitizer_syscall_post_impl_acct(long long res, long long path); 2912 void __sanitizer_syscall_pre_impl_compat_13_sigpending13(void); 2913 void __sanitizer_syscall_post_impl_compat_13_sigpending13(long long res); 2914 void __sanitizer_syscall_pre_impl_compat_13_sigaltstack13(long long nss, 2915 long long oss); 2916 void __sanitizer_syscall_post_impl_compat_13_sigaltstack13(long long res, 2917 long long nss, 2918 long long oss); 2919 void __sanitizer_syscall_pre_impl_ioctl(long long fd, long long com, 2920 long long data); 2921 void __sanitizer_syscall_post_impl_ioctl(long long res, long long fd, 2922 long long com, long long data); 2923 void __sanitizer_syscall_pre_impl_compat_12_oreboot(long long opt); 2924 void __sanitizer_syscall_post_impl_compat_12_oreboot(long long res, 2925 long long opt); 2926 void __sanitizer_syscall_pre_impl_revoke(long long path); 2927 void __sanitizer_syscall_post_impl_revoke(long long res, long long path); 2928 void __sanitizer_syscall_pre_impl_symlink(long long path, long long link); 2929 void __sanitizer_syscall_post_impl_symlink(long long res, long long path, 2930 long long link); 2931 void __sanitizer_syscall_pre_impl_readlink(long long path, long long buf, 2932 long long count); 2933 void __sanitizer_syscall_post_impl_readlink(long long res, long long path, 2934 long long buf, long long count); 2935 void __sanitizer_syscall_pre_impl_execve(long long path, long long argp, 2936 long long envp); 2937 void __sanitizer_syscall_post_impl_execve(long long res, long long path, 2938 long long argp, long long envp); 2939 void __sanitizer_syscall_pre_impl_umask(long long newmask); 2940 void __sanitizer_syscall_post_impl_umask(long long res, long long newmask); 2941 void __sanitizer_syscall_pre_impl_chroot(long long path); 2942 void __sanitizer_syscall_post_impl_chroot(long long res, long long path); 2943 void __sanitizer_syscall_pre_impl_compat_43_fstat43(long long fd, long long sb); 2944 void __sanitizer_syscall_post_impl_compat_43_fstat43(long long res, 2945 long long fd, 2946 long long sb); 2947 void __sanitizer_syscall_pre_impl_compat_43_ogetkerninfo(long long op, 2948 long long where, 2949 long long size, 2950 long long arg); 2951 void __sanitizer_syscall_post_impl_compat_43_ogetkerninfo(long long res, 2952 long long op, 2953 long long where, 2954 long long size, 2955 long long arg); 2956 void __sanitizer_syscall_pre_impl_compat_43_ogetpagesize(void); 2957 void __sanitizer_syscall_post_impl_compat_43_ogetpagesize(long long res); 2958 void __sanitizer_syscall_pre_impl_compat_12_msync(long long addr, 2959 long long len); 2960 void __sanitizer_syscall_post_impl_compat_12_msync(long long res, 2961 long long addr, 2962 long long len); 2963 void __sanitizer_syscall_pre_impl_vfork(void); 2964 void __sanitizer_syscall_post_impl_vfork(long long res); 2965 /* syscall 67 has been skipped */ 2966 /* syscall 68 has been skipped */ 2967 /* syscall 69 has been skipped */ 2968 /* syscall 70 has been skipped */ 2969 void __sanitizer_syscall_pre_impl_compat_43_ommap(long long addr, long long len, 2970 long long prot, 2971 long long flags, long long fd, 2972 long long pos); 2973 void __sanitizer_syscall_post_impl_compat_43_ommap( 2974 long long res, long long addr, long long len, long long prot, 2975 long long flags, long long fd, long long pos); 2976 void __sanitizer_syscall_pre_impl_vadvise(long long anom); 2977 void __sanitizer_syscall_post_impl_vadvise(long long res, long long anom); 2978 void __sanitizer_syscall_pre_impl_munmap(long long addr, long long len); 2979 void __sanitizer_syscall_post_impl_munmap(long long res, long long addr, 2980 long long len); 2981 void __sanitizer_syscall_pre_impl_mprotect(long long addr, long long len, 2982 long long prot); 2983 void __sanitizer_syscall_post_impl_mprotect(long long res, long long addr, 2984 long long len, long long prot); 2985 void __sanitizer_syscall_pre_impl_madvise(long long addr, long long len, 2986 long long behav); 2987 void __sanitizer_syscall_post_impl_madvise(long long res, long long addr, 2988 long long len, long long behav); 2989 /* syscall 76 has been skipped */ 2990 /* syscall 77 has been skipped */ 2991 void __sanitizer_syscall_pre_impl_mincore(long long addr, long long len, 2992 long long vec); 2993 void __sanitizer_syscall_post_impl_mincore(long long res, long long addr, 2994 long long len, long long vec); 2995 void __sanitizer_syscall_pre_impl_getgroups(long long gidsetsize, 2996 long long gidset); 2997 void __sanitizer_syscall_post_impl_getgroups(long long res, 2998 long long gidsetsize, 2999 long long gidset); 3000 void __sanitizer_syscall_pre_impl_setgroups(long long gidsetsize, 3001 long long gidset); 3002 void __sanitizer_syscall_post_impl_setgroups(long long res, 3003 long long gidsetsize, 3004 long long gidset); 3005 void __sanitizer_syscall_pre_impl_getpgrp(void); 3006 void __sanitizer_syscall_post_impl_getpgrp(long long res); 3007 void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid); 3008 void __sanitizer_syscall_post_impl_setpgid(long long res, long long pid, 3009 long long pgid); 3010 void __sanitizer_syscall_pre_impl_compat_50_setitimer(long long which, 3011 long long itv, 3012 long long oitv); 3013 void __sanitizer_syscall_post_impl_compat_50_setitimer(long long res, 3014 long long which, 3015 long long itv, 3016 long long oitv); 3017 void __sanitizer_syscall_pre_impl_compat_43_owait(void); 3018 void __sanitizer_syscall_post_impl_compat_43_owait(long long res); 3019 void __sanitizer_syscall_pre_impl_compat_12_oswapon(long long name); 3020 void __sanitizer_syscall_post_impl_compat_12_oswapon(long long res, 3021 long long name); 3022 void __sanitizer_syscall_pre_impl_compat_50_getitimer(long long which, 3023 long long itv); 3024 void __sanitizer_syscall_post_impl_compat_50_getitimer(long long res, 3025 long long which, 3026 long long itv); 3027 void __sanitizer_syscall_pre_impl_compat_43_ogethostname(long long hostname, 3028 long long len); 3029 void __sanitizer_syscall_post_impl_compat_43_ogethostname(long long res, 3030 long long hostname, 3031 long long len); 3032 void __sanitizer_syscall_pre_impl_compat_43_osethostname(long long hostname, 3033 long long len); 3034 void __sanitizer_syscall_post_impl_compat_43_osethostname(long long res, 3035 long long hostname, 3036 long long len); 3037 void __sanitizer_syscall_pre_impl_compat_43_ogetdtablesize(void); 3038 void __sanitizer_syscall_post_impl_compat_43_ogetdtablesize(long long res); 3039 void __sanitizer_syscall_pre_impl_dup2(long long from, long long to); 3040 void __sanitizer_syscall_post_impl_dup2(long long res, long long from, 3041 long long to); 3042 /* syscall 91 has been skipped */ 3043 void __sanitizer_syscall_pre_impl_fcntl(long long fd, long long cmd, 3044 long long arg); 3045 void __sanitizer_syscall_post_impl_fcntl(long long res, long long fd, 3046 long long cmd, long long arg); 3047 void __sanitizer_syscall_pre_impl_compat_50_select(long long nd, long long in, 3048 long long ou, long long ex, 3049 long long tv); 3050 void __sanitizer_syscall_post_impl_compat_50_select(long long res, long long nd, 3051 long long in, long long ou, 3052 long long ex, long long tv); 3053 /* syscall 94 has been skipped */ 3054 void __sanitizer_syscall_pre_impl_fsync(long long fd); 3055 void __sanitizer_syscall_post_impl_fsync(long long res, long long fd); 3056 void __sanitizer_syscall_pre_impl_setpriority(long long which, long long who, 3057 long long prio); 3058 void __sanitizer_syscall_post_impl_setpriority(long long res, long long which, 3059 long long who, long long prio); 3060 void __sanitizer_syscall_pre_impl_compat_30_socket(long long domain, 3061 long long type, 3062 long long protocol); 3063 void __sanitizer_syscall_post_impl_compat_30_socket(long long res, 3064 long long domain, 3065 long long type, 3066 long long protocol); 3067 void __sanitizer_syscall_pre_impl_connect(long long s, long long name, 3068 long long namelen); 3069 void __sanitizer_syscall_post_impl_connect(long long res, long long s, 3070 long long name, long long namelen); 3071 void __sanitizer_syscall_pre_impl_compat_43_oaccept(long long s, long long name, 3072 long long anamelen); 3073 void __sanitizer_syscall_post_impl_compat_43_oaccept(long long res, long long s, 3074 long long name, 3075 long long anamelen); 3076 void __sanitizer_syscall_pre_impl_getpriority(long long which, long long who); 3077 void __sanitizer_syscall_post_impl_getpriority(long long res, long long which, 3078 long long who); 3079 void __sanitizer_syscall_pre_impl_compat_43_osend(long long s, long long buf, 3080 long long len, 3081 long long flags); 3082 void __sanitizer_syscall_post_impl_compat_43_osend(long long res, long long s, 3083 long long buf, long long len, 3084 long long flags); 3085 void __sanitizer_syscall_pre_impl_compat_43_orecv(long long s, long long buf, 3086 long long len, 3087 long long flags); 3088 void __sanitizer_syscall_post_impl_compat_43_orecv(long long res, long long s, 3089 long long buf, long long len, 3090 long long flags); 3091 void __sanitizer_syscall_pre_impl_compat_13_sigreturn13(long long sigcntxp); 3092 void __sanitizer_syscall_post_impl_compat_13_sigreturn13(long long res, 3093 long long sigcntxp); 3094 void __sanitizer_syscall_pre_impl_bind(long long s, long long name, 3095 long long namelen); 3096 void __sanitizer_syscall_post_impl_bind(long long res, long long s, 3097 long long name, long long namelen); 3098 void __sanitizer_syscall_pre_impl_setsockopt(long long s, long long level, 3099 long long name, long long val, 3100 long long valsize); 3101 void __sanitizer_syscall_post_impl_setsockopt(long long res, long long s, 3102 long long level, long long name, 3103 long long val, long long valsize); 3104 void __sanitizer_syscall_pre_impl_listen(long long s, long long backlog); 3105 void __sanitizer_syscall_post_impl_listen(long long res, long long s, 3106 long long backlog); 3107 /* syscall 107 has been skipped */ 3108 void __sanitizer_syscall_pre_impl_compat_43_osigvec(long long signum, 3109 long long nsv, 3110 long long osv); 3111 void __sanitizer_syscall_post_impl_compat_43_osigvec(long long res, 3112 long long signum, 3113 long long nsv, 3114 long long osv); 3115 void __sanitizer_syscall_pre_impl_compat_43_osigblock(long long mask); 3116 void __sanitizer_syscall_post_impl_compat_43_osigblock(long long res, 3117 long long mask); 3118 void __sanitizer_syscall_pre_impl_compat_43_osigsetmask(long long mask); 3119 void __sanitizer_syscall_post_impl_compat_43_osigsetmask(long long res, 3120 long long mask); 3121 void __sanitizer_syscall_pre_impl_compat_13_sigsuspend13(long long mask); 3122 void __sanitizer_syscall_post_impl_compat_13_sigsuspend13(long long res, 3123 long long mask); 3124 void __sanitizer_syscall_pre_impl_compat_43_osigstack(long long nss, 3125 long long oss); 3126 void __sanitizer_syscall_post_impl_compat_43_osigstack(long long res, 3127 long long nss, 3128 long long oss); 3129 void __sanitizer_syscall_pre_impl_compat_43_orecvmsg(long long s, long long msg, 3130 long long flags); 3131 void __sanitizer_syscall_post_impl_compat_43_orecvmsg(long long res, 3132 long long s, 3133 long long msg, 3134 long long flags); 3135 void __sanitizer_syscall_pre_impl_compat_43_osendmsg(long long s, long long msg, 3136 long long flags); 3137 void __sanitizer_syscall_post_impl_compat_43_osendmsg(long long res, 3138 long long s, 3139 long long msg, 3140 long long flags); 3141 /* syscall 115 has been skipped */ 3142 void __sanitizer_syscall_pre_impl_compat_50_gettimeofday(long long tp, 3143 long long tzp); 3144 void __sanitizer_syscall_post_impl_compat_50_gettimeofday(long long res, 3145 long long tp, 3146 long long tzp); 3147 void __sanitizer_syscall_pre_impl_compat_50_getrusage(long long who, 3148 long long rusage); 3149 void __sanitizer_syscall_post_impl_compat_50_getrusage(long long res, 3150 long long who, 3151 long long rusage); 3152 void __sanitizer_syscall_pre_impl_getsockopt(long long s, long long level, 3153 long long name, long long val, 3154 long long avalsize); 3155 void __sanitizer_syscall_post_impl_getsockopt(long long res, long long s, 3156 long long level, long long name, 3157 long long val, 3158 long long avalsize); 3159 /* syscall 119 has been skipped */ 3160 void __sanitizer_syscall_pre_impl_readv(long long fd, long long iovp, 3161 long long iovcnt); 3162 void __sanitizer_syscall_post_impl_readv(long long res, long long fd, 3163 long long iovp, long long iovcnt); 3164 void __sanitizer_syscall_pre_impl_writev(long long fd, long long iovp, 3165 long long iovcnt); 3166 void __sanitizer_syscall_post_impl_writev(long long res, long long fd, 3167 long long iovp, long long iovcnt); 3168 void __sanitizer_syscall_pre_impl_compat_50_settimeofday(long long tv, 3169 long long tzp); 3170 void __sanitizer_syscall_post_impl_compat_50_settimeofday(long long res, 3171 long long tv, 3172 long long tzp); 3173 void __sanitizer_syscall_pre_impl_fchown(long long fd, long long uid, 3174 long long gid); 3175 void __sanitizer_syscall_post_impl_fchown(long long res, long long fd, 3176 long long uid, long long gid); 3177 void __sanitizer_syscall_pre_impl_fchmod(long long fd, long long mode); 3178 void __sanitizer_syscall_post_impl_fchmod(long long res, long long fd, 3179 long long mode); 3180 void __sanitizer_syscall_pre_impl_compat_43_orecvfrom( 3181 long long s, long long buf, long long len, long long flags, long long from, 3182 long long fromlenaddr); 3183 void __sanitizer_syscall_post_impl_compat_43_orecvfrom( 3184 long long res, long long s, long long buf, long long len, long long flags, 3185 long long from, long long fromlenaddr); 3186 void __sanitizer_syscall_pre_impl_setreuid(long long ruid, long long euid); 3187 void __sanitizer_syscall_post_impl_setreuid(long long res, long long ruid, 3188 long long euid); 3189 void __sanitizer_syscall_pre_impl_setregid(long long rgid, long long egid); 3190 void __sanitizer_syscall_post_impl_setregid(long long res, long long rgid, 3191 long long egid); 3192 void __sanitizer_syscall_pre_impl_rename(long long from, long long to); 3193 void __sanitizer_syscall_post_impl_rename(long long res, long long from, 3194 long long to); 3195 void __sanitizer_syscall_pre_impl_compat_43_otruncate(long long path, 3196 long long length); 3197 void __sanitizer_syscall_post_impl_compat_43_otruncate(long long res, 3198 long long path, 3199 long long length); 3200 void __sanitizer_syscall_pre_impl_compat_43_oftruncate(long long fd, 3201 long long length); 3202 void __sanitizer_syscall_post_impl_compat_43_oftruncate(long long res, 3203 long long fd, 3204 long long length); 3205 void __sanitizer_syscall_pre_impl_flock(long long fd, long long how); 3206 void __sanitizer_syscall_post_impl_flock(long long res, long long fd, 3207 long long how); 3208 void __sanitizer_syscall_pre_impl_mkfifo(long long path, long long mode); 3209 void __sanitizer_syscall_post_impl_mkfifo(long long res, long long path, 3210 long long mode); 3211 void __sanitizer_syscall_pre_impl_sendto(long long s, long long buf, 3212 long long len, long long flags, 3213 long long to, long long tolen); 3214 void __sanitizer_syscall_post_impl_sendto(long long res, long long s, 3215 long long buf, long long len, 3216 long long flags, long long to, 3217 long long tolen); 3218 void __sanitizer_syscall_pre_impl_shutdown(long long s, long long how); 3219 void __sanitizer_syscall_post_impl_shutdown(long long res, long long s, 3220 long long how); 3221 void __sanitizer_syscall_pre_impl_socketpair(long long domain, long long type, 3222 long long protocol, long long rsv); 3223 void __sanitizer_syscall_post_impl_socketpair(long long res, long long domain, 3224 long long type, 3225 long long protocol, 3226 long long rsv); 3227 void __sanitizer_syscall_pre_impl_mkdir(long long path, long long mode); 3228 void __sanitizer_syscall_post_impl_mkdir(long long res, long long path, 3229 long long mode); 3230 void __sanitizer_syscall_pre_impl_rmdir(long long path); 3231 void __sanitizer_syscall_post_impl_rmdir(long long res, long long path); 3232 void __sanitizer_syscall_pre_impl_compat_50_utimes(long long path, 3233 long long tptr); 3234 void __sanitizer_syscall_post_impl_compat_50_utimes(long long res, 3235 long long path, 3236 long long tptr); 3237 /* syscall 139 has been skipped */ 3238 void __sanitizer_syscall_pre_impl_compat_50_adjtime(long long delta, 3239 long long olddelta); 3240 void __sanitizer_syscall_post_impl_compat_50_adjtime(long long res, 3241 long long delta, 3242 long long olddelta); 3243 void __sanitizer_syscall_pre_impl_compat_43_ogetpeername(long long fdes, 3244 long long asa, 3245 long long alen); 3246 void __sanitizer_syscall_post_impl_compat_43_ogetpeername(long long res, 3247 long long fdes, 3248 long long asa, 3249 long long alen); 3250 void __sanitizer_syscall_pre_impl_compat_43_ogethostid(void); 3251 void __sanitizer_syscall_post_impl_compat_43_ogethostid(long long res); 3252 void __sanitizer_syscall_pre_impl_compat_43_osethostid(long long hostid); 3253 void __sanitizer_syscall_post_impl_compat_43_osethostid(long long res, 3254 long long hostid); 3255 void __sanitizer_syscall_pre_impl_compat_43_ogetrlimit(long long which, 3256 long long rlp); 3257 void __sanitizer_syscall_post_impl_compat_43_ogetrlimit(long long res, 3258 long long which, 3259 long long rlp); 3260 void __sanitizer_syscall_pre_impl_compat_43_osetrlimit(long long which, 3261 long long rlp); 3262 void __sanitizer_syscall_post_impl_compat_43_osetrlimit(long long res, 3263 long long which, 3264 long long rlp); 3265 void __sanitizer_syscall_pre_impl_compat_43_okillpg(long long pgid, 3266 long long signum); 3267 void __sanitizer_syscall_post_impl_compat_43_okillpg(long long res, 3268 long long pgid, 3269 long long signum); 3270 void __sanitizer_syscall_pre_impl_setsid(void); 3271 void __sanitizer_syscall_post_impl_setsid(long long res); 3272 void __sanitizer_syscall_pre_impl_compat_50_quotactl(long long path, 3273 long long cmd, 3274 long long uid, 3275 long long arg); 3276 void __sanitizer_syscall_post_impl_compat_50_quotactl( 3277 long long res, long long path, long long cmd, long long uid, long long arg); 3278 void __sanitizer_syscall_pre_impl_compat_43_oquota(void); 3279 void __sanitizer_syscall_post_impl_compat_43_oquota(long long res); 3280 void __sanitizer_syscall_pre_impl_compat_43_ogetsockname(long long fdec, 3281 long long asa, 3282 long long alen); 3283 void __sanitizer_syscall_post_impl_compat_43_ogetsockname(long long res, 3284 long long fdec, 3285 long long asa, 3286 long long alen); 3287 /* syscall 151 has been skipped */ 3288 /* syscall 152 has been skipped */ 3289 /* syscall 153 has been skipped */ 3290 /* syscall 154 has been skipped */ 3291 void __sanitizer_syscall_pre_impl_nfssvc(long long flag, long long argp); 3292 void __sanitizer_syscall_post_impl_nfssvc(long long res, long long flag, 3293 long long argp); 3294 void __sanitizer_syscall_pre_impl_compat_43_ogetdirentries(long long fd, 3295 long long buf, 3296 long long count, 3297 long long basep); 3298 void __sanitizer_syscall_post_impl_compat_43_ogetdirentries(long long res, 3299 long long fd, 3300 long long buf, 3301 long long count, 3302 long long basep); 3303 void __sanitizer_syscall_pre_impl_compat_20_statfs(long long path, 3304 long long buf); 3305 void __sanitizer_syscall_post_impl_compat_20_statfs(long long res, 3306 long long path, 3307 long long buf); 3308 void __sanitizer_syscall_pre_impl_compat_20_fstatfs(long long fd, 3309 long long buf); 3310 void __sanitizer_syscall_post_impl_compat_20_fstatfs(long long res, 3311 long long fd, 3312 long long buf); 3313 /* syscall 159 has been skipped */ 3314 /* syscall 160 has been skipped */ 3315 void __sanitizer_syscall_pre_impl_compat_30_getfh(long long fname, 3316 long long fhp); 3317 void __sanitizer_syscall_post_impl_compat_30_getfh(long long res, 3318 long long fname, 3319 long long fhp); 3320 void __sanitizer_syscall_pre_impl_compat_09_ogetdomainname(long long domainname, 3321 long long len); 3322 void __sanitizer_syscall_post_impl_compat_09_ogetdomainname( 3323 long long res, long long domainname, long long len); 3324 void __sanitizer_syscall_pre_impl_compat_09_osetdomainname(long long domainname, 3325 long long len); 3326 void __sanitizer_syscall_post_impl_compat_09_osetdomainname( 3327 long long res, long long domainname, long long len); 3328 void __sanitizer_syscall_pre_impl_compat_09_ouname(long long name); 3329 void __sanitizer_syscall_post_impl_compat_09_ouname(long long res, 3330 long long name); 3331 void __sanitizer_syscall_pre_impl_sysarch(long long op, long long parms); 3332 void __sanitizer_syscall_post_impl_sysarch(long long res, long long op, 3333 long long parms); 3334 /* syscall 166 has been skipped */ 3335 /* syscall 167 has been skipped */ 3336 /* syscall 168 has been skipped */ 3337 #if !defined(_LP64) 3338 void __sanitizer_syscall_pre_impl_compat_10_osemsys(long long which, 3339 long long a2, long long a3, 3340 long long a4, long long a5); 3341 void __sanitizer_syscall_post_impl_compat_10_osemsys(long long res, 3342 long long which, 3343 long long a2, long long a3, 3344 long long a4, 3345 long long a5); 3346 #else 3347 /* syscall 169 has been skipped */ 3348 #endif 3349 #if !defined(_LP64) 3350 void __sanitizer_syscall_pre_impl_compat_10_omsgsys(long long which, 3351 long long a2, long long a3, 3352 long long a4, long long a5, 3353 long long a6); 3354 void __sanitizer_syscall_post_impl_compat_10_omsgsys(long long res, 3355 long long which, 3356 long long a2, long long a3, 3357 long long a4, long long a5, 3358 long long a6); 3359 #else 3360 /* syscall 170 has been skipped */ 3361 #endif 3362 #if !defined(_LP64) 3363 void __sanitizer_syscall_pre_impl_compat_10_oshmsys(long long which, 3364 long long a2, long long a3, 3365 long long a4); 3366 void __sanitizer_syscall_post_impl_compat_10_oshmsys(long long res, 3367 long long which, 3368 long long a2, long long a3, 3369 long long a4); 3370 #else 3371 /* syscall 171 has been skipped */ 3372 #endif 3373 /* syscall 172 has been skipped */ 3374 void __sanitizer_syscall_pre_impl_pread(long long fd, long long buf, 3375 long long nbyte, long long PAD, 3376 long long offset); 3377 void __sanitizer_syscall_post_impl_pread(long long res, long long fd, 3378 long long buf, long long nbyte, 3379 long long PAD, long long offset); 3380 void __sanitizer_syscall_pre_impl_pwrite(long long fd, long long buf, 3381 long long nbyte, long long PAD, 3382 long long offset); 3383 void __sanitizer_syscall_post_impl_pwrite(long long res, long long fd, 3384 long long buf, long long nbyte, 3385 long long PAD, long long offset); 3386 void __sanitizer_syscall_pre_impl_compat_30_ntp_gettime(long long ntvp); 3387 void __sanitizer_syscall_post_impl_compat_30_ntp_gettime(long long res, 3388 long long ntvp); 3389 #if defined(NTP) || !defined(_KERNEL_OPT) 3390 void __sanitizer_syscall_pre_impl_ntp_adjtime(long long tp); 3391 void __sanitizer_syscall_post_impl_ntp_adjtime(long long res, long long tp); 3392 #else 3393 /* syscall 176 has been skipped */ 3394 #endif 3395 /* syscall 177 has been skipped */ 3396 /* syscall 178 has been skipped */ 3397 /* syscall 179 has been skipped */ 3398 /* syscall 180 has been skipped */ 3399 void __sanitizer_syscall_pre_impl_setgid(long long gid); 3400 void __sanitizer_syscall_post_impl_setgid(long long res, long long gid); 3401 void __sanitizer_syscall_pre_impl_setegid(long long egid); 3402 void __sanitizer_syscall_post_impl_setegid(long long res, long long egid); 3403 void __sanitizer_syscall_pre_impl_seteuid(long long euid); 3404 void __sanitizer_syscall_post_impl_seteuid(long long res, long long euid); 3405 void __sanitizer_syscall_pre_impl_lfs_bmapv(long long fsidp, long long blkiov, 3406 long long blkcnt); 3407 void __sanitizer_syscall_post_impl_lfs_bmapv(long long res, long long fsidp, 3408 long long blkiov, 3409 long long blkcnt); 3410 void __sanitizer_syscall_pre_impl_lfs_markv(long long fsidp, long long blkiov, 3411 long long blkcnt); 3412 void __sanitizer_syscall_post_impl_lfs_markv(long long res, long long fsidp, 3413 long long blkiov, 3414 long long blkcnt); 3415 void __sanitizer_syscall_pre_impl_lfs_segclean(long long fsidp, 3416 long long segment); 3417 void __sanitizer_syscall_post_impl_lfs_segclean(long long res, long long fsidp, 3418 long long segment); 3419 void __sanitizer_syscall_pre_impl_compat_50_lfs_segwait(long long fsidp, 3420 long long tv); 3421 void __sanitizer_syscall_post_impl_compat_50_lfs_segwait(long long res, 3422 long long fsidp, 3423 long long tv); 3424 void __sanitizer_syscall_pre_impl_compat_12_stat12(long long path, 3425 long long ub); 3426 void __sanitizer_syscall_post_impl_compat_12_stat12(long long res, 3427 long long path, 3428 long long ub); 3429 void __sanitizer_syscall_pre_impl_compat_12_fstat12(long long fd, long long sb); 3430 void __sanitizer_syscall_post_impl_compat_12_fstat12(long long res, 3431 long long fd, 3432 long long sb); 3433 void __sanitizer_syscall_pre_impl_compat_12_lstat12(long long path, 3434 long long ub); 3435 void __sanitizer_syscall_post_impl_compat_12_lstat12(long long res, 3436 long long path, 3437 long long ub); 3438 void __sanitizer_syscall_pre_impl_pathconf(long long path, long long name); 3439 void __sanitizer_syscall_post_impl_pathconf(long long res, long long path, 3440 long long name); 3441 void __sanitizer_syscall_pre_impl_fpathconf(long long fd, long long name); 3442 void __sanitizer_syscall_post_impl_fpathconf(long long res, long long fd, 3443 long long name); 3444 void __sanitizer_syscall_pre_impl_getsockopt2(long long s, long long level, 3445 long long name, long long val, 3446 long long avalsize); 3447 void __sanitizer_syscall_post_impl_getsockopt2(long long res, long long s, 3448 long long level, long long name, 3449 long long val, 3450 long long avalsize); 3451 void __sanitizer_syscall_pre_impl_getrlimit(long long which, long long rlp); 3452 void __sanitizer_syscall_post_impl_getrlimit(long long res, long long which, 3453 long long rlp); 3454 void __sanitizer_syscall_pre_impl_setrlimit(long long which, long long rlp); 3455 void __sanitizer_syscall_post_impl_setrlimit(long long res, long long which, 3456 long long rlp); 3457 void __sanitizer_syscall_pre_impl_compat_12_getdirentries(long long fd, 3458 long long buf, 3459 long long count, 3460 long long basep); 3461 void __sanitizer_syscall_post_impl_compat_12_getdirentries(long long res, 3462 long long fd, 3463 long long buf, 3464 long long count, 3465 long long basep); 3466 void __sanitizer_syscall_pre_impl_mmap(long long addr, long long len, 3467 long long prot, long long flags, 3468 long long fd, long long PAD, 3469 long long pos); 3470 void __sanitizer_syscall_post_impl_mmap(long long res, long long addr, 3471 long long len, long long prot, 3472 long long flags, long long fd, 3473 long long PAD, long long pos); 3474 void __sanitizer_syscall_pre_impl___syscall(long long code, long long arg0, 3475 long long arg1, long long arg2, 3476 long long arg3, long long arg4, 3477 long long arg5, long long arg6, 3478 long long arg7); 3479 void __sanitizer_syscall_post_impl___syscall(long long res, long long code, 3480 long long arg0, long long arg1, 3481 long long arg2, long long arg3, 3482 long long arg4, long long arg5, 3483 long long arg6, long long arg7); 3484 void __sanitizer_syscall_pre_impl_lseek(long long fd, long long PAD, 3485 long long offset, long long whence); 3486 void __sanitizer_syscall_post_impl_lseek(long long res, long long fd, 3487 long long PAD, long long offset, 3488 long long whence); 3489 void __sanitizer_syscall_pre_impl_truncate(long long path, long long PAD, 3490 long long length); 3491 void __sanitizer_syscall_post_impl_truncate(long long res, long long path, 3492 long long PAD, long long length); 3493 void __sanitizer_syscall_pre_impl_ftruncate(long long fd, long long PAD, 3494 long long length); 3495 void __sanitizer_syscall_post_impl_ftruncate(long long res, long long fd, 3496 long long PAD, long long length); 3497 void __sanitizer_syscall_pre_impl___sysctl(long long name, long long namelen, 3498 long long oldv, long long oldlenp, 3499 long long newv, long long newlen); 3500 void __sanitizer_syscall_post_impl___sysctl(long long res, long long name, 3501 long long namelen, long long oldv, 3502 long long oldlenp, long long newv, 3503 long long newlen); 3504 void __sanitizer_syscall_pre_impl_mlock(long long addr, long long len); 3505 void __sanitizer_syscall_post_impl_mlock(long long res, long long addr, 3506 long long len); 3507 void __sanitizer_syscall_pre_impl_munlock(long long addr, long long len); 3508 void __sanitizer_syscall_post_impl_munlock(long long res, long long addr, 3509 long long len); 3510 void __sanitizer_syscall_pre_impl_undelete(long long path); 3511 void __sanitizer_syscall_post_impl_undelete(long long res, long long path); 3512 void __sanitizer_syscall_pre_impl_compat_50_futimes(long long fd, 3513 long long tptr); 3514 void __sanitizer_syscall_post_impl_compat_50_futimes(long long res, 3515 long long fd, 3516 long long tptr); 3517 void __sanitizer_syscall_pre_impl_getpgid(long long pid); 3518 void __sanitizer_syscall_post_impl_getpgid(long long res, long long pid); 3519 void __sanitizer_syscall_pre_impl_reboot(long long opt, long long bootstr); 3520 void __sanitizer_syscall_post_impl_reboot(long long res, long long opt, 3521 long long bootstr); 3522 void __sanitizer_syscall_pre_impl_poll(long long fds, long long nfds, 3523 long long timeout); 3524 void __sanitizer_syscall_post_impl_poll(long long res, long long fds, 3525 long long nfds, long long timeout); 3526 void __sanitizer_syscall_pre_impl_afssys(long long id, long long a1, 3527 long long a2, long long a3, 3528 long long a4, long long a5, 3529 long long a6); 3530 void __sanitizer_syscall_post_impl_afssys(long long res, long long id, 3531 long long a1, long long a2, 3532 long long a3, long long a4, 3533 long long a5, long long a6); 3534 /* syscall 211 has been skipped */ 3535 /* syscall 212 has been skipped */ 3536 /* syscall 213 has been skipped */ 3537 /* syscall 214 has been skipped */ 3538 /* syscall 215 has been skipped */ 3539 /* syscall 216 has been skipped */ 3540 /* syscall 217 has been skipped */ 3541 /* syscall 218 has been skipped */ 3542 /* syscall 219 has been skipped */ 3543 void __sanitizer_syscall_pre_impl_compat_14___semctl(long long semid, 3544 long long semnum, 3545 long long cmd, 3546 long long arg); 3547 void __sanitizer_syscall_post_impl_compat_14___semctl(long long res, 3548 long long semid, 3549 long long semnum, 3550 long long cmd, 3551 long long arg); 3552 void __sanitizer_syscall_pre_impl_semget(long long key, long long nsems, 3553 long long semflg); 3554 void __sanitizer_syscall_post_impl_semget(long long res, long long key, 3555 long long nsems, long long semflg); 3556 void __sanitizer_syscall_pre_impl_semop(long long semid, long long sops, 3557 long long nsops); 3558 void __sanitizer_syscall_post_impl_semop(long long res, long long semid, 3559 long long sops, long long nsops); 3560 void __sanitizer_syscall_pre_impl_semconfig(long long flag); 3561 void __sanitizer_syscall_post_impl_semconfig(long long res, long long flag); 3562 void __sanitizer_syscall_pre_impl_compat_14_msgctl(long long msqid, 3563 long long cmd, 3564 long long buf); 3565 void __sanitizer_syscall_post_impl_compat_14_msgctl(long long res, 3566 long long msqid, 3567 long long cmd, 3568 long long buf); 3569 void __sanitizer_syscall_pre_impl_msgget(long long key, long long msgflg); 3570 void __sanitizer_syscall_post_impl_msgget(long long res, long long key, 3571 long long msgflg); 3572 void __sanitizer_syscall_pre_impl_msgsnd(long long msqid, long long msgp, 3573 long long msgsz, long long msgflg); 3574 void __sanitizer_syscall_post_impl_msgsnd(long long res, long long msqid, 3575 long long msgp, long long msgsz, 3576 long long msgflg); 3577 void __sanitizer_syscall_pre_impl_msgrcv(long long msqid, long long msgp, 3578 long long msgsz, long long msgtyp, 3579 long long msgflg); 3580 void __sanitizer_syscall_post_impl_msgrcv(long long res, long long msqid, 3581 long long msgp, long long msgsz, 3582 long long msgtyp, long long msgflg); 3583 void __sanitizer_syscall_pre_impl_shmat(long long shmid, long long shmaddr, 3584 long long shmflg); 3585 void __sanitizer_syscall_post_impl_shmat(long long res, long long shmid, 3586 long long shmaddr, long long shmflg); 3587 void __sanitizer_syscall_pre_impl_compat_14_shmctl(long long shmid, 3588 long long cmd, 3589 long long buf); 3590 void __sanitizer_syscall_post_impl_compat_14_shmctl(long long res, 3591 long long shmid, 3592 long long cmd, 3593 long long buf); 3594 void __sanitizer_syscall_pre_impl_shmdt(long long shmaddr); 3595 void __sanitizer_syscall_post_impl_shmdt(long long res, long long shmaddr); 3596 void __sanitizer_syscall_pre_impl_shmget(long long key, long long size, 3597 long long shmflg); 3598 void __sanitizer_syscall_post_impl_shmget(long long res, long long key, 3599 long long size, long long shmflg); 3600 void __sanitizer_syscall_pre_impl_compat_50_clock_gettime(long long clock_id, 3601 long long tp); 3602 void __sanitizer_syscall_post_impl_compat_50_clock_gettime(long long res, 3603 long long clock_id, 3604 long long tp); 3605 void __sanitizer_syscall_pre_impl_compat_50_clock_settime(long long clock_id, 3606 long long tp); 3607 void __sanitizer_syscall_post_impl_compat_50_clock_settime(long long res, 3608 long long clock_id, 3609 long long tp); 3610 void __sanitizer_syscall_pre_impl_compat_50_clock_getres(long long clock_id, 3611 long long tp); 3612 void __sanitizer_syscall_post_impl_compat_50_clock_getres(long long res, 3613 long long clock_id, 3614 long long tp); 3615 void __sanitizer_syscall_pre_impl_timer_create(long long clock_id, 3616 long long evp, 3617 long long timerid); 3618 void __sanitizer_syscall_post_impl_timer_create(long long res, 3619 long long clock_id, 3620 long long evp, 3621 long long timerid); 3622 void __sanitizer_syscall_pre_impl_timer_delete(long long timerid); 3623 void __sanitizer_syscall_post_impl_timer_delete(long long res, 3624 long long timerid); 3625 void __sanitizer_syscall_pre_impl_compat_50_timer_settime(long long timerid, 3626 long long flags, 3627 long long value, 3628 long long ovalue); 3629 void __sanitizer_syscall_post_impl_compat_50_timer_settime(long long res, 3630 long long timerid, 3631 long long flags, 3632 long long value, 3633 long long ovalue); 3634 void __sanitizer_syscall_pre_impl_compat_50_timer_gettime(long long timerid, 3635 long long value); 3636 void __sanitizer_syscall_post_impl_compat_50_timer_gettime(long long res, 3637 long long timerid, 3638 long long value); 3639 void __sanitizer_syscall_pre_impl_timer_getoverrun(long long timerid); 3640 void __sanitizer_syscall_post_impl_timer_getoverrun(long long res, 3641 long long timerid); 3642 void __sanitizer_syscall_pre_impl_compat_50_nanosleep(long long rqtp, 3643 long long rmtp); 3644 void __sanitizer_syscall_post_impl_compat_50_nanosleep(long long res, 3645 long long rqtp, 3646 long long rmtp); 3647 void __sanitizer_syscall_pre_impl_fdatasync(long long fd); 3648 void __sanitizer_syscall_post_impl_fdatasync(long long res, long long fd); 3649 void __sanitizer_syscall_pre_impl_mlockall(long long flags); 3650 void __sanitizer_syscall_post_impl_mlockall(long long res, long long flags); 3651 void __sanitizer_syscall_pre_impl_munlockall(void); 3652 void __sanitizer_syscall_post_impl_munlockall(long long res); 3653 void __sanitizer_syscall_pre_impl_compat_50___sigtimedwait(long long set, 3654 long long info, 3655 long long timeout); 3656 void __sanitizer_syscall_post_impl_compat_50___sigtimedwait(long long res, 3657 long long set, 3658 long long info, 3659 long long timeout); 3660 void __sanitizer_syscall_pre_impl_sigqueueinfo(long long pid, long long info); 3661 void __sanitizer_syscall_post_impl_sigqueueinfo(long long res, long long pid, 3662 long long info); 3663 void __sanitizer_syscall_pre_impl_modctl(long long cmd, long long arg); 3664 void __sanitizer_syscall_post_impl_modctl(long long res, long long cmd, 3665 long long arg); 3666 void __sanitizer_syscall_pre_impl__ksem_init(long long value, long long idp); 3667 void __sanitizer_syscall_post_impl__ksem_init(long long res, long long value, 3668 long long idp); 3669 void __sanitizer_syscall_pre_impl__ksem_open(long long name, long long oflag, 3670 long long mode, long long value, 3671 long long idp); 3672 void __sanitizer_syscall_post_impl__ksem_open(long long res, long long name, 3673 long long oflag, long long mode, 3674 long long value, long long idp); 3675 void __sanitizer_syscall_pre_impl__ksem_unlink(long long name); 3676 void __sanitizer_syscall_post_impl__ksem_unlink(long long res, long long name); 3677 void __sanitizer_syscall_pre_impl__ksem_close(long long id); 3678 void __sanitizer_syscall_post_impl__ksem_close(long long res, long long id); 3679 void __sanitizer_syscall_pre_impl__ksem_post(long long id); 3680 void __sanitizer_syscall_post_impl__ksem_post(long long res, long long id); 3681 void __sanitizer_syscall_pre_impl__ksem_wait(long long id); 3682 void __sanitizer_syscall_post_impl__ksem_wait(long long res, long long id); 3683 void __sanitizer_syscall_pre_impl__ksem_trywait(long long id); 3684 void __sanitizer_syscall_post_impl__ksem_trywait(long long res, long long id); 3685 void __sanitizer_syscall_pre_impl__ksem_getvalue(long long id, long long value); 3686 void __sanitizer_syscall_post_impl__ksem_getvalue(long long res, long long id, 3687 long long value); 3688 void __sanitizer_syscall_pre_impl__ksem_destroy(long long id); 3689 void __sanitizer_syscall_post_impl__ksem_destroy(long long res, long long id); 3690 void __sanitizer_syscall_pre_impl__ksem_timedwait(long long id, 3691 long long abstime); 3692 void __sanitizer_syscall_post_impl__ksem_timedwait(long long res, long long id, 3693 long long abstime); 3694 void __sanitizer_syscall_pre_impl_mq_open(long long name, long long oflag, 3695 long long mode, long long attr); 3696 void __sanitizer_syscall_post_impl_mq_open(long long res, long long name, 3697 long long oflag, long long mode, 3698 long long attr); 3699 void __sanitizer_syscall_pre_impl_mq_close(long long mqdes); 3700 void __sanitizer_syscall_post_impl_mq_close(long long res, long long mqdes); 3701 void __sanitizer_syscall_pre_impl_mq_unlink(long long name); 3702 void __sanitizer_syscall_post_impl_mq_unlink(long long res, long long name); 3703 void __sanitizer_syscall_pre_impl_mq_getattr(long long mqdes, long long mqstat); 3704 void __sanitizer_syscall_post_impl_mq_getattr(long long res, long long mqdes, 3705 long long mqstat); 3706 void __sanitizer_syscall_pre_impl_mq_setattr(long long mqdes, long long mqstat, 3707 long long omqstat); 3708 void __sanitizer_syscall_post_impl_mq_setattr(long long res, long long mqdes, 3709 long long mqstat, 3710 long long omqstat); 3711 void __sanitizer_syscall_pre_impl_mq_notify(long long mqdes, 3712 long long notification); 3713 void __sanitizer_syscall_post_impl_mq_notify(long long res, long long mqdes, 3714 long long notification); 3715 void __sanitizer_syscall_pre_impl_mq_send(long long mqdes, long long msg_ptr, 3716 long long msg_len, 3717 long long msg_prio); 3718 void __sanitizer_syscall_post_impl_mq_send(long long res, long long mqdes, 3719 long long msg_ptr, long long msg_len, 3720 long long msg_prio); 3721 void __sanitizer_syscall_pre_impl_mq_receive(long long mqdes, long long msg_ptr, 3722 long long msg_len, 3723 long long msg_prio); 3724 void __sanitizer_syscall_post_impl_mq_receive(long long res, long long mqdes, 3725 long long msg_ptr, 3726 long long msg_len, 3727 long long msg_prio); 3728 void __sanitizer_syscall_pre_impl_compat_50_mq_timedsend(long long mqdes, 3729 long long msg_ptr, 3730 long long msg_len, 3731 long long msg_prio, 3732 long long abs_timeout); 3733 void __sanitizer_syscall_post_impl_compat_50_mq_timedsend( 3734 long long res, long long mqdes, long long msg_ptr, long long msg_len, 3735 long long msg_prio, long long abs_timeout); 3736 void __sanitizer_syscall_pre_impl_compat_50_mq_timedreceive( 3737 long long mqdes, long long msg_ptr, long long msg_len, long long msg_prio, 3738 long long abs_timeout); 3739 void __sanitizer_syscall_post_impl_compat_50_mq_timedreceive( 3740 long long res, long long mqdes, long long msg_ptr, long long msg_len, 3741 long long msg_prio, long long abs_timeout); 3742 /* syscall 267 has been skipped */ 3743 /* syscall 268 has been skipped */ 3744 /* syscall 269 has been skipped */ 3745 void __sanitizer_syscall_pre_impl___posix_rename(long long from, long long to); 3746 void __sanitizer_syscall_post_impl___posix_rename(long long res, long long from, 3747 long long to); 3748 void __sanitizer_syscall_pre_impl_swapctl(long long cmd, long long arg, 3749 long long misc); 3750 void __sanitizer_syscall_post_impl_swapctl(long long res, long long cmd, 3751 long long arg, long long misc); 3752 void __sanitizer_syscall_pre_impl_compat_30_getdents(long long fd, 3753 long long buf, 3754 long long count); 3755 void __sanitizer_syscall_post_impl_compat_30_getdents(long long res, 3756 long long fd, 3757 long long buf, 3758 long long count); 3759 void __sanitizer_syscall_pre_impl_minherit(long long addr, long long len, 3760 long long inherit); 3761 void __sanitizer_syscall_post_impl_minherit(long long res, long long addr, 3762 long long len, long long inherit); 3763 void __sanitizer_syscall_pre_impl_lchmod(long long path, long long mode); 3764 void __sanitizer_syscall_post_impl_lchmod(long long res, long long path, 3765 long long mode); 3766 void __sanitizer_syscall_pre_impl_lchown(long long path, long long uid, 3767 long long gid); 3768 void __sanitizer_syscall_post_impl_lchown(long long res, long long path, 3769 long long uid, long long gid); 3770 void __sanitizer_syscall_pre_impl_compat_50_lutimes(long long path, 3771 long long tptr); 3772 void __sanitizer_syscall_post_impl_compat_50_lutimes(long long res, 3773 long long path, 3774 long long tptr); 3775 void __sanitizer_syscall_pre_impl___msync13(long long addr, long long len, 3776 long long flags); 3777 void __sanitizer_syscall_post_impl___msync13(long long res, long long addr, 3778 long long len, long long flags); 3779 void __sanitizer_syscall_pre_impl_compat_30___stat13(long long path, 3780 long long ub); 3781 void __sanitizer_syscall_post_impl_compat_30___stat13(long long res, 3782 long long path, 3783 long long ub); 3784 void __sanitizer_syscall_pre_impl_compat_30___fstat13(long long fd, 3785 long long sb); 3786 void __sanitizer_syscall_post_impl_compat_30___fstat13(long long res, 3787 long long fd, 3788 long long sb); 3789 void __sanitizer_syscall_pre_impl_compat_30___lstat13(long long path, 3790 long long ub); 3791 void __sanitizer_syscall_post_impl_compat_30___lstat13(long long res, 3792 long long path, 3793 long long ub); 3794 void __sanitizer_syscall_pre_impl___sigaltstack14(long long nss, long long oss); 3795 void __sanitizer_syscall_post_impl___sigaltstack14(long long res, long long nss, 3796 long long oss); 3797 void __sanitizer_syscall_pre_impl___vfork14(void); 3798 void __sanitizer_syscall_post_impl___vfork14(long long res); 3799 void __sanitizer_syscall_pre_impl___posix_chown(long long path, long long uid, 3800 long long gid); 3801 void __sanitizer_syscall_post_impl___posix_chown(long long res, long long path, 3802 long long uid, long long gid); 3803 void __sanitizer_syscall_pre_impl___posix_fchown(long long fd, long long uid, 3804 long long gid); 3805 void __sanitizer_syscall_post_impl___posix_fchown(long long res, long long fd, 3806 long long uid, long long gid); 3807 void __sanitizer_syscall_pre_impl___posix_lchown(long long path, long long uid, 3808 long long gid); 3809 void __sanitizer_syscall_post_impl___posix_lchown(long long res, long long path, 3810 long long uid, long long gid); 3811 void __sanitizer_syscall_pre_impl_getsid(long long pid); 3812 void __sanitizer_syscall_post_impl_getsid(long long res, long long pid); 3813 void __sanitizer_syscall_pre_impl___clone(long long flags, long long stack); 3814 void __sanitizer_syscall_post_impl___clone(long long res, long long flags, 3815 long long stack); 3816 void __sanitizer_syscall_pre_impl_fktrace(long long fd, long long ops, 3817 long long facs, long long pid); 3818 void __sanitizer_syscall_post_impl_fktrace(long long res, long long fd, 3819 long long ops, long long facs, 3820 long long pid); 3821 void __sanitizer_syscall_pre_impl_preadv(long long fd, long long iovp, 3822 long long iovcnt, long long PAD, 3823 long long offset); 3824 void __sanitizer_syscall_post_impl_preadv(long long res, long long fd, 3825 long long iovp, long long iovcnt, 3826 long long PAD, long long offset); 3827 void __sanitizer_syscall_pre_impl_pwritev(long long fd, long long iovp, 3828 long long iovcnt, long long PAD, 3829 long long offset); 3830 void __sanitizer_syscall_post_impl_pwritev(long long res, long long fd, 3831 long long iovp, long long iovcnt, 3832 long long PAD, long long offset); 3833 void __sanitizer_syscall_pre_impl_compat_16___sigaction14(long long signum, 3834 long long nsa, 3835 long long osa); 3836 void __sanitizer_syscall_post_impl_compat_16___sigaction14(long long res, 3837 long long signum, 3838 long long nsa, 3839 long long osa); 3840 void __sanitizer_syscall_pre_impl___sigpending14(long long set); 3841 void __sanitizer_syscall_post_impl___sigpending14(long long res, long long set); 3842 void __sanitizer_syscall_pre_impl___sigprocmask14(long long how, long long set, 3843 long long oset); 3844 void __sanitizer_syscall_post_impl___sigprocmask14(long long res, long long how, 3845 long long set, 3846 long long oset); 3847 void __sanitizer_syscall_pre_impl___sigsuspend14(long long set); 3848 void __sanitizer_syscall_post_impl___sigsuspend14(long long res, long long set); 3849 void __sanitizer_syscall_pre_impl_compat_16___sigreturn14(long long sigcntxp); 3850 void __sanitizer_syscall_post_impl_compat_16___sigreturn14(long long res, 3851 long long sigcntxp); 3852 void __sanitizer_syscall_pre_impl___getcwd(long long bufp, long long length); 3853 void __sanitizer_syscall_post_impl___getcwd(long long res, long long bufp, 3854 long long length); 3855 void __sanitizer_syscall_pre_impl_fchroot(long long fd); 3856 void __sanitizer_syscall_post_impl_fchroot(long long res, long long fd); 3857 void __sanitizer_syscall_pre_impl_compat_30_fhopen(long long fhp, 3858 long long flags); 3859 void __sanitizer_syscall_post_impl_compat_30_fhopen(long long res, 3860 long long fhp, 3861 long long flags); 3862 void __sanitizer_syscall_pre_impl_compat_30_fhstat(long long fhp, long long sb); 3863 void __sanitizer_syscall_post_impl_compat_30_fhstat(long long res, 3864 long long fhp, 3865 long long sb); 3866 void __sanitizer_syscall_pre_impl_compat_20_fhstatfs(long long fhp, 3867 long long buf); 3868 void __sanitizer_syscall_post_impl_compat_20_fhstatfs(long long res, 3869 long long fhp, 3870 long long buf); 3871 void __sanitizer_syscall_pre_impl_compat_50_____semctl13(long long semid, 3872 long long semnum, 3873 long long cmd, 3874 long long arg); 3875 void __sanitizer_syscall_post_impl_compat_50_____semctl13(long long res, 3876 long long semid, 3877 long long semnum, 3878 long long cmd, 3879 long long arg); 3880 void __sanitizer_syscall_pre_impl_compat_50___msgctl13(long long msqid, 3881 long long cmd, 3882 long long buf); 3883 void __sanitizer_syscall_post_impl_compat_50___msgctl13(long long res, 3884 long long msqid, 3885 long long cmd, 3886 long long buf); 3887 void __sanitizer_syscall_pre_impl_compat_50___shmctl13(long long shmid, 3888 long long cmd, 3889 long long buf); 3890 void __sanitizer_syscall_post_impl_compat_50___shmctl13(long long res, 3891 long long shmid, 3892 long long cmd, 3893 long long buf); 3894 void __sanitizer_syscall_pre_impl_lchflags(long long path, long long flags); 3895 void __sanitizer_syscall_post_impl_lchflags(long long res, long long path, 3896 long long flags); 3897 void __sanitizer_syscall_pre_impl_issetugid(void); 3898 void __sanitizer_syscall_post_impl_issetugid(long long res); 3899 void __sanitizer_syscall_pre_impl_utrace(long long label, long long addr, 3900 long long len); 3901 void __sanitizer_syscall_post_impl_utrace(long long res, long long label, 3902 long long addr, long long len); 3903 void __sanitizer_syscall_pre_impl_getcontext(long long ucp); 3904 void __sanitizer_syscall_post_impl_getcontext(long long res, long long ucp); 3905 void __sanitizer_syscall_pre_impl_setcontext(long long ucp); 3906 void __sanitizer_syscall_post_impl_setcontext(long long res, long long ucp); 3907 void __sanitizer_syscall_pre_impl__lwp_create(long long ucp, long long flags, 3908 long long new_lwp); 3909 void __sanitizer_syscall_post_impl__lwp_create(long long res, long long ucp, 3910 long long flags, 3911 long long new_lwp); 3912 void __sanitizer_syscall_pre_impl__lwp_exit(void); 3913 void __sanitizer_syscall_post_impl__lwp_exit(long long res); 3914 void __sanitizer_syscall_pre_impl__lwp_self(void); 3915 void __sanitizer_syscall_post_impl__lwp_self(long long res); 3916 void __sanitizer_syscall_pre_impl__lwp_wait(long long wait_for, 3917 long long departed); 3918 void __sanitizer_syscall_post_impl__lwp_wait(long long res, long long wait_for, 3919 long long departed); 3920 void __sanitizer_syscall_pre_impl__lwp_suspend(long long target); 3921 void __sanitizer_syscall_post_impl__lwp_suspend(long long res, 3922 long long target); 3923 void __sanitizer_syscall_pre_impl__lwp_continue(long long target); 3924 void __sanitizer_syscall_post_impl__lwp_continue(long long res, 3925 long long target); 3926 void __sanitizer_syscall_pre_impl__lwp_wakeup(long long target); 3927 void __sanitizer_syscall_post_impl__lwp_wakeup(long long res, long long target); 3928 void __sanitizer_syscall_pre_impl__lwp_getprivate(void); 3929 void __sanitizer_syscall_post_impl__lwp_getprivate(long long res); 3930 void __sanitizer_syscall_pre_impl__lwp_setprivate(long long ptr); 3931 void __sanitizer_syscall_post_impl__lwp_setprivate(long long res, 3932 long long ptr); 3933 void __sanitizer_syscall_pre_impl__lwp_kill(long long target, long long signo); 3934 void __sanitizer_syscall_post_impl__lwp_kill(long long res, long long target, 3935 long long signo); 3936 void __sanitizer_syscall_pre_impl__lwp_detach(long long target); 3937 void __sanitizer_syscall_post_impl__lwp_detach(long long res, long long target); 3938 void __sanitizer_syscall_pre_impl_compat_50__lwp_park(long long ts, 3939 long long unpark, 3940 long long hint, 3941 long long unparkhint); 3942 void __sanitizer_syscall_post_impl_compat_50__lwp_park(long long res, 3943 long long ts, 3944 long long unpark, 3945 long long hint, 3946 long long unparkhint); 3947 void __sanitizer_syscall_pre_impl__lwp_unpark(long long target, long long hint); 3948 void __sanitizer_syscall_post_impl__lwp_unpark(long long res, long long target, 3949 long long hint); 3950 void __sanitizer_syscall_pre_impl__lwp_unpark_all(long long targets, 3951 long long ntargets, 3952 long long hint); 3953 void __sanitizer_syscall_post_impl__lwp_unpark_all(long long res, 3954 long long targets, 3955 long long ntargets, 3956 long long hint); 3957 void __sanitizer_syscall_pre_impl__lwp_setname(long long target, 3958 long long name); 3959 void __sanitizer_syscall_post_impl__lwp_setname(long long res, long long target, 3960 long long name); 3961 void __sanitizer_syscall_pre_impl__lwp_getname(long long target, long long name, 3962 long long len); 3963 void __sanitizer_syscall_post_impl__lwp_getname(long long res, long long target, 3964 long long name, long long len); 3965 void __sanitizer_syscall_pre_impl__lwp_ctl(long long features, 3966 long long address); 3967 void __sanitizer_syscall_post_impl__lwp_ctl(long long res, long long features, 3968 long long address); 3969 /* syscall 326 has been skipped */ 3970 /* syscall 327 has been skipped */ 3971 /* syscall 328 has been skipped */ 3972 /* syscall 329 has been skipped */ 3973 void __sanitizer_syscall_pre_impl_compat_60_sa_register( 3974 long long newv, long long oldv, long long flags, 3975 long long stackinfo_offset); 3976 void __sanitizer_syscall_post_impl_compat_60_sa_register( 3977 long long res, long long newv, long long oldv, long long flags, 3978 long long stackinfo_offset); 3979 void __sanitizer_syscall_pre_impl_compat_60_sa_stacks(long long num, 3980 long long stacks); 3981 void __sanitizer_syscall_post_impl_compat_60_sa_stacks(long long res, 3982 long long num, 3983 long long stacks); 3984 void __sanitizer_syscall_pre_impl_compat_60_sa_enable(void); 3985 void __sanitizer_syscall_post_impl_compat_60_sa_enable(long long res); 3986 void __sanitizer_syscall_pre_impl_compat_60_sa_setconcurrency( 3987 long long concurrency); 3988 void __sanitizer_syscall_post_impl_compat_60_sa_setconcurrency( 3989 long long res, long long concurrency); 3990 void __sanitizer_syscall_pre_impl_compat_60_sa_yield(void); 3991 void __sanitizer_syscall_post_impl_compat_60_sa_yield(long long res); 3992 void __sanitizer_syscall_pre_impl_compat_60_sa_preempt(long long sa_id); 3993 void __sanitizer_syscall_post_impl_compat_60_sa_preempt(long long res, 3994 long long sa_id); 3995 /* syscall 336 has been skipped */ 3996 /* syscall 337 has been skipped */ 3997 /* syscall 338 has been skipped */ 3998 /* syscall 339 has been skipped */ 3999 void __sanitizer_syscall_pre_impl___sigaction_sigtramp(long long signum, 4000 long long nsa, 4001 long long osa, 4002 long long tramp, 4003 long long vers); 4004 void __sanitizer_syscall_post_impl___sigaction_sigtramp( 4005 long long res, long long signum, long long nsa, long long osa, 4006 long long tramp, long long vers); 4007 /* syscall 341 has been skipped */ 4008 /* syscall 342 has been skipped */ 4009 void __sanitizer_syscall_pre_impl_rasctl(long long addr, long long len, 4010 long long op); 4011 void __sanitizer_syscall_post_impl_rasctl(long long res, long long addr, 4012 long long len, long long op); 4013 void __sanitizer_syscall_pre_impl_kqueue(void); 4014 void __sanitizer_syscall_post_impl_kqueue(long long res); 4015 void __sanitizer_syscall_pre_impl_compat_50_kevent( 4016 long long fd, long long changelist, long long nchanges, long long eventlist, 4017 long long nevents, long long timeout); 4018 void __sanitizer_syscall_post_impl_compat_50_kevent( 4019 long long res, long long fd, long long changelist, long long nchanges, 4020 long long eventlist, long long nevents, long long timeout); 4021 void __sanitizer_syscall_pre_impl__sched_setparam(long long pid, long long lid, 4022 long long policy, 4023 long long params); 4024 void __sanitizer_syscall_post_impl__sched_setparam(long long res, long long pid, 4025 long long lid, 4026 long long policy, 4027 long long params); 4028 void __sanitizer_syscall_pre_impl__sched_getparam(long long pid, long long lid, 4029 long long policy, 4030 long long params); 4031 void __sanitizer_syscall_post_impl__sched_getparam(long long res, long long pid, 4032 long long lid, 4033 long long policy, 4034 long long params); 4035 void __sanitizer_syscall_pre_impl__sched_setaffinity(long long pid, 4036 long long lid, 4037 long long size, 4038 long long cpuset); 4039 void __sanitizer_syscall_post_impl__sched_setaffinity(long long res, 4040 long long pid, 4041 long long lid, 4042 long long size, 4043 long long cpuset); 4044 void __sanitizer_syscall_pre_impl__sched_getaffinity(long long pid, 4045 long long lid, 4046 long long size, 4047 long long cpuset); 4048 void __sanitizer_syscall_post_impl__sched_getaffinity(long long res, 4049 long long pid, 4050 long long lid, 4051 long long size, 4052 long long cpuset); 4053 void __sanitizer_syscall_pre_impl_sched_yield(void); 4054 void __sanitizer_syscall_post_impl_sched_yield(long long res); 4055 void __sanitizer_syscall_pre_impl__sched_protect(long long priority); 4056 void __sanitizer_syscall_post_impl__sched_protect(long long res, 4057 long long priority); 4058 /* syscall 352 has been skipped */ 4059 /* syscall 353 has been skipped */ 4060 void __sanitizer_syscall_pre_impl_fsync_range(long long fd, long long flags, 4061 long long start, 4062 long long length); 4063 void __sanitizer_syscall_post_impl_fsync_range(long long res, long long fd, 4064 long long flags, long long start, 4065 long long length); 4066 void __sanitizer_syscall_pre_impl_uuidgen(long long store, long long count); 4067 void __sanitizer_syscall_post_impl_uuidgen(long long res, long long store, 4068 long long count); 4069 void __sanitizer_syscall_pre_impl_getvfsstat(long long buf, long long bufsize, 4070 long long flags); 4071 void __sanitizer_syscall_post_impl_getvfsstat(long long res, long long buf, 4072 long long bufsize, 4073 long long flags); 4074 void __sanitizer_syscall_pre_impl_statvfs1(long long path, long long buf, 4075 long long flags); 4076 void __sanitizer_syscall_post_impl_statvfs1(long long res, long long path, 4077 long long buf, long long flags); 4078 void __sanitizer_syscall_pre_impl_fstatvfs1(long long fd, long long buf, 4079 long long flags); 4080 void __sanitizer_syscall_post_impl_fstatvfs1(long long res, long long fd, 4081 long long buf, long long flags); 4082 void __sanitizer_syscall_pre_impl_compat_30_fhstatvfs1(long long fhp, 4083 long long buf, 4084 long long flags); 4085 void __sanitizer_syscall_post_impl_compat_30_fhstatvfs1(long long res, 4086 long long fhp, 4087 long long buf, 4088 long long flags); 4089 void __sanitizer_syscall_pre_impl_extattrctl(long long path, long long cmd, 4090 long long filename, 4091 long long attrnamespace, 4092 long long attrname); 4093 void __sanitizer_syscall_post_impl_extattrctl(long long res, long long path, 4094 long long cmd, long long filename, 4095 long long attrnamespace, 4096 long long attrname); 4097 void __sanitizer_syscall_pre_impl_extattr_set_file(long long path, 4098 long long attrnamespace, 4099 long long attrname, 4100 long long data, 4101 long long nbytes); 4102 void __sanitizer_syscall_post_impl_extattr_set_file( 4103 long long res, long long path, long long attrnamespace, long long attrname, 4104 long long data, long long nbytes); 4105 void __sanitizer_syscall_pre_impl_extattr_get_file(long long path, 4106 long long attrnamespace, 4107 long long attrname, 4108 long long data, 4109 long long nbytes); 4110 void __sanitizer_syscall_post_impl_extattr_get_file( 4111 long long res, long long path, long long attrnamespace, long long attrname, 4112 long long data, long long nbytes); 4113 void __sanitizer_syscall_pre_impl_extattr_delete_file(long long path, 4114 long long attrnamespace, 4115 long long attrname); 4116 void __sanitizer_syscall_post_impl_extattr_delete_file(long long res, 4117 long long path, 4118 long long attrnamespace, 4119 long long attrname); 4120 void __sanitizer_syscall_pre_impl_extattr_set_fd(long long fd, 4121 long long attrnamespace, 4122 long long attrname, 4123 long long data, 4124 long long nbytes); 4125 void __sanitizer_syscall_post_impl_extattr_set_fd(long long res, long long fd, 4126 long long attrnamespace, 4127 long long attrname, 4128 long long data, 4129 long long nbytes); 4130 void __sanitizer_syscall_pre_impl_extattr_get_fd(long long fd, 4131 long long attrnamespace, 4132 long long attrname, 4133 long long data, 4134 long long nbytes); 4135 void __sanitizer_syscall_post_impl_extattr_get_fd(long long res, long long fd, 4136 long long attrnamespace, 4137 long long attrname, 4138 long long data, 4139 long long nbytes); 4140 void __sanitizer_syscall_pre_impl_extattr_delete_fd(long long fd, 4141 long long attrnamespace, 4142 long long attrname); 4143 void __sanitizer_syscall_post_impl_extattr_delete_fd(long long res, 4144 long long fd, 4145 long long attrnamespace, 4146 long long attrname); 4147 void __sanitizer_syscall_pre_impl_extattr_set_link(long long path, 4148 long long attrnamespace, 4149 long long attrname, 4150 long long data, 4151 long long nbytes); 4152 void __sanitizer_syscall_post_impl_extattr_set_link( 4153 long long res, long long path, long long attrnamespace, long long attrname, 4154 long long data, long long nbytes); 4155 void __sanitizer_syscall_pre_impl_extattr_get_link(long long path, 4156 long long attrnamespace, 4157 long long attrname, 4158 long long data, 4159 long long nbytes); 4160 void __sanitizer_syscall_post_impl_extattr_get_link( 4161 long long res, long long path, long long attrnamespace, long long attrname, 4162 long long data, long long nbytes); 4163 void __sanitizer_syscall_pre_impl_extattr_delete_link(long long path, 4164 long long attrnamespace, 4165 long long attrname); 4166 void __sanitizer_syscall_post_impl_extattr_delete_link(long long res, 4167 long long path, 4168 long long attrnamespace, 4169 long long attrname); 4170 void __sanitizer_syscall_pre_impl_extattr_list_fd(long long fd, 4171 long long attrnamespace, 4172 long long data, 4173 long long nbytes); 4174 void __sanitizer_syscall_post_impl_extattr_list_fd(long long res, long long fd, 4175 long long attrnamespace, 4176 long long data, 4177 long long nbytes); 4178 void __sanitizer_syscall_pre_impl_extattr_list_file(long long path, 4179 long long attrnamespace, 4180 long long data, 4181 long long nbytes); 4182 void __sanitizer_syscall_post_impl_extattr_list_file(long long res, 4183 long long path, 4184 long long attrnamespace, 4185 long long data, 4186 long long nbytes); 4187 void __sanitizer_syscall_pre_impl_extattr_list_link(long long path, 4188 long long attrnamespace, 4189 long long data, 4190 long long nbytes); 4191 void __sanitizer_syscall_post_impl_extattr_list_link(long long res, 4192 long long path, 4193 long long attrnamespace, 4194 long long data, 4195 long long nbytes); 4196 void __sanitizer_syscall_pre_impl_compat_50_pselect(long long nd, long long in, 4197 long long ou, long long ex, 4198 long long ts, 4199 long long mask); 4200 void __sanitizer_syscall_post_impl_compat_50_pselect(long long res, 4201 long long nd, long long in, 4202 long long ou, long long ex, 4203 long long ts, 4204 long long mask); 4205 void __sanitizer_syscall_pre_impl_compat_50_pollts(long long fds, 4206 long long nfds, long long ts, 4207 long long mask); 4208 void __sanitizer_syscall_post_impl_compat_50_pollts( 4209 long long res, long long fds, long long nfds, long long ts, long long mask); 4210 void __sanitizer_syscall_pre_impl_setxattr(long long path, long long name, 4211 long long value, long long size, 4212 long long flags); 4213 void __sanitizer_syscall_post_impl_setxattr(long long res, long long path, 4214 long long name, long long value, 4215 long long size, long long flags); 4216 void __sanitizer_syscall_pre_impl_lsetxattr(long long path, long long name, 4217 long long value, long long size, 4218 long long flags); 4219 void __sanitizer_syscall_post_impl_lsetxattr(long long res, long long path, 4220 long long name, long long value, 4221 long long size, long long flags); 4222 void __sanitizer_syscall_pre_impl_fsetxattr(long long fd, long long name, 4223 long long value, long long size, 4224 long long flags); 4225 void __sanitizer_syscall_post_impl_fsetxattr(long long res, long long fd, 4226 long long name, long long value, 4227 long long size, long long flags); 4228 void __sanitizer_syscall_pre_impl_getxattr(long long path, long long name, 4229 long long value, long long size); 4230 void __sanitizer_syscall_post_impl_getxattr(long long res, long long path, 4231 long long name, long long value, 4232 long long size); 4233 void __sanitizer_syscall_pre_impl_lgetxattr(long long path, long long name, 4234 long long value, long long size); 4235 void __sanitizer_syscall_post_impl_lgetxattr(long long res, long long path, 4236 long long name, long long value, 4237 long long size); 4238 void __sanitizer_syscall_pre_impl_fgetxattr(long long fd, long long name, 4239 long long value, long long size); 4240 void __sanitizer_syscall_post_impl_fgetxattr(long long res, long long fd, 4241 long long name, long long value, 4242 long long size); 4243 void __sanitizer_syscall_pre_impl_listxattr(long long path, long long list, 4244 long long size); 4245 void __sanitizer_syscall_post_impl_listxattr(long long res, long long path, 4246 long long list, long long size); 4247 void __sanitizer_syscall_pre_impl_llistxattr(long long path, long long list, 4248 long long size); 4249 void __sanitizer_syscall_post_impl_llistxattr(long long res, long long path, 4250 long long list, long long size); 4251 void __sanitizer_syscall_pre_impl_flistxattr(long long fd, long long list, 4252 long long size); 4253 void __sanitizer_syscall_post_impl_flistxattr(long long res, long long fd, 4254 long long list, long long size); 4255 void __sanitizer_syscall_pre_impl_removexattr(long long path, long long name); 4256 void __sanitizer_syscall_post_impl_removexattr(long long res, long long path, 4257 long long name); 4258 void __sanitizer_syscall_pre_impl_lremovexattr(long long path, long long name); 4259 void __sanitizer_syscall_post_impl_lremovexattr(long long res, long long path, 4260 long long name); 4261 void __sanitizer_syscall_pre_impl_fremovexattr(long long fd, long long name); 4262 void __sanitizer_syscall_post_impl_fremovexattr(long long res, long long fd, 4263 long long name); 4264 void __sanitizer_syscall_pre_impl_compat_50___stat30(long long path, 4265 long long ub); 4266 void __sanitizer_syscall_post_impl_compat_50___stat30(long long res, 4267 long long path, 4268 long long ub); 4269 void __sanitizer_syscall_pre_impl_compat_50___fstat30(long long fd, 4270 long long sb); 4271 void __sanitizer_syscall_post_impl_compat_50___fstat30(long long res, 4272 long long fd, 4273 long long sb); 4274 void __sanitizer_syscall_pre_impl_compat_50___lstat30(long long path, 4275 long long ub); 4276 void __sanitizer_syscall_post_impl_compat_50___lstat30(long long res, 4277 long long path, 4278 long long ub); 4279 void __sanitizer_syscall_pre_impl___getdents30(long long fd, long long buf, 4280 long long count); 4281 void __sanitizer_syscall_post_impl___getdents30(long long res, long long fd, 4282 long long buf, long long count); 4283 void __sanitizer_syscall_pre_impl_posix_fadvise(long long); 4284 void __sanitizer_syscall_post_impl_posix_fadvise(long long res, long long); 4285 void __sanitizer_syscall_pre_impl_compat_30___fhstat30(long long fhp, 4286 long long sb); 4287 void __sanitizer_syscall_post_impl_compat_30___fhstat30(long long res, 4288 long long fhp, 4289 long long sb); 4290 void __sanitizer_syscall_pre_impl_compat_50___ntp_gettime30(long long ntvp); 4291 void __sanitizer_syscall_post_impl_compat_50___ntp_gettime30(long long res, 4292 long long ntvp); 4293 void __sanitizer_syscall_pre_impl___socket30(long long domain, long long type, 4294 long long protocol); 4295 void __sanitizer_syscall_post_impl___socket30(long long res, long long domain, 4296 long long type, 4297 long long protocol); 4298 void __sanitizer_syscall_pre_impl___getfh30(long long fname, long long fhp, 4299 long long fh_size); 4300 void __sanitizer_syscall_post_impl___getfh30(long long res, long long fname, 4301 long long fhp, long long fh_size); 4302 void __sanitizer_syscall_pre_impl___fhopen40(long long fhp, long long fh_size, 4303 long long flags); 4304 void __sanitizer_syscall_post_impl___fhopen40(long long res, long long fhp, 4305 long long fh_size, 4306 long long flags); 4307 void __sanitizer_syscall_pre_impl___fhstatvfs140(long long fhp, 4308 long long fh_size, 4309 long long buf, 4310 long long flags); 4311 void __sanitizer_syscall_post_impl___fhstatvfs140(long long res, long long fhp, 4312 long long fh_size, 4313 long long buf, 4314 long long flags); 4315 void __sanitizer_syscall_pre_impl_compat_50___fhstat40(long long fhp, 4316 long long fh_size, 4317 long long sb); 4318 void __sanitizer_syscall_post_impl_compat_50___fhstat40(long long res, 4319 long long fhp, 4320 long long fh_size, 4321 long long sb); 4322 void __sanitizer_syscall_pre_impl_aio_cancel(long long fildes, 4323 long long aiocbp); 4324 void __sanitizer_syscall_post_impl_aio_cancel(long long res, long long fildes, 4325 long long aiocbp); 4326 void __sanitizer_syscall_pre_impl_aio_error(long long aiocbp); 4327 void __sanitizer_syscall_post_impl_aio_error(long long res, long long aiocbp); 4328 void __sanitizer_syscall_pre_impl_aio_fsync(long long op, long long aiocbp); 4329 void __sanitizer_syscall_post_impl_aio_fsync(long long res, long long op, 4330 long long aiocbp); 4331 void __sanitizer_syscall_pre_impl_aio_read(long long aiocbp); 4332 void __sanitizer_syscall_post_impl_aio_read(long long res, long long aiocbp); 4333 void __sanitizer_syscall_pre_impl_aio_return(long long aiocbp); 4334 void __sanitizer_syscall_post_impl_aio_return(long long res, long long aiocbp); 4335 void __sanitizer_syscall_pre_impl_compat_50_aio_suspend(long long list, 4336 long long nent, 4337 long long timeout); 4338 void __sanitizer_syscall_post_impl_compat_50_aio_suspend(long long res, 4339 long long list, 4340 long long nent, 4341 long long timeout); 4342 void __sanitizer_syscall_pre_impl_aio_write(long long aiocbp); 4343 void __sanitizer_syscall_post_impl_aio_write(long long res, long long aiocbp); 4344 void __sanitizer_syscall_pre_impl_lio_listio(long long mode, long long list, 4345 long long nent, long long sig); 4346 void __sanitizer_syscall_post_impl_lio_listio(long long res, long long mode, 4347 long long list, long long nent, 4348 long long sig); 4349 /* syscall 407 has been skipped */ 4350 /* syscall 408 has been skipped */ 4351 /* syscall 409 has been skipped */ 4352 void __sanitizer_syscall_pre_impl___mount50(long long type, long long path, 4353 long long flags, long long data, 4354 long long data_len); 4355 void __sanitizer_syscall_post_impl___mount50(long long res, long long type, 4356 long long path, long long flags, 4357 long long data, 4358 long long data_len); 4359 void __sanitizer_syscall_pre_impl_mremap(long long old_address, 4360 long long old_size, 4361 long long new_address, 4362 long long new_size, long long flags); 4363 void __sanitizer_syscall_post_impl_mremap(long long res, long long old_address, 4364 long long old_size, 4365 long long new_address, 4366 long long new_size, long long flags); 4367 void __sanitizer_syscall_pre_impl_pset_create(long long psid); 4368 void __sanitizer_syscall_post_impl_pset_create(long long res, long long psid); 4369 void __sanitizer_syscall_pre_impl_pset_destroy(long long psid); 4370 void __sanitizer_syscall_post_impl_pset_destroy(long long res, long long psid); 4371 void __sanitizer_syscall_pre_impl_pset_assign(long long psid, long long cpuid, 4372 long long opsid); 4373 void __sanitizer_syscall_post_impl_pset_assign(long long res, long long psid, 4374 long long cpuid, 4375 long long opsid); 4376 void __sanitizer_syscall_pre_impl__pset_bind(long long idtype, 4377 long long first_id, 4378 long long second_id, 4379 long long psid, long long opsid); 4380 void __sanitizer_syscall_post_impl__pset_bind(long long res, long long idtype, 4381 long long first_id, 4382 long long second_id, 4383 long long psid, long long opsid); 4384 void __sanitizer_syscall_pre_impl___posix_fadvise50(long long fd, long long PAD, 4385 long long offset, 4386 long long len, 4387 long long advice); 4388 void __sanitizer_syscall_post_impl___posix_fadvise50( 4389 long long res, long long fd, long long PAD, long long offset, long long len, 4390 long long advice); 4391 void __sanitizer_syscall_pre_impl___select50(long long nd, long long in, 4392 long long ou, long long ex, 4393 long long tv); 4394 void __sanitizer_syscall_post_impl___select50(long long res, long long nd, 4395 long long in, long long ou, 4396 long long ex, long long tv); 4397 void __sanitizer_syscall_pre_impl___gettimeofday50(long long tp, long long tzp); 4398 void __sanitizer_syscall_post_impl___gettimeofday50(long long res, long long tp, 4399 long long tzp); 4400 void __sanitizer_syscall_pre_impl___settimeofday50(long long tv, long long tzp); 4401 void __sanitizer_syscall_post_impl___settimeofday50(long long res, long long tv, 4402 long long tzp); 4403 void __sanitizer_syscall_pre_impl___utimes50(long long path, long long tptr); 4404 void __sanitizer_syscall_post_impl___utimes50(long long res, long long path, 4405 long long tptr); 4406 void __sanitizer_syscall_pre_impl___adjtime50(long long delta, 4407 long long olddelta); 4408 void __sanitizer_syscall_post_impl___adjtime50(long long res, long long delta, 4409 long long olddelta); 4410 void __sanitizer_syscall_pre_impl___lfs_segwait50(long long fsidp, 4411 long long tv); 4412 void __sanitizer_syscall_post_impl___lfs_segwait50(long long res, 4413 long long fsidp, 4414 long long tv); 4415 void __sanitizer_syscall_pre_impl___futimes50(long long fd, long long tptr); 4416 void __sanitizer_syscall_post_impl___futimes50(long long res, long long fd, 4417 long long tptr); 4418 void __sanitizer_syscall_pre_impl___lutimes50(long long path, long long tptr); 4419 void __sanitizer_syscall_post_impl___lutimes50(long long res, long long path, 4420 long long tptr); 4421 void __sanitizer_syscall_pre_impl___setitimer50(long long which, long long itv, 4422 long long oitv); 4423 void __sanitizer_syscall_post_impl___setitimer50(long long res, long long which, 4424 long long itv, long long oitv); 4425 void __sanitizer_syscall_pre_impl___getitimer50(long long which, long long itv); 4426 void __sanitizer_syscall_post_impl___getitimer50(long long res, long long which, 4427 long long itv); 4428 void __sanitizer_syscall_pre_impl___clock_gettime50(long long clock_id, 4429 long long tp); 4430 void __sanitizer_syscall_post_impl___clock_gettime50(long long res, 4431 long long clock_id, 4432 long long tp); 4433 void __sanitizer_syscall_pre_impl___clock_settime50(long long clock_id, 4434 long long tp); 4435 void __sanitizer_syscall_post_impl___clock_settime50(long long res, 4436 long long clock_id, 4437 long long tp); 4438 void __sanitizer_syscall_pre_impl___clock_getres50(long long clock_id, 4439 long long tp); 4440 void __sanitizer_syscall_post_impl___clock_getres50(long long res, 4441 long long clock_id, 4442 long long tp); 4443 void __sanitizer_syscall_pre_impl___nanosleep50(long long rqtp, long long rmtp); 4444 void __sanitizer_syscall_post_impl___nanosleep50(long long res, long long rqtp, 4445 long long rmtp); 4446 void __sanitizer_syscall_pre_impl_____sigtimedwait50(long long set, 4447 long long info, 4448 long long timeout); 4449 void __sanitizer_syscall_post_impl_____sigtimedwait50(long long res, 4450 long long set, 4451 long long info, 4452 long long timeout); 4453 void __sanitizer_syscall_pre_impl___mq_timedsend50(long long mqdes, 4454 long long msg_ptr, 4455 long long msg_len, 4456 long long msg_prio, 4457 long long abs_timeout); 4458 void __sanitizer_syscall_post_impl___mq_timedsend50( 4459 long long res, long long mqdes, long long msg_ptr, long long msg_len, 4460 long long msg_prio, long long abs_timeout); 4461 void __sanitizer_syscall_pre_impl___mq_timedreceive50(long long mqdes, 4462 long long msg_ptr, 4463 long long msg_len, 4464 long long msg_prio, 4465 long long abs_timeout); 4466 void __sanitizer_syscall_post_impl___mq_timedreceive50( 4467 long long res, long long mqdes, long long msg_ptr, long long msg_len, 4468 long long msg_prio, long long abs_timeout); 4469 void __sanitizer_syscall_pre_impl_compat_60__lwp_park(long long ts, 4470 long long unpark, 4471 long long hint, 4472 long long unparkhint); 4473 void __sanitizer_syscall_post_impl_compat_60__lwp_park(long long res, 4474 long long ts, 4475 long long unpark, 4476 long long hint, 4477 long long unparkhint); 4478 void __sanitizer_syscall_pre_impl___kevent50(long long fd, long long changelist, 4479 long long nchanges, 4480 long long eventlist, 4481 long long nevents, 4482 long long timeout); 4483 void __sanitizer_syscall_post_impl___kevent50( 4484 long long res, long long fd, long long changelist, long long nchanges, 4485 long long eventlist, long long nevents, long long timeout); 4486 void __sanitizer_syscall_pre_impl___pselect50(long long nd, long long in, 4487 long long ou, long long ex, 4488 long long ts, long long mask); 4489 void __sanitizer_syscall_post_impl___pselect50(long long res, long long nd, 4490 long long in, long long ou, 4491 long long ex, long long ts, 4492 long long mask); 4493 void __sanitizer_syscall_pre_impl___pollts50(long long fds, long long nfds, 4494 long long ts, long long mask); 4495 void __sanitizer_syscall_post_impl___pollts50(long long res, long long fds, 4496 long long nfds, long long ts, 4497 long long mask); 4498 void __sanitizer_syscall_pre_impl___aio_suspend50(long long list, 4499 long long nent, 4500 long long timeout); 4501 void __sanitizer_syscall_post_impl___aio_suspend50(long long res, 4502 long long list, 4503 long long nent, 4504 long long timeout); 4505 void __sanitizer_syscall_pre_impl___stat50(long long path, long long ub); 4506 void __sanitizer_syscall_post_impl___stat50(long long res, long long path, 4507 long long ub); 4508 void __sanitizer_syscall_pre_impl___fstat50(long long fd, long long sb); 4509 void __sanitizer_syscall_post_impl___fstat50(long long res, long long fd, 4510 long long sb); 4511 void __sanitizer_syscall_pre_impl___lstat50(long long path, long long ub); 4512 void __sanitizer_syscall_post_impl___lstat50(long long res, long long path, 4513 long long ub); 4514 void __sanitizer_syscall_pre_impl_____semctl50(long long semid, 4515 long long semnum, long long cmd, 4516 long long arg); 4517 void __sanitizer_syscall_post_impl_____semctl50(long long res, long long semid, 4518 long long semnum, long long cmd, 4519 long long arg); 4520 void __sanitizer_syscall_pre_impl___shmctl50(long long shmid, long long cmd, 4521 long long buf); 4522 void __sanitizer_syscall_post_impl___shmctl50(long long res, long long shmid, 4523 long long cmd, long long buf); 4524 void __sanitizer_syscall_pre_impl___msgctl50(long long msqid, long long cmd, 4525 long long buf); 4526 void __sanitizer_syscall_post_impl___msgctl50(long long res, long long msqid, 4527 long long cmd, long long buf); 4528 void __sanitizer_syscall_pre_impl___getrusage50(long long who, 4529 long long rusage); 4530 void __sanitizer_syscall_post_impl___getrusage50(long long res, long long who, 4531 long long rusage); 4532 void __sanitizer_syscall_pre_impl___timer_settime50(long long timerid, 4533 long long flags, 4534 long long value, 4535 long long ovalue); 4536 void __sanitizer_syscall_post_impl___timer_settime50(long long res, 4537 long long timerid, 4538 long long flags, 4539 long long value, 4540 long long ovalue); 4541 void __sanitizer_syscall_pre_impl___timer_gettime50(long long timerid, 4542 long long value); 4543 void __sanitizer_syscall_post_impl___timer_gettime50(long long res, 4544 long long timerid, 4545 long long value); 4546 #if defined(NTP) || !defined(_KERNEL_OPT) 4547 void __sanitizer_syscall_pre_impl___ntp_gettime50(long long ntvp); 4548 void __sanitizer_syscall_post_impl___ntp_gettime50(long long res, 4549 long long ntvp); 4550 #else 4551 /* syscall 448 has been skipped */ 4552 #endif 4553 void __sanitizer_syscall_pre_impl___wait450(long long pid, long long status, 4554 long long options, 4555 long long rusage); 4556 void __sanitizer_syscall_post_impl___wait450(long long res, long long pid, 4557 long long status, 4558 long long options, 4559 long long rusage); 4560 void __sanitizer_syscall_pre_impl___mknod50(long long path, long long mode, 4561 long long dev); 4562 void __sanitizer_syscall_post_impl___mknod50(long long res, long long path, 4563 long long mode, long long dev); 4564 void __sanitizer_syscall_pre_impl___fhstat50(long long fhp, long long fh_size, 4565 long long sb); 4566 void __sanitizer_syscall_post_impl___fhstat50(long long res, long long fhp, 4567 long long fh_size, long long sb); 4568 /* syscall 452 has been skipped */ 4569 void __sanitizer_syscall_pre_impl_pipe2(long long fildes, long long flags); 4570 void __sanitizer_syscall_post_impl_pipe2(long long res, long long fildes, 4571 long long flags); 4572 void __sanitizer_syscall_pre_impl_dup3(long long from, long long to, 4573 long long flags); 4574 void __sanitizer_syscall_post_impl_dup3(long long res, long long from, 4575 long long to, long long flags); 4576 void __sanitizer_syscall_pre_impl_kqueue1(long long flags); 4577 void __sanitizer_syscall_post_impl_kqueue1(long long res, long long flags); 4578 void __sanitizer_syscall_pre_impl_paccept(long long s, long long name, 4579 long long anamelen, long long mask, 4580 long long flags); 4581 void __sanitizer_syscall_post_impl_paccept(long long res, long long s, 4582 long long name, long long anamelen, 4583 long long mask, long long flags); 4584 void __sanitizer_syscall_pre_impl_linkat(long long fd1, long long name1, 4585 long long fd2, long long name2, 4586 long long flags); 4587 void __sanitizer_syscall_post_impl_linkat(long long res, long long fd1, 4588 long long name1, long long fd2, 4589 long long name2, long long flags); 4590 void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from, 4591 long long tofd, long long to); 4592 void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd, 4593 long long from, long long tofd, 4594 long long to); 4595 void __sanitizer_syscall_pre_impl_mkfifoat(long long fd, long long path, 4596 long long mode); 4597 void __sanitizer_syscall_post_impl_mkfifoat(long long res, long long fd, 4598 long long path, long long mode); 4599 void __sanitizer_syscall_pre_impl_mknodat(long long fd, long long path, 4600 long long mode, long long PAD, 4601 long long dev); 4602 void __sanitizer_syscall_post_impl_mknodat(long long res, long long fd, 4603 long long path, long long mode, 4604 long long PAD, long long dev); 4605 void __sanitizer_syscall_pre_impl_mkdirat(long long fd, long long path, 4606 long long mode); 4607 void __sanitizer_syscall_post_impl_mkdirat(long long res, long long fd, 4608 long long path, long long mode); 4609 void __sanitizer_syscall_pre_impl_faccessat(long long fd, long long path, 4610 long long amode, long long flag); 4611 void __sanitizer_syscall_post_impl_faccessat(long long res, long long fd, 4612 long long path, long long amode, 4613 long long flag); 4614 void __sanitizer_syscall_pre_impl_fchmodat(long long fd, long long path, 4615 long long mode, long long flag); 4616 void __sanitizer_syscall_post_impl_fchmodat(long long res, long long fd, 4617 long long path, long long mode, 4618 long long flag); 4619 void __sanitizer_syscall_pre_impl_fchownat(long long fd, long long path, 4620 long long owner, long long group, 4621 long long flag); 4622 void __sanitizer_syscall_post_impl_fchownat(long long res, long long fd, 4623 long long path, long long owner, 4624 long long group, long long flag); 4625 void __sanitizer_syscall_pre_impl_fexecve(long long fd, long long argp, 4626 long long envp); 4627 void __sanitizer_syscall_post_impl_fexecve(long long res, long long fd, 4628 long long argp, long long envp); 4629 void __sanitizer_syscall_pre_impl_fstatat(long long fd, long long path, 4630 long long buf, long long flag); 4631 void __sanitizer_syscall_post_impl_fstatat(long long res, long long fd, 4632 long long path, long long buf, 4633 long long flag); 4634 void __sanitizer_syscall_pre_impl_utimensat(long long fd, long long path, 4635 long long tptr, long long flag); 4636 void __sanitizer_syscall_post_impl_utimensat(long long res, long long fd, 4637 long long path, long long tptr, 4638 long long flag); 4639 void __sanitizer_syscall_pre_impl_openat(long long fd, long long path, 4640 long long oflags, long long mode); 4641 void __sanitizer_syscall_post_impl_openat(long long res, long long fd, 4642 long long path, long long oflags, 4643 long long mode); 4644 void __sanitizer_syscall_pre_impl_readlinkat(long long fd, long long path, 4645 long long buf, long long bufsize); 4646 void __sanitizer_syscall_post_impl_readlinkat(long long res, long long fd, 4647 long long path, long long buf, 4648 long long bufsize); 4649 void __sanitizer_syscall_pre_impl_symlinkat(long long path1, long long fd, 4650 long long path2); 4651 void __sanitizer_syscall_post_impl_symlinkat(long long res, long long path1, 4652 long long fd, long long path2); 4653 void __sanitizer_syscall_pre_impl_unlinkat(long long fd, long long path, 4654 long long flag); 4655 void __sanitizer_syscall_post_impl_unlinkat(long long res, long long fd, 4656 long long path, long long flag); 4657 void __sanitizer_syscall_pre_impl_futimens(long long fd, long long tptr); 4658 void __sanitizer_syscall_post_impl_futimens(long long res, long long fd, 4659 long long tptr); 4660 void __sanitizer_syscall_pre_impl___quotactl(long long path, long long args); 4661 void __sanitizer_syscall_post_impl___quotactl(long long res, long long path, 4662 long long args); 4663 void __sanitizer_syscall_pre_impl_posix_spawn(long long pid, long long path, 4664 long long file_actions, 4665 long long attrp, long long argv, 4666 long long envp); 4667 void __sanitizer_syscall_post_impl_posix_spawn(long long res, long long pid, 4668 long long path, 4669 long long file_actions, 4670 long long attrp, long long argv, 4671 long long envp); 4672 void __sanitizer_syscall_pre_impl_recvmmsg(long long s, long long mmsg, 4673 long long vlen, long long flags, 4674 long long timeout); 4675 void __sanitizer_syscall_post_impl_recvmmsg(long long res, long long s, 4676 long long mmsg, long long vlen, 4677 long long flags, long long timeout); 4678 void __sanitizer_syscall_pre_impl_sendmmsg(long long s, long long mmsg, 4679 long long vlen, long long flags); 4680 void __sanitizer_syscall_post_impl_sendmmsg(long long res, long long s, 4681 long long mmsg, long long vlen, 4682 long long flags); 4683 void __sanitizer_syscall_pre_impl_clock_nanosleep(long long clock_id, 4684 long long flags, 4685 long long rqtp, 4686 long long rmtp); 4687 void __sanitizer_syscall_post_impl_clock_nanosleep(long long res, 4688 long long clock_id, 4689 long long flags, 4690 long long rqtp, 4691 long long rmtp); 4692 void __sanitizer_syscall_pre_impl____lwp_park60(long long clock_id, 4693 long long flags, long long ts, 4694 long long unpark, 4695 long long hint, 4696 long long unparkhint); 4697 void __sanitizer_syscall_post_impl____lwp_park60( 4698 long long res, long long clock_id, long long flags, long long ts, 4699 long long unpark, long long hint, long long unparkhint); 4700 void __sanitizer_syscall_pre_impl_posix_fallocate(long long fd, long long PAD, 4701 long long pos, long long len); 4702 void __sanitizer_syscall_post_impl_posix_fallocate(long long res, long long fd, 4703 long long PAD, long long pos, 4704 long long len); 4705 void __sanitizer_syscall_pre_impl_fdiscard(long long fd, long long PAD, 4706 long long pos, long long len); 4707 void __sanitizer_syscall_post_impl_fdiscard(long long res, long long fd, 4708 long long PAD, long long pos, 4709 long long len); 4710 void __sanitizer_syscall_pre_impl_wait6(long long idtype, long long id, 4711 long long status, long long options, 4712 long long wru, long long info); 4713 void __sanitizer_syscall_post_impl_wait6(long long res, long long idtype, 4714 long long id, long long status, 4715 long long options, long long wru, 4716 long long info); 4717 void __sanitizer_syscall_pre_impl_clock_getcpuclockid2(long long idtype, 4718 long long id, 4719 long long clock_id); 4720 void __sanitizer_syscall_post_impl_clock_getcpuclockid2(long long res, 4721 long long idtype, 4722 long long id, 4723 long long clock_id); 4724 4725 #ifdef __cplusplus 4726 } // extern "C" 4727 #endif 4728 4729 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED! 4730 4731 #endif // SANITIZER_NETBSD_SYSCALL_HOOKS_H 4732