xref: /aosp_15_r20/external/compiler-rt/include/sanitizer/linux_syscall_hooks.h (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot //===-- linux_syscall_hooks.h ---------------------------------------------===//
2*7c3d14c8STreehugger Robot //
3*7c3d14c8STreehugger Robot //                     The LLVM Compiler Infrastructure
4*7c3d14c8STreehugger Robot //
5*7c3d14c8STreehugger Robot // This file is distributed under the University of Illinois Open Source
6*7c3d14c8STreehugger Robot // License. See LICENSE.TXT for details.
7*7c3d14c8STreehugger Robot //
8*7c3d14c8STreehugger Robot //===----------------------------------------------------------------------===//
9*7c3d14c8STreehugger Robot //
10*7c3d14c8STreehugger Robot // This file is a part of public sanitizer interface.
11*7c3d14c8STreehugger Robot //
12*7c3d14c8STreehugger Robot // System call handlers.
13*7c3d14c8STreehugger Robot //
14*7c3d14c8STreehugger Robot // Interface methods declared in this header implement pre- and post- syscall
15*7c3d14c8STreehugger Robot // actions for the active sanitizer.
16*7c3d14c8STreehugger Robot // Usage:
17*7c3d14c8STreehugger Robot //   __sanitizer_syscall_pre_getfoo(...args...);
18*7c3d14c8STreehugger Robot //   long res = syscall(__NR_getfoo, ...args...);
19*7c3d14c8STreehugger Robot //   __sanitizer_syscall_post_getfoo(res, ...args...);
20*7c3d14c8STreehugger Robot //===----------------------------------------------------------------------===//
21*7c3d14c8STreehugger Robot #ifndef SANITIZER_LINUX_SYSCALL_HOOKS_H
22*7c3d14c8STreehugger Robot #define SANITIZER_LINUX_SYSCALL_HOOKS_H
23*7c3d14c8STreehugger Robot 
24*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_time(tloc) \
25*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_time((long)(tloc))
26*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_time(res, tloc) \
27*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_time(res, (long)(tloc))
28*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_stime(tptr) \
29*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_stime((long)(tptr))
30*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_stime(res, tptr) \
31*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_stime(res, (long)(tptr))
32*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_gettimeofday(tv, tz) \
33*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_gettimeofday((long)(tv), (long)(tz))
34*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_gettimeofday(res, tv, tz) \
35*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_gettimeofday(res, (long)(tv), (long)(tz))
36*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_settimeofday(tv, tz) \
37*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_settimeofday((long)(tv), (long)(tz))
38*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_settimeofday(res, tv, tz) \
39*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_settimeofday(res, (long)(tv), (long)(tz))
40*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_adjtimex(txc_p) \
41*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_adjtimex((long)(txc_p))
42*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_adjtimex(res, txc_p) \
43*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_adjtimex(res, (long)(txc_p))
44*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_times(tbuf) \
45*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_times((long)(tbuf))
46*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_times(res, tbuf) \
47*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_times(res, (long)(tbuf))
48*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_gettid() __sanitizer_syscall_pre_impl_gettid()
49*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_gettid(res) \
50*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_gettid(res)
51*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_nanosleep(rqtp, rmtp) \
52*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_nanosleep((long)(rqtp), (long)(rmtp))
53*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_nanosleep(res, rqtp, rmtp) \
54*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_nanosleep(res, (long)(rqtp), (long)(rmtp))
55*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_alarm(seconds) \
56*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_alarm((long)(seconds))
57*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_alarm(res, seconds) \
58*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_alarm(res, (long)(seconds))
59*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpid() __sanitizer_syscall_pre_impl_getpid()
60*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpid(res) \
61*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getpid(res)
62*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getppid() __sanitizer_syscall_pre_impl_getppid()
63*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getppid(res) \
64*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getppid(res)
65*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getuid() __sanitizer_syscall_pre_impl_getuid()
66*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getuid(res) \
67*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getuid(res)
68*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_geteuid() __sanitizer_syscall_pre_impl_geteuid()
69*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_geteuid(res) \
70*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_geteuid(res)
71*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgid() __sanitizer_syscall_pre_impl_getgid()
72*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgid(res) \
73*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getgid(res)
74*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getegid() __sanitizer_syscall_pre_impl_getegid()
75*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getegid(res) \
76*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getegid(res)
77*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresuid(ruid, euid, suid)          \
78*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \
79*7c3d14c8STreehugger Robot                                          (long)(suid))
80*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid)          \
81*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \
82*7c3d14c8STreehugger Robot                                           (long)(suid))
83*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid)          \
84*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getresgid((long)(rgid), (long)(egid), \
85*7c3d14c8STreehugger Robot                                          (long)(sgid))
86*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid)          \
87*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getresgid(res, (long)(rgid), (long)(egid), \
88*7c3d14c8STreehugger Robot                                           (long)(sgid))
89*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpgid(pid) \
90*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getpgid((long)(pid))
91*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpgid(res, pid) \
92*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getpgid(res, (long)(pid))
93*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpgrp() __sanitizer_syscall_pre_impl_getpgrp()
94*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpgrp(res) \
95*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getpgrp(res)
96*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getsid(pid) \
97*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getsid((long)(pid))
98*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getsid(res, pid) \
99*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getsid(res, (long)(pid))
100*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgroups(gidsetsize, grouplist) \
101*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getgroups((long)(gidsetsize), (long)(grouplist))
102*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgroups(res, gidsetsize, grouplist) \
103*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getgroups(res, (long)(gidsetsize),     \
104*7c3d14c8STreehugger Robot                                           (long)(grouplist))
105*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setregid(rgid, egid) \
106*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setregid((long)(rgid), (long)(egid))
107*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setregid(res, rgid, egid) \
108*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setregid(res, (long)(rgid), (long)(egid))
109*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgid(gid) \
110*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setgid((long)(gid))
111*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgid(res, gid) \
112*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setgid(res, (long)(gid))
113*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setreuid(ruid, euid) \
114*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid))
115*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setreuid(res, ruid, euid) \
116*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid))
117*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setuid(uid) \
118*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setuid((long)(uid))
119*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setuid(res, uid) \
120*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setuid(res, (long)(uid))
121*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresuid(ruid, euid, suid)          \
122*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \
123*7c3d14c8STreehugger Robot                                          (long)(suid))
124*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresuid(res, ruid, euid, suid)          \
125*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setresuid(res, (long)(ruid), (long)(euid), \
126*7c3d14c8STreehugger Robot                                           (long)(suid))
127*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid)          \
128*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setresgid((long)(rgid), (long)(egid), \
129*7c3d14c8STreehugger Robot                                          (long)(sgid))
130*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresgid(res, rgid, egid, sgid)          \
131*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setresgid(res, (long)(rgid), (long)(egid), \
132*7c3d14c8STreehugger Robot                                           (long)(sgid))
133*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsuid(uid) \
134*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setfsuid((long)(uid))
135*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsuid(res, uid) \
136*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setfsuid(res, (long)(uid))
137*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsgid(gid) \
138*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setfsgid((long)(gid))
139*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsgid(res, gid) \
140*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setfsgid(res, (long)(gid))
141*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setpgid(pid, pgid) \
142*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid))
143*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \
144*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setpgid(res, (long)(pid), (long)(pgid))
145*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid()
146*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setsid(res) \
147*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setsid(res)
148*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgroups(gidsetsize, grouplist) \
149*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setgroups((long)(gidsetsize), (long)(grouplist))
150*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgroups(res, gidsetsize, grouplist) \
151*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setgroups(res, (long)(gidsetsize),     \
152*7c3d14c8STreehugger Robot                                           (long)(grouplist))
153*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_acct(name) \
154*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_acct((long)(name))
155*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_acct(res, name) \
156*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_acct(res, (long)(name))
157*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_capget(header, dataptr) \
158*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_capget((long)(header), (long)(dataptr))
159*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_capget(res, header, dataptr) \
160*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_capget(res, (long)(header), (long)(dataptr))
161*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_capset(header, data) \
162*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_capset((long)(header), (long)(data))
163*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_capset(res, header, data) \
164*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_capset(res, (long)(header), (long)(data))
165*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_personality(personality) \
166*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_personality((long)(personality))
167*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_personality(res, personality) \
168*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_personality(res, (long)(personality))
169*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigpending(set) \
170*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sigpending((long)(set))
171*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigpending(res, set) \
172*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sigpending(res, (long)(set))
173*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigprocmask(how, set, oset)          \
174*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sigprocmask((long)(how), (long)(set), \
175*7c3d14c8STreehugger Robot                                            (long)(oset))
176*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigprocmask(res, how, set, oset)          \
177*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sigprocmask(res, (long)(how), (long)(set), \
178*7c3d14c8STreehugger Robot                                             (long)(oset))
179*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getitimer(which, value) \
180*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getitimer((long)(which), (long)(value))
181*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getitimer(res, which, value) \
182*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getitimer(res, (long)(which), (long)(value))
183*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setitimer(which, value, ovalue)        \
184*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setitimer((long)(which), (long)(value), \
185*7c3d14c8STreehugger Robot                                          (long)(ovalue))
186*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setitimer(res, which, value, ovalue)        \
187*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setitimer(res, (long)(which), (long)(value), \
188*7c3d14c8STreehugger Robot                                           (long)(ovalue))
189*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timer_create(which_clock, timer_event_spec, \
190*7c3d14c8STreehugger Robot                                              created_timer_id)              \
191*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timer_create(                                \
192*7c3d14c8STreehugger Robot       (long)(which_clock), (long)(timer_event_spec), (long)(created_timer_id))
193*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timer_create(                         \
194*7c3d14c8STreehugger Robot     res, which_clock, timer_event_spec, created_timer_id)              \
195*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timer_create(res, (long)(which_clock), \
196*7c3d14c8STreehugger Robot                                              (long)(timer_event_spec), \
197*7c3d14c8STreehugger Robot                                              (long)(created_timer_id))
198*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timer_gettime(timer_id, setting) \
199*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timer_gettime((long)(timer_id), (long)(setting))
200*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timer_gettime(res, timer_id, setting) \
201*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timer_gettime(res, (long)(timer_id),   \
202*7c3d14c8STreehugger Robot                                               (long)(setting))
203*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timer_getoverrun(timer_id) \
204*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timer_getoverrun((long)(timer_id))
205*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timer_getoverrun(res, timer_id) \
206*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timer_getoverrun(res, (long)(timer_id))
207*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timer_settime(timer_id, flags, new_setting,   \
208*7c3d14c8STreehugger Robot                                               old_setting)                    \
209*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timer_settime((long)(timer_id), (long)(flags), \
210*7c3d14c8STreehugger Robot                                              (long)(new_setting),             \
211*7c3d14c8STreehugger Robot                                              (long)(old_setting))
212*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timer_settime(res, timer_id, flags,     \
213*7c3d14c8STreehugger Robot                                                new_setting, old_setting) \
214*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timer_settime(                           \
215*7c3d14c8STreehugger Robot       res, (long)(timer_id), (long)(flags), (long)(new_setting),         \
216*7c3d14c8STreehugger Robot       (long)(old_setting))
217*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timer_delete(timer_id) \
218*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timer_delete((long)(timer_id))
219*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timer_delete(res, timer_id) \
220*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timer_delete(res, (long)(timer_id))
221*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clock_settime(which_clock, tp) \
222*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_clock_settime((long)(which_clock), (long)(tp))
223*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clock_settime(res, which_clock, tp)    \
224*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_clock_settime(res, (long)(which_clock), \
225*7c3d14c8STreehugger Robot                                               (long)(tp))
226*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clock_gettime(which_clock, tp) \
227*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_clock_gettime((long)(which_clock), (long)(tp))
228*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clock_gettime(res, which_clock, tp)    \
229*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_clock_gettime(res, (long)(which_clock), \
230*7c3d14c8STreehugger Robot                                               (long)(tp))
231*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clock_adjtime(which_clock, tx) \
232*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_clock_adjtime((long)(which_clock), (long)(tx))
233*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clock_adjtime(res, which_clock, tx)    \
234*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_clock_adjtime(res, (long)(which_clock), \
235*7c3d14c8STreehugger Robot                                               (long)(tx))
236*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clock_getres(which_clock, tp) \
237*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_clock_getres((long)(which_clock), (long)(tp))
238*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clock_getres(res, which_clock, tp)    \
239*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_clock_getres(res, (long)(which_clock), \
240*7c3d14c8STreehugger Robot                                              (long)(tp))
241*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clock_nanosleep(which_clock, flags, rqtp, \
242*7c3d14c8STreehugger Robot                                                 rmtp)                     \
243*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_clock_nanosleep(                           \
244*7c3d14c8STreehugger Robot       (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp))
245*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clock_nanosleep(res, which_clock, flags, \
246*7c3d14c8STreehugger Robot                                                  rqtp, rmtp)              \
247*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_clock_nanosleep(                          \
248*7c3d14c8STreehugger Robot       res, (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp))
249*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_nice(increment) \
250*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_nice((long)(increment))
251*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_nice(res, increment) \
252*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_nice(res, (long)(increment))
253*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_setscheduler(pid, policy, param)         \
254*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_setscheduler((long)(pid), (long)(policy), \
255*7c3d14c8STreehugger Robot                                                   (long)(param))
256*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_setscheduler(res, pid, policy, param) \
257*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_setscheduler(                          \
258*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(policy), (long)(param))
259*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_setparam(pid, param) \
260*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_setparam((long)(pid), (long)(param))
261*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_setparam(res, pid, param) \
262*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_setparam(res, (long)(pid), (long)(param))
263*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_getscheduler(pid) \
264*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_getscheduler((long)(pid))
265*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_getscheduler(res, pid) \
266*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_getscheduler(res, (long)(pid))
267*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_getparam(pid, param) \
268*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_getparam((long)(pid), (long)(param))
269*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_getparam(res, pid, param) \
270*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_getparam(res, (long)(pid), (long)(param))
271*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_setaffinity(pid, len, user_mask_ptr) \
272*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_setaffinity((long)(pid), (long)(len), \
273*7c3d14c8STreehugger Robot                                                  (long)(user_mask_ptr))
274*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_setaffinity(res, pid, len, \
275*7c3d14c8STreehugger Robot                                                    user_mask_ptr) \
276*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_setaffinity(                \
277*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(len), (long)(user_mask_ptr))
278*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_getaffinity(pid, len, user_mask_ptr) \
279*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_getaffinity((long)(pid), (long)(len), \
280*7c3d14c8STreehugger Robot                                                  (long)(user_mask_ptr))
281*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_getaffinity(res, pid, len, \
282*7c3d14c8STreehugger Robot                                                    user_mask_ptr) \
283*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_getaffinity(                \
284*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(len), (long)(user_mask_ptr))
285*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_yield() \
286*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_yield()
287*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_yield(res) \
288*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_yield(res)
289*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_get_priority_max(policy) \
290*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_get_priority_max((long)(policy))
291*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_get_priority_max(res, policy) \
292*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_get_priority_max(res, (long)(policy))
293*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_get_priority_min(policy) \
294*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_get_priority_min((long)(policy))
295*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_get_priority_min(res, policy) \
296*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_get_priority_min(res, (long)(policy))
297*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sched_rr_get_interval(pid, interval) \
298*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sched_rr_get_interval((long)(pid),    \
299*7c3d14c8STreehugger Robot                                                      (long)(interval))
300*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sched_rr_get_interval(res, pid, interval) \
301*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sched_rr_get_interval(res, (long)(pid),    \
302*7c3d14c8STreehugger Robot                                                       (long)(interval))
303*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setpriority(which, who, niceval)       \
304*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setpriority((long)(which), (long)(who), \
305*7c3d14c8STreehugger Robot                                            (long)(niceval))
306*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setpriority(res, which, who, niceval)       \
307*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setpriority(res, (long)(which), (long)(who), \
308*7c3d14c8STreehugger Robot                                             (long)(niceval))
309*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpriority(which, who) \
310*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getpriority((long)(which), (long)(who))
311*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpriority(res, which, who) \
312*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getpriority(res, (long)(which), (long)(who))
313*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_shutdown(arg0, arg1) \
314*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_shutdown((long)(arg0), (long)(arg1))
315*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_shutdown(res, arg0, arg1) \
316*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_shutdown(res, (long)(arg0), (long)(arg1))
317*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_reboot(magic1, magic2, cmd, arg)      \
318*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_reboot((long)(magic1), (long)(magic2), \
319*7c3d14c8STreehugger Robot                                       (long)(cmd), (long)(arg))
320*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_reboot(res, magic1, magic2, cmd, arg)      \
321*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_reboot(res, (long)(magic1), (long)(magic2), \
322*7c3d14c8STreehugger Robot                                        (long)(cmd), (long)(arg))
323*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_restart_syscall() \
324*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_restart_syscall()
325*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_restart_syscall(res) \
326*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_restart_syscall(res)
327*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_kexec_load(entry, nr_segments, segments,      \
328*7c3d14c8STreehugger Robot                                            flags)                             \
329*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_kexec_load((long)(entry), (long)(nr_segments), \
330*7c3d14c8STreehugger Robot                                           (long)(segments), (long)(flags))
331*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_kexec_load(res, entry, nr_segments, segments, \
332*7c3d14c8STreehugger Robot                                             flags)                             \
333*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_kexec_load(res, (long)(entry),                 \
334*7c3d14c8STreehugger Robot                                            (long)(nr_segments),                \
335*7c3d14c8STreehugger Robot                                            (long)(segments), (long)(flags))
336*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_exit(error_code) \
337*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_exit((long)(error_code))
338*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_exit(res, error_code) \
339*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_exit(res, (long)(error_code))
340*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_exit_group(error_code) \
341*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_exit_group((long)(error_code))
342*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_exit_group(res, error_code) \
343*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_exit_group(res, (long)(error_code))
344*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_wait4(pid, stat_addr, options, ru)   \
345*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_wait4((long)(pid), (long)(stat_addr), \
346*7c3d14c8STreehugger Robot                                      (long)(options), (long)(ru))
347*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_wait4(res, pid, stat_addr, options, ru)   \
348*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_wait4(res, (long)(pid), (long)(stat_addr), \
349*7c3d14c8STreehugger Robot                                       (long)(options), (long)(ru))
350*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_waitid(which, pid, infop, options, ru) \
351*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_waitid(                                 \
352*7c3d14c8STreehugger Robot       (long)(which), (long)(pid), (long)(infop), (long)(options), (long)(ru))
353*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_waitid(res, which, pid, infop, options, ru) \
354*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_waitid(res, (long)(which), (long)(pid),      \
355*7c3d14c8STreehugger Robot                                        (long)(infop), (long)(options),       \
356*7c3d14c8STreehugger Robot                                        (long)(ru))
357*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_waitpid(pid, stat_addr, options)       \
358*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_waitpid((long)(pid), (long)(stat_addr), \
359*7c3d14c8STreehugger Robot                                        (long)(options))
360*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_waitpid(res, pid, stat_addr, options)       \
361*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_waitpid(res, (long)(pid), (long)(stat_addr), \
362*7c3d14c8STreehugger Robot                                         (long)(options))
363*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_set_tid_address(tidptr) \
364*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_set_tid_address((long)(tidptr))
365*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_set_tid_address(res, tidptr) \
366*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_set_tid_address(res, (long)(tidptr))
367*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_init_module(umod, len, uargs)         \
368*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_init_module((long)(umod), (long)(len), \
369*7c3d14c8STreehugger Robot                                            (long)(uargs))
370*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_init_module(res, umod, len, uargs)         \
371*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_init_module(res, (long)(umod), (long)(len), \
372*7c3d14c8STreehugger Robot                                             (long)(uargs))
373*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_delete_module(name_user, flags) \
374*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_delete_module((long)(name_user), (long)(flags))
375*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_delete_module(res, name_user, flags) \
376*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_delete_module(res, (long)(name_user), \
377*7c3d14c8STreehugger Robot                                               (long)(flags))
378*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigprocmask(how, set, oset, sigsetsize) \
379*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_sigprocmask(                             \
380*7c3d14c8STreehugger Robot       (long)(how), (long)(set), (long)(oset), (long)(sigsetsize))
381*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigprocmask(res, how, set, oset, \
382*7c3d14c8STreehugger Robot                                                 sigsetsize)          \
383*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_sigprocmask(                      \
384*7c3d14c8STreehugger Robot       res, (long)(how), (long)(set), (long)(oset), (long)(sigsetsize))
385*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigpending(set, sigsetsize) \
386*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_sigpending((long)(set), (long)(sigsetsize))
387*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigpending(res, set, sigsetsize) \
388*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_sigpending(res, (long)(set),      \
389*7c3d14c8STreehugger Robot                                               (long)(sigsetsize))
390*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigtimedwait(uthese, uinfo, uts, \
391*7c3d14c8STreehugger Robot                                                 sigsetsize)         \
392*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_sigtimedwait(                     \
393*7c3d14c8STreehugger Robot       (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize))
394*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigtimedwait(res, uthese, uinfo, uts, \
395*7c3d14c8STreehugger Robot                                                  sigsetsize)              \
396*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_sigtimedwait(                          \
397*7c3d14c8STreehugger Robot       res, (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize))
398*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_tgsigqueueinfo(tgid, pid, sig, uinfo)    \
399*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_tgsigqueueinfo((long)(tgid), (long)(pid), \
400*7c3d14c8STreehugger Robot                                                  (long)(sig), (long)(uinfo))
401*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_tgsigqueueinfo(res, tgid, pid, sig, uinfo) \
402*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_tgsigqueueinfo(                             \
403*7c3d14c8STreehugger Robot       res, (long)(tgid), (long)(pid), (long)(sig), (long)(uinfo))
404*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_kill(pid, sig) \
405*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_kill((long)(pid), (long)(sig))
406*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_kill(res, pid, sig) \
407*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_kill(res, (long)(pid), (long)(sig))
408*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_tgkill(tgid, pid, sig) \
409*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_tgkill((long)(tgid), (long)(pid), (long)(sig))
410*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_tgkill(res, tgid, pid, sig)           \
411*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_tgkill(res, (long)(tgid), (long)(pid), \
412*7c3d14c8STreehugger Robot                                        (long)(sig))
413*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_tkill(pid, sig) \
414*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_tkill((long)(pid), (long)(sig))
415*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_tkill(res, pid, sig) \
416*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_tkill(res, (long)(pid), (long)(sig))
417*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigqueueinfo(pid, sig, uinfo)         \
418*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_sigqueueinfo((long)(pid), (long)(sig), \
419*7c3d14c8STreehugger Robot                                                (long)(uinfo))
420*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigqueueinfo(res, pid, sig, uinfo)         \
421*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_sigqueueinfo(res, (long)(pid), (long)(sig), \
422*7c3d14c8STreehugger Robot                                                 (long)(uinfo))
423*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sgetmask() \
424*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sgetmask()
425*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sgetmask(res) \
426*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sgetmask(res)
427*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ssetmask(newmask) \
428*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ssetmask((long)(newmask))
429*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ssetmask(res, newmask) \
430*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ssetmask(res, (long)(newmask))
431*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_signal(sig, handler) \
432*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_signal((long)(sig), (long)(handler))
433*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_signal(res, sig, handler) \
434*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_signal(res, (long)(sig), (long)(handler))
435*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pause() __sanitizer_syscall_pre_impl_pause()
436*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pause(res) \
437*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pause(res)
438*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sync() __sanitizer_syscall_pre_impl_sync()
439*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sync(res) \
440*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sync(res)
441*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fsync(fd) \
442*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fsync((long)(fd))
443*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fsync(res, fd) \
444*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fsync(res, (long)(fd))
445*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fdatasync(fd) \
446*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fdatasync((long)(fd))
447*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fdatasync(res, fd) \
448*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fdatasync(res, (long)(fd))
449*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_bdflush(func, data) \
450*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_bdflush((long)(func), (long)(data))
451*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_bdflush(res, func, data) \
452*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_bdflush(res, (long)(func), (long)(data))
453*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mount(dev_name, dir_name, type, flags, data) \
454*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mount((long)(dev_name), (long)(dir_name),     \
455*7c3d14c8STreehugger Robot                                      (long)(type), (long)(flags),            \
456*7c3d14c8STreehugger Robot                                      (long)(data))
457*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mount(res, dev_name, dir_name, type, flags,   \
458*7c3d14c8STreehugger Robot                                        data)                                   \
459*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mount(res, (long)(dev_name), (long)(dir_name), \
460*7c3d14c8STreehugger Robot                                       (long)(type), (long)(flags),             \
461*7c3d14c8STreehugger Robot                                       (long)(data))
462*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_umount(name, flags) \
463*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_umount((long)(name), (long)(flags))
464*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_umount(res, name, flags) \
465*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_umount(res, (long)(name), (long)(flags))
466*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_oldumount(name) \
467*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_oldumount((long)(name))
468*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_oldumount(res, name) \
469*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_oldumount(res, (long)(name))
470*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_truncate(path, length) \
471*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_truncate((long)(path), (long)(length))
472*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_truncate(res, path, length) \
473*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_truncate(res, (long)(path), (long)(length))
474*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ftruncate(fd, length) \
475*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ftruncate((long)(fd), (long)(length))
476*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ftruncate(res, fd, length) \
477*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ftruncate(res, (long)(fd), (long)(length))
478*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_stat(filename, statbuf) \
479*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf))
480*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_stat(res, filename, statbuf) \
481*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf))
482*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_statfs(path, buf) \
483*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_statfs((long)(path), (long)(buf))
484*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_statfs(res, path, buf) \
485*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_statfs(res, (long)(path), (long)(buf))
486*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_statfs64(path, sz, buf) \
487*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_statfs64((long)(path), (long)(sz), (long)(buf))
488*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_statfs64(res, path, sz, buf)           \
489*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_statfs64(res, (long)(path), (long)(sz), \
490*7c3d14c8STreehugger Robot                                          (long)(buf))
491*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fstatfs(fd, buf) \
492*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fstatfs((long)(fd), (long)(buf))
493*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fstatfs(res, fd, buf) \
494*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fstatfs(res, (long)(fd), (long)(buf))
495*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fstatfs64(fd, sz, buf) \
496*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fstatfs64((long)(fd), (long)(sz), (long)(buf))
497*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fstatfs64(res, fd, sz, buf)           \
498*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fstatfs64(res, (long)(fd), (long)(sz), \
499*7c3d14c8STreehugger Robot                                           (long)(buf))
500*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lstat(filename, statbuf) \
501*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf))
502*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \
503*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf))
504*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fstat(fd, statbuf) \
505*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf))
506*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fstat(res, fd, statbuf) \
507*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fstat(res, (long)(fd), (long)(statbuf))
508*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_newstat(filename, statbuf) \
509*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_newstat((long)(filename), (long)(statbuf))
510*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_newstat(res, filename, statbuf) \
511*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_newstat(res, (long)(filename), (long)(statbuf))
512*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_newlstat(filename, statbuf) \
513*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_newlstat((long)(filename), (long)(statbuf))
514*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_newlstat(res, filename, statbuf) \
515*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_newlstat(res, (long)(filename), (long)(statbuf))
516*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_newfstat(fd, statbuf) \
517*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_newfstat((long)(fd), (long)(statbuf))
518*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_newfstat(res, fd, statbuf) \
519*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_newfstat(res, (long)(fd), (long)(statbuf))
520*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ustat(dev, ubuf) \
521*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ustat((long)(dev), (long)(ubuf))
522*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ustat(res, dev, ubuf) \
523*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ustat(res, (long)(dev), (long)(ubuf))
524*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_stat64(filename, statbuf) \
525*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_stat64((long)(filename), (long)(statbuf))
526*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_stat64(res, filename, statbuf) \
527*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_stat64(res, (long)(filename), (long)(statbuf))
528*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fstat64(fd, statbuf) \
529*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fstat64((long)(fd), (long)(statbuf))
530*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fstat64(res, fd, statbuf) \
531*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fstat64(res, (long)(fd), (long)(statbuf))
532*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lstat64(filename, statbuf) \
533*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lstat64((long)(filename), (long)(statbuf))
534*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lstat64(res, filename, statbuf) \
535*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lstat64(res, (long)(filename), (long)(statbuf))
536*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setxattr(path, name, value, size, flags) \
537*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setxattr(                                 \
538*7c3d14c8STreehugger Robot       (long)(path), (long)(name), (long)(value), (long)(size), (long)(flags))
539*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setxattr(res, path, name, value, size, flags) \
540*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setxattr(res, (long)(path), (long)(name),      \
541*7c3d14c8STreehugger Robot                                          (long)(value), (long)(size),          \
542*7c3d14c8STreehugger Robot                                          (long)(flags))
543*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lsetxattr(path, name, value, size, flags) \
544*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lsetxattr(                                 \
545*7c3d14c8STreehugger Robot       (long)(path), (long)(name), (long)(value), (long)(size), (long)(flags))
546*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lsetxattr(res, path, name, value, size,   \
547*7c3d14c8STreehugger Robot                                            flags)                          \
548*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lsetxattr(res, (long)(path), (long)(name), \
549*7c3d14c8STreehugger Robot                                           (long)(value), (long)(size),     \
550*7c3d14c8STreehugger Robot                                           (long)(flags))
551*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fsetxattr(fd, name, value, size, flags) \
552*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fsetxattr(                               \
553*7c3d14c8STreehugger Robot       (long)(fd), (long)(name), (long)(value), (long)(size), (long)(flags))
554*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fsetxattr(res, fd, name, value, size, flags) \
555*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fsetxattr(res, (long)(fd), (long)(name),      \
556*7c3d14c8STreehugger Robot                                           (long)(value), (long)(size),        \
557*7c3d14c8STreehugger Robot                                           (long)(flags))
558*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getxattr(path, name, value, size)   \
559*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getxattr((long)(path), (long)(name), \
560*7c3d14c8STreehugger Robot                                         (long)(value), (long)(size))
561*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getxattr(res, path, name, value, size)   \
562*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getxattr(res, (long)(path), (long)(name), \
563*7c3d14c8STreehugger Robot                                          (long)(value), (long)(size))
564*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lgetxattr(path, name, value, size)   \
565*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lgetxattr((long)(path), (long)(name), \
566*7c3d14c8STreehugger Robot                                          (long)(value), (long)(size))
567*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lgetxattr(res, path, name, value, size)   \
568*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lgetxattr(res, (long)(path), (long)(name), \
569*7c3d14c8STreehugger Robot                                           (long)(value), (long)(size))
570*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fgetxattr(fd, name, value, size)   \
571*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fgetxattr((long)(fd), (long)(name), \
572*7c3d14c8STreehugger Robot                                          (long)(value), (long)(size))
573*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fgetxattr(res, fd, name, value, size)   \
574*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fgetxattr(res, (long)(fd), (long)(name), \
575*7c3d14c8STreehugger Robot                                           (long)(value), (long)(size))
576*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_listxattr(path, list, size)          \
577*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_listxattr((long)(path), (long)(list), \
578*7c3d14c8STreehugger Robot                                          (long)(size))
579*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_listxattr(res, path, list, size)          \
580*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_listxattr(res, (long)(path), (long)(list), \
581*7c3d14c8STreehugger Robot                                           (long)(size))
582*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_llistxattr(path, list, size)          \
583*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_llistxattr((long)(path), (long)(list), \
584*7c3d14c8STreehugger Robot                                           (long)(size))
585*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_llistxattr(res, path, list, size)          \
586*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_llistxattr(res, (long)(path), (long)(list), \
587*7c3d14c8STreehugger Robot                                            (long)(size))
588*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_flistxattr(fd, list, size)          \
589*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_flistxattr((long)(fd), (long)(list), \
590*7c3d14c8STreehugger Robot                                           (long)(size))
591*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_flistxattr(res, fd, list, size)          \
592*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_flistxattr(res, (long)(fd), (long)(list), \
593*7c3d14c8STreehugger Robot                                            (long)(size))
594*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_removexattr(path, name) \
595*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_removexattr((long)(path), (long)(name))
596*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_removexattr(res, path, name) \
597*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_removexattr(res, (long)(path), (long)(name))
598*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lremovexattr(path, name) \
599*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lremovexattr((long)(path), (long)(name))
600*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lremovexattr(res, path, name) \
601*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lremovexattr(res, (long)(path), (long)(name))
602*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fremovexattr(fd, name) \
603*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fremovexattr((long)(fd), (long)(name))
604*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fremovexattr(res, fd, name) \
605*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fremovexattr(res, (long)(fd), (long)(name))
606*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_brk(brk) \
607*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_brk((long)(brk))
608*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_brk(res, brk) \
609*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_brk(res, (long)(brk))
610*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mprotect(start, len, prot)          \
611*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mprotect((long)(start), (long)(len), \
612*7c3d14c8STreehugger Robot                                         (long)(prot))
613*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mprotect(res, start, len, prot)          \
614*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mprotect(res, (long)(start), (long)(len), \
615*7c3d14c8STreehugger Robot                                          (long)(prot))
616*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mremap(addr, old_len, new_len, flags, \
617*7c3d14c8STreehugger Robot                                        new_addr)                      \
618*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mremap((long)(addr), (long)(old_len),  \
619*7c3d14c8STreehugger Robot                                       (long)(new_len), (long)(flags), \
620*7c3d14c8STreehugger Robot                                       (long)(new_addr))
621*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mremap(res, addr, old_len, new_len, flags, \
622*7c3d14c8STreehugger Robot                                         new_addr)                           \
623*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mremap(res, (long)(addr), (long)(old_len),  \
624*7c3d14c8STreehugger Robot                                        (long)(new_len), (long)(flags),      \
625*7c3d14c8STreehugger Robot                                        (long)(new_addr))
626*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_remap_file_pages(start, size, prot, pgoff, \
627*7c3d14c8STreehugger Robot                                                  flags)                    \
628*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_remap_file_pages(                           \
629*7c3d14c8STreehugger Robot       (long)(start), (long)(size), (long)(prot), (long)(pgoff), (long)(flags))
630*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_remap_file_pages(res, start, size, prot,    \
631*7c3d14c8STreehugger Robot                                                   pgoff, flags)              \
632*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_remap_file_pages(res, (long)(start),         \
633*7c3d14c8STreehugger Robot                                                  (long)(size), (long)(prot), \
634*7c3d14c8STreehugger Robot                                                  (long)(pgoff), (long)(flags))
635*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_msync(start, len, flags) \
636*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_msync((long)(start), (long)(len), (long)(flags))
637*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_msync(res, start, len, flags)         \
638*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_msync(res, (long)(start), (long)(len), \
639*7c3d14c8STreehugger Robot                                       (long)(flags))
640*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_munmap(addr, len) \
641*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_munmap((long)(addr), (long)(len))
642*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_munmap(res, addr, len) \
643*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_munmap(res, (long)(addr), (long)(len))
644*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mlock(start, len) \
645*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mlock((long)(start), (long)(len))
646*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mlock(res, start, len) \
647*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mlock(res, (long)(start), (long)(len))
648*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_munlock(start, len) \
649*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_munlock((long)(start), (long)(len))
650*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_munlock(res, start, len) \
651*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_munlock(res, (long)(start), (long)(len))
652*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mlockall(flags) \
653*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mlockall((long)(flags))
654*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mlockall(res, flags) \
655*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mlockall(res, (long)(flags))
656*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_munlockall() \
657*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_munlockall()
658*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_munlockall(res) \
659*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_munlockall(res)
660*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_madvise(start, len, behavior)      \
661*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_madvise((long)(start), (long)(len), \
662*7c3d14c8STreehugger Robot                                        (long)(behavior))
663*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_madvise(res, start, len, behavior)      \
664*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_madvise(res, (long)(start), (long)(len), \
665*7c3d14c8STreehugger Robot                                         (long)(behavior))
666*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mincore(start, len, vec) \
667*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mincore((long)(start), (long)(len), (long)(vec))
668*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mincore(res, start, len, vec)           \
669*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mincore(res, (long)(start), (long)(len), \
670*7c3d14c8STreehugger Robot                                         (long)(vec))
671*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pivot_root(new_root, put_old) \
672*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pivot_root((long)(new_root), (long)(put_old))
673*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pivot_root(res, new_root, put_old) \
674*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pivot_root(res, (long)(new_root),   \
675*7c3d14c8STreehugger Robot                                            (long)(put_old))
676*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chroot(filename) \
677*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_chroot((long)(filename))
678*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chroot(res, filename) \
679*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_chroot(res, (long)(filename))
680*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mknod(filename, mode, dev)           \
681*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mknod((long)(filename), (long)(mode), \
682*7c3d14c8STreehugger Robot                                      (long)(dev))
683*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mknod(res, filename, mode, dev)           \
684*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mknod(res, (long)(filename), (long)(mode), \
685*7c3d14c8STreehugger Robot                                       (long)(dev))
686*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_link(oldname, newname) \
687*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_link((long)(oldname), (long)(newname))
688*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_link(res, oldname, newname) \
689*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_link(res, (long)(oldname), (long)(newname))
690*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_symlink(old, new_) \
691*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_symlink((long)(old), (long)(new_))
692*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_symlink(res, old, new_) \
693*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_symlink(res, (long)(old), (long)(new_))
694*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_unlink(pathname) \
695*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_unlink((long)(pathname))
696*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_unlink(res, pathname) \
697*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_unlink(res, (long)(pathname))
698*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rename(oldname, newname) \
699*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rename((long)(oldname), (long)(newname))
700*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rename(res, oldname, newname) \
701*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rename(res, (long)(oldname), (long)(newname))
702*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chmod(filename, mode) \
703*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_chmod((long)(filename), (long)(mode))
704*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chmod(res, filename, mode) \
705*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_chmod(res, (long)(filename), (long)(mode))
706*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchmod(fd, mode) \
707*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchmod((long)(fd), (long)(mode))
708*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchmod(res, fd, mode) \
709*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchmod(res, (long)(fd), (long)(mode))
710*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fcntl(fd, cmd, arg) \
711*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fcntl((long)(fd), (long)(cmd), (long)(arg))
712*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fcntl(res, fd, cmd, arg) \
713*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fcntl(res, (long)(fd), (long)(cmd), (long)(arg))
714*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fcntl64(fd, cmd, arg) \
715*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fcntl64((long)(fd), (long)(cmd), (long)(arg))
716*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fcntl64(res, fd, cmd, arg)           \
717*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fcntl64(res, (long)(fd), (long)(cmd), \
718*7c3d14c8STreehugger Robot                                         (long)(arg))
719*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pipe(fildes) \
720*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pipe((long)(fildes))
721*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pipe(res, fildes) \
722*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pipe(res, (long)(fildes))
723*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pipe2(fildes, flags) \
724*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pipe2((long)(fildes), (long)(flags))
725*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pipe2(res, fildes, flags) \
726*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pipe2(res, (long)(fildes), (long)(flags))
727*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_dup(fildes) \
728*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_dup((long)(fildes))
729*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_dup(res, fildes) \
730*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_dup(res, (long)(fildes))
731*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_dup2(oldfd, newfd) \
732*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_dup2((long)(oldfd), (long)(newfd))
733*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_dup2(res, oldfd, newfd) \
734*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_dup2(res, (long)(oldfd), (long)(newfd))
735*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_dup3(oldfd, newfd, flags) \
736*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_dup3((long)(oldfd), (long)(newfd), (long)(flags))
737*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_dup3(res, oldfd, newfd, flags)         \
738*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_dup3(res, (long)(oldfd), (long)(newfd), \
739*7c3d14c8STreehugger Robot                                      (long)(flags))
740*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ioperm(from, num, on) \
741*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ioperm((long)(from), (long)(num), (long)(on))
742*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ioperm(res, from, num, on)            \
743*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ioperm(res, (long)(from), (long)(num), \
744*7c3d14c8STreehugger Robot                                        (long)(on))
745*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ioctl(fd, cmd, arg) \
746*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ioctl((long)(fd), (long)(cmd), (long)(arg))
747*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ioctl(res, fd, cmd, arg) \
748*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ioctl(res, (long)(fd), (long)(cmd), (long)(arg))
749*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_flock(fd, cmd) \
750*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_flock((long)(fd), (long)(cmd))
751*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_flock(res, fd, cmd) \
752*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_flock(res, (long)(fd), (long)(cmd))
753*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_io_setup(nr_reqs, ctx) \
754*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_io_setup((long)(nr_reqs), (long)(ctx))
755*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_io_setup(res, nr_reqs, ctx) \
756*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_io_setup(res, (long)(nr_reqs), (long)(ctx))
757*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_io_destroy(ctx) \
758*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_io_destroy((long)(ctx))
759*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_io_destroy(res, ctx) \
760*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_io_destroy(res, (long)(ctx))
761*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_io_getevents(ctx_id, min_nr, nr, events,    \
762*7c3d14c8STreehugger Robot                                              timeout)                       \
763*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_io_getevents((long)(ctx_id), (long)(min_nr), \
764*7c3d14c8STreehugger Robot                                             (long)(nr), (long)(events),     \
765*7c3d14c8STreehugger Robot                                             (long)(timeout))
766*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_io_getevents(res, ctx_id, min_nr, nr, events, \
767*7c3d14c8STreehugger Robot                                               timeout)                         \
768*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_io_getevents(res, (long)(ctx_id),              \
769*7c3d14c8STreehugger Robot                                              (long)(min_nr), (long)(nr),       \
770*7c3d14c8STreehugger Robot                                              (long)(events), (long)(timeout))
771*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_io_submit(ctx_id, arg1, arg2)          \
772*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_io_submit((long)(ctx_id), (long)(arg1), \
773*7c3d14c8STreehugger Robot                                          (long)(arg2))
774*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_io_submit(res, ctx_id, arg1, arg2)          \
775*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_io_submit(res, (long)(ctx_id), (long)(arg1), \
776*7c3d14c8STreehugger Robot                                           (long)(arg2))
777*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_io_cancel(ctx_id, iocb, result)        \
778*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_io_cancel((long)(ctx_id), (long)(iocb), \
779*7c3d14c8STreehugger Robot                                          (long)(result))
780*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_io_cancel(res, ctx_id, iocb, result)        \
781*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_io_cancel(res, (long)(ctx_id), (long)(iocb), \
782*7c3d14c8STreehugger Robot                                           (long)(result))
783*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sendfile(out_fd, in_fd, offset, count) \
784*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sendfile((long)(out_fd), (long)(in_fd), \
785*7c3d14c8STreehugger Robot                                         (long)(offset), (long)(count))
786*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sendfile(res, out_fd, in_fd, offset, count) \
787*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sendfile(res, (long)(out_fd), (long)(in_fd), \
788*7c3d14c8STreehugger Robot                                          (long)(offset), (long)(count))
789*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sendfile64(out_fd, in_fd, offset, count) \
790*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sendfile64((long)(out_fd), (long)(in_fd), \
791*7c3d14c8STreehugger Robot                                           (long)(offset), (long)(count))
792*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sendfile64(res, out_fd, in_fd, offset, count) \
793*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sendfile64(res, (long)(out_fd), (long)(in_fd), \
794*7c3d14c8STreehugger Robot                                            (long)(offset), (long)(count))
795*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_readlink(path, buf, bufsiz)        \
796*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_readlink((long)(path), (long)(buf), \
797*7c3d14c8STreehugger Robot                                         (long)(bufsiz))
798*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_readlink(res, path, buf, bufsiz)        \
799*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_readlink(res, (long)(path), (long)(buf), \
800*7c3d14c8STreehugger Robot                                          (long)(bufsiz))
801*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_creat(pathname, mode) \
802*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_creat((long)(pathname), (long)(mode))
803*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_creat(res, pathname, mode) \
804*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_creat(res, (long)(pathname), (long)(mode))
805*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_open(filename, flags, mode)          \
806*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_open((long)(filename), (long)(flags), \
807*7c3d14c8STreehugger Robot                                     (long)(mode))
808*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_open(res, filename, flags, mode)          \
809*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_open(res, (long)(filename), (long)(flags), \
810*7c3d14c8STreehugger Robot                                      (long)(mode))
811*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_close(fd) \
812*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_close((long)(fd))
813*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_close(res, fd) \
814*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_close(res, (long)(fd))
815*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_access(filename, mode) \
816*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_access((long)(filename), (long)(mode))
817*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_access(res, filename, mode) \
818*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_access(res, (long)(filename), (long)(mode))
819*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vhangup() __sanitizer_syscall_pre_impl_vhangup()
820*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vhangup(res) \
821*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_vhangup(res)
822*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chown(filename, user, group)         \
823*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_chown((long)(filename), (long)(user), \
824*7c3d14c8STreehugger Robot                                      (long)(group))
825*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chown(res, filename, user, group)         \
826*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_chown(res, (long)(filename), (long)(user), \
827*7c3d14c8STreehugger Robot                                       (long)(group))
828*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lchown(filename, user, group)         \
829*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lchown((long)(filename), (long)(user), \
830*7c3d14c8STreehugger Robot                                       (long)(group))
831*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lchown(res, filename, user, group)         \
832*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lchown(res, (long)(filename), (long)(user), \
833*7c3d14c8STreehugger Robot                                        (long)(group))
834*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchown(fd, user, group) \
835*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchown((long)(fd), (long)(user), (long)(group))
836*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchown(res, fd, user, group)         \
837*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchown(res, (long)(fd), (long)(user), \
838*7c3d14c8STreehugger Robot                                        (long)(group))
839*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chown16(filename, user, group)       \
840*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_chown16((long)(filename), (long)user, \
841*7c3d14c8STreehugger Robot                                        (long)group)
842*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chown16(res, filename, user, group)       \
843*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_chown16(res, (long)(filename), (long)user, \
844*7c3d14c8STreehugger Robot                                         (long)group)
845*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lchown16(filename, user, group)       \
846*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lchown16((long)(filename), (long)user, \
847*7c3d14c8STreehugger Robot                                         (long)group)
848*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lchown16(res, filename, user, group)       \
849*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lchown16(res, (long)(filename), (long)user, \
850*7c3d14c8STreehugger Robot                                          (long)group)
851*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchown16(fd, user, group) \
852*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchown16((long)(fd), (long)user, (long)group)
853*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchown16(res, fd, user, group)       \
854*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchown16(res, (long)(fd), (long)user, \
855*7c3d14c8STreehugger Robot                                          (long)group)
856*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setregid16(rgid, egid) \
857*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setregid16((long)rgid, (long)egid)
858*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setregid16(res, rgid, egid) \
859*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setregid16(res, (long)rgid, (long)egid)
860*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgid16(gid) \
861*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setgid16((long)gid)
862*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgid16(res, gid) \
863*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setgid16(res, (long)gid)
864*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setreuid16(ruid, euid) \
865*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setreuid16((long)ruid, (long)euid)
866*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setreuid16(res, ruid, euid) \
867*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setreuid16(res, (long)ruid, (long)euid)
868*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setuid16(uid) \
869*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setuid16((long)uid)
870*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setuid16(res, uid) \
871*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setuid16(res, (long)uid)
872*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresuid16(ruid, euid, suid) \
873*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setresuid16((long)ruid, (long)euid, (long)suid)
874*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresuid16(res, ruid, euid, suid)      \
875*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setresuid16(res, (long)ruid, (long)euid, \
876*7c3d14c8STreehugger Robot                                             (long)suid)
877*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresuid16(ruid, euid, suid)          \
878*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getresuid16((long)(ruid), (long)(euid), \
879*7c3d14c8STreehugger Robot                                            (long)(suid))
880*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresuid16(res, ruid, euid, suid)          \
881*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getresuid16(res, (long)(ruid), (long)(euid), \
882*7c3d14c8STreehugger Robot                                             (long)(suid))
883*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresgid16(rgid, egid, sgid) \
884*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setresgid16((long)rgid, (long)egid, (long)sgid)
885*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresgid16(res, rgid, egid, sgid)      \
886*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setresgid16(res, (long)rgid, (long)egid, \
887*7c3d14c8STreehugger Robot                                             (long)sgid)
888*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresgid16(rgid, egid, sgid)          \
889*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getresgid16((long)(rgid), (long)(egid), \
890*7c3d14c8STreehugger Robot                                            (long)(sgid))
891*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresgid16(res, rgid, egid, sgid)          \
892*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getresgid16(res, (long)(rgid), (long)(egid), \
893*7c3d14c8STreehugger Robot                                             (long)(sgid))
894*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsuid16(uid) \
895*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setfsuid16((long)uid)
896*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsuid16(res, uid) \
897*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setfsuid16(res, (long)uid)
898*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsgid16(gid) \
899*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setfsgid16((long)gid)
900*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsgid16(res, gid) \
901*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setfsgid16(res, (long)gid)
902*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgroups16(gidsetsize, grouplist) \
903*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getgroups16((long)(gidsetsize),     \
904*7c3d14c8STreehugger Robot                                            (long)(grouplist))
905*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgroups16(res, gidsetsize, grouplist) \
906*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getgroups16(res, (long)(gidsetsize),     \
907*7c3d14c8STreehugger Robot                                             (long)(grouplist))
908*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgroups16(gidsetsize, grouplist) \
909*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setgroups16((long)(gidsetsize),     \
910*7c3d14c8STreehugger Robot                                            (long)(grouplist))
911*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgroups16(res, gidsetsize, grouplist) \
912*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setgroups16(res, (long)(gidsetsize),     \
913*7c3d14c8STreehugger Robot                                             (long)(grouplist))
914*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getuid16() \
915*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getuid16()
916*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getuid16(res) \
917*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getuid16(res)
918*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_geteuid16() \
919*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_geteuid16()
920*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_geteuid16(res) \
921*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_geteuid16(res)
922*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgid16() \
923*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getgid16()
924*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgid16(res) \
925*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getgid16(res)
926*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getegid16() \
927*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getegid16()
928*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getegid16(res) \
929*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getegid16(res)
930*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_utime(filename, times) \
931*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_utime((long)(filename), (long)(times))
932*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_utime(res, filename, times) \
933*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_utime(res, (long)(filename), (long)(times))
934*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_utimes(filename, utimes) \
935*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_utimes((long)(filename), (long)(utimes))
936*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_utimes(res, filename, utimes) \
937*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_utimes(res, (long)(filename), (long)(utimes))
938*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lseek(fd, offset, origin) \
939*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lseek((long)(fd), (long)(offset), (long)(origin))
940*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lseek(res, fd, offset, origin)        \
941*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lseek(res, (long)(fd), (long)(offset), \
942*7c3d14c8STreehugger Robot                                       (long)(origin))
943*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_llseek(fd, offset_high, offset_low, result, \
944*7c3d14c8STreehugger Robot                                        origin)                              \
945*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_llseek((long)(fd), (long)(offset_high),      \
946*7c3d14c8STreehugger Robot                                       (long)(offset_low), (long)(result),   \
947*7c3d14c8STreehugger Robot                                       (long)(origin))
948*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_llseek(res, fd, offset_high, offset_low,    \
949*7c3d14c8STreehugger Robot                                         result, origin)                      \
950*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_llseek(res, (long)(fd), (long)(offset_high), \
951*7c3d14c8STreehugger Robot                                        (long)(offset_low), (long)(result),   \
952*7c3d14c8STreehugger Robot                                        (long)(origin))
953*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_read(fd, buf, count) \
954*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_read((long)(fd), (long)(buf), (long)(count))
955*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_read(res, fd, buf, count)         \
956*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_read(res, (long)(fd), (long)(buf), \
957*7c3d14c8STreehugger Robot                                      (long)(count))
958*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_readv(fd, vec, vlen) \
959*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_readv((long)(fd), (long)(vec), (long)(vlen))
960*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_readv(res, fd, vec, vlen)          \
961*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_readv(res, (long)(fd), (long)(vec), \
962*7c3d14c8STreehugger Robot                                       (long)(vlen))
963*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_write(fd, buf, count) \
964*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_write((long)(fd), (long)(buf), (long)(count))
965*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_write(res, fd, buf, count)         \
966*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_write(res, (long)(fd), (long)(buf), \
967*7c3d14c8STreehugger Robot                                       (long)(count))
968*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_writev(fd, vec, vlen) \
969*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_writev((long)(fd), (long)(vec), (long)(vlen))
970*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_writev(res, fd, vec, vlen)          \
971*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_writev(res, (long)(fd), (long)(vec), \
972*7c3d14c8STreehugger Robot                                        (long)(vlen))
973*7c3d14c8STreehugger Robot 
974*7c3d14c8STreehugger Robot #ifdef _LP64
975*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pread64(fd, buf, count, pos)                   \
976*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pread64((long)(fd), (long)(buf), (long)(count), \
977*7c3d14c8STreehugger Robot                                        (long)(pos))
978*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pread64(res, fd, buf, count, pos)    \
979*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pread64(res, (long)(fd), (long)(buf), \
980*7c3d14c8STreehugger Robot                                         (long)(count), (long)(pos))
981*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pwrite64(fd, buf, count, pos)    \
982*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pwrite64((long)(fd), (long)(buf), \
983*7c3d14c8STreehugger Robot                                         (long)(count), (long)(pos))
984*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pwrite64(res, fd, buf, count, pos)    \
985*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pwrite64(res, (long)(fd), (long)(buf), \
986*7c3d14c8STreehugger Robot                                          (long)(count), (long)(pos))
987*7c3d14c8STreehugger Robot #else
988*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pread64(fd, buf, count, pos0, pos1)            \
989*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pread64((long)(fd), (long)(buf), (long)(count), \
990*7c3d14c8STreehugger Robot                                        (long)(pos0), (long)(pos1))
991*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pread64(res, fd, buf, count, pos0, pos1) \
992*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pread64(res, (long)(fd), (long)(buf),     \
993*7c3d14c8STreehugger Robot                                         (long)(count), (long)(pos0), \
994*7c3d14c8STreehugger Robot                                         (long)(pos1))
995*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pwrite64(fd, buf, count, pos0, pos1) \
996*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pwrite64(                             \
997*7c3d14c8STreehugger Robot       (long)(fd), (long)(buf), (long)(count), (long)(pos0), (long)(pos1))
998*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pwrite64(res, fd, buf, count, pos0, pos1) \
999*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pwrite64(                                  \
1000*7c3d14c8STreehugger Robot       res, (long)(fd), (long)(buf), (long)(count), (long)(pos0), (long)(pos1))
1001*7c3d14c8STreehugger Robot #endif
1002*7c3d14c8STreehugger Robot 
1003*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_preadv(fd, vec, vlen, pos_l, pos_h)          \
1004*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_preadv((long)(fd), (long)(vec), (long)(vlen), \
1005*7c3d14c8STreehugger Robot                                       (long)(pos_l), (long)(pos_h))
1006*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_preadv(res, fd, vec, vlen, pos_l, pos_h) \
1007*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_preadv(res, (long)(fd), (long)(vec),      \
1008*7c3d14c8STreehugger Robot                                        (long)(vlen), (long)(pos_l),       \
1009*7c3d14c8STreehugger Robot                                        (long)(pos_h))
1010*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pwritev(fd, vec, vlen, pos_l, pos_h)          \
1011*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pwritev((long)(fd), (long)(vec), (long)(vlen), \
1012*7c3d14c8STreehugger Robot                                        (long)(pos_l), (long)(pos_h))
1013*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pwritev(res, fd, vec, vlen, pos_l, pos_h) \
1014*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pwritev(res, (long)(fd), (long)(vec),      \
1015*7c3d14c8STreehugger Robot                                         (long)(vlen), (long)(pos_l),       \
1016*7c3d14c8STreehugger Robot                                         (long)(pos_h))
1017*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getcwd(buf, size) \
1018*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getcwd((long)(buf), (long)(size))
1019*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getcwd(res, buf, size) \
1020*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getcwd(res, (long)(buf), (long)(size))
1021*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mkdir(pathname, mode) \
1022*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mkdir((long)(pathname), (long)(mode))
1023*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mkdir(res, pathname, mode) \
1024*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mkdir(res, (long)(pathname), (long)(mode))
1025*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chdir(filename) \
1026*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_chdir((long)(filename))
1027*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chdir(res, filename) \
1028*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_chdir(res, (long)(filename))
1029*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchdir(fd) \
1030*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchdir((long)(fd))
1031*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchdir(res, fd) \
1032*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchdir(res, (long)(fd))
1033*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rmdir(pathname) \
1034*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rmdir((long)(pathname))
1035*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rmdir(res, pathname) \
1036*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rmdir(res, (long)(pathname))
1037*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lookup_dcookie(cookie64, buf, len)           \
1038*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_lookup_dcookie((long)(cookie64), (long)(buf), \
1039*7c3d14c8STreehugger Robot                                               (long)(len))
1040*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lookup_dcookie(res, cookie64, buf, len) \
1041*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_lookup_dcookie(res, (long)(cookie64),    \
1042*7c3d14c8STreehugger Robot                                                (long)(buf), (long)(len))
1043*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_quotactl(cmd, special, id, addr)      \
1044*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_quotactl((long)(cmd), (long)(special), \
1045*7c3d14c8STreehugger Robot                                         (long)(id), (long)(addr))
1046*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_quotactl(res, cmd, special, id, addr)      \
1047*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_quotactl(res, (long)(cmd), (long)(special), \
1048*7c3d14c8STreehugger Robot                                          (long)(id), (long)(addr))
1049*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getdents(fd, dirent, count)         \
1050*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getdents((long)(fd), (long)(dirent), \
1051*7c3d14c8STreehugger Robot                                         (long)(count))
1052*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getdents(res, fd, dirent, count)         \
1053*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getdents(res, (long)(fd), (long)(dirent), \
1054*7c3d14c8STreehugger Robot                                          (long)(count))
1055*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getdents64(fd, dirent, count)         \
1056*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getdents64((long)(fd), (long)(dirent), \
1057*7c3d14c8STreehugger Robot                                           (long)(count))
1058*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getdents64(res, fd, dirent, count)         \
1059*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getdents64(res, (long)(fd), (long)(dirent), \
1060*7c3d14c8STreehugger Robot                                            (long)(count))
1061*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setsockopt(fd, level, optname, optval, optlen) \
1062*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setsockopt((long)(fd), (long)(level),           \
1063*7c3d14c8STreehugger Robot                                           (long)(optname), (long)(optval),     \
1064*7c3d14c8STreehugger Robot                                           (long)(optlen))
1065*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setsockopt(res, fd, level, optname, optval, \
1066*7c3d14c8STreehugger Robot                                             optlen)                          \
1067*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setsockopt(res, (long)(fd), (long)(level),   \
1068*7c3d14c8STreehugger Robot                                            (long)(optname), (long)(optval),  \
1069*7c3d14c8STreehugger Robot                                            (long)(optlen))
1070*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getsockopt(fd, level, optname, optval, optlen) \
1071*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getsockopt((long)(fd), (long)(level),           \
1072*7c3d14c8STreehugger Robot                                           (long)(optname), (long)(optval),     \
1073*7c3d14c8STreehugger Robot                                           (long)(optlen))
1074*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getsockopt(res, fd, level, optname, optval, \
1075*7c3d14c8STreehugger Robot                                             optlen)                          \
1076*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getsockopt(res, (long)(fd), (long)(level),   \
1077*7c3d14c8STreehugger Robot                                            (long)(optname), (long)(optval),  \
1078*7c3d14c8STreehugger Robot                                            (long)(optlen))
1079*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_bind(arg0, arg1, arg2) \
1080*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_bind((long)(arg0), (long)(arg1), (long)(arg2))
1081*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_bind(res, arg0, arg1, arg2)          \
1082*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_bind(res, (long)(arg0), (long)(arg1), \
1083*7c3d14c8STreehugger Robot                                      (long)(arg2))
1084*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_connect(arg0, arg1, arg2) \
1085*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_connect((long)(arg0), (long)(arg1), (long)(arg2))
1086*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_connect(res, arg0, arg1, arg2)          \
1087*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_connect(res, (long)(arg0), (long)(arg1), \
1088*7c3d14c8STreehugger Robot                                         (long)(arg2))
1089*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_accept(arg0, arg1, arg2) \
1090*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_accept((long)(arg0), (long)(arg1), (long)(arg2))
1091*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_accept(res, arg0, arg1, arg2)          \
1092*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_accept(res, (long)(arg0), (long)(arg1), \
1093*7c3d14c8STreehugger Robot                                        (long)(arg2))
1094*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_accept4(arg0, arg1, arg2, arg3)    \
1095*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_accept4((long)(arg0), (long)(arg1), \
1096*7c3d14c8STreehugger Robot                                        (long)(arg2), (long)(arg3))
1097*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_accept4(res, arg0, arg1, arg2, arg3)    \
1098*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_accept4(res, (long)(arg0), (long)(arg1), \
1099*7c3d14c8STreehugger Robot                                         (long)(arg2), (long)(arg3))
1100*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getsockname(arg0, arg1, arg2)          \
1101*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getsockname((long)(arg0), (long)(arg1), \
1102*7c3d14c8STreehugger Robot                                            (long)(arg2))
1103*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getsockname(res, arg0, arg1, arg2)          \
1104*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getsockname(res, (long)(arg0), (long)(arg1), \
1105*7c3d14c8STreehugger Robot                                             (long)(arg2))
1106*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpeername(arg0, arg1, arg2)          \
1107*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getpeername((long)(arg0), (long)(arg1), \
1108*7c3d14c8STreehugger Robot                                            (long)(arg2))
1109*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpeername(res, arg0, arg1, arg2)          \
1110*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getpeername(res, (long)(arg0), (long)(arg1), \
1111*7c3d14c8STreehugger Robot                                             (long)(arg2))
1112*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_send(arg0, arg1, arg2, arg3)                  \
1113*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_send((long)(arg0), (long)(arg1), (long)(arg2), \
1114*7c3d14c8STreehugger Robot                                     (long)(arg3))
1115*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_send(res, arg0, arg1, arg2, arg3)    \
1116*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_send(res, (long)(arg0), (long)(arg1), \
1117*7c3d14c8STreehugger Robot                                      (long)(arg2), (long)(arg3))
1118*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sendto(arg0, arg1, arg2, arg3, arg4, arg5) \
1119*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sendto((long)(arg0), (long)(arg1),          \
1120*7c3d14c8STreehugger Robot                                       (long)(arg2), (long)(arg3),          \
1121*7c3d14c8STreehugger Robot                                       (long)(arg4), (long)(arg5))
1122*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sendto(res, arg0, arg1, arg2, arg3, arg4, \
1123*7c3d14c8STreehugger Robot                                         arg5)                              \
1124*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sendto(res, (long)(arg0), (long)(arg1),    \
1125*7c3d14c8STreehugger Robot                                        (long)(arg2), (long)(arg3),         \
1126*7c3d14c8STreehugger Robot                                        (long)(arg4), (long)(arg5))
1127*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sendmsg(fd, msg, flags) \
1128*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sendmsg((long)(fd), (long)(msg), (long)(flags))
1129*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sendmsg(res, fd, msg, flags)         \
1130*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sendmsg(res, (long)(fd), (long)(msg), \
1131*7c3d14c8STreehugger Robot                                         (long)(flags))
1132*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sendmmsg(fd, msg, vlen, flags)                 \
1133*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sendmmsg((long)(fd), (long)(msg), (long)(vlen), \
1134*7c3d14c8STreehugger Robot                                         (long)(flags))
1135*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sendmmsg(res, fd, msg, vlen, flags)   \
1136*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sendmmsg(res, (long)(fd), (long)(msg), \
1137*7c3d14c8STreehugger Robot                                          (long)(vlen), (long)(flags))
1138*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_recv(arg0, arg1, arg2, arg3)                  \
1139*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_recv((long)(arg0), (long)(arg1), (long)(arg2), \
1140*7c3d14c8STreehugger Robot                                     (long)(arg3))
1141*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_recv(res, arg0, arg1, arg2, arg3)    \
1142*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_recv(res, (long)(arg0), (long)(arg1), \
1143*7c3d14c8STreehugger Robot                                      (long)(arg2), (long)(arg3))
1144*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_recvfrom(arg0, arg1, arg2, arg3, arg4, arg5) \
1145*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_recvfrom((long)(arg0), (long)(arg1),          \
1146*7c3d14c8STreehugger Robot                                         (long)(arg2), (long)(arg3),          \
1147*7c3d14c8STreehugger Robot                                         (long)(arg4), (long)(arg5))
1148*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_recvfrom(res, arg0, arg1, arg2, arg3, arg4, \
1149*7c3d14c8STreehugger Robot                                           arg5)                              \
1150*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_recvfrom(res, (long)(arg0), (long)(arg1),    \
1151*7c3d14c8STreehugger Robot                                          (long)(arg2), (long)(arg3),         \
1152*7c3d14c8STreehugger Robot                                          (long)(arg4), (long)(arg5))
1153*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_recvmsg(fd, msg, flags) \
1154*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_recvmsg((long)(fd), (long)(msg), (long)(flags))
1155*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_recvmsg(res, fd, msg, flags)         \
1156*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_recvmsg(res, (long)(fd), (long)(msg), \
1157*7c3d14c8STreehugger Robot                                         (long)(flags))
1158*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_recvmmsg(fd, msg, vlen, flags, timeout)        \
1159*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_recvmmsg((long)(fd), (long)(msg), (long)(vlen), \
1160*7c3d14c8STreehugger Robot                                         (long)(flags), (long)(timeout))
1161*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_recvmmsg(res, fd, msg, vlen, flags, timeout) \
1162*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_recvmmsg(res, (long)(fd), (long)(msg),        \
1163*7c3d14c8STreehugger Robot                                          (long)(vlen), (long)(flags),         \
1164*7c3d14c8STreehugger Robot                                          (long)(timeout))
1165*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_socket(arg0, arg1, arg2) \
1166*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_socket((long)(arg0), (long)(arg1), (long)(arg2))
1167*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_socket(res, arg0, arg1, arg2)          \
1168*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_socket(res, (long)(arg0), (long)(arg1), \
1169*7c3d14c8STreehugger Robot                                        (long)(arg2))
1170*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_socketpair(arg0, arg1, arg2, arg3)    \
1171*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_socketpair((long)(arg0), (long)(arg1), \
1172*7c3d14c8STreehugger Robot                                           (long)(arg2), (long)(arg3))
1173*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_socketpair(res, arg0, arg1, arg2, arg3)    \
1174*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_socketpair(res, (long)(arg0), (long)(arg1), \
1175*7c3d14c8STreehugger Robot                                            (long)(arg2), (long)(arg3))
1176*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_socketcall(call, args) \
1177*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_socketcall((long)(call), (long)(args))
1178*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_socketcall(res, call, args) \
1179*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_socketcall(res, (long)(call), (long)(args))
1180*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_listen(arg0, arg1) \
1181*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_listen((long)(arg0), (long)(arg1))
1182*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_listen(res, arg0, arg1) \
1183*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_listen(res, (long)(arg0), (long)(arg1))
1184*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_poll(ufds, nfds, timeout) \
1185*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_poll((long)(ufds), (long)(nfds), (long)(timeout))
1186*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_poll(res, ufds, nfds, timeout)       \
1187*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_poll(res, (long)(ufds), (long)(nfds), \
1188*7c3d14c8STreehugger Robot                                      (long)(timeout))
1189*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_select(n, inp, outp, exp, tvp)              \
1190*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_select((long)(n), (long)(inp), (long)(outp), \
1191*7c3d14c8STreehugger Robot                                       (long)(exp), (long)(tvp))
1192*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_select(res, n, inp, outp, exp, tvp) \
1193*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_select(res, (long)(n), (long)(inp),  \
1194*7c3d14c8STreehugger Robot                                        (long)(outp), (long)(exp), (long)(tvp))
1195*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_old_select(arg) \
1196*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_old_select((long)(arg))
1197*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_old_select(res, arg) \
1198*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_old_select(res, (long)(arg))
1199*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_create(size) \
1200*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_epoll_create((long)(size))
1201*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_create(res, size) \
1202*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_epoll_create(res, (long)(size))
1203*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_create1(flags) \
1204*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_epoll_create1((long)(flags))
1205*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_create1(res, flags) \
1206*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_epoll_create1(res, (long)(flags))
1207*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_ctl(epfd, op, fd, event)                 \
1208*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_epoll_ctl((long)(epfd), (long)(op), (long)(fd), \
1209*7c3d14c8STreehugger Robot                                          (long)(event))
1210*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event)     \
1211*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \
1212*7c3d14c8STreehugger Robot                                           (long)(fd), (long)(event))
1213*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \
1214*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events),      \
1215*7c3d14c8STreehugger Robot                                           (long)(maxevents), (long)(timeout))
1216*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents,     \
1217*7c3d14c8STreehugger Robot                                             timeout)                          \
1218*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_epoll_wait(res, (long)(epfd), (long)(events), \
1219*7c3d14c8STreehugger Robot                                            (long)(maxevents), (long)(timeout))
1220*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_pwait(epfd, events, maxevents, timeout, \
1221*7c3d14c8STreehugger Robot                                             sigmask, sigsetsize)              \
1222*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_epoll_pwait(                                   \
1223*7c3d14c8STreehugger Robot       (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout),       \
1224*7c3d14c8STreehugger Robot       (long)(sigmask), (long)(sigsetsize))
1225*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_pwait(res, epfd, events, maxevents,   \
1226*7c3d14c8STreehugger Robot                                              timeout, sigmask, sigsetsize)   \
1227*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_epoll_pwait(                                 \
1228*7c3d14c8STreehugger Robot       res, (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \
1229*7c3d14c8STreehugger Robot       (long)(sigmask), (long)(sigsetsize))
1230*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_gethostname(name, len) \
1231*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_gethostname((long)(name), (long)(len))
1232*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_gethostname(res, name, len) \
1233*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_gethostname(res, (long)(name), (long)(len))
1234*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sethostname(name, len) \
1235*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sethostname((long)(name), (long)(len))
1236*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sethostname(res, name, len) \
1237*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sethostname(res, (long)(name), (long)(len))
1238*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setdomainname(name, len) \
1239*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setdomainname((long)(name), (long)(len))
1240*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setdomainname(res, name, len) \
1241*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setdomainname(res, (long)(name), (long)(len))
1242*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_newuname(name) \
1243*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_newuname((long)(name))
1244*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_newuname(res, name) \
1245*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_newuname(res, (long)(name))
1246*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_uname(arg0) \
1247*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_uname((long)(arg0))
1248*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_uname(res, arg0) \
1249*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_uname(res, (long)(arg0))
1250*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_olduname(arg0) \
1251*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_olduname((long)(arg0))
1252*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_olduname(res, arg0) \
1253*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_olduname(res, (long)(arg0))
1254*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getrlimit(resource, rlim) \
1255*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getrlimit((long)(resource), (long)(rlim))
1256*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getrlimit(res, resource, rlim) \
1257*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getrlimit(res, (long)(resource), (long)(rlim))
1258*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_old_getrlimit(resource, rlim) \
1259*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_old_getrlimit((long)(resource), (long)(rlim))
1260*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_old_getrlimit(res, resource, rlim)  \
1261*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_old_getrlimit(res, (long)(resource), \
1262*7c3d14c8STreehugger Robot                                               (long)(rlim))
1263*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setrlimit(resource, rlim) \
1264*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setrlimit((long)(resource), (long)(rlim))
1265*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setrlimit(res, resource, rlim) \
1266*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setrlimit(res, (long)(resource), (long)(rlim))
1267*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_prlimit64(pid, resource, new_rlim, old_rlim) \
1268*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_prlimit64((long)(pid), (long)(resource),      \
1269*7c3d14c8STreehugger Robot                                          (long)(new_rlim), (long)(old_rlim))
1270*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_prlimit64(res, pid, resource, new_rlim,      \
1271*7c3d14c8STreehugger Robot                                            old_rlim)                          \
1272*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_prlimit64(res, (long)(pid), (long)(resource), \
1273*7c3d14c8STreehugger Robot                                           (long)(new_rlim), (long)(old_rlim))
1274*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getrusage(who, ru) \
1275*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getrusage((long)(who), (long)(ru))
1276*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getrusage(res, who, ru) \
1277*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getrusage(res, (long)(who), (long)(ru))
1278*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_umask(mask) \
1279*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_umask((long)(mask))
1280*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_umask(res, mask) \
1281*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_umask(res, (long)(mask))
1282*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_msgget(key, msgflg) \
1283*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_msgget((long)(key), (long)(msgflg))
1284*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_msgget(res, key, msgflg) \
1285*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_msgget(res, (long)(key), (long)(msgflg))
1286*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \
1287*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_msgsnd((long)(msqid), (long)(msgp), \
1288*7c3d14c8STreehugger Robot                                       (long)(msgsz), (long)(msgflg))
1289*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \
1290*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_msgsnd(res, (long)(msqid), (long)(msgp), \
1291*7c3d14c8STreehugger Robot                                        (long)(msgsz), (long)(msgflg))
1292*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \
1293*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_msgrcv((long)(msqid), (long)(msgp),         \
1294*7c3d14c8STreehugger Robot                                       (long)(msgsz), (long)(msgtyp),       \
1295*7c3d14c8STreehugger Robot                                       (long)(msgflg))
1296*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \
1297*7c3d14c8STreehugger Robot                                         msgflg)                          \
1298*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_msgrcv(res, (long)(msqid), (long)(msgp), \
1299*7c3d14c8STreehugger Robot                                        (long)(msgsz), (long)(msgtyp),    \
1300*7c3d14c8STreehugger Robot                                        (long)(msgflg))
1301*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_msgctl(msqid, cmd, buf) \
1302*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_msgctl((long)(msqid), (long)(cmd), (long)(buf))
1303*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_msgctl(res, msqid, cmd, buf)           \
1304*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_msgctl(res, (long)(msqid), (long)(cmd), \
1305*7c3d14c8STreehugger Robot                                        (long)(buf))
1306*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_semget(key, nsems, semflg)        \
1307*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_semget((long)(key), (long)(nsems), \
1308*7c3d14c8STreehugger Robot                                       (long)(semflg))
1309*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_semget(res, key, nsems, semflg)        \
1310*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_semget(res, (long)(key), (long)(nsems), \
1311*7c3d14c8STreehugger Robot                                        (long)(semflg))
1312*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \
1313*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_semop((long)(semid), (long)(sops), (long)(nsops))
1314*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_semop(res, semid, sops, nsops)         \
1315*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_semop(res, (long)(semid), (long)(sops), \
1316*7c3d14c8STreehugger Robot                                       (long)(nsops))
1317*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_semctl(semid, semnum, cmd, arg)      \
1318*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_semctl((long)(semid), (long)(semnum), \
1319*7c3d14c8STreehugger Robot                                       (long)(cmd), (long)(arg))
1320*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_semctl(res, semid, semnum, cmd, arg)      \
1321*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_semctl(res, (long)(semid), (long)(semnum), \
1322*7c3d14c8STreehugger Robot                                        (long)(cmd), (long)(arg))
1323*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_semtimedop(semid, sops, nsops, timeout) \
1324*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_semtimedop((long)(semid), (long)(sops),  \
1325*7c3d14c8STreehugger Robot                                           (long)(nsops), (long)(timeout))
1326*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_semtimedop(res, semid, sops, nsops, timeout) \
1327*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_semtimedop(res, (long)(semid), (long)(sops),  \
1328*7c3d14c8STreehugger Robot                                            (long)(nsops), (long)(timeout))
1329*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg)        \
1330*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_shmat((long)(shmid), (long)(shmaddr), \
1331*7c3d14c8STreehugger Robot                                      (long)(shmflg))
1332*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg)        \
1333*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_shmat(res, (long)(shmid), (long)(shmaddr), \
1334*7c3d14c8STreehugger Robot                                       (long)(shmflg))
1335*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_shmget(key, size, flag) \
1336*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_shmget((long)(key), (long)(size), (long)(flag))
1337*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_shmget(res, key, size, flag)          \
1338*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_shmget(res, (long)(key), (long)(size), \
1339*7c3d14c8STreehugger Robot                                        (long)(flag))
1340*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_shmdt(shmaddr) \
1341*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_shmdt((long)(shmaddr))
1342*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_shmdt(res, shmaddr) \
1343*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_shmdt(res, (long)(shmaddr))
1344*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_shmctl(shmid, cmd, buf) \
1345*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_shmctl((long)(shmid), (long)(cmd), (long)(buf))
1346*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_shmctl(res, shmid, cmd, buf)           \
1347*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_shmctl(res, (long)(shmid), (long)(cmd), \
1348*7c3d14c8STreehugger Robot                                        (long)(buf))
1349*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ipc(call, first, second, third, ptr, fifth)    \
1350*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ipc((long)(call), (long)(first),                \
1351*7c3d14c8STreehugger Robot                                    (long)(second), (long)(third), (long)(ptr), \
1352*7c3d14c8STreehugger Robot                                    (long)(fifth))
1353*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ipc(res, call, first, second, third, ptr, \
1354*7c3d14c8STreehugger Robot                                      fifth)                                \
1355*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ipc(res, (long)(call), (long)(first),      \
1356*7c3d14c8STreehugger Robot                                     (long)(second), (long)(third),         \
1357*7c3d14c8STreehugger Robot                                     (long)(ptr), (long)(fifth))
1358*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_open(name, oflag, mode, attr)    \
1359*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_open((long)(name), (long)(oflag), \
1360*7c3d14c8STreehugger Robot                                        (long)(mode), (long)(attr))
1361*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_open(res, name, oflag, mode, attr)    \
1362*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_open(res, (long)(name), (long)(oflag), \
1363*7c3d14c8STreehugger Robot                                         (long)(mode), (long)(attr))
1364*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_unlink(name) \
1365*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_unlink((long)(name))
1366*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_unlink(res, name) \
1367*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_unlink(res, (long)(name))
1368*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_timedsend(mqdes, msg_ptr, msg_len,          \
1369*7c3d14c8STreehugger Robot                                              msg_prio, abs_timeout)            \
1370*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_timedsend((long)(mqdes), (long)(msg_ptr),    \
1371*7c3d14c8STreehugger Robot                                             (long)(msg_len), (long)(msg_prio), \
1372*7c3d14c8STreehugger Robot                                             (long)(abs_timeout))
1373*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_timedsend(res, mqdes, msg_ptr, msg_len,   \
1374*7c3d14c8STreehugger Robot                                               msg_prio, abs_timeout)          \
1375*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_timedsend(                                 \
1376*7c3d14c8STreehugger Robot       res, (long)(mqdes), (long)(msg_ptr), (long)(msg_len), (long)(msg_prio), \
1377*7c3d14c8STreehugger Robot       (long)(abs_timeout))
1378*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_timedreceive(mqdes, msg_ptr, msg_len, \
1379*7c3d14c8STreehugger Robot                                                 msg_prio, abs_timeout)   \
1380*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_timedreceive(                          \
1381*7c3d14c8STreehugger Robot       (long)(mqdes), (long)(msg_ptr), (long)(msg_len), (long)(msg_prio), \
1382*7c3d14c8STreehugger Robot       (long)(abs_timeout))
1383*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_timedreceive(res, mqdes, msg_ptr, msg_len, \
1384*7c3d14c8STreehugger Robot                                                  msg_prio, abs_timeout)        \
1385*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_timedreceive(                               \
1386*7c3d14c8STreehugger Robot       res, (long)(mqdes), (long)(msg_ptr), (long)(msg_len), (long)(msg_prio),  \
1387*7c3d14c8STreehugger Robot       (long)(abs_timeout))
1388*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_notify(mqdes, notification) \
1389*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_notify((long)(mqdes), (long)(notification))
1390*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_notify(res, mqdes, notification) \
1391*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_notify(res, (long)(mqdes),        \
1392*7c3d14c8STreehugger Robot                                           (long)(notification))
1393*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mq_getsetattr(mqdes, mqstat, omqstat)       \
1394*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mq_getsetattr((long)(mqdes), (long)(mqstat), \
1395*7c3d14c8STreehugger Robot                                              (long)(omqstat))
1396*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mq_getsetattr(res, mqdes, mqstat, omqstat) \
1397*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mq_getsetattr(res, (long)(mqdes),           \
1398*7c3d14c8STreehugger Robot                                               (long)(mqstat), (long)(omqstat))
1399*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pciconfig_iobase(which, bus, devfn)         \
1400*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pciconfig_iobase((long)(which), (long)(bus), \
1401*7c3d14c8STreehugger Robot                                                 (long)(devfn))
1402*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pciconfig_iobase(res, which, bus, devfn) \
1403*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pciconfig_iobase(res, (long)(which),      \
1404*7c3d14c8STreehugger Robot                                                  (long)(bus), (long)(devfn))
1405*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pciconfig_read(bus, dfn, off, len, buf) \
1406*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pciconfig_read(                          \
1407*7c3d14c8STreehugger Robot       (long)(bus), (long)(dfn), (long)(off), (long)(len), (long)(buf))
1408*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pciconfig_read(res, bus, dfn, off, len, buf) \
1409*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pciconfig_read(                               \
1410*7c3d14c8STreehugger Robot       res, (long)(bus), (long)(dfn), (long)(off), (long)(len), (long)(buf))
1411*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pciconfig_write(bus, dfn, off, len, buf) \
1412*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pciconfig_write(                          \
1413*7c3d14c8STreehugger Robot       (long)(bus), (long)(dfn), (long)(off), (long)(len), (long)(buf))
1414*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pciconfig_write(res, bus, dfn, off, len, buf) \
1415*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pciconfig_write(                               \
1416*7c3d14c8STreehugger Robot       res, (long)(bus), (long)(dfn), (long)(off), (long)(len), (long)(buf))
1417*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_swapon(specialfile, swap_flags) \
1418*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_swapon((long)(specialfile), (long)(swap_flags))
1419*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_swapon(res, specialfile, swap_flags) \
1420*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_swapon(res, (long)(specialfile),      \
1421*7c3d14c8STreehugger Robot                                        (long)(swap_flags))
1422*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_swapoff(specialfile) \
1423*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_swapoff((long)(specialfile))
1424*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_swapoff(res, specialfile) \
1425*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_swapoff(res, (long)(specialfile))
1426*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sysctl(args) \
1427*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sysctl((long)(args))
1428*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sysctl(res, args) \
1429*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sysctl(res, (long)(args))
1430*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sysinfo(info) \
1431*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sysinfo((long)(info))
1432*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sysinfo(res, info) \
1433*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sysinfo(res, (long)(info))
1434*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sysfs(option, arg1, arg2) \
1435*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sysfs((long)(option), (long)(arg1), (long)(arg2))
1436*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sysfs(res, option, arg1, arg2)          \
1437*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sysfs(res, (long)(option), (long)(arg1), \
1438*7c3d14c8STreehugger Robot                                       (long)(arg2))
1439*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_syslog(type, buf, len) \
1440*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_syslog((long)(type), (long)(buf), (long)(len))
1441*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_syslog(res, type, buf, len)           \
1442*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_syslog(res, (long)(type), (long)(buf), \
1443*7c3d14c8STreehugger Robot                                        (long)(len))
1444*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_uselib(library) \
1445*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_uselib((long)(library))
1446*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_uselib(res, library) \
1447*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_uselib(res, (long)(library))
1448*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ni_syscall() \
1449*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ni_syscall()
1450*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ni_syscall(res) \
1451*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ni_syscall(res)
1452*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ptrace(request, pid, addr, data)    \
1453*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ptrace((long)(request), (long)(pid), \
1454*7c3d14c8STreehugger Robot                                       (long)(addr), (long)(data))
1455*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ptrace(res, request, pid, addr, data)    \
1456*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ptrace(res, (long)(request), (long)(pid), \
1457*7c3d14c8STreehugger Robot                                        (long)(addr), (long)(data))
1458*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_add_key(_type, _description, _payload, plen, \
1459*7c3d14c8STreehugger Robot                                         destringid)                          \
1460*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_add_key((long)(_type), (long)(_description),  \
1461*7c3d14c8STreehugger Robot                                        (long)(_payload), (long)(plen),       \
1462*7c3d14c8STreehugger Robot                                        (long)(destringid))
1463*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_add_key(res, _type, _description, _payload, \
1464*7c3d14c8STreehugger Robot                                          plen, destringid)                   \
1465*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_add_key(                                     \
1466*7c3d14c8STreehugger Robot       res, (long)(_type), (long)(_description), (long)(_payload),            \
1467*7c3d14c8STreehugger Robot       (long)(plen), (long)(destringid))
1468*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_request_key(_type, _description,       \
1469*7c3d14c8STreehugger Robot                                             _callout_info, destringid) \
1470*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_request_key(                            \
1471*7c3d14c8STreehugger Robot       (long)(_type), (long)(_description), (long)(_callout_info),      \
1472*7c3d14c8STreehugger Robot       (long)(destringid))
1473*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_request_key(res, _type, _description,  \
1474*7c3d14c8STreehugger Robot                                              _callout_info, destringid) \
1475*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_request_key(                            \
1476*7c3d14c8STreehugger Robot       res, (long)(_type), (long)(_description), (long)(_callout_info),  \
1477*7c3d14c8STreehugger Robot       (long)(destringid))
1478*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_keyctl(cmd, arg2, arg3, arg4, arg5)            \
1479*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_keyctl((long)(cmd), (long)(arg2), (long)(arg3), \
1480*7c3d14c8STreehugger Robot                                       (long)(arg4), (long)(arg5))
1481*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_keyctl(res, cmd, arg2, arg3, arg4, arg5) \
1482*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_keyctl(res, (long)(cmd), (long)(arg2),    \
1483*7c3d14c8STreehugger Robot                                        (long)(arg3), (long)(arg4),        \
1484*7c3d14c8STreehugger Robot                                        (long)(arg5))
1485*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ioprio_set(which, who, ioprio)        \
1486*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ioprio_set((long)(which), (long)(who), \
1487*7c3d14c8STreehugger Robot                                           (long)(ioprio))
1488*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ioprio_set(res, which, who, ioprio)        \
1489*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ioprio_set(res, (long)(which), (long)(who), \
1490*7c3d14c8STreehugger Robot                                            (long)(ioprio))
1491*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ioprio_get(which, who) \
1492*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ioprio_get((long)(which), (long)(who))
1493*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ioprio_get(res, which, who) \
1494*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ioprio_get(res, (long)(which), (long)(who))
1495*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_set_mempolicy(mode, nmask, maxnode)       \
1496*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_set_mempolicy((long)(mode), (long)(nmask), \
1497*7c3d14c8STreehugger Robot                                              (long)(maxnode))
1498*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_set_mempolicy(res, mode, nmask, maxnode) \
1499*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_set_mempolicy(res, (long)(mode),          \
1500*7c3d14c8STreehugger Robot                                               (long)(nmask), (long)(maxnode))
1501*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_migrate_pages(pid, maxnode, from, to)      \
1502*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_migrate_pages((long)(pid), (long)(maxnode), \
1503*7c3d14c8STreehugger Robot                                              (long)(from), (long)(to))
1504*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_migrate_pages(res, pid, maxnode, from, to) \
1505*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_migrate_pages(                              \
1506*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(maxnode), (long)(from), (long)(to))
1507*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_move_pages(pid, nr_pages, pages, nodes,  \
1508*7c3d14c8STreehugger Robot                                            status, flags)                \
1509*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_move_pages((long)(pid), (long)(nr_pages), \
1510*7c3d14c8STreehugger Robot                                           (long)(pages), (long)(nodes),  \
1511*7c3d14c8STreehugger Robot                                           (long)(status), (long)(flags))
1512*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_move_pages(res, pid, nr_pages, pages, nodes,  \
1513*7c3d14c8STreehugger Robot                                             status, flags)                     \
1514*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_move_pages(res, (long)(pid), (long)(nr_pages), \
1515*7c3d14c8STreehugger Robot                                            (long)(pages), (long)(nodes),       \
1516*7c3d14c8STreehugger Robot                                            (long)(status), (long)(flags))
1517*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mbind(start, len, mode, nmask, maxnode, flags) \
1518*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mbind((long)(start), (long)(len), (long)(mode), \
1519*7c3d14c8STreehugger Robot                                      (long)(nmask), (long)(maxnode),           \
1520*7c3d14c8STreehugger Robot                                      (long)(flags))
1521*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mbind(res, start, len, mode, nmask, maxnode, \
1522*7c3d14c8STreehugger Robot                                        flags)                                 \
1523*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mbind(res, (long)(start), (long)(len),        \
1524*7c3d14c8STreehugger Robot                                       (long)(mode), (long)(nmask),            \
1525*7c3d14c8STreehugger Robot                                       (long)(maxnode), (long)(flags))
1526*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_get_mempolicy(policy, nmask, maxnode, addr, \
1527*7c3d14c8STreehugger Robot                                               flags)                        \
1528*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_get_mempolicy((long)(policy), (long)(nmask), \
1529*7c3d14c8STreehugger Robot                                              (long)(maxnode), (long)(addr), \
1530*7c3d14c8STreehugger Robot                                              (long)(flags))
1531*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_get_mempolicy(res, policy, nmask, maxnode,   \
1532*7c3d14c8STreehugger Robot                                                addr, flags)                   \
1533*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_get_mempolicy(res, (long)(policy),            \
1534*7c3d14c8STreehugger Robot                                               (long)(nmask), (long)(maxnode), \
1535*7c3d14c8STreehugger Robot                                               (long)(addr), (long)(flags))
1536*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_inotify_init() \
1537*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_inotify_init()
1538*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_inotify_init(res) \
1539*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_inotify_init(res)
1540*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_inotify_init1(flags) \
1541*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_inotify_init1((long)(flags))
1542*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_inotify_init1(res, flags) \
1543*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_inotify_init1(res, (long)(flags))
1544*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_inotify_add_watch(fd, path, mask)          \
1545*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_inotify_add_watch((long)(fd), (long)(path), \
1546*7c3d14c8STreehugger Robot                                                  (long)(mask))
1547*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_inotify_add_watch(res, fd, path, mask) \
1548*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_inotify_add_watch(res, (long)(fd),      \
1549*7c3d14c8STreehugger Robot                                                   (long)(path), (long)(mask))
1550*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_inotify_rm_watch(fd, wd) \
1551*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_inotify_rm_watch((long)(fd), (long)(wd))
1552*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_inotify_rm_watch(res, fd, wd) \
1553*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_inotify_rm_watch(res, (long)(fd), (long)(wd))
1554*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_spu_run(fd, unpc, ustatus)       \
1555*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_spu_run((long)(fd), (long)(unpc), \
1556*7c3d14c8STreehugger Robot                                        (long)(ustatus))
1557*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_spu_run(res, fd, unpc, ustatus)       \
1558*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_spu_run(res, (long)(fd), (long)(unpc), \
1559*7c3d14c8STreehugger Robot                                         (long)(ustatus))
1560*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_spu_create(name, flags, mode, fd)      \
1561*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_spu_create((long)(name), (long)(flags), \
1562*7c3d14c8STreehugger Robot                                           (long)(mode), (long)(fd))
1563*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_spu_create(res, name, flags, mode, fd)      \
1564*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_spu_create(res, (long)(name), (long)(flags), \
1565*7c3d14c8STreehugger Robot                                            (long)(mode), (long)(fd))
1566*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mknodat(dfd, filename, mode, dev)     \
1567*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mknodat((long)(dfd), (long)(filename), \
1568*7c3d14c8STreehugger Robot                                        (long)(mode), (long)(dev))
1569*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mknodat(res, dfd, filename, mode, dev)     \
1570*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mknodat(res, (long)(dfd), (long)(filename), \
1571*7c3d14c8STreehugger Robot                                         (long)(mode), (long)(dev))
1572*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mkdirat(dfd, pathname, mode)          \
1573*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mkdirat((long)(dfd), (long)(pathname), \
1574*7c3d14c8STreehugger Robot                                        (long)(mode))
1575*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mkdirat(res, dfd, pathname, mode)          \
1576*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mkdirat(res, (long)(dfd), (long)(pathname), \
1577*7c3d14c8STreehugger Robot                                         (long)(mode))
1578*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_unlinkat(dfd, pathname, flag)          \
1579*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_unlinkat((long)(dfd), (long)(pathname), \
1580*7c3d14c8STreehugger Robot                                         (long)(flag))
1581*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_unlinkat(res, dfd, pathname, flag)          \
1582*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_unlinkat(res, (long)(dfd), (long)(pathname), \
1583*7c3d14c8STreehugger Robot                                          (long)(flag))
1584*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_symlinkat(oldname, newdfd, newname)       \
1585*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_symlinkat((long)(oldname), (long)(newdfd), \
1586*7c3d14c8STreehugger Robot                                          (long)(newname))
1587*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_symlinkat(res, oldname, newdfd, newname) \
1588*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_symlinkat(res, (long)(oldname),           \
1589*7c3d14c8STreehugger Robot                                           (long)(newdfd), (long)(newname))
1590*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_linkat(olddfd, oldname, newdfd, newname, \
1591*7c3d14c8STreehugger Robot                                        flags)                            \
1592*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_linkat((long)(olddfd), (long)(oldname),   \
1593*7c3d14c8STreehugger Robot                                       (long)(newdfd), (long)(newname),   \
1594*7c3d14c8STreehugger Robot                                       (long)(flags))
1595*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_linkat(res, olddfd, oldname, newdfd, newname, \
1596*7c3d14c8STreehugger Robot                                         flags)                                 \
1597*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_linkat(res, (long)(olddfd), (long)(oldname),   \
1598*7c3d14c8STreehugger Robot                                        (long)(newdfd), (long)(newname),        \
1599*7c3d14c8STreehugger Robot                                        (long)(flags))
1600*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_renameat(olddfd, oldname, newdfd, newname) \
1601*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_renameat((long)(olddfd), (long)(oldname),   \
1602*7c3d14c8STreehugger Robot                                         (long)(newdfd), (long)(newname))
1603*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_renameat(res, olddfd, oldname, newdfd,        \
1604*7c3d14c8STreehugger Robot                                           newname)                             \
1605*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_renameat(res, (long)(olddfd), (long)(oldname), \
1606*7c3d14c8STreehugger Robot                                          (long)(newdfd), (long)(newname))
1607*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_futimesat(dfd, filename, utimes)        \
1608*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_futimesat((long)(dfd), (long)(filename), \
1609*7c3d14c8STreehugger Robot                                          (long)(utimes))
1610*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_futimesat(res, dfd, filename, utimes)        \
1611*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_futimesat(res, (long)(dfd), (long)(filename), \
1612*7c3d14c8STreehugger Robot                                           (long)(utimes))
1613*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_faccessat(dfd, filename, mode)          \
1614*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_faccessat((long)(dfd), (long)(filename), \
1615*7c3d14c8STreehugger Robot                                          (long)(mode))
1616*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_faccessat(res, dfd, filename, mode)          \
1617*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_faccessat(res, (long)(dfd), (long)(filename), \
1618*7c3d14c8STreehugger Robot                                           (long)(mode))
1619*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchmodat(dfd, filename, mode)          \
1620*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchmodat((long)(dfd), (long)(filename), \
1621*7c3d14c8STreehugger Robot                                         (long)(mode))
1622*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchmodat(res, dfd, filename, mode)          \
1623*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchmodat(res, (long)(dfd), (long)(filename), \
1624*7c3d14c8STreehugger Robot                                          (long)(mode))
1625*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchownat(dfd, filename, user, group, flag) \
1626*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fchownat((long)(dfd), (long)(filename),     \
1627*7c3d14c8STreehugger Robot                                         (long)(user), (long)(group),       \
1628*7c3d14c8STreehugger Robot                                         (long)(flag))
1629*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchownat(res, dfd, filename, user, group,   \
1630*7c3d14c8STreehugger Robot                                           flag)                              \
1631*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fchownat(res, (long)(dfd), (long)(filename), \
1632*7c3d14c8STreehugger Robot                                          (long)(user), (long)(group),        \
1633*7c3d14c8STreehugger Robot                                          (long)(flag))
1634*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_openat(dfd, filename, flags, mode)   \
1635*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_openat((long)(dfd), (long)(filename), \
1636*7c3d14c8STreehugger Robot                                       (long)(flags), (long)(mode))
1637*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_openat(res, dfd, filename, flags, mode)   \
1638*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_openat(res, (long)(dfd), (long)(filename), \
1639*7c3d14c8STreehugger Robot                                        (long)(flags), (long)(mode))
1640*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_newfstatat(dfd, filename, statbuf, flag) \
1641*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_newfstatat((long)(dfd), (long)(filename), \
1642*7c3d14c8STreehugger Robot                                           (long)(statbuf), (long)(flag))
1643*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_newfstatat(res, dfd, filename, statbuf, flag) \
1644*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_newfstatat(res, (long)(dfd), (long)(filename), \
1645*7c3d14c8STreehugger Robot                                            (long)(statbuf), (long)(flag))
1646*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fstatat64(dfd, filename, statbuf, flag) \
1647*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fstatat64((long)(dfd), (long)(filename), \
1648*7c3d14c8STreehugger Robot                                          (long)(statbuf), (long)(flag))
1649*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fstatat64(res, dfd, filename, statbuf, flag) \
1650*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fstatat64(res, (long)(dfd), (long)(filename), \
1651*7c3d14c8STreehugger Robot                                           (long)(statbuf), (long)(flag))
1652*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_readlinkat(dfd, path, buf, bufsiz)   \
1653*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_readlinkat((long)(dfd), (long)(path), \
1654*7c3d14c8STreehugger Robot                                           (long)(buf), (long)(bufsiz))
1655*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_readlinkat(res, dfd, path, buf, bufsiz)   \
1656*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_readlinkat(res, (long)(dfd), (long)(path), \
1657*7c3d14c8STreehugger Robot                                            (long)(buf), (long)(bufsiz))
1658*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_utimensat(dfd, filename, utimes, flags) \
1659*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_utimensat((long)(dfd), (long)(filename), \
1660*7c3d14c8STreehugger Robot                                          (long)(utimes), (long)(flags))
1661*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_utimensat(res, dfd, filename, utimes, flags) \
1662*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_utimensat(res, (long)(dfd), (long)(filename), \
1663*7c3d14c8STreehugger Robot                                           (long)(utimes), (long)(flags))
1664*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_unshare(unshare_flags) \
1665*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_unshare((long)(unshare_flags))
1666*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_unshare(res, unshare_flags) \
1667*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_unshare(res, (long)(unshare_flags))
1668*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_splice(fd_in, off_in, fd_out, off_out, len, \
1669*7c3d14c8STreehugger Robot                                        flags)                               \
1670*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_splice((long)(fd_in), (long)(off_in),        \
1671*7c3d14c8STreehugger Robot                                       (long)(fd_out), (long)(off_out),      \
1672*7c3d14c8STreehugger Robot                                       (long)(len), (long)(flags))
1673*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_splice(res, fd_in, off_in, fd_out, off_out, \
1674*7c3d14c8STreehugger Robot                                         len, flags)                          \
1675*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_splice(res, (long)(fd_in), (long)(off_in),   \
1676*7c3d14c8STreehugger Robot                                        (long)(fd_out), (long)(off_out),      \
1677*7c3d14c8STreehugger Robot                                        (long)(len), (long)(flags))
1678*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vmsplice(fd, iov, nr_segs, flags) \
1679*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_vmsplice((long)(fd), (long)(iov),  \
1680*7c3d14c8STreehugger Robot                                         (long)(nr_segs), (long)(flags))
1681*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vmsplice(res, fd, iov, nr_segs, flags) \
1682*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_vmsplice(res, (long)(fd), (long)(iov),  \
1683*7c3d14c8STreehugger Robot                                          (long)(nr_segs), (long)(flags))
1684*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_tee(fdin, fdout, len, flags)                 \
1685*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_tee((long)(fdin), (long)(fdout), (long)(len), \
1686*7c3d14c8STreehugger Robot                                    (long)(flags))
1687*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_tee(res, fdin, fdout, len, flags)    \
1688*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_tee(res, (long)(fdin), (long)(fdout), \
1689*7c3d14c8STreehugger Robot                                     (long)(len), (long)(flags))
1690*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_get_robust_list(pid, head_ptr, len_ptr)       \
1691*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_get_robust_list((long)(pid), (long)(head_ptr), \
1692*7c3d14c8STreehugger Robot                                                (long)(len_ptr))
1693*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_get_robust_list(res, pid, head_ptr, len_ptr) \
1694*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_get_robust_list(                              \
1695*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(head_ptr), (long)(len_ptr))
1696*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_set_robust_list(head, len) \
1697*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_set_robust_list((long)(head), (long)(len))
1698*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_set_robust_list(res, head, len) \
1699*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_set_robust_list(res, (long)(head), (long)(len))
1700*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getcpu(cpu, node, cache) \
1701*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_getcpu((long)(cpu), (long)(node), (long)(cache))
1702*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getcpu(res, cpu, node, cache)         \
1703*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_getcpu(res, (long)(cpu), (long)(node), \
1704*7c3d14c8STreehugger Robot                                        (long)(cache))
1705*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_signalfd(ufd, user_mask, sizemask)      \
1706*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_signalfd((long)(ufd), (long)(user_mask), \
1707*7c3d14c8STreehugger Robot                                         (long)(sizemask))
1708*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_signalfd(res, ufd, user_mask, sizemask)      \
1709*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_signalfd(res, (long)(ufd), (long)(user_mask), \
1710*7c3d14c8STreehugger Robot                                          (long)(sizemask))
1711*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_signalfd4(ufd, user_mask, sizemask, flags) \
1712*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_signalfd4((long)(ufd), (long)(user_mask),   \
1713*7c3d14c8STreehugger Robot                                          (long)(sizemask), (long)(flags))
1714*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_signalfd4(res, ufd, user_mask, sizemask,      \
1715*7c3d14c8STreehugger Robot                                            flags)                              \
1716*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_signalfd4(res, (long)(ufd), (long)(user_mask), \
1717*7c3d14c8STreehugger Robot                                           (long)(sizemask), (long)(flags))
1718*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timerfd_create(clockid, flags) \
1719*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timerfd_create((long)(clockid), (long)(flags))
1720*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timerfd_create(res, clockid, flags) \
1721*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timerfd_create(res, (long)(clockid), \
1722*7c3d14c8STreehugger Robot                                                (long)(flags))
1723*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timerfd_settime(ufd, flags, utmr, otmr)    \
1724*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timerfd_settime((long)(ufd), (long)(flags), \
1725*7c3d14c8STreehugger Robot                                                (long)(utmr), (long)(otmr))
1726*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timerfd_settime(res, ufd, flags, utmr, otmr) \
1727*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timerfd_settime(                              \
1728*7c3d14c8STreehugger Robot       res, (long)(ufd), (long)(flags), (long)(utmr), (long)(otmr))
1729*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_timerfd_gettime(ufd, otmr) \
1730*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_timerfd_gettime((long)(ufd), (long)(otmr))
1731*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_timerfd_gettime(res, ufd, otmr) \
1732*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_timerfd_gettime(res, (long)(ufd), (long)(otmr))
1733*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_eventfd(count) \
1734*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_eventfd((long)(count))
1735*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_eventfd(res, count) \
1736*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_eventfd(res, (long)(count))
1737*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_eventfd2(count, flags) \
1738*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_eventfd2((long)(count), (long)(flags))
1739*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_eventfd2(res, count, flags) \
1740*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_eventfd2(res, (long)(count), (long)(flags))
1741*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_old_readdir(arg0, arg1, arg2)          \
1742*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_old_readdir((long)(arg0), (long)(arg1), \
1743*7c3d14c8STreehugger Robot                                            (long)(arg2))
1744*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_old_readdir(res, arg0, arg1, arg2)          \
1745*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_old_readdir(res, (long)(arg0), (long)(arg1), \
1746*7c3d14c8STreehugger Robot                                             (long)(arg2))
1747*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_pselect6(arg0, arg1, arg2, arg3, arg4, arg5) \
1748*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_pselect6((long)(arg0), (long)(arg1),          \
1749*7c3d14c8STreehugger Robot                                         (long)(arg2), (long)(arg3),          \
1750*7c3d14c8STreehugger Robot                                         (long)(arg4), (long)(arg5))
1751*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_pselect6(res, arg0, arg1, arg2, arg3, arg4, \
1752*7c3d14c8STreehugger Robot                                           arg5)                              \
1753*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_pselect6(res, (long)(arg0), (long)(arg1),    \
1754*7c3d14c8STreehugger Robot                                          (long)(arg2), (long)(arg3),         \
1755*7c3d14c8STreehugger Robot                                          (long)(arg4), (long)(arg5))
1756*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ppoll(arg0, arg1, arg2, arg3, arg4)            \
1757*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_ppoll((long)(arg0), (long)(arg1), (long)(arg2), \
1758*7c3d14c8STreehugger Robot                                      (long)(arg3), (long)(arg4))
1759*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ppoll(res, arg0, arg1, arg2, arg3, arg4) \
1760*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_ppoll(res, (long)(arg0), (long)(arg1),    \
1761*7c3d14c8STreehugger Robot                                       (long)(arg2), (long)(arg3),         \
1762*7c3d14c8STreehugger Robot                                       (long)(arg4))
1763*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_syncfs(fd) \
1764*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_syncfs((long)(fd))
1765*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_syncfs(res, fd) \
1766*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_syncfs(res, (long)(fd))
1767*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_perf_event_open(attr_uptr, pid, cpu, group_fd, \
1768*7c3d14c8STreehugger Robot                                                 flags)                         \
1769*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_perf_event_open((long)(attr_uptr), (long)(pid), \
1770*7c3d14c8STreehugger Robot                                                (long)(cpu), (long)(group_fd),  \
1771*7c3d14c8STreehugger Robot                                                (long)(flags))
1772*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_perf_event_open(res, attr_uptr, pid, cpu, \
1773*7c3d14c8STreehugger Robot                                                  group_fd, flags)          \
1774*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_perf_event_open(                           \
1775*7c3d14c8STreehugger Robot       res, (long)(attr_uptr), (long)(pid), (long)(cpu), (long)(group_fd),  \
1776*7c3d14c8STreehugger Robot       (long)(flags))
1777*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mmap_pgoff(addr, len, prot, flags, fd, pgoff) \
1778*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_mmap_pgoff((long)(addr), (long)(len),          \
1779*7c3d14c8STreehugger Robot                                           (long)(prot), (long)(flags),        \
1780*7c3d14c8STreehugger Robot                                           (long)(fd), (long)(pgoff))
1781*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mmap_pgoff(res, addr, len, prot, flags, fd, \
1782*7c3d14c8STreehugger Robot                                             pgoff)                           \
1783*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_mmap_pgoff(res, (long)(addr), (long)(len),   \
1784*7c3d14c8STreehugger Robot                                            (long)(prot), (long)(flags),      \
1785*7c3d14c8STreehugger Robot                                            (long)(fd), (long)(pgoff))
1786*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_old_mmap(arg) \
1787*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_old_mmap((long)(arg))
1788*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_old_mmap(res, arg) \
1789*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_old_mmap(res, (long)(arg))
1790*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_name_to_handle_at(dfd, name, handle, mnt_id, \
1791*7c3d14c8STreehugger Robot                                                   flag)                      \
1792*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_name_to_handle_at(                            \
1793*7c3d14c8STreehugger Robot       (long)(dfd), (long)(name), (long)(handle), (long)(mnt_id), (long)(flag))
1794*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_name_to_handle_at(res, dfd, name, handle, \
1795*7c3d14c8STreehugger Robot                                                    mnt_id, flag)           \
1796*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_name_to_handle_at(                         \
1797*7c3d14c8STreehugger Robot       res, (long)(dfd), (long)(name), (long)(handle), (long)(mnt_id),      \
1798*7c3d14c8STreehugger Robot       (long)(flag))
1799*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_open_by_handle_at(mountdirfd, handle, flags) \
1800*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_open_by_handle_at(                            \
1801*7c3d14c8STreehugger Robot       (long)(mountdirfd), (long)(handle), (long)(flags))
1802*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_open_by_handle_at(res, mountdirfd, handle, \
1803*7c3d14c8STreehugger Robot                                                    flags)                   \
1804*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_open_by_handle_at(                          \
1805*7c3d14c8STreehugger Robot       res, (long)(mountdirfd), (long)(handle), (long)(flags))
1806*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setns(fd, nstype) \
1807*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_setns((long)(fd), (long)(nstype))
1808*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setns(res, fd, nstype) \
1809*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_setns(res, (long)(fd), (long)(nstype))
1810*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_process_vm_readv(pid, lvec, liovcnt, rvec, \
1811*7c3d14c8STreehugger Robot                                                  riovcnt, flags)           \
1812*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_process_vm_readv(                           \
1813*7c3d14c8STreehugger Robot       (long)(pid), (long)(lvec), (long)(liovcnt), (long)(rvec),            \
1814*7c3d14c8STreehugger Robot       (long)(riovcnt), (long)(flags))
1815*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_process_vm_readv(res, pid, lvec, liovcnt, \
1816*7c3d14c8STreehugger Robot                                                   rvec, riovcnt, flags)    \
1817*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_process_vm_readv(                          \
1818*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(lvec), (long)(liovcnt), (long)(rvec),       \
1819*7c3d14c8STreehugger Robot       (long)(riovcnt), (long)(flags))
1820*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_process_vm_writev(pid, lvec, liovcnt, rvec, \
1821*7c3d14c8STreehugger Robot                                                   riovcnt, flags)           \
1822*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_process_vm_writev(                           \
1823*7c3d14c8STreehugger Robot       (long)(pid), (long)(lvec), (long)(liovcnt), (long)(rvec),             \
1824*7c3d14c8STreehugger Robot       (long)(riovcnt), (long)(flags))
1825*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_process_vm_writev(res, pid, lvec, liovcnt, \
1826*7c3d14c8STreehugger Robot                                                    rvec, riovcnt, flags)    \
1827*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_process_vm_writev(                          \
1828*7c3d14c8STreehugger Robot       res, (long)(pid), (long)(lvec), (long)(liovcnt), (long)(rvec),        \
1829*7c3d14c8STreehugger Robot       (long)(riovcnt), (long)(flags))
1830*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fork() \
1831*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_fork()
1832*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fork(res) \
1833*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_fork(res)
1834*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vfork() \
1835*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_vfork()
1836*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vfork(res) \
1837*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_vfork(res)
1838*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigaction(signum, act, oldact)                 \
1839*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_sigaction((long)signum, (long)act, (long)oldact)
1840*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigaction(res, signum, act, oldact)           \
1841*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_sigaction(res, (long)signum, (long)act,        \
1842*7c3d14c8STreehugger Robot                                           (long)oldact)
1843*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigaction(signum, act, oldact, sz)          \
1844*7c3d14c8STreehugger Robot   __sanitizer_syscall_pre_impl_rt_sigaction((long)signum, (long)act,           \
1845*7c3d14c8STreehugger Robot                                             (long)oldact, (long)sz)
1846*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigaction(res, signum, act, oldact, sz)    \
1847*7c3d14c8STreehugger Robot   __sanitizer_syscall_post_impl_rt_sigaction(res, (long)signum, (long)act,     \
1848*7c3d14c8STreehugger Robot                                              (long)oldact, (long)sz)
1849*7c3d14c8STreehugger Robot 
1850*7c3d14c8STreehugger Robot // And now a few syscalls we don't handle yet.
1851*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_afs_syscall(...)
1852*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_arch_prctl(...)
1853*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_break(...)
1854*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_chown32(...)
1855*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_clone(...)
1856*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_create_module(...)
1857*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_ctl_old(...)
1858*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_epoll_wait_old(...)
1859*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_execve(...)
1860*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fadvise64(...)
1861*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fadvise64_64(...)
1862*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fallocate(...)
1863*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fanotify_init(...)
1864*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fanotify_mark(...)
1865*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_fchown32(...)
1866*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ftime(...)
1867*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ftruncate64(...)
1868*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_futex(...)
1869*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getegid32(...)
1870*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_geteuid32(...)
1871*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgid32(...)
1872*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getgroups32(...)
1873*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_get_kernel_syms(...)
1874*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getpmsg(...)
1875*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresgid32(...)
1876*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getresuid32(...)
1877*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_get_thread_area(...)
1878*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_getuid32(...)
1879*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_gtty(...)
1880*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_idle(...)
1881*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_iopl(...)
1882*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lchown32(...)
1883*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre__llseek(...)
1884*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_lock(...)
1885*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_madvise1(...)
1886*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mmap(...)
1887*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mmap2(...)
1888*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_modify_ldt(...)
1889*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_mpx(...)
1890*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre__newselect(...)
1891*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_nfsservctl(...)
1892*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_oldfstat(...)
1893*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_oldlstat(...)
1894*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_oldolduname(...)
1895*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_oldstat(...)
1896*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_prctl(...)
1897*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_prof(...)
1898*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_profil(...)
1899*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_putpmsg(...)
1900*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_query_module(...)
1901*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_readahead(...)
1902*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_readdir(...)
1903*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigreturn(...)
1904*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_rt_sigsuspend(...)
1905*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_security(...)
1906*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsgid32(...)
1907*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setfsuid32(...)
1908*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgid32(...)
1909*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setgroups32(...)
1910*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setregid32(...)
1911*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresgid32(...)
1912*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setresuid32(...)
1913*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setreuid32(...)
1914*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_set_thread_area(...)
1915*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_setuid32(...)
1916*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigaltstack(...)
1917*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigreturn(...)
1918*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sigsuspend(...)
1919*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_stty(...)
1920*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_sync_file_range(...)
1921*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre__sysctl(...)
1922*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_truncate64(...)
1923*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_tuxcall(...)
1924*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ugetrlimit(...)
1925*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_ulimit(...)
1926*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_umount2(...)
1927*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vm86(...)
1928*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vm86old(...)
1929*7c3d14c8STreehugger Robot #define __sanitizer_syscall_pre_vserver(...)
1930*7c3d14c8STreehugger Robot 
1931*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_afs_syscall(res, ...)
1932*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_arch_prctl(res, ...)
1933*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_break(res, ...)
1934*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_chown32(res, ...)
1935*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_clone(res, ...)
1936*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_create_module(res, ...)
1937*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_ctl_old(res, ...)
1938*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_epoll_wait_old(res, ...)
1939*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_execve(res, ...)
1940*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fadvise64(res, ...)
1941*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fadvise64_64(res, ...)
1942*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fallocate(res, ...)
1943*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fanotify_init(res, ...)
1944*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fanotify_mark(res, ...)
1945*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_fchown32(res, ...)
1946*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ftime(res, ...)
1947*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ftruncate64(res, ...)
1948*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_futex(res, ...)
1949*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getegid32(res, ...)
1950*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_geteuid32(res, ...)
1951*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgid32(res, ...)
1952*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getgroups32(res, ...)
1953*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_get_kernel_syms(res, ...)
1954*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getpmsg(res, ...)
1955*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresgid32(res, ...)
1956*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getresuid32(res, ...)
1957*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_get_thread_area(res, ...)
1958*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_getuid32(res, ...)
1959*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_gtty(res, ...)
1960*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_idle(res, ...)
1961*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_iopl(res, ...)
1962*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lchown32(res, ...)
1963*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post__llseek(res, ...)
1964*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_lock(res, ...)
1965*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_madvise1(res, ...)
1966*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mmap2(res, ...)
1967*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mmap(res, ...)
1968*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_modify_ldt(res, ...)
1969*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_mpx(res, ...)
1970*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post__newselect(res, ...)
1971*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_nfsservctl(res, ...)
1972*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_oldfstat(res, ...)
1973*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_oldlstat(res, ...)
1974*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_oldolduname(res, ...)
1975*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_oldstat(res, ...)
1976*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_prctl(res, ...)
1977*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_profil(res, ...)
1978*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_prof(res, ...)
1979*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_putpmsg(res, ...)
1980*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_query_module(res, ...)
1981*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_readahead(res, ...)
1982*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_readdir(res, ...)
1983*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigreturn(res, ...)
1984*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_rt_sigsuspend(res, ...)
1985*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_security(res, ...)
1986*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsgid32(res, ...)
1987*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setfsuid32(res, ...)
1988*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgid32(res, ...)
1989*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setgroups32(res, ...)
1990*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setregid32(res, ...)
1991*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresgid32(res, ...)
1992*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setresuid32(res, ...)
1993*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setreuid32(res, ...)
1994*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_set_thread_area(res, ...)
1995*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_setuid32(res, ...)
1996*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigaltstack(res, ...)
1997*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigreturn(res, ...)
1998*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sigsuspend(res, ...)
1999*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_stty(res, ...)
2000*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_sync_file_range(res, ...)
2001*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post__sysctl(res, ...)
2002*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_truncate64(res, ...)
2003*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_tuxcall(res, ...)
2004*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ugetrlimit(res, ...)
2005*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_ulimit(res, ...)
2006*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_umount2(res, ...)
2007*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vm86old(res, ...)
2008*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vm86(res, ...)
2009*7c3d14c8STreehugger Robot #define __sanitizer_syscall_post_vserver(res, ...)
2010*7c3d14c8STreehugger Robot 
2011*7c3d14c8STreehugger Robot #ifdef __cplusplus
2012*7c3d14c8STreehugger Robot extern "C" {
2013*7c3d14c8STreehugger Robot #endif
2014*7c3d14c8STreehugger Robot 
2015*7c3d14c8STreehugger Robot // Private declarations. Do not call directly from user code. Use macros above.
2016*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_time(long tloc);
2017*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_time(long res, long tloc);
2018*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_stime(long tptr);
2019*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_stime(long res, long tptr);
2020*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_gettimeofday(long tv, long tz);
2021*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_gettimeofday(long res, long tv, long tz);
2022*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_settimeofday(long tv, long tz);
2023*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_settimeofday(long res, long tv, long tz);
2024*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_adjtimex(long txc_p);
2025*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_adjtimex(long res, long txc_p);
2026*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_times(long tbuf);
2027*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_times(long res, long tbuf);
2028*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_gettid();
2029*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_gettid(long res);
2030*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_nanosleep(long rqtp, long rmtp);
2031*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_nanosleep(long res, long rqtp, long rmtp);
2032*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_alarm(long seconds);
2033*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_alarm(long res, long seconds);
2034*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getpid();
2035*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getpid(long res);
2036*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getppid();
2037*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getppid(long res);
2038*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getuid();
2039*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getuid(long res);
2040*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_geteuid();
2041*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_geteuid(long res);
2042*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getgid();
2043*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getgid(long res);
2044*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getegid();
2045*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getegid(long res);
2046*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getresuid(long ruid, long euid, long suid);
2047*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getresuid(long res, long ruid, long euid,
2048*7c3d14c8STreehugger Robot                                              long suid);
2049*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getresgid(long rgid, long egid, long sgid);
2050*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getresgid(long res, long rgid, long egid,
2051*7c3d14c8STreehugger Robot                                              long sgid);
2052*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getpgid(long pid);
2053*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getpgid(long res, long pid);
2054*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getpgrp();
2055*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getpgrp(long res);
2056*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getsid(long pid);
2057*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getsid(long res, long pid);
2058*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getgroups(long gidsetsize, long grouplist);
2059*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getgroups(long res, long gidsetsize,
2060*7c3d14c8STreehugger Robot                                              long grouplist);
2061*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setregid(long rgid, long egid);
2062*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setregid(long res, long rgid, long egid);
2063*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setgid(long gid);
2064*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setgid(long res, long gid);
2065*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setreuid(long ruid, long euid);
2066*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setreuid(long res, long ruid, long euid);
2067*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setuid(long uid);
2068*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setuid(long res, long uid);
2069*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setresuid(long ruid, long euid, long suid);
2070*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setresuid(long res, long ruid, long euid,
2071*7c3d14c8STreehugger Robot                                              long suid);
2072*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setresgid(long rgid, long egid, long sgid);
2073*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setresgid(long res, long rgid, long egid,
2074*7c3d14c8STreehugger Robot                                              long sgid);
2075*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setfsuid(long uid);
2076*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setfsuid(long res, long uid);
2077*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setfsgid(long gid);
2078*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setfsgid(long res, long gid);
2079*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setpgid(long pid, long pgid);
2080*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setpgid(long res, long pid, long pgid);
2081*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setsid();
2082*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setsid(long res);
2083*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setgroups(long gidsetsize, long grouplist);
2084*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setgroups(long res, long gidsetsize,
2085*7c3d14c8STreehugger Robot                                              long grouplist);
2086*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_acct(long name);
2087*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_acct(long res, long name);
2088*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_capget(long header, long dataptr);
2089*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_capget(long res, long header, long dataptr);
2090*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_capset(long header, long data);
2091*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_capset(long res, long header, long data);
2092*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_personality(long personality);
2093*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_personality(long res, long personality);
2094*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sigpending(long set);
2095*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sigpending(long res, long set);
2096*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sigprocmask(long how, long set, long oset);
2097*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sigprocmask(long res, long how, long set,
2098*7c3d14c8STreehugger Robot                                                long oset);
2099*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getitimer(long which, long value);
2100*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getitimer(long res, long which, long value);
2101*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setitimer(long which, long value,
2102*7c3d14c8STreehugger Robot                                             long ovalue);
2103*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setitimer(long res, long which, long value,
2104*7c3d14c8STreehugger Robot                                              long ovalue);
2105*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timer_create(long which_clock,
2106*7c3d14c8STreehugger Robot                                                long timer_event_spec,
2107*7c3d14c8STreehugger Robot                                                long created_timer_id);
2108*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timer_create(long res, long which_clock,
2109*7c3d14c8STreehugger Robot                                                 long timer_event_spec,
2110*7c3d14c8STreehugger Robot                                                 long created_timer_id);
2111*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timer_gettime(long timer_id, long setting);
2112*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timer_gettime(long res, long timer_id,
2113*7c3d14c8STreehugger Robot                                                  long setting);
2114*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timer_getoverrun(long timer_id);
2115*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timer_getoverrun(long res, long timer_id);
2116*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timer_settime(long timer_id, long flags,
2117*7c3d14c8STreehugger Robot                                                 long new_setting,
2118*7c3d14c8STreehugger Robot                                                 long old_setting);
2119*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timer_settime(long res, long timer_id,
2120*7c3d14c8STreehugger Robot                                                  long flags, long new_setting,
2121*7c3d14c8STreehugger Robot                                                  long old_setting);
2122*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timer_delete(long timer_id);
2123*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timer_delete(long res, long timer_id);
2124*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_clock_settime(long which_clock, long tp);
2125*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_clock_settime(long res, long which_clock,
2126*7c3d14c8STreehugger Robot                                                  long tp);
2127*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_clock_gettime(long which_clock, long tp);
2128*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_clock_gettime(long res, long which_clock,
2129*7c3d14c8STreehugger Robot                                                  long tp);
2130*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_clock_adjtime(long which_clock, long tx);
2131*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_clock_adjtime(long res, long which_clock,
2132*7c3d14c8STreehugger Robot                                                  long tx);
2133*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_clock_getres(long which_clock, long tp);
2134*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_clock_getres(long res, long which_clock,
2135*7c3d14c8STreehugger Robot                                                 long tp);
2136*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_clock_nanosleep(long which_clock, long flags,
2137*7c3d14c8STreehugger Robot                                                   long rqtp, long rmtp);
2138*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_clock_nanosleep(long res, long which_clock,
2139*7c3d14c8STreehugger Robot                                                    long flags, long rqtp,
2140*7c3d14c8STreehugger Robot                                                    long rmtp);
2141*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_nice(long increment);
2142*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_nice(long res, long increment);
2143*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_setscheduler(long pid, long policy,
2144*7c3d14c8STreehugger Robot                                                      long param);
2145*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_setscheduler(long res, long pid,
2146*7c3d14c8STreehugger Robot                                                       long policy, long param);
2147*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_setparam(long pid, long param);
2148*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_setparam(long res, long pid,
2149*7c3d14c8STreehugger Robot                                                   long param);
2150*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_getscheduler(long pid);
2151*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_getscheduler(long res, long pid);
2152*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_getparam(long pid, long param);
2153*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_getparam(long res, long pid,
2154*7c3d14c8STreehugger Robot                                                   long param);
2155*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_setaffinity(long pid, long len,
2156*7c3d14c8STreehugger Robot                                                     long user_mask_ptr);
2157*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_setaffinity(long res, long pid,
2158*7c3d14c8STreehugger Robot                                                      long len,
2159*7c3d14c8STreehugger Robot                                                      long user_mask_ptr);
2160*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_getaffinity(long pid, long len,
2161*7c3d14c8STreehugger Robot                                                     long user_mask_ptr);
2162*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_getaffinity(long res, long pid,
2163*7c3d14c8STreehugger Robot                                                      long len,
2164*7c3d14c8STreehugger Robot                                                      long user_mask_ptr);
2165*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_yield();
2166*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_yield(long res);
2167*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_get_priority_max(long policy);
2168*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_get_priority_max(long res,
2169*7c3d14c8STreehugger Robot                                                           long policy);
2170*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_get_priority_min(long policy);
2171*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_get_priority_min(long res,
2172*7c3d14c8STreehugger Robot                                                           long policy);
2173*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sched_rr_get_interval(long pid,
2174*7c3d14c8STreehugger Robot                                                         long interval);
2175*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sched_rr_get_interval(long res, long pid,
2176*7c3d14c8STreehugger Robot                                                          long interval);
2177*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setpriority(long which, long who,
2178*7c3d14c8STreehugger Robot                                               long niceval);
2179*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setpriority(long res, long which, long who,
2180*7c3d14c8STreehugger Robot                                                long niceval);
2181*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getpriority(long which, long who);
2182*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getpriority(long res, long which, long who);
2183*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_shutdown(long arg0, long arg1);
2184*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_shutdown(long res, long arg0, long arg1);
2185*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_reboot(long magic1, long magic2, long cmd,
2186*7c3d14c8STreehugger Robot                                          long arg);
2187*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_reboot(long res, long magic1, long magic2,
2188*7c3d14c8STreehugger Robot                                           long cmd, long arg);
2189*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_restart_syscall();
2190*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_restart_syscall(long res);
2191*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_kexec_load(long entry, long nr_segments,
2192*7c3d14c8STreehugger Robot                                              long segments, long flags);
2193*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_kexec_load(long res, long entry,
2194*7c3d14c8STreehugger Robot                                               long nr_segments, long segments,
2195*7c3d14c8STreehugger Robot                                               long flags);
2196*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_exit(long error_code);
2197*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_exit(long res, long error_code);
2198*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_exit_group(long error_code);
2199*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_exit_group(long res, long error_code);
2200*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_wait4(long pid, long stat_addr, long options,
2201*7c3d14c8STreehugger Robot                                         long ru);
2202*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_wait4(long res, long pid, long stat_addr,
2203*7c3d14c8STreehugger Robot                                          long options, long ru);
2204*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_waitid(long which, long pid, long infop,
2205*7c3d14c8STreehugger Robot                                          long options, long ru);
2206*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_waitid(long res, long which, long pid,
2207*7c3d14c8STreehugger Robot                                           long infop, long options, long ru);
2208*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_waitpid(long pid, long stat_addr,
2209*7c3d14c8STreehugger Robot                                           long options);
2210*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_waitpid(long res, long pid, long stat_addr,
2211*7c3d14c8STreehugger Robot                                            long options);
2212*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_set_tid_address(long tidptr);
2213*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_set_tid_address(long res, long tidptr);
2214*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_init_module(long umod, long len, long uargs);
2215*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_init_module(long res, long umod, long len,
2216*7c3d14c8STreehugger Robot                                                long uargs);
2217*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_delete_module(long name_user, long flags);
2218*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_delete_module(long res, long name_user,
2219*7c3d14c8STreehugger Robot                                                  long flags);
2220*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_sigprocmask(long how, long set, long oset,
2221*7c3d14c8STreehugger Robot                                                  long sigsetsize);
2222*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_sigprocmask(long res, long how, long set,
2223*7c3d14c8STreehugger Robot                                                   long oset, long sigsetsize);
2224*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_sigpending(long set, long sigsetsize);
2225*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_sigpending(long res, long set,
2226*7c3d14c8STreehugger Robot                                                  long sigsetsize);
2227*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_sigtimedwait(long uthese, long uinfo,
2228*7c3d14c8STreehugger Robot                                                   long uts, long sigsetsize);
2229*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_sigtimedwait(long res, long uthese,
2230*7c3d14c8STreehugger Robot                                                    long uinfo, long uts,
2231*7c3d14c8STreehugger Robot                                                    long sigsetsize);
2232*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_tgsigqueueinfo(long tgid, long pid,
2233*7c3d14c8STreehugger Robot                                                     long sig, long uinfo);
2234*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_tgsigqueueinfo(long res, long tgid,
2235*7c3d14c8STreehugger Robot                                                      long pid, long sig,
2236*7c3d14c8STreehugger Robot                                                      long uinfo);
2237*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_kill(long pid, long sig);
2238*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_kill(long res, long pid, long sig);
2239*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_tgkill(long tgid, long pid, long sig);
2240*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_tgkill(long res, long tgid, long pid,
2241*7c3d14c8STreehugger Robot                                           long sig);
2242*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_tkill(long pid, long sig);
2243*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_tkill(long res, long pid, long sig);
2244*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_sigqueueinfo(long pid, long sig,
2245*7c3d14c8STreehugger Robot                                                   long uinfo);
2246*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_sigqueueinfo(long res, long pid, long sig,
2247*7c3d14c8STreehugger Robot                                                    long uinfo);
2248*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sgetmask();
2249*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sgetmask(long res);
2250*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ssetmask(long newmask);
2251*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ssetmask(long res, long newmask);
2252*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_signal(long sig, long handler);
2253*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_signal(long res, long sig, long handler);
2254*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pause();
2255*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pause(long res);
2256*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sync();
2257*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sync(long res);
2258*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fsync(long fd);
2259*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fsync(long res, long fd);
2260*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fdatasync(long fd);
2261*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fdatasync(long res, long fd);
2262*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_bdflush(long func, long data);
2263*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_bdflush(long res, long func, long data);
2264*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mount(long dev_name, long dir_name, long type,
2265*7c3d14c8STreehugger Robot                                         long flags, long data);
2266*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mount(long res, long dev_name, long dir_name,
2267*7c3d14c8STreehugger Robot                                          long type, long flags, long data);
2268*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_umount(long name, long flags);
2269*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_umount(long res, long name, long flags);
2270*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_oldumount(long name);
2271*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_oldumount(long res, long name);
2272*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_truncate(long path, long length);
2273*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_truncate(long res, long path, long length);
2274*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ftruncate(long fd, long length);
2275*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ftruncate(long res, long fd, long length);
2276*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_stat(long filename, long statbuf);
2277*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_stat(long res, long filename, long statbuf);
2278*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_statfs(long path, long buf);
2279*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_statfs(long res, long path, long buf);
2280*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_statfs64(long path, long sz, long buf);
2281*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_statfs64(long res, long path, long sz,
2282*7c3d14c8STreehugger Robot                                             long buf);
2283*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fstatfs(long fd, long buf);
2284*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fstatfs(long res, long fd, long buf);
2285*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fstatfs64(long fd, long sz, long buf);
2286*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fstatfs64(long res, long fd, long sz,
2287*7c3d14c8STreehugger Robot                                              long buf);
2288*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lstat(long filename, long statbuf);
2289*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lstat(long res, long filename, long statbuf);
2290*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fstat(long fd, long statbuf);
2291*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fstat(long res, long fd, long statbuf);
2292*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_newstat(long filename, long statbuf);
2293*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_newstat(long res, long filename,
2294*7c3d14c8STreehugger Robot                                            long statbuf);
2295*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_newlstat(long filename, long statbuf);
2296*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_newlstat(long res, long filename,
2297*7c3d14c8STreehugger Robot                                             long statbuf);
2298*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_newfstat(long fd, long statbuf);
2299*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_newfstat(long res, long fd, long statbuf);
2300*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ustat(long dev, long ubuf);
2301*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ustat(long res, long dev, long ubuf);
2302*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_stat64(long filename, long statbuf);
2303*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_stat64(long res, long filename,
2304*7c3d14c8STreehugger Robot                                           long statbuf);
2305*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fstat64(long fd, long statbuf);
2306*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fstat64(long res, long fd, long statbuf);
2307*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lstat64(long filename, long statbuf);
2308*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lstat64(long res, long filename,
2309*7c3d14c8STreehugger Robot                                            long statbuf);
2310*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setxattr(long path, long name, long value,
2311*7c3d14c8STreehugger Robot                                            long size, long flags);
2312*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setxattr(long res, long path, long name,
2313*7c3d14c8STreehugger Robot                                             long value, long size, long flags);
2314*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lsetxattr(long path, long name, long value,
2315*7c3d14c8STreehugger Robot                                             long size, long flags);
2316*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lsetxattr(long res, long path, long name,
2317*7c3d14c8STreehugger Robot                                              long value, long size, long flags);
2318*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fsetxattr(long fd, long name, long value,
2319*7c3d14c8STreehugger Robot                                             long size, long flags);
2320*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fsetxattr(long res, long fd, long name,
2321*7c3d14c8STreehugger Robot                                              long value, long size, long flags);
2322*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getxattr(long path, long name, long value,
2323*7c3d14c8STreehugger Robot                                            long size);
2324*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getxattr(long res, long path, long name,
2325*7c3d14c8STreehugger Robot                                             long value, long size);
2326*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lgetxattr(long path, long name, long value,
2327*7c3d14c8STreehugger Robot                                             long size);
2328*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lgetxattr(long res, long path, long name,
2329*7c3d14c8STreehugger Robot                                              long value, long size);
2330*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fgetxattr(long fd, long name, long value,
2331*7c3d14c8STreehugger Robot                                             long size);
2332*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fgetxattr(long res, long fd, long name,
2333*7c3d14c8STreehugger Robot                                              long value, long size);
2334*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_listxattr(long path, long list, long size);
2335*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_listxattr(long res, long path, long list,
2336*7c3d14c8STreehugger Robot                                              long size);
2337*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_llistxattr(long path, long list, long size);
2338*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_llistxattr(long res, long path, long list,
2339*7c3d14c8STreehugger Robot                                               long size);
2340*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_flistxattr(long fd, long list, long size);
2341*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_flistxattr(long res, long fd, long list,
2342*7c3d14c8STreehugger Robot                                               long size);
2343*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_removexattr(long path, long name);
2344*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_removexattr(long res, long path, long name);
2345*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lremovexattr(long path, long name);
2346*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lremovexattr(long res, long path, long name);
2347*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fremovexattr(long fd, long name);
2348*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fremovexattr(long res, long fd, long name);
2349*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_brk(long brk);
2350*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_brk(long res, long brk);
2351*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mprotect(long start, long len, long prot);
2352*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mprotect(long res, long start, long len,
2353*7c3d14c8STreehugger Robot                                             long prot);
2354*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mremap(long addr, long old_len, long new_len,
2355*7c3d14c8STreehugger Robot                                          long flags, long new_addr);
2356*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mremap(long res, long addr, long old_len,
2357*7c3d14c8STreehugger Robot                                           long new_len, long flags,
2358*7c3d14c8STreehugger Robot                                           long new_addr);
2359*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_remap_file_pages(long start, long size,
2360*7c3d14c8STreehugger Robot                                                    long prot, long pgoff,
2361*7c3d14c8STreehugger Robot                                                    long flags);
2362*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_remap_file_pages(long res, long start,
2363*7c3d14c8STreehugger Robot                                                     long size, long prot,
2364*7c3d14c8STreehugger Robot                                                     long pgoff, long flags);
2365*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_msync(long start, long len, long flags);
2366*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_msync(long res, long start, long len,
2367*7c3d14c8STreehugger Robot                                          long flags);
2368*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_munmap(long addr, long len);
2369*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_munmap(long res, long addr, long len);
2370*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mlock(long start, long len);
2371*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mlock(long res, long start, long len);
2372*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_munlock(long start, long len);
2373*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_munlock(long res, long start, long len);
2374*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mlockall(long flags);
2375*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mlockall(long res, long flags);
2376*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_munlockall();
2377*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_munlockall(long res);
2378*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_madvise(long start, long len, long behavior);
2379*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_madvise(long res, long start, long len,
2380*7c3d14c8STreehugger Robot                                            long behavior);
2381*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mincore(long start, long len, long vec);
2382*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mincore(long res, long start, long len,
2383*7c3d14c8STreehugger Robot                                            long vec);
2384*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pivot_root(long new_root, long put_old);
2385*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pivot_root(long res, long new_root,
2386*7c3d14c8STreehugger Robot                                               long put_old);
2387*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_chroot(long filename);
2388*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_chroot(long res, long filename);
2389*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mknod(long filename, long mode, long dev);
2390*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mknod(long res, long filename, long mode,
2391*7c3d14c8STreehugger Robot                                          long dev);
2392*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_link(long oldname, long newname);
2393*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_link(long res, long oldname, long newname);
2394*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_symlink(long old, long new_);
2395*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_symlink(long res, long old, long new_);
2396*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_unlink(long pathname);
2397*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_unlink(long res, long pathname);
2398*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rename(long oldname, long newname);
2399*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rename(long res, long oldname, long newname);
2400*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_chmod(long filename, long mode);
2401*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_chmod(long res, long filename, long mode);
2402*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchmod(long fd, long mode);
2403*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchmod(long res, long fd, long mode);
2404*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fcntl(long fd, long cmd, long arg);
2405*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fcntl(long res, long fd, long cmd, long arg);
2406*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fcntl64(long fd, long cmd, long arg);
2407*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fcntl64(long res, long fd, long cmd,
2408*7c3d14c8STreehugger Robot                                            long arg);
2409*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pipe(long fildes);
2410*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pipe(long res, long fildes);
2411*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pipe2(long fildes, long flags);
2412*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pipe2(long res, long fildes, long flags);
2413*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_dup(long fildes);
2414*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_dup(long res, long fildes);
2415*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_dup2(long oldfd, long newfd);
2416*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_dup2(long res, long oldfd, long newfd);
2417*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_dup3(long oldfd, long newfd, long flags);
2418*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_dup3(long res, long oldfd, long newfd,
2419*7c3d14c8STreehugger Robot                                         long flags);
2420*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ioperm(long from, long num, long on);
2421*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ioperm(long res, long from, long num,
2422*7c3d14c8STreehugger Robot                                           long on);
2423*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ioctl(long fd, long cmd, long arg);
2424*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ioctl(long res, long fd, long cmd, long arg);
2425*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_flock(long fd, long cmd);
2426*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_flock(long res, long fd, long cmd);
2427*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_io_setup(long nr_reqs, long ctx);
2428*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_io_setup(long res, long nr_reqs, long ctx);
2429*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_io_destroy(long ctx);
2430*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_io_destroy(long res, long ctx);
2431*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_io_getevents(long ctx_id, long min_nr,
2432*7c3d14c8STreehugger Robot                                                long nr, long events,
2433*7c3d14c8STreehugger Robot                                                long timeout);
2434*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_io_getevents(long res, long ctx_id,
2435*7c3d14c8STreehugger Robot                                                 long min_nr, long nr,
2436*7c3d14c8STreehugger Robot                                                 long events, long timeout);
2437*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_io_submit(long ctx_id, long arg1, long arg2);
2438*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_io_submit(long res, long ctx_id, long arg1,
2439*7c3d14c8STreehugger Robot                                              long arg2);
2440*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_io_cancel(long ctx_id, long iocb,
2441*7c3d14c8STreehugger Robot                                             long result);
2442*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_io_cancel(long res, long ctx_id, long iocb,
2443*7c3d14c8STreehugger Robot                                              long result);
2444*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sendfile(long out_fd, long in_fd, long offset,
2445*7c3d14c8STreehugger Robot                                            long count);
2446*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sendfile(long res, long out_fd, long in_fd,
2447*7c3d14c8STreehugger Robot                                             long offset, long count);
2448*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sendfile64(long out_fd, long in_fd,
2449*7c3d14c8STreehugger Robot                                              long offset, long count);
2450*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sendfile64(long res, long out_fd, long in_fd,
2451*7c3d14c8STreehugger Robot                                               long offset, long count);
2452*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_readlink(long path, long buf, long bufsiz);
2453*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_readlink(long res, long path, long buf,
2454*7c3d14c8STreehugger Robot                                             long bufsiz);
2455*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_creat(long pathname, long mode);
2456*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_creat(long res, long pathname, long mode);
2457*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_open(long filename, long flags, long mode);
2458*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_open(long res, long filename, long flags,
2459*7c3d14c8STreehugger Robot                                         long mode);
2460*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_close(long fd);
2461*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_close(long res, long fd);
2462*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_access(long filename, long mode);
2463*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_access(long res, long filename, long mode);
2464*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_vhangup();
2465*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_vhangup(long res);
2466*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_chown(long filename, long user, long group);
2467*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_chown(long res, long filename, long user,
2468*7c3d14c8STreehugger Robot                                          long group);
2469*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lchown(long filename, long user, long group);
2470*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lchown(long res, long filename, long user,
2471*7c3d14c8STreehugger Robot                                           long group);
2472*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchown(long fd, long user, long group);
2473*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchown(long res, long fd, long user,
2474*7c3d14c8STreehugger Robot                                           long group);
2475*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_chown16(long filename, long user, long group);
2476*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_chown16(long res, long filename, long user,
2477*7c3d14c8STreehugger Robot                                            long group);
2478*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lchown16(long filename, long user,
2479*7c3d14c8STreehugger Robot                                            long group);
2480*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lchown16(long res, long filename, long user,
2481*7c3d14c8STreehugger Robot                                             long group);
2482*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchown16(long fd, long user, long group);
2483*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchown16(long res, long fd, long user,
2484*7c3d14c8STreehugger Robot                                             long group);
2485*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setregid16(long rgid, long egid);
2486*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setregid16(long res, long rgid, long egid);
2487*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setgid16(long gid);
2488*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setgid16(long res, long gid);
2489*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setreuid16(long ruid, long euid);
2490*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setreuid16(long res, long ruid, long euid);
2491*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setuid16(long uid);
2492*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setuid16(long res, long uid);
2493*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setresuid16(long ruid, long euid, long suid);
2494*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setresuid16(long res, long ruid, long euid,
2495*7c3d14c8STreehugger Robot                                                long suid);
2496*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getresuid16(long ruid, long euid, long suid);
2497*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getresuid16(long res, long ruid, long euid,
2498*7c3d14c8STreehugger Robot                                                long suid);
2499*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setresgid16(long rgid, long egid, long sgid);
2500*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setresgid16(long res, long rgid, long egid,
2501*7c3d14c8STreehugger Robot                                                long sgid);
2502*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getresgid16(long rgid, long egid, long sgid);
2503*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getresgid16(long res, long rgid, long egid,
2504*7c3d14c8STreehugger Robot                                                long sgid);
2505*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setfsuid16(long uid);
2506*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setfsuid16(long res, long uid);
2507*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setfsgid16(long gid);
2508*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setfsgid16(long res, long gid);
2509*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getgroups16(long gidsetsize, long grouplist);
2510*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getgroups16(long res, long gidsetsize,
2511*7c3d14c8STreehugger Robot                                                long grouplist);
2512*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setgroups16(long gidsetsize, long grouplist);
2513*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setgroups16(long res, long gidsetsize,
2514*7c3d14c8STreehugger Robot                                                long grouplist);
2515*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getuid16();
2516*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getuid16(long res);
2517*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_geteuid16();
2518*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_geteuid16(long res);
2519*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getgid16();
2520*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getgid16(long res);
2521*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getegid16();
2522*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getegid16(long res);
2523*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_utime(long filename, long times);
2524*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_utime(long res, long filename, long times);
2525*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_utimes(long filename, long utimes);
2526*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_utimes(long res, long filename, long utimes);
2527*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lseek(long fd, long offset, long origin);
2528*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lseek(long res, long fd, long offset,
2529*7c3d14c8STreehugger Robot                                          long origin);
2530*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_llseek(long fd, long offset_high,
2531*7c3d14c8STreehugger Robot                                          long offset_low, long result,
2532*7c3d14c8STreehugger Robot                                          long origin);
2533*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_llseek(long res, long fd, long offset_high,
2534*7c3d14c8STreehugger Robot                                           long offset_low, long result,
2535*7c3d14c8STreehugger Robot                                           long origin);
2536*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_read(long fd, long buf, long count);
2537*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_read(long res, long fd, long buf,
2538*7c3d14c8STreehugger Robot                                         long count);
2539*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_readv(long fd, long vec, long vlen);
2540*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_readv(long res, long fd, long vec,
2541*7c3d14c8STreehugger Robot                                          long vlen);
2542*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_write(long fd, long buf, long count);
2543*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_write(long res, long fd, long buf,
2544*7c3d14c8STreehugger Robot                                          long count);
2545*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_writev(long fd, long vec, long vlen);
2546*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_writev(long res, long fd, long vec,
2547*7c3d14c8STreehugger Robot                                           long vlen);
2548*7c3d14c8STreehugger Robot 
2549*7c3d14c8STreehugger Robot #ifdef _LP64
2550*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pread64(long fd, long buf, long count,
2551*7c3d14c8STreehugger Robot                                           long pos);
2552*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pread64(long res, long fd, long buf,
2553*7c3d14c8STreehugger Robot                                            long count, long pos);
2554*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pwrite64(long fd, long buf, long count,
2555*7c3d14c8STreehugger Robot                                            long pos);
2556*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pwrite64(long res, long fd, long buf,
2557*7c3d14c8STreehugger Robot                                             long count, long pos);
2558*7c3d14c8STreehugger Robot #else
2559*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pread64(long fd, long buf, long count,
2560*7c3d14c8STreehugger Robot                                           long pos0, long pos1);
2561*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pread64(long res, long fd, long buf,
2562*7c3d14c8STreehugger Robot                                            long count, long pos0, long pos1);
2563*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pwrite64(long fd, long buf, long count,
2564*7c3d14c8STreehugger Robot                                            long pos0, long pos1);
2565*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pwrite64(long res, long fd, long buf,
2566*7c3d14c8STreehugger Robot                                             long count, long pos0, long pos1);
2567*7c3d14c8STreehugger Robot #endif
2568*7c3d14c8STreehugger Robot 
2569*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_preadv(long fd, long vec, long vlen,
2570*7c3d14c8STreehugger Robot                                          long pos_l, long pos_h);
2571*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_preadv(long res, long fd, long vec,
2572*7c3d14c8STreehugger Robot                                           long vlen, long pos_l, long pos_h);
2573*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pwritev(long fd, long vec, long vlen,
2574*7c3d14c8STreehugger Robot                                           long pos_l, long pos_h);
2575*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pwritev(long res, long fd, long vec,
2576*7c3d14c8STreehugger Robot                                            long vlen, long pos_l, long pos_h);
2577*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getcwd(long buf, long size);
2578*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getcwd(long res, long buf, long size);
2579*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mkdir(long pathname, long mode);
2580*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mkdir(long res, long pathname, long mode);
2581*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_chdir(long filename);
2582*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_chdir(long res, long filename);
2583*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchdir(long fd);
2584*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchdir(long res, long fd);
2585*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rmdir(long pathname);
2586*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rmdir(long res, long pathname);
2587*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_lookup_dcookie(long cookie64, long buf,
2588*7c3d14c8STreehugger Robot                                                  long len);
2589*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_lookup_dcookie(long res, long cookie64,
2590*7c3d14c8STreehugger Robot                                                   long buf, long len);
2591*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_quotactl(long cmd, long special, long id,
2592*7c3d14c8STreehugger Robot                                            long addr);
2593*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_quotactl(long res, long cmd, long special,
2594*7c3d14c8STreehugger Robot                                             long id, long addr);
2595*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getdents(long fd, long dirent, long count);
2596*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getdents(long res, long fd, long dirent,
2597*7c3d14c8STreehugger Robot                                             long count);
2598*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getdents64(long fd, long dirent, long count);
2599*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getdents64(long res, long fd, long dirent,
2600*7c3d14c8STreehugger Robot                                               long count);
2601*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setsockopt(long fd, long level, long optname,
2602*7c3d14c8STreehugger Robot                                              long optval, long optlen);
2603*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setsockopt(long res, long fd, long level,
2604*7c3d14c8STreehugger Robot                                               long optname, long optval,
2605*7c3d14c8STreehugger Robot                                               long optlen);
2606*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getsockopt(long fd, long level, long optname,
2607*7c3d14c8STreehugger Robot                                              long optval, long optlen);
2608*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getsockopt(long res, long fd, long level,
2609*7c3d14c8STreehugger Robot                                               long optname, long optval,
2610*7c3d14c8STreehugger Robot                                               long optlen);
2611*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_bind(long arg0, long arg1, long arg2);
2612*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_bind(long res, long arg0, long arg1,
2613*7c3d14c8STreehugger Robot                                         long arg2);
2614*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_connect(long arg0, long arg1, long arg2);
2615*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_connect(long res, long arg0, long arg1,
2616*7c3d14c8STreehugger Robot                                            long arg2);
2617*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_accept(long arg0, long arg1, long arg2);
2618*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_accept(long res, long arg0, long arg1,
2619*7c3d14c8STreehugger Robot                                           long arg2);
2620*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_accept4(long arg0, long arg1, long arg2,
2621*7c3d14c8STreehugger Robot                                           long arg3);
2622*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_accept4(long res, long arg0, long arg1,
2623*7c3d14c8STreehugger Robot                                            long arg2, long arg3);
2624*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getsockname(long arg0, long arg1, long arg2);
2625*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getsockname(long res, long arg0, long arg1,
2626*7c3d14c8STreehugger Robot                                                long arg2);
2627*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getpeername(long arg0, long arg1, long arg2);
2628*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getpeername(long res, long arg0, long arg1,
2629*7c3d14c8STreehugger Robot                                                long arg2);
2630*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_send(long arg0, long arg1, long arg2,
2631*7c3d14c8STreehugger Robot                                        long arg3);
2632*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_send(long res, long arg0, long arg1,
2633*7c3d14c8STreehugger Robot                                         long arg2, long arg3);
2634*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sendto(long arg0, long arg1, long arg2,
2635*7c3d14c8STreehugger Robot                                          long arg3, long arg4, long arg5);
2636*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sendto(long res, long arg0, long arg1,
2637*7c3d14c8STreehugger Robot                                           long arg2, long arg3, long arg4,
2638*7c3d14c8STreehugger Robot                                           long arg5);
2639*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sendmsg(long fd, long msg, long flags);
2640*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sendmsg(long res, long fd, long msg,
2641*7c3d14c8STreehugger Robot                                            long flags);
2642*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sendmmsg(long fd, long msg, long vlen,
2643*7c3d14c8STreehugger Robot                                            long flags);
2644*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sendmmsg(long res, long fd, long msg,
2645*7c3d14c8STreehugger Robot                                             long vlen, long flags);
2646*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_recv(long arg0, long arg1, long arg2,
2647*7c3d14c8STreehugger Robot                                        long arg3);
2648*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_recv(long res, long arg0, long arg1,
2649*7c3d14c8STreehugger Robot                                         long arg2, long arg3);
2650*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_recvfrom(long arg0, long arg1, long arg2,
2651*7c3d14c8STreehugger Robot                                            long arg3, long arg4, long arg5);
2652*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_recvfrom(long res, long arg0, long arg1,
2653*7c3d14c8STreehugger Robot                                             long arg2, long arg3, long arg4,
2654*7c3d14c8STreehugger Robot                                             long arg5);
2655*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_recvmsg(long fd, long msg, long flags);
2656*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_recvmsg(long res, long fd, long msg,
2657*7c3d14c8STreehugger Robot                                            long flags);
2658*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_recvmmsg(long fd, long msg, long vlen,
2659*7c3d14c8STreehugger Robot                                            long flags, long timeout);
2660*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_recvmmsg(long res, long fd, long msg,
2661*7c3d14c8STreehugger Robot                                             long vlen, long flags,
2662*7c3d14c8STreehugger Robot                                             long timeout);
2663*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_socket(long arg0, long arg1, long arg2);
2664*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_socket(long res, long arg0, long arg1,
2665*7c3d14c8STreehugger Robot                                           long arg2);
2666*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_socketpair(long arg0, long arg1, long arg2,
2667*7c3d14c8STreehugger Robot                                              long arg3);
2668*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_socketpair(long res, long arg0, long arg1,
2669*7c3d14c8STreehugger Robot                                               long arg2, long arg3);
2670*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_socketcall(long call, long args);
2671*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_socketcall(long res, long call, long args);
2672*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_listen(long arg0, long arg1);
2673*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_listen(long res, long arg0, long arg1);
2674*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_poll(long ufds, long nfds, long timeout);
2675*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_poll(long res, long ufds, long nfds,
2676*7c3d14c8STreehugger Robot                                         long timeout);
2677*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_select(long n, long inp, long outp, long exp,
2678*7c3d14c8STreehugger Robot                                          long tvp);
2679*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_select(long res, long n, long inp, long outp,
2680*7c3d14c8STreehugger Robot                                           long exp, long tvp);
2681*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_old_select(long arg);
2682*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_old_select(long res, long arg);
2683*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_epoll_create(long size);
2684*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_epoll_create(long res, long size);
2685*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_epoll_create1(long flags);
2686*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_epoll_create1(long res, long flags);
2687*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_epoll_ctl(long epfd, long op, long fd,
2688*7c3d14c8STreehugger Robot                                             long event);
2689*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_epoll_ctl(long res, long epfd, long op,
2690*7c3d14c8STreehugger Robot                                              long fd, long event);
2691*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_epoll_wait(long epfd, long events,
2692*7c3d14c8STreehugger Robot                                              long maxevents, long timeout);
2693*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_epoll_wait(long res, long epfd, long events,
2694*7c3d14c8STreehugger Robot                                               long maxevents, long timeout);
2695*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_epoll_pwait(long epfd, long events,
2696*7c3d14c8STreehugger Robot                                               long maxevents, long timeout,
2697*7c3d14c8STreehugger Robot                                               long sigmask, long sigsetsize);
2698*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_epoll_pwait(long res, long epfd, long events,
2699*7c3d14c8STreehugger Robot                                                long maxevents, long timeout,
2700*7c3d14c8STreehugger Robot                                                long sigmask, long sigsetsize);
2701*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_gethostname(long name, long len);
2702*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_gethostname(long res, long name, long len);
2703*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sethostname(long name, long len);
2704*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sethostname(long res, long name, long len);
2705*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setdomainname(long name, long len);
2706*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setdomainname(long res, long name, long len);
2707*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_newuname(long name);
2708*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_newuname(long res, long name);
2709*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_uname(long arg0);
2710*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_uname(long res, long arg0);
2711*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_olduname(long arg0);
2712*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_olduname(long res, long arg0);
2713*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getrlimit(long resource, long rlim);
2714*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getrlimit(long res, long resource,
2715*7c3d14c8STreehugger Robot                                              long rlim);
2716*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_old_getrlimit(long resource, long rlim);
2717*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_old_getrlimit(long res, long resource,
2718*7c3d14c8STreehugger Robot                                                  long rlim);
2719*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setrlimit(long resource, long rlim);
2720*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setrlimit(long res, long resource,
2721*7c3d14c8STreehugger Robot                                              long rlim);
2722*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_prlimit64(long pid, long resource,
2723*7c3d14c8STreehugger Robot                                             long new_rlim, long old_rlim);
2724*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_prlimit64(long res, long pid, long resource,
2725*7c3d14c8STreehugger Robot                                              long new_rlim, long old_rlim);
2726*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getrusage(long who, long ru);
2727*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getrusage(long res, long who, long ru);
2728*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_umask(long mask);
2729*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_umask(long res, long mask);
2730*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_msgget(long key, long msgflg);
2731*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_msgget(long res, long key, long msgflg);
2732*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_msgsnd(long msqid, long msgp, long msgsz,
2733*7c3d14c8STreehugger Robot                                          long msgflg);
2734*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_msgsnd(long res, long msqid, long msgp,
2735*7c3d14c8STreehugger Robot                                           long msgsz, long msgflg);
2736*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_msgrcv(long msqid, long msgp, long msgsz,
2737*7c3d14c8STreehugger Robot                                          long msgtyp, long msgflg);
2738*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_msgrcv(long res, long msqid, long msgp,
2739*7c3d14c8STreehugger Robot                                           long msgsz, long msgtyp, long msgflg);
2740*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_msgctl(long msqid, long cmd, long buf);
2741*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_msgctl(long res, long msqid, long cmd,
2742*7c3d14c8STreehugger Robot                                           long buf);
2743*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_semget(long key, long nsems, long semflg);
2744*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_semget(long res, long key, long nsems,
2745*7c3d14c8STreehugger Robot                                           long semflg);
2746*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_semop(long semid, long sops, long nsops);
2747*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_semop(long res, long semid, long sops,
2748*7c3d14c8STreehugger Robot                                          long nsops);
2749*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_semctl(long semid, long semnum, long cmd,
2750*7c3d14c8STreehugger Robot                                          long arg);
2751*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_semctl(long res, long semid, long semnum,
2752*7c3d14c8STreehugger Robot                                           long cmd, long arg);
2753*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_semtimedop(long semid, long sops, long nsops,
2754*7c3d14c8STreehugger Robot                                              long timeout);
2755*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_semtimedop(long res, long semid, long sops,
2756*7c3d14c8STreehugger Robot                                               long nsops, long timeout);
2757*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_shmat(long shmid, long shmaddr, long shmflg);
2758*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_shmat(long res, long shmid, long shmaddr,
2759*7c3d14c8STreehugger Robot                                          long shmflg);
2760*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_shmget(long key, long size, long flag);
2761*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_shmget(long res, long key, long size,
2762*7c3d14c8STreehugger Robot                                           long flag);
2763*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_shmdt(long shmaddr);
2764*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_shmdt(long res, long shmaddr);
2765*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_shmctl(long shmid, long cmd, long buf);
2766*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_shmctl(long res, long shmid, long cmd,
2767*7c3d14c8STreehugger Robot                                           long buf);
2768*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ipc(long call, long first, long second,
2769*7c3d14c8STreehugger Robot                                       long third, long ptr, long fifth);
2770*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ipc(long res, long call, long first,
2771*7c3d14c8STreehugger Robot                                        long second, long third, long ptr,
2772*7c3d14c8STreehugger Robot                                        long fifth);
2773*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_open(long name, long oflag, long mode,
2774*7c3d14c8STreehugger Robot                                           long attr);
2775*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_open(long res, long name, long oflag,
2776*7c3d14c8STreehugger Robot                                            long mode, long attr);
2777*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_unlink(long name);
2778*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_unlink(long res, long name);
2779*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_timedsend(long mqdes, long msg_ptr,
2780*7c3d14c8STreehugger Robot                                                long msg_len, long msg_prio,
2781*7c3d14c8STreehugger Robot                                                long abs_timeout);
2782*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_timedsend(long res, long mqdes,
2783*7c3d14c8STreehugger Robot                                                 long msg_ptr, long msg_len,
2784*7c3d14c8STreehugger Robot                                                 long msg_prio,
2785*7c3d14c8STreehugger Robot                                                 long abs_timeout);
2786*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_timedreceive(long mqdes, long msg_ptr,
2787*7c3d14c8STreehugger Robot                                                   long msg_len, long msg_prio,
2788*7c3d14c8STreehugger Robot                                                   long abs_timeout);
2789*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_timedreceive(long res, long mqdes,
2790*7c3d14c8STreehugger Robot                                                    long msg_ptr, long msg_len,
2791*7c3d14c8STreehugger Robot                                                    long msg_prio,
2792*7c3d14c8STreehugger Robot                                                    long abs_timeout);
2793*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_notify(long mqdes, long notification);
2794*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_notify(long res, long mqdes,
2795*7c3d14c8STreehugger Robot                                              long notification);
2796*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mq_getsetattr(long mqdes, long mqstat,
2797*7c3d14c8STreehugger Robot                                                 long omqstat);
2798*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mq_getsetattr(long res, long mqdes,
2799*7c3d14c8STreehugger Robot                                                  long mqstat, long omqstat);
2800*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pciconfig_iobase(long which, long bus,
2801*7c3d14c8STreehugger Robot                                                    long devfn);
2802*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pciconfig_iobase(long res, long which,
2803*7c3d14c8STreehugger Robot                                                     long bus, long devfn);
2804*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pciconfig_read(long bus, long dfn, long off,
2805*7c3d14c8STreehugger Robot                                                  long len, long buf);
2806*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pciconfig_read(long res, long bus, long dfn,
2807*7c3d14c8STreehugger Robot                                                   long off, long len, long buf);
2808*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pciconfig_write(long bus, long dfn, long off,
2809*7c3d14c8STreehugger Robot                                                   long len, long buf);
2810*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pciconfig_write(long res, long bus, long dfn,
2811*7c3d14c8STreehugger Robot                                                    long off, long len,
2812*7c3d14c8STreehugger Robot                                                    long buf);
2813*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_swapon(long specialfile, long swap_flags);
2814*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_swapon(long res, long specialfile,
2815*7c3d14c8STreehugger Robot                                           long swap_flags);
2816*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_swapoff(long specialfile);
2817*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_swapoff(long res, long specialfile);
2818*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sysctl(long args);
2819*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sysctl(long res, long args);
2820*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sysinfo(long info);
2821*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sysinfo(long res, long info);
2822*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sysfs(long option, long arg1, long arg2);
2823*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sysfs(long res, long option, long arg1,
2824*7c3d14c8STreehugger Robot                                          long arg2);
2825*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_syslog(long type, long buf, long len);
2826*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_syslog(long res, long type, long buf,
2827*7c3d14c8STreehugger Robot                                           long len);
2828*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_uselib(long library);
2829*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_uselib(long res, long library);
2830*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ni_syscall();
2831*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ni_syscall(long res);
2832*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ptrace(long request, long pid, long addr,
2833*7c3d14c8STreehugger Robot                                          long data);
2834*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ptrace(long res, long request, long pid,
2835*7c3d14c8STreehugger Robot                                           long addr, long data);
2836*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_add_key(long _type, long _description,
2837*7c3d14c8STreehugger Robot                                           long _payload, long plen,
2838*7c3d14c8STreehugger Robot                                           long destringid);
2839*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_add_key(long res, long _type,
2840*7c3d14c8STreehugger Robot                                            long _description, long _payload,
2841*7c3d14c8STreehugger Robot                                            long plen, long destringid);
2842*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_request_key(long _type, long _description,
2843*7c3d14c8STreehugger Robot                                               long _callout_info,
2844*7c3d14c8STreehugger Robot                                               long destringid);
2845*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_request_key(long res, long _type,
2846*7c3d14c8STreehugger Robot                                                long _description,
2847*7c3d14c8STreehugger Robot                                                long _callout_info,
2848*7c3d14c8STreehugger Robot                                                long destringid);
2849*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_keyctl(long cmd, long arg2, long arg3,
2850*7c3d14c8STreehugger Robot                                          long arg4, long arg5);
2851*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_keyctl(long res, long cmd, long arg2,
2852*7c3d14c8STreehugger Robot                                           long arg3, long arg4, long arg5);
2853*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ioprio_set(long which, long who, long ioprio);
2854*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ioprio_set(long res, long which, long who,
2855*7c3d14c8STreehugger Robot                                               long ioprio);
2856*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ioprio_get(long which, long who);
2857*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ioprio_get(long res, long which, long who);
2858*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_set_mempolicy(long mode, long nmask,
2859*7c3d14c8STreehugger Robot                                                 long maxnode);
2860*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_set_mempolicy(long res, long mode,
2861*7c3d14c8STreehugger Robot                                                  long nmask, long maxnode);
2862*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_migrate_pages(long pid, long maxnode,
2863*7c3d14c8STreehugger Robot                                                 long from, long to);
2864*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_migrate_pages(long res, long pid,
2865*7c3d14c8STreehugger Robot                                                  long maxnode, long from,
2866*7c3d14c8STreehugger Robot                                                  long to);
2867*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_move_pages(long pid, long nr_pages,
2868*7c3d14c8STreehugger Robot                                              long pages, long nodes,
2869*7c3d14c8STreehugger Robot                                              long status, long flags);
2870*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_move_pages(long res, long pid, long nr_pages,
2871*7c3d14c8STreehugger Robot                                               long pages, long nodes,
2872*7c3d14c8STreehugger Robot                                               long status, long flags);
2873*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mbind(long start, long len, long mode,
2874*7c3d14c8STreehugger Robot                                         long nmask, long maxnode, long flags);
2875*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mbind(long res, long start, long len,
2876*7c3d14c8STreehugger Robot                                          long mode, long nmask, long maxnode,
2877*7c3d14c8STreehugger Robot                                          long flags);
2878*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_get_mempolicy(long policy, long nmask,
2879*7c3d14c8STreehugger Robot                                                 long maxnode, long addr,
2880*7c3d14c8STreehugger Robot                                                 long flags);
2881*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_get_mempolicy(long res, long policy,
2882*7c3d14c8STreehugger Robot                                                  long nmask, long maxnode,
2883*7c3d14c8STreehugger Robot                                                  long addr, long flags);
2884*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_inotify_init();
2885*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_inotify_init(long res);
2886*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_inotify_init1(long flags);
2887*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_inotify_init1(long res, long flags);
2888*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_inotify_add_watch(long fd, long path,
2889*7c3d14c8STreehugger Robot                                                     long mask);
2890*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_inotify_add_watch(long res, long fd,
2891*7c3d14c8STreehugger Robot                                                      long path, long mask);
2892*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_inotify_rm_watch(long fd, long wd);
2893*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_inotify_rm_watch(long res, long fd, long wd);
2894*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_spu_run(long fd, long unpc, long ustatus);
2895*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_spu_run(long res, long fd, long unpc,
2896*7c3d14c8STreehugger Robot                                            long ustatus);
2897*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_spu_create(long name, long flags, long mode,
2898*7c3d14c8STreehugger Robot                                              long fd);
2899*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_spu_create(long res, long name, long flags,
2900*7c3d14c8STreehugger Robot                                               long mode, long fd);
2901*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mknodat(long dfd, long filename, long mode,
2902*7c3d14c8STreehugger Robot                                           long dev);
2903*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mknodat(long res, long dfd, long filename,
2904*7c3d14c8STreehugger Robot                                            long mode, long dev);
2905*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mkdirat(long dfd, long pathname, long mode);
2906*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mkdirat(long res, long dfd, long pathname,
2907*7c3d14c8STreehugger Robot                                            long mode);
2908*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_unlinkat(long dfd, long pathname, long flag);
2909*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_unlinkat(long res, long dfd, long pathname,
2910*7c3d14c8STreehugger Robot                                             long flag);
2911*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_symlinkat(long oldname, long newdfd,
2912*7c3d14c8STreehugger Robot                                             long newname);
2913*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_symlinkat(long res, long oldname,
2914*7c3d14c8STreehugger Robot                                              long newdfd, long newname);
2915*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_linkat(long olddfd, long oldname, long newdfd,
2916*7c3d14c8STreehugger Robot                                          long newname, long flags);
2917*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_linkat(long res, long olddfd, long oldname,
2918*7c3d14c8STreehugger Robot                                           long newdfd, long newname,
2919*7c3d14c8STreehugger Robot                                           long flags);
2920*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_renameat(long olddfd, long oldname,
2921*7c3d14c8STreehugger Robot                                            long newdfd, long newname);
2922*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_renameat(long res, long olddfd, long oldname,
2923*7c3d14c8STreehugger Robot                                             long newdfd, long newname);
2924*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_futimesat(long dfd, long filename,
2925*7c3d14c8STreehugger Robot                                             long utimes);
2926*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_futimesat(long res, long dfd, long filename,
2927*7c3d14c8STreehugger Robot                                              long utimes);
2928*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_faccessat(long dfd, long filename, long mode);
2929*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_faccessat(long res, long dfd, long filename,
2930*7c3d14c8STreehugger Robot                                              long mode);
2931*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchmodat(long dfd, long filename, long mode);
2932*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchmodat(long res, long dfd, long filename,
2933*7c3d14c8STreehugger Robot                                             long mode);
2934*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fchownat(long dfd, long filename, long user,
2935*7c3d14c8STreehugger Robot                                            long group, long flag);
2936*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fchownat(long res, long dfd, long filename,
2937*7c3d14c8STreehugger Robot                                             long user, long group, long flag);
2938*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_openat(long dfd, long filename, long flags,
2939*7c3d14c8STreehugger Robot                                          long mode);
2940*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_openat(long res, long dfd, long filename,
2941*7c3d14c8STreehugger Robot                                           long flags, long mode);
2942*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_newfstatat(long dfd, long filename,
2943*7c3d14c8STreehugger Robot                                              long statbuf, long flag);
2944*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_newfstatat(long res, long dfd, long filename,
2945*7c3d14c8STreehugger Robot                                               long statbuf, long flag);
2946*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fstatat64(long dfd, long filename,
2947*7c3d14c8STreehugger Robot                                             long statbuf, long flag);
2948*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fstatat64(long res, long dfd, long filename,
2949*7c3d14c8STreehugger Robot                                              long statbuf, long flag);
2950*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_readlinkat(long dfd, long path, long buf,
2951*7c3d14c8STreehugger Robot                                              long bufsiz);
2952*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_readlinkat(long res, long dfd, long path,
2953*7c3d14c8STreehugger Robot                                               long buf, long bufsiz);
2954*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_utimensat(long dfd, long filename,
2955*7c3d14c8STreehugger Robot                                             long utimes, long flags);
2956*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_utimensat(long res, long dfd, long filename,
2957*7c3d14c8STreehugger Robot                                              long utimes, long flags);
2958*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_unshare(long unshare_flags);
2959*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_unshare(long res, long unshare_flags);
2960*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_splice(long fd_in, long off_in, long fd_out,
2961*7c3d14c8STreehugger Robot                                          long off_out, long len, long flags);
2962*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_splice(long res, long fd_in, long off_in,
2963*7c3d14c8STreehugger Robot                                           long fd_out, long off_out, long len,
2964*7c3d14c8STreehugger Robot                                           long flags);
2965*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_vmsplice(long fd, long iov, long nr_segs,
2966*7c3d14c8STreehugger Robot                                            long flags);
2967*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_vmsplice(long res, long fd, long iov,
2968*7c3d14c8STreehugger Robot                                             long nr_segs, long flags);
2969*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len,
2970*7c3d14c8STreehugger Robot                                       long flags);
2971*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,
2972*7c3d14c8STreehugger Robot                                        long len, long flags);
2973*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_get_robust_list(long pid, long head_ptr,
2974*7c3d14c8STreehugger Robot                                                   long len_ptr);
2975*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_get_robust_list(long res, long pid,
2976*7c3d14c8STreehugger Robot                                                    long head_ptr, long len_ptr);
2977*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_set_robust_list(long head, long len);
2978*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_set_robust_list(long res, long head,
2979*7c3d14c8STreehugger Robot                                                    long len);
2980*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_getcpu(long cpu, long node, long cache);
2981*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_getcpu(long res, long cpu, long node,
2982*7c3d14c8STreehugger Robot                                           long cache);
2983*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_signalfd(long ufd, long user_mask,
2984*7c3d14c8STreehugger Robot                                            long sizemask);
2985*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_signalfd(long res, long ufd, long user_mask,
2986*7c3d14c8STreehugger Robot                                             long sizemask);
2987*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_signalfd4(long ufd, long user_mask,
2988*7c3d14c8STreehugger Robot                                             long sizemask, long flags);
2989*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_signalfd4(long res, long ufd, long user_mask,
2990*7c3d14c8STreehugger Robot                                              long sizemask, long flags);
2991*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timerfd_create(long clockid, long flags);
2992*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timerfd_create(long res, long clockid,
2993*7c3d14c8STreehugger Robot                                                   long flags);
2994*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timerfd_settime(long ufd, long flags,
2995*7c3d14c8STreehugger Robot                                                   long utmr, long otmr);
2996*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timerfd_settime(long res, long ufd,
2997*7c3d14c8STreehugger Robot                                                    long flags, long utmr,
2998*7c3d14c8STreehugger Robot                                                    long otmr);
2999*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_timerfd_gettime(long ufd, long otmr);
3000*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_timerfd_gettime(long res, long ufd,
3001*7c3d14c8STreehugger Robot                                                    long otmr);
3002*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_eventfd(long count);
3003*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_eventfd(long res, long count);
3004*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_eventfd2(long count, long flags);
3005*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_eventfd2(long res, long count, long flags);
3006*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_old_readdir(long arg0, long arg1, long arg2);
3007*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_old_readdir(long res, long arg0, long arg1,
3008*7c3d14c8STreehugger Robot                                                long arg2);
3009*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_pselect6(long arg0, long arg1, long arg2,
3010*7c3d14c8STreehugger Robot                                            long arg3, long arg4, long arg5);
3011*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_pselect6(long res, long arg0, long arg1,
3012*7c3d14c8STreehugger Robot                                             long arg2, long arg3, long arg4,
3013*7c3d14c8STreehugger Robot                                             long arg5);
3014*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_ppoll(long arg0, long arg1, long arg2,
3015*7c3d14c8STreehugger Robot                                         long arg3, long arg4);
3016*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_ppoll(long res, long arg0, long arg1,
3017*7c3d14c8STreehugger Robot                                          long arg2, long arg3, long arg4);
3018*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fanotify_init(long flags, long event_f_flags);
3019*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fanotify_init(long res, long flags,
3020*7c3d14c8STreehugger Robot                                                  long event_f_flags);
3021*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fanotify_mark(long fanotify_fd, long flags,
3022*7c3d14c8STreehugger Robot                                                 long mask, long fd,
3023*7c3d14c8STreehugger Robot                                                 long pathname);
3024*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fanotify_mark(long res, long fanotify_fd,
3025*7c3d14c8STreehugger Robot                                                  long flags, long mask, long fd,
3026*7c3d14c8STreehugger Robot                                                  long pathname);
3027*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_syncfs(long fd);
3028*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_syncfs(long res, long fd);
3029*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_perf_event_open(long attr_uptr, long pid,
3030*7c3d14c8STreehugger Robot                                                   long cpu, long group_fd,
3031*7c3d14c8STreehugger Robot                                                   long flags);
3032*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_perf_event_open(long res, long attr_uptr,
3033*7c3d14c8STreehugger Robot                                                    long pid, long cpu,
3034*7c3d14c8STreehugger Robot                                                    long group_fd, long flags);
3035*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_mmap_pgoff(long addr, long len, long prot,
3036*7c3d14c8STreehugger Robot                                              long flags, long fd, long pgoff);
3037*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_mmap_pgoff(long res, long addr, long len,
3038*7c3d14c8STreehugger Robot                                               long prot, long flags, long fd,
3039*7c3d14c8STreehugger Robot                                               long pgoff);
3040*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_old_mmap(long arg);
3041*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_old_mmap(long res, long arg);
3042*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_name_to_handle_at(long dfd, long name,
3043*7c3d14c8STreehugger Robot                                                     long handle, long mnt_id,
3044*7c3d14c8STreehugger Robot                                                     long flag);
3045*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_name_to_handle_at(long res, long dfd,
3046*7c3d14c8STreehugger Robot                                                      long name, long handle,
3047*7c3d14c8STreehugger Robot                                                      long mnt_id, long flag);
3048*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_open_by_handle_at(long mountdirfd,
3049*7c3d14c8STreehugger Robot                                                     long handle, long flags);
3050*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_open_by_handle_at(long res, long mountdirfd,
3051*7c3d14c8STreehugger Robot                                                      long handle, long flags);
3052*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_setns(long fd, long nstype);
3053*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_setns(long res, long fd, long nstype);
3054*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_process_vm_readv(long pid, long lvec,
3055*7c3d14c8STreehugger Robot                                                    long liovcnt, long rvec,
3056*7c3d14c8STreehugger Robot                                                    long riovcnt, long flags);
3057*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_process_vm_readv(long res, long pid,
3058*7c3d14c8STreehugger Robot                                                     long lvec, long liovcnt,
3059*7c3d14c8STreehugger Robot                                                     long rvec, long riovcnt,
3060*7c3d14c8STreehugger Robot                                                     long flags);
3061*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_process_vm_writev(long pid, long lvec,
3062*7c3d14c8STreehugger Robot                                                     long liovcnt, long rvec,
3063*7c3d14c8STreehugger Robot                                                     long riovcnt, long flags);
3064*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_process_vm_writev(long res, long pid,
3065*7c3d14c8STreehugger Robot                                                      long lvec, long liovcnt,
3066*7c3d14c8STreehugger Robot                                                      long rvec, long riovcnt,
3067*7c3d14c8STreehugger Robot                                                      long flags);
3068*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_fork();
3069*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_fork(long res);
3070*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_vfork();
3071*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_vfork(long res);
3072*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_sigaction(long signum, long act, long oldact);
3073*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_sigaction(long res, long signum, long act,
3074*7c3d14c8STreehugger Robot                                              long oldact);
3075*7c3d14c8STreehugger Robot void __sanitizer_syscall_pre_impl_rt_sigaction(long signum, long act,
3076*7c3d14c8STreehugger Robot                                                long oldact, long sz);
3077*7c3d14c8STreehugger Robot void __sanitizer_syscall_post_impl_rt_sigaction(long res, long signum, long act,
3078*7c3d14c8STreehugger Robot                                                 long oldact, long sz);
3079*7c3d14c8STreehugger Robot #ifdef __cplusplus
3080*7c3d14c8STreehugger Robot }  // extern "C"
3081*7c3d14c8STreehugger Robot #endif
3082*7c3d14c8STreehugger Robot 
3083*7c3d14c8STreehugger Robot #endif  // SANITIZER_LINUX_SYSCALL_HOOKS_H
3084