]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/compat/freebsd32/freebsd32_proto.h
freebsd32: sync some audit types with default ABI
[FreeBSD/FreeBSD.git] / sys / compat / freebsd32 / freebsd32_proto.h
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- this file is automatically @generated.
5  * $FreeBSD$
6  */
7
8 #ifndef _FREEBSD32_SYSPROTO_H_
9 #define _FREEBSD32_SYSPROTO_H_
10
11 #include <sys/signal.h>
12 #include <sys/acl.h>
13 #include <sys/cpuset.h>
14 #include <sys/domainset.h>
15 #include <sys/_ffcounter.h>
16 #include <sys/_semaphore.h>
17 #include <sys/ucontext.h>
18 #include <sys/wait.h>
19
20 #include <bsm/audit_kevents.h>
21
22 struct proc;
23
24 struct thread;
25
26 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
27                 0 : sizeof(register_t) - sizeof(t))
28
29 #if BYTE_ORDER == LITTLE_ENDIAN
30 #define PADL_(t)        0
31 #define PADR_(t)        PAD_(t)
32 #else
33 #define PADL_(t)        PAD_(t)
34 #define PADR_(t)        0
35 #endif
36
37 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
38 #define PAD64_REQUIRED
39 #endif
40 struct freebsd32_wait4_args {
41         char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
42         char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
43         char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
44         char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
45 };
46 struct freebsd32_ptrace_args {
47         char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
48         char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
49         char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
50         char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
51 };
52 struct freebsd32_recvmsg_args {
53         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
54         char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
55         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
56 };
57 struct freebsd32_sendmsg_args {
58         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
59         char msg_l_[PADL_(const struct msghdr32 *)]; const struct msghdr32 * msg; char msg_r_[PADR_(const struct msghdr32 *)];
60         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
61 };
62 struct freebsd32_sigaltstack_args {
63         char ss_l_[PADL_(const struct sigaltstack32 *)]; const struct sigaltstack32 * ss; char ss_r_[PADR_(const struct sigaltstack32 *)];
64         char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
65 };
66 struct freebsd32_ioctl_args {
67         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
68         char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
69         char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)];
70 };
71 struct freebsd32_execve_args {
72         char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
73         char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
74         char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
75 };
76 struct freebsd32_mprotect_args {
77         char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
78         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
79         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
80 };
81 struct freebsd32_setitimer_args {
82         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
83         char itv_l_[PADL_(const struct itimerval32 *)]; const struct itimerval32 * itv; char itv_r_[PADR_(const struct itimerval32 *)];
84         char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
85 };
86 struct freebsd32_getitimer_args {
87         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
88         char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
89 };
90 struct freebsd32_fcntl_args {
91         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
92         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
93         char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)];
94 };
95 struct freebsd32_select_args {
96         char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
97         char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
98         char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
99         char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
100         char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
101 };
102 struct freebsd32_gettimeofday_args {
103         char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
104         char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
105 };
106 struct freebsd32_getrusage_args {
107         char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
108         char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
109 };
110 struct freebsd32_readv_args {
111         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
113         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
114 };
115 struct freebsd32_writev_args {
116         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
117         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
118         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
119 };
120 struct freebsd32_settimeofday_args {
121         char tv_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tv; char tv_r_[PADR_(const struct timeval32 *)];
122         char tzp_l_[PADL_(const struct timezone *)]; const struct timezone * tzp; char tzp_r_[PADR_(const struct timezone *)];
123 };
124 struct freebsd32_utimes_args {
125         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
126         char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
127 };
128 struct freebsd32_adjtime_args {
129         char delta_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * delta; char delta_r_[PADR_(const struct timeval32 *)];
130         char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
131 };
132 struct freebsd32_sysarch_args {
133         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
134         char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
135 };
136 struct freebsd32_semsys_args {
137         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
138         char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
139         char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
140         char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
141         char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
142 };
143 struct freebsd32_msgsys_args {
144         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
145         char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
146         char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
147         char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
148         char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
149         char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
150 };
151 struct freebsd32_shmsys_args {
152         char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
153         char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
154         char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
155         char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
156 };
157 struct freebsd32_ntp_adjtime_args {
158         char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)];
159 };
160 struct freebsd32___sysctl_args {
161         char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
162         char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
163         char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
164         char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
165         char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)];
166         char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
167 };
168 struct freebsd32_futimes_args {
169         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
170         char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
171 };
172 struct freebsd32_msgsnd_args {
173         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
174         char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)];
175         char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
176         char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
177 };
178 struct freebsd32_msgrcv_args {
179         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
180         char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
181         char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
182         char msgtyp_l_[PADL_(int32_t)]; int32_t msgtyp; char msgtyp_r_[PADR_(int32_t)];
183         char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
184 };
185 struct freebsd32_clock_gettime_args {
186         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
187         char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
188 };
189 struct freebsd32_clock_settime_args {
190         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
191         char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
192 };
193 struct freebsd32_clock_getres_args {
194         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
195         char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
196 };
197 struct freebsd32_ktimer_create_args {
198         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
199         char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
200         char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
201 };
202 struct freebsd32_ktimer_settime_args {
203         char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
204         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
205         char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
206         char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
207 };
208 struct freebsd32_ktimer_gettime_args {
209         char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
210         char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
211 };
212 struct freebsd32_nanosleep_args {
213         char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
214         char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
215 };
216 struct freebsd32_ffclock_setestimate_args {
217         char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
218 };
219 struct freebsd32_ffclock_getestimate_args {
220         char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
221 };
222 struct freebsd32_clock_nanosleep_args {
223         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
224         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
225         char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
226         char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
227 };
228 struct freebsd32_clock_getcpuclockid2_args {
229         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
230         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
231         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
232         char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
233 };
234 struct freebsd32_aio_read_args {
235         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
236 };
237 struct freebsd32_aio_write_args {
238         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
239 };
240 struct freebsd32_lio_listio_args {
241         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
242         char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
243         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
244         char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
245 };
246 struct freebsd32_lutimes_args {
247         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
248         char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
249 };
250 #ifdef PAD64_REQUIRED
251 struct freebsd32_preadv_args {
252         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
253         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
254         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
255         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
256         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
257         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
258 };
259 struct freebsd32_pwritev_args {
260         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
261         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
262         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
263         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
264         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
265         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
266 };
267 #else
268 struct freebsd32_preadv_args {
269         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
270         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
271         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
272         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
273         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
274 };
275 struct freebsd32_pwritev_args {
276         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
277         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
278         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
279         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
280         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
281 };
282 #endif
283 struct freebsd32_modstat_args {
284         char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
285         char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
286 };
287 struct freebsd32_kldstat_args {
288         char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
289         char stat_l_[PADL_(struct kld_file_stat32 *)]; struct kld_file_stat32 * stat; char stat_r_[PADR_(struct kld_file_stat32 *)];
290 };
291 struct freebsd32_aio_return_args {
292         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
293 };
294 struct freebsd32_aio_suspend_args {
295         char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
296         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
297         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
298 };
299 struct freebsd32_aio_error_args {
300         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
301 };
302 struct freebsd32_sched_rr_get_interval_args {
303         char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
304         char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
305 };
306 struct freebsd32_jail_args {
307         char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
308 };
309 struct freebsd32_sigtimedwait_args {
310         char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
311         char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
312         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
313 };
314 struct freebsd32_sigwaitinfo_args {
315         char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
316         char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
317 };
318 struct freebsd32_aio_waitcomplete_args {
319         char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
320         char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
321 };
322 struct freebsd32_nmount_args {
323         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
324         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
325         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
326 };
327 struct freebsd32_sendfile_args {
328         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
329         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
330         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
331         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
332         char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
333         char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
334         char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
335         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
336 };
337 struct freebsd32_ksem_init_args {
338         char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
339         char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
340 };
341 struct freebsd32_ksem_open_args {
342         char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
343         char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
344         char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
345         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
346         char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
347 };
348 struct freebsd32_sigaction_args {
349         char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
350         char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
351         char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
352 };
353 struct freebsd32_sigreturn_args {
354         char sigcntxp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext32 *)];
355 };
356 struct freebsd32_getcontext_args {
357         char ucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * ucp; char ucp_r_[PADR_(struct __ucontext32 *)];
358 };
359 struct freebsd32_setcontext_args {
360         char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
361 };
362 struct freebsd32_swapcontext_args {
363         char oucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * oucp; char oucp_r_[PADR_(struct __ucontext32 *)];
364         char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
365 };
366 struct freebsd32_ksem_timedwait_args {
367         char id_l_[PADL_(int32_t)]; int32_t id; char id_r_[PADR_(int32_t)];
368         char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
369 };
370 struct freebsd32_thr_suspend_args {
371         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
372 };
373 struct freebsd32__umtx_op_args {
374         char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
375         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
376         char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
377         char uaddr1_l_[PADL_(void *)]; void * uaddr1; char uaddr1_r_[PADR_(void *)];
378         char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
379 };
380 struct freebsd32_thr_new_args {
381         char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
382         char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
383 };
384 struct freebsd32_sigqueue_args {
385         char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
386         char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
387         char value_l_[PADL_(void *)]; void * value; char value_r_[PADR_(void *)];
388 };
389 struct freebsd32_kmq_open_args {
390         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
391         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
392         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
393         char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
394 };
395 struct freebsd32_kmq_setattr_args {
396         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
397         char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
398         char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
399 };
400 struct freebsd32_kmq_timedreceive_args {
401         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
402         char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
403         char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
404         char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
405         char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
406 };
407 struct freebsd32_kmq_timedsend_args {
408         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
409         char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
410         char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
411         char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
412         char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
413 };
414 struct freebsd32_kmq_notify_args {
415         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
416         char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
417 };
418 struct freebsd32_abort2_args {
419         char why_l_[PADL_(const char *)]; const char * why; char why_r_[PADR_(const char *)];
420         char nargs_l_[PADL_(int)]; int nargs; char nargs_r_[PADR_(int)];
421         char args_l_[PADL_(uint32_t *)]; uint32_t * args; char args_r_[PADR_(uint32_t *)];
422 };
423 struct freebsd32_aio_fsync_args {
424         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
425         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
426 };
427 #ifdef PAD64_REQUIRED
428 struct freebsd32_pread_args {
429         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
430         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
431         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
432         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
433         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
434         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
435 };
436 struct freebsd32_pwrite_args {
437         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
438         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
439         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
440         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
441         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
442         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
443 };
444 struct freebsd32_mmap_args {
445         char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
446         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
447         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
448         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
449         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
450         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
451         char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
452         char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
453 };
454 struct freebsd32_lseek_args {
455         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
456         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
457         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
458         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
459         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
460 };
461 struct freebsd32_truncate_args {
462         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
463         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
464         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
465         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
466 };
467 struct freebsd32_ftruncate_args {
468         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
469         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
470         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
471         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
472 };
473 #else
474 struct freebsd32_pread_args {
475         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
476         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
477         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
478         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
479         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
480 };
481 struct freebsd32_pwrite_args {
482         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
483         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
484         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
485         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
486         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
487 };
488 struct freebsd32_mmap_args {
489         char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
490         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
491         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
492         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
493         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
494         char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
495         char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
496 };
497 struct freebsd32_lseek_args {
498         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
499         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
500         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
501         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
502 };
503 struct freebsd32_truncate_args {
504         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
505         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
506         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
507 };
508 struct freebsd32_ftruncate_args {
509         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
510         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
511         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
512 };
513 #endif
514 #ifdef PAD64_REQUIRED
515 struct freebsd32_cpuset_setid_args {
516         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
517         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
518         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
519         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
520         char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
521 };
522 #else
523 struct freebsd32_cpuset_setid_args {
524         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
525         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
526         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
527         char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
528 };
529 #endif
530 struct freebsd32_cpuset_getid_args {
531         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
532         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
533         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
534         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
535         char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
536 };
537 struct freebsd32_cpuset_getaffinity_args {
538         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
539         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
540         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
541         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
542         char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
543         char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
544 };
545 struct freebsd32_cpuset_setaffinity_args {
546         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
547         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
548         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
549         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
550         char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
551         char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
552 };
553 struct freebsd32_fexecve_args {
554         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
555         char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
556         char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
557 };
558 struct freebsd32_futimesat_args {
559         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
560         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
561         char times_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * times; char times_r_[PADR_(const struct timeval32 *)];
562 };
563 struct freebsd32_jail_get_args {
564         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
565         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
566         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
567 };
568 struct freebsd32_jail_set_args {
569         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
570         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
571         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
572 };
573 struct freebsd32___semctl_args {
574         char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
575         char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
576         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
577         char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
578 };
579 struct freebsd32_msgctl_args {
580         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
581         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
582         char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
583 };
584 struct freebsd32_shmctl_args {
585         char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
586         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
587         char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
588 };
589 struct freebsd32_pselect_args {
590         char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
591         char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
592         char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
593         char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
594         char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
595         char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
596 };
597 #ifdef PAD64_REQUIRED
598 struct freebsd32_posix_fallocate_args {
599         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
600         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
601         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
602         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
603         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
604         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
605 };
606 struct freebsd32_posix_fadvise_args {
607         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
608         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
609         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
610         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
611         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
612         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
613         char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
614 };
615 struct freebsd32_wait6_args {
616         char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
617         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
618         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
619         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
620         char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
621         char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
622         char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
623         char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
624 };
625 #else
626 struct freebsd32_posix_fallocate_args {
627         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
628         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
629         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
630         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
631         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
632 };
633 struct freebsd32_posix_fadvise_args {
634         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
635         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
636         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
637         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
638         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
639         char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
640 };
641 struct freebsd32_wait6_args {
642         char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
643         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
644         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
645         char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
646         char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
647         char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
648         char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
649 };
650 #endif
651 struct freebsd32_cap_ioctls_limit_args {
652         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
653         char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
654         char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
655 };
656 struct freebsd32_cap_ioctls_get_args {
657         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
658         char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
659         char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
660 };
661 struct freebsd32_aio_mlock_args {
662         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
663 };
664 #ifdef PAD64_REQUIRED
665 struct freebsd32_procctl_args {
666         char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
667         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
668         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
669         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
670         char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
671         char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
672 };
673 #else
674 struct freebsd32_procctl_args {
675         char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
676         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
677         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
678         char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
679         char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
680 };
681 #endif
682 struct freebsd32_ppoll_args {
683         char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
684         char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
685         char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
686         char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
687 };
688 struct freebsd32_futimens_args {
689         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
690         char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
691 };
692 struct freebsd32_utimensat_args {
693         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
694         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
695         char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
696         char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
697 };
698 struct freebsd32_fstat_args {
699         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
700         char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
701 };
702 struct freebsd32_fstatat_args {
703         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
704         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
705         char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
706         char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
707 };
708 struct freebsd32_fhstat_args {
709         char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
710         char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
711 };
712 struct freebsd32_getfsstat_args {
713         char buf_l_[PADL_(struct statfs *)]; struct statfs * buf; char buf_r_[PADR_(struct statfs *)];
714         char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
715         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
716 };
717 #ifdef PAD64_REQUIRED
718 struct freebsd32_mknodat_args {
719         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
720         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
721         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
722         char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
723         char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
724         char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
725 };
726 #else
727 struct freebsd32_mknodat_args {
728         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
729         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
730         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
731         char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
732         char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
733 };
734 #endif
735 struct freebsd32_kevent_args {
736         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
737         char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
738         char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
739         char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
740         char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
741         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
742 };
743 struct freebsd32_cpuset_getdomain_args {
744         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
745         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
746         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
747         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
748         char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
749         char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
750         char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
751 };
752 struct freebsd32_cpuset_setdomain_args {
753         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
754         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
755         char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
756         char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
757         char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
758         char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
759         char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
760 };
761 struct freebsd32___sysctlbyname_args {
762         char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
763         char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
764         char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
765         char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
766         char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
767         char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
768 };
769 struct freebsd32_aio_writev_args {
770         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
771 };
772 struct freebsd32_aio_readv_args {
773         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
774 };
775 struct freebsd32_fspacectl_args {
776         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
777         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
778         char rqsr_l_[PADL_(const struct spacectl_range32 *)]; const struct spacectl_range32 * rqsr; char rqsr_r_[PADR_(const struct spacectl_range32 *)];
779         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
780         char rmsr_l_[PADL_(struct spacectl_range32 *)]; struct spacectl_range32 * rmsr; char rmsr_r_[PADR_(struct spacectl_range32 *)];
781 };
782 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
783 #define PAD64_REQUIRED
784 #endif
785 int     freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
786 int     freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
787 int     freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
788 int     freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
789 int     freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
790 int     freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
791 int     freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
792 int     freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
793 int     freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
794 int     freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
795 int     freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
796 int     freebsd32_select(struct thread *, struct freebsd32_select_args *);
797 int     freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
798 int     freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
799 int     freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
800 int     freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
801 int     freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
802 int     freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
803 int     freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
804 int     freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
805 int     freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
806 int     freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
807 int     freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
808 int     freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
809 int     freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
810 int     freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
811 int     freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
812 int     freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
813 int     freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
814 int     freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
815 int     freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
816 int     freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
817 int     freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
818 int     freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
819 int     freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
820 int     freebsd32_ffclock_setestimate(struct thread *, struct freebsd32_ffclock_setestimate_args *);
821 int     freebsd32_ffclock_getestimate(struct thread *, struct freebsd32_ffclock_getestimate_args *);
822 int     freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
823 int     freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
824 int     freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
825 int     freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
826 int     freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
827 int     freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
828 #ifdef PAD64_REQUIRED
829 int     freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
830 int     freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
831 #else
832 int     freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
833 int     freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
834 #endif
835 int     freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
836 int     freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
837 int     freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
838 int     freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
839 int     freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
840 int     freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
841 int     freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
842 int     freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
843 int     freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
844 int     freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
845 int     freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
846 int     freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
847 int     freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
848 int     freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
849 int     freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
850 int     freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
851 int     freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
852 int     freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
853 int     freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
854 int     freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
855 int     freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
856 int     freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
857 int     freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
858 int     freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
859 int     freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
860 int     freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
861 int     freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
862 int     freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
863 int     freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
864 int     freebsd32_abort2(struct thread *, struct freebsd32_abort2_args *);
865 int     freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
866 #ifdef PAD64_REQUIRED
867 int     freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
868 int     freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
869 int     freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
870 int     freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
871 int     freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
872 int     freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
873 #else
874 int     freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
875 int     freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
876 int     freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
877 int     freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
878 int     freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
879 int     freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
880 #endif
881 #ifdef PAD64_REQUIRED
882 int     freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
883 #else
884 int     freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
885 #endif
886 int     freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
887 int     freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
888 int     freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
889 int     freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
890 int     freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
891 int     freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
892 int     freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
893 int     freebsd32___semctl(struct thread *, struct freebsd32___semctl_args *);
894 int     freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
895 int     freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
896 int     freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
897 #ifdef PAD64_REQUIRED
898 int     freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
899 int     freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
900 int     freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
901 #else
902 int     freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
903 int     freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
904 int     freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
905 #endif
906 int     freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
907 int     freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
908 int     freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
909 #ifdef PAD64_REQUIRED
910 int     freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
911 #else
912 int     freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
913 #endif
914 int     freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
915 int     freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
916 int     freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
917 int     freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
918 int     freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
919 int     freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
920 int     freebsd32_getfsstat(struct thread *, struct freebsd32_getfsstat_args *);
921 #ifdef PAD64_REQUIRED
922 int     freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
923 #else
924 int     freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
925 #endif
926 int     freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
927 int     freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
928 int     freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
929 int     freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
930 int     freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
931 int     freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
932 int     freebsd32_fspacectl(struct thread *, struct freebsd32_fspacectl_args *);
933
934 #ifdef COMPAT_43
935
936 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
937 #define PAD64_REQUIRED
938 #endif
939 struct ofreebsd32_lseek_args {
940         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
941         char offset_l_[PADL_(int32_t)]; int32_t offset; char offset_r_[PADR_(int32_t)];
942         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
943 };
944 struct ofreebsd32_stat_args {
945         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
946         char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
947 };
948 struct ofreebsd32_lstat_args {
949         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
950         char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
951 };
952 struct ofreebsd32_sigaction_args {
953         char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
954         char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
955         char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
956 };
957 struct ofreebsd32_fstat_args {
958         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
959         char sb_l_[PADL_(struct ostat32 *)]; struct ostat32 * sb; char sb_r_[PADR_(struct ostat32 *)];
960 };
961 struct ofreebsd32_mmap_args {
962         char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
963         char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
964         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
965         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
966         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
967         char pos_l_[PADL_(int32_t)]; int32_t pos; char pos_r_[PADR_(int32_t)];
968 };
969 struct ofreebsd32_sigreturn_args {
970         char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
971 };
972 struct ofreebsd32_sigvec_args {
973         char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
974         char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
975         char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
976 };
977 struct ofreebsd32_sigstack_args {
978         char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
979         char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
980 };
981 struct ofreebsd32_recvmsg_args {
982         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
983         char msg_l_[PADL_(struct omsghdr32 *)]; struct omsghdr32 * msg; char msg_r_[PADR_(struct omsghdr32 *)];
984         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
985 };
986 struct ofreebsd32_sendmsg_args {
987         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
988         char msg_l_[PADL_(const struct omsghdr32 *)]; const struct omsghdr32 * msg; char msg_r_[PADR_(const struct omsghdr32 *)];
989         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
990 };
991 struct ofreebsd32_truncate_args {
992         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
993         char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
994 };
995 struct ofreebsd32_ftruncate_args {
996         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
997         char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
998 };
999 struct ofreebsd32_sethostid_args {
1000         char hostid_l_[PADL_(int32_t)]; int32_t hostid; char hostid_r_[PADR_(int32_t)];
1001 };
1002 struct ofreebsd32_getdirentries_args {
1003         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1004         char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1005         char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1006         char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1007 };
1008 #ifdef PAD64_REQUIRED
1009 #else
1010 #endif
1011 #ifdef PAD64_REQUIRED
1012 #else
1013 #endif
1014 #ifdef PAD64_REQUIRED
1015 #else
1016 #endif
1017 #ifdef PAD64_REQUIRED
1018 #else
1019 #endif
1020 #ifdef PAD64_REQUIRED
1021 #else
1022 #endif
1023 #ifdef PAD64_REQUIRED
1024 #else
1025 #endif
1026 int     ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
1027 int     ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
1028 int     ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
1029 int     ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
1030 int     ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
1031 int     ofreebsd32_mmap(struct thread *, struct ofreebsd32_mmap_args *);
1032 int     ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
1033 int     ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
1034 int     ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
1035 int     ofreebsd32_recvmsg(struct thread *, struct ofreebsd32_recvmsg_args *);
1036 int     ofreebsd32_sendmsg(struct thread *, struct ofreebsd32_sendmsg_args *);
1037 int     ofreebsd32_truncate(struct thread *, struct ofreebsd32_truncate_args *);
1038 int     ofreebsd32_ftruncate(struct thread *, struct ofreebsd32_ftruncate_args *);
1039 int     ofreebsd32_sethostid(struct thread *, struct ofreebsd32_sethostid_args *);
1040 int     ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
1041
1042 #endif /* COMPAT_43 */
1043
1044
1045 #ifdef COMPAT_FREEBSD4
1046
1047 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1048 #define PAD64_REQUIRED
1049 #endif
1050 struct freebsd4_freebsd32_getfsstat_args {
1051         char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
1052         char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
1053         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1054 };
1055 struct freebsd4_freebsd32_statfs_args {
1056         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1057         char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
1058 };
1059 struct freebsd4_freebsd32_fstatfs_args {
1060         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1061         char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
1062 };
1063 #ifdef PAD64_REQUIRED
1064 #else
1065 #endif
1066 struct freebsd4_freebsd32_fhstatfs_args {
1067         char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1068         char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
1069 };
1070 struct freebsd4_freebsd32_sendfile_args {
1071         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1072         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1073         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1074         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1075         char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
1076         char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
1077         char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
1078         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1079 };
1080 struct freebsd4_freebsd32_sigaction_args {
1081         char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1082         char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
1083         char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
1084 };
1085 struct freebsd4_freebsd32_sigreturn_args {
1086         char sigcntxp_l_[PADL_(const struct freebsd4_ucontext32 *)]; const struct freebsd4_ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_ucontext32 *)];
1087 };
1088 #ifdef PAD64_REQUIRED
1089 #else
1090 #endif
1091 #ifdef PAD64_REQUIRED
1092 #else
1093 #endif
1094 #ifdef PAD64_REQUIRED
1095 #else
1096 #endif
1097 #ifdef PAD64_REQUIRED
1098 #else
1099 #endif
1100 #ifdef PAD64_REQUIRED
1101 #else
1102 #endif
1103 int     freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
1104 int     freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
1105 int     freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
1106 int     freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
1107 int     freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
1108 int     freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
1109 int     freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
1110
1111 #endif /* COMPAT_FREEBSD4 */
1112
1113
1114 #ifdef COMPAT_FREEBSD6
1115
1116 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1117 #define PAD64_REQUIRED
1118 #endif
1119 struct freebsd6_freebsd32_pread_args {
1120         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1121         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
1122         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1123         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1124         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1125         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1126 };
1127 struct freebsd6_freebsd32_pwrite_args {
1128         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1129         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
1130         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1131         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1132         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1133         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1134 };
1135 struct freebsd6_freebsd32_mmap_args {
1136         char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
1137         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
1138         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
1139         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1140         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1141         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1142         char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
1143         char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
1144 };
1145 struct freebsd6_freebsd32_lseek_args {
1146         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1147         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1148         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1149         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1150         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
1151 };
1152 struct freebsd6_freebsd32_truncate_args {
1153         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1154         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1155         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
1156         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1157 };
1158 struct freebsd6_freebsd32_ftruncate_args {
1159         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1160         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1161         char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
1162         char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1163 };
1164 #ifdef PAD64_REQUIRED
1165 #else
1166 #endif
1167 struct freebsd6_freebsd32_aio_read_args {
1168         char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
1169 };
1170 struct freebsd6_freebsd32_aio_write_args {
1171         char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
1172 };
1173 struct freebsd6_freebsd32_lio_listio_args {
1174         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1175         char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
1176         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1177         char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
1178 };
1179 #ifdef PAD64_REQUIRED
1180 #else
1181 #endif
1182 #ifdef PAD64_REQUIRED
1183 #else
1184 #endif
1185 #ifdef PAD64_REQUIRED
1186 #else
1187 #endif
1188 #ifdef PAD64_REQUIRED
1189 #else
1190 #endif
1191 #ifdef PAD64_REQUIRED
1192 #else
1193 #endif
1194 int     freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1195 int     freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1196 int     freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1197 int     freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1198 int     freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1199 int     freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
1200 int     freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
1201 int     freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
1202 int     freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1203
1204 #endif /* COMPAT_FREEBSD6 */
1205
1206
1207 #ifdef COMPAT_FREEBSD7
1208
1209 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1210 #define PAD64_REQUIRED
1211 #endif
1212 struct freebsd7_freebsd32___semctl_args {
1213         char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
1214         char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
1215         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1216         char arg_l_[PADL_(union semun_old32 *)]; union semun_old32 * arg; char arg_r_[PADR_(union semun_old32 *)];
1217 };
1218 struct freebsd7_freebsd32_msgctl_args {
1219         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1220         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1221         char buf_l_[PADL_(struct msqid_ds_old32 *)]; struct msqid_ds_old32 * buf; char buf_r_[PADR_(struct msqid_ds_old32 *)];
1222 };
1223 struct freebsd7_freebsd32_shmctl_args {
1224         char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
1225         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1226         char buf_l_[PADL_(struct shmid_ds_old32 *)]; struct shmid_ds_old32 * buf; char buf_r_[PADR_(struct shmid_ds_old32 *)];
1227 };
1228 #ifdef PAD64_REQUIRED
1229 #else
1230 #endif
1231 #ifdef PAD64_REQUIRED
1232 #else
1233 #endif
1234 #ifdef PAD64_REQUIRED
1235 #else
1236 #endif
1237 #ifdef PAD64_REQUIRED
1238 #else
1239 #endif
1240 #ifdef PAD64_REQUIRED
1241 #else
1242 #endif
1243 #ifdef PAD64_REQUIRED
1244 #else
1245 #endif
1246 int     freebsd7_freebsd32___semctl(struct thread *, struct freebsd7_freebsd32___semctl_args *);
1247 int     freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
1248 int     freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
1249
1250 #endif /* COMPAT_FREEBSD7 */
1251
1252
1253 #ifdef COMPAT_FREEBSD10
1254
1255 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1256 #define PAD64_REQUIRED
1257 #endif
1258 #ifdef PAD64_REQUIRED
1259 #else
1260 #endif
1261 struct freebsd10_freebsd32_umtx_lock_args {
1262         char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1263 };
1264 struct freebsd10_freebsd32_umtx_unlock_args {
1265         char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1266 };
1267 #ifdef PAD64_REQUIRED
1268 #else
1269 #endif
1270 #ifdef PAD64_REQUIRED
1271 #else
1272 #endif
1273 #ifdef PAD64_REQUIRED
1274 #else
1275 #endif
1276 #ifdef PAD64_REQUIRED
1277 #else
1278 #endif
1279 #ifdef PAD64_REQUIRED
1280 #else
1281 #endif
1282 int     freebsd10_freebsd32_umtx_lock(struct thread *, struct freebsd10_freebsd32_umtx_lock_args *);
1283 int     freebsd10_freebsd32_umtx_unlock(struct thread *, struct freebsd10_freebsd32_umtx_unlock_args *);
1284
1285 #endif /* COMPAT_FREEBSD10 */
1286
1287
1288 #ifdef COMPAT_FREEBSD11
1289
1290 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1291 #define PAD64_REQUIRED
1292 #endif
1293 struct freebsd11_freebsd32_stat_args {
1294         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1295         char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1296 };
1297 struct freebsd11_freebsd32_fstat_args {
1298         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1299         char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1300 };
1301 struct freebsd11_freebsd32_lstat_args {
1302         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1303         char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1304 };
1305 struct freebsd11_freebsd32_getdirentries_args {
1306         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1307         char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1308         char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1309         char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1310 };
1311 #ifdef PAD64_REQUIRED
1312 #else
1313 #endif
1314 struct freebsd11_freebsd32_fhstat_args {
1315         char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1316         char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1317 };
1318 struct freebsd11_freebsd32_kevent_args {
1319         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1320         char changelist_l_[PADL_(const struct freebsd11_kevent32 *)]; const struct freebsd11_kevent32 * changelist; char changelist_r_[PADR_(const struct freebsd11_kevent32 *)];
1321         char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1322         char eventlist_l_[PADL_(struct freebsd11_kevent32 *)]; struct freebsd11_kevent32 * eventlist; char eventlist_r_[PADR_(struct freebsd11_kevent32 *)];
1323         char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1324         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1325 };
1326 struct freebsd11_freebsd32_getfsstat_args {
1327         char buf_l_[PADL_(struct freebsd11_statfs *)]; struct freebsd11_statfs * buf; char buf_r_[PADR_(struct freebsd11_statfs *)];
1328         char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
1329         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1330 };
1331 #ifdef PAD64_REQUIRED
1332 #else
1333 #endif
1334 #ifdef PAD64_REQUIRED
1335 #else
1336 #endif
1337 struct freebsd11_freebsd32_fstatat_args {
1338         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1339         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1340         char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1341         char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1342 };
1343 #ifdef PAD64_REQUIRED
1344 #else
1345 #endif
1346 #ifdef PAD64_REQUIRED
1347 #else
1348 #endif
1349 #ifdef PAD64_REQUIRED
1350 #else
1351 #endif
1352 int     freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1353 int     freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1354 int     freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1355 int     freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1356 int     freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1357 int     freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
1358 int     freebsd11_freebsd32_getfsstat(struct thread *, struct freebsd11_freebsd32_getfsstat_args *);
1359 int     freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1360
1361 #endif /* COMPAT_FREEBSD11 */
1362
1363
1364 #ifdef COMPAT_FREEBSD12
1365
1366 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1367 #define PAD64_REQUIRED
1368 #endif
1369 #ifdef PAD64_REQUIRED
1370 #else
1371 #endif
1372 #ifdef PAD64_REQUIRED
1373 #else
1374 #endif
1375 #ifdef PAD64_REQUIRED
1376 #else
1377 #endif
1378 #ifdef PAD64_REQUIRED
1379 #else
1380 #endif
1381 #ifdef PAD64_REQUIRED
1382 #else
1383 #endif
1384 #ifdef PAD64_REQUIRED
1385 #else
1386 #endif
1387
1388 #endif /* COMPAT_FREEBSD12 */
1389
1390 #define FREEBSD32_SYS_AUE_freebsd32_wait4       AUE_WAIT4
1391 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat  AUE_GETFSSTAT
1392 #define FREEBSD32_SYS_AUE_ofreebsd32_lseek      AUE_LSEEK
1393 #define FREEBSD32_SYS_AUE_freebsd32_ptrace      AUE_PTRACE
1394 #define FREEBSD32_SYS_AUE_freebsd32_recvmsg     AUE_RECVMSG
1395 #define FREEBSD32_SYS_AUE_freebsd32_sendmsg     AUE_SENDMSG
1396 #define FREEBSD32_SYS_AUE_ofreebsd32_stat       AUE_STAT
1397 #define FREEBSD32_SYS_AUE_ofreebsd32_lstat      AUE_LSTAT
1398 #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction  AUE_SIGACTION
1399 #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK
1400 #define FREEBSD32_SYS_AUE_freebsd32_ioctl       AUE_IOCTL
1401 #define FREEBSD32_SYS_AUE_freebsd32_execve      AUE_EXECVE
1402 #define FREEBSD32_SYS_AUE_ofreebsd32_fstat      AUE_FSTAT
1403 #define FREEBSD32_SYS_AUE_ofreebsd32_mmap       AUE_MMAP
1404 #define FREEBSD32_SYS_AUE_freebsd32_mprotect    AUE_MPROTECT
1405 #define FREEBSD32_SYS_AUE_freebsd32_setitimer   AUE_SETITIMER
1406 #define FREEBSD32_SYS_AUE_freebsd32_getitimer   AUE_GETITIMER
1407 #define FREEBSD32_SYS_AUE_freebsd32_fcntl       AUE_FCNTL
1408 #define FREEBSD32_SYS_AUE_freebsd32_select      AUE_SELECT
1409 #define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn  AUE_SIGRETURN
1410 #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec     AUE_NULL
1411 #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack   AUE_NULL
1412 #define FREEBSD32_SYS_AUE_ofreebsd32_recvmsg    AUE_RECVMSG
1413 #define FREEBSD32_SYS_AUE_ofreebsd32_sendmsg    AUE_SENDMSG
1414 #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday        AUE_GETTIMEOFDAY
1415 #define FREEBSD32_SYS_AUE_freebsd32_getrusage   AUE_GETRUSAGE
1416 #define FREEBSD32_SYS_AUE_freebsd32_readv       AUE_READV
1417 #define FREEBSD32_SYS_AUE_freebsd32_writev      AUE_WRITEV
1418 #define FREEBSD32_SYS_AUE_freebsd32_settimeofday        AUE_SETTIMEOFDAY
1419 #define FREEBSD32_SYS_AUE_ofreebsd32_truncate   AUE_TRUNCATE
1420 #define FREEBSD32_SYS_AUE_ofreebsd32_ftruncate  AUE_FTRUNCATE
1421 #define FREEBSD32_SYS_AUE_freebsd32_utimes      AUE_UTIMES
1422 #define FREEBSD32_SYS_AUE_freebsd32_adjtime     AUE_ADJTIME
1423 #define FREEBSD32_SYS_AUE_ofreebsd32_sethostid  AUE_SYSCTL
1424 #define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries      AUE_GETDIRENTRIES
1425 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs     AUE_STATFS
1426 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs    AUE_FSTATFS
1427 #define FREEBSD32_SYS_AUE_freebsd32_sysarch     AUE_SYSARCH
1428 #define FREEBSD32_SYS_AUE_freebsd32_semsys      AUE_SEMSYS
1429 #define FREEBSD32_SYS_AUE_freebsd32_msgsys      AUE_MSGSYS
1430 #define FREEBSD32_SYS_AUE_freebsd32_shmsys      AUE_SHMSYS
1431 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread      AUE_PREAD
1432 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite     AUE_PWRITE
1433 #define FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime AUE_NTP_ADJTIME
1434 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat      AUE_STAT
1435 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat     AUE_FSTAT
1436 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat     AUE_LSTAT
1437 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries     AUE_GETDIRENTRIES
1438 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap       AUE_MMAP
1439 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek      AUE_LSEEK
1440 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate   AUE_TRUNCATE
1441 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate  AUE_FTRUNCATE
1442 #define FREEBSD32_SYS_AUE_freebsd32___sysctl    AUE_SYSCTL
1443 #define FREEBSD32_SYS_AUE_freebsd32_futimes     AUE_FUTIMES
1444 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32___semctl   AUE_SEMCTL
1445 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl     AUE_MSGCTL
1446 #define FREEBSD32_SYS_AUE_freebsd32_msgsnd      AUE_MSGSND
1447 #define FREEBSD32_SYS_AUE_freebsd32_msgrcv      AUE_MSGRCV
1448 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl     AUE_SHMCTL
1449 #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime       AUE_NULL
1450 #define FREEBSD32_SYS_AUE_freebsd32_clock_settime       AUE_CLOCK_SETTIME
1451 #define FREEBSD32_SYS_AUE_freebsd32_clock_getres        AUE_NULL
1452 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_create       AUE_NULL
1453 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_settime      AUE_NULL
1454 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime      AUE_NULL
1455 #define FREEBSD32_SYS_AUE_freebsd32_nanosleep   AUE_NULL
1456 #define FREEBSD32_SYS_AUE_freebsd32_ffclock_setestimate AUE_NULL
1457 #define FREEBSD32_SYS_AUE_freebsd32_ffclock_getestimate AUE_NULL
1458 #define FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep     AUE_NULL
1459 #define FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2        AUE_NULL
1460 #define FREEBSD32_SYS_AUE_freebsd32_aio_read    AUE_AIO_READ
1461 #define FREEBSD32_SYS_AUE_freebsd32_aio_write   AUE_AIO_WRITE
1462 #define FREEBSD32_SYS_AUE_freebsd32_lio_listio  AUE_LIO_LISTIO
1463 #define FREEBSD32_SYS_AUE_freebsd32_lutimes     AUE_LUTIMES
1464 #define FREEBSD32_SYS_AUE_freebsd32_preadv      AUE_PREADV
1465 #define FREEBSD32_SYS_AUE_freebsd32_pwritev     AUE_PWRITEV
1466 #define FREEBSD32_SYS_AUE_freebsd32_preadv      AUE_PREADV
1467 #define FREEBSD32_SYS_AUE_freebsd32_pwritev     AUE_PWRITEV
1468 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs   AUE_FHSTATFS
1469 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat    AUE_FHSTAT
1470 #define FREEBSD32_SYS_AUE_freebsd32_modstat     AUE_NULL
1471 #define FREEBSD32_SYS_AUE_freebsd32_kldstat     AUE_NULL
1472 #define FREEBSD32_SYS_AUE_freebsd32_aio_return  AUE_AIO_RETURN
1473 #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_AIO_SUSPEND
1474 #define FREEBSD32_SYS_AUE_freebsd32_aio_error   AUE_AIO_ERROR
1475 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read   AUE_AIO_READ
1476 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write  AUE_AIO_WRITE
1477 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio AUE_LIO_LISTIO
1478 #define FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval       AUE_NULL
1479 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile   AUE_SENDFILE
1480 #define FREEBSD32_SYS_AUE_freebsd32_jail        AUE_JAIL
1481 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction  AUE_SIGACTION
1482 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn  AUE_SIGRETURN
1483 #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait        AUE_SIGWAIT
1484 #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL
1485 #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete    AUE_AIO_WAITCOMPLETE
1486 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent    AUE_KEVENT
1487 #define FREEBSD32_SYS_AUE_freebsd32_nmount      AUE_NMOUNT
1488 #define FREEBSD32_SYS_AUE_freebsd32_sendfile    AUE_SENDFILE
1489 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getfsstat AUE_GETFSSTAT
1490 #define FREEBSD32_SYS_AUE_freebsd32_ksem_init   AUE_SEMINIT
1491 #define FREEBSD32_SYS_AUE_freebsd32_ksem_open   AUE_SEMOPEN
1492 #define FREEBSD32_SYS_AUE_freebsd32_sigaction   AUE_SIGACTION
1493 #define FREEBSD32_SYS_AUE_freebsd32_sigreturn   AUE_SIGRETURN
1494 #define FREEBSD32_SYS_AUE_freebsd32_getcontext  AUE_NULL
1495 #define FREEBSD32_SYS_AUE_freebsd32_setcontext  AUE_NULL
1496 #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL
1497 #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_lock AUE_NULL
1498 #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_unlock       AUE_NULL
1499 #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait      AUE_SEMWAIT
1500 #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL
1501 #define FREEBSD32_SYS_AUE_freebsd32__umtx_op    AUE_NULL
1502 #define FREEBSD32_SYS_AUE_freebsd32_thr_new     AUE_THR_NEW
1503 #define FREEBSD32_SYS_AUE_freebsd32_sigqueue    AUE_NULL
1504 #define FREEBSD32_SYS_AUE_freebsd32_kmq_open    AUE_MQ_OPEN
1505 #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_MQ_SETATTR
1506 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive    AUE_MQ_TIMEDRECEIVE
1507 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend       AUE_MQ_TIMEDSEND
1508 #define FREEBSD32_SYS_AUE_freebsd32_kmq_notify  AUE_MQ_NOTIFY
1509 #define FREEBSD32_SYS_AUE_freebsd32_abort2      AUE_NULL
1510 #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync   AUE_AIO_FSYNC
1511 #define FREEBSD32_SYS_AUE_freebsd32_pread       AUE_PREAD
1512 #define FREEBSD32_SYS_AUE_freebsd32_pwrite      AUE_PWRITE
1513 #define FREEBSD32_SYS_AUE_freebsd32_mmap        AUE_MMAP
1514 #define FREEBSD32_SYS_AUE_freebsd32_lseek       AUE_LSEEK
1515 #define FREEBSD32_SYS_AUE_freebsd32_truncate    AUE_TRUNCATE
1516 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate   AUE_FTRUNCATE
1517 #define FREEBSD32_SYS_AUE_freebsd32_pread       AUE_PREAD
1518 #define FREEBSD32_SYS_AUE_freebsd32_pwrite      AUE_PWRITE
1519 #define FREEBSD32_SYS_AUE_freebsd32_mmap        AUE_MMAP
1520 #define FREEBSD32_SYS_AUE_freebsd32_lseek       AUE_LSEEK
1521 #define FREEBSD32_SYS_AUE_freebsd32_truncate    AUE_TRUNCATE
1522 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate   AUE_FTRUNCATE
1523 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid        AUE_NULL
1524 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid        AUE_NULL
1525 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid        AUE_NULL
1526 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity  AUE_NULL
1527 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity  AUE_NULL
1528 #define FREEBSD32_SYS_AUE_freebsd32_fexecve     AUE_FEXECVE
1529 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat   AUE_FSTATAT
1530 #define FREEBSD32_SYS_AUE_freebsd32_futimesat   AUE_FUTIMESAT
1531 #define FREEBSD32_SYS_AUE_freebsd32_jail_get    AUE_JAIL_GET
1532 #define FREEBSD32_SYS_AUE_freebsd32_jail_set    AUE_JAIL_SET
1533 #define FREEBSD32_SYS_AUE_freebsd32___semctl    AUE_SEMCTL
1534 #define FREEBSD32_SYS_AUE_freebsd32_msgctl      AUE_MSGCTL
1535 #define FREEBSD32_SYS_AUE_freebsd32_shmctl      AUE_SHMCTL
1536 #define FREEBSD32_SYS_AUE_freebsd32_pselect     AUE_SELECT
1537 #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate     AUE_POSIX_FALLOCATE
1538 #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise       AUE_POSIX_FADVISE
1539 #define FREEBSD32_SYS_AUE_freebsd32_wait6       AUE_WAIT6
1540 #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate     AUE_POSIX_FALLOCATE
1541 #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise       AUE_POSIX_FADVISE
1542 #define FREEBSD32_SYS_AUE_freebsd32_wait6       AUE_WAIT6
1543 #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit    AUE_CAP_IOCTLS_LIMIT
1544 #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get      AUE_CAP_IOCTLS_GET
1545 #define FREEBSD32_SYS_AUE_freebsd32_aio_mlock   AUE_AIO_MLOCK
1546 #define FREEBSD32_SYS_AUE_freebsd32_procctl     AUE_PROCCTL
1547 #define FREEBSD32_SYS_AUE_freebsd32_procctl     AUE_PROCCTL
1548 #define FREEBSD32_SYS_AUE_freebsd32_ppoll       AUE_POLL
1549 #define FREEBSD32_SYS_AUE_freebsd32_futimens    AUE_FUTIMES
1550 #define FREEBSD32_SYS_AUE_freebsd32_utimensat   AUE_FUTIMESAT
1551 #define FREEBSD32_SYS_AUE_freebsd32_fstat       AUE_FSTAT
1552 #define FREEBSD32_SYS_AUE_freebsd32_fstatat     AUE_FSTATAT
1553 #define FREEBSD32_SYS_AUE_freebsd32_fhstat      AUE_FHSTAT
1554 #define FREEBSD32_SYS_AUE_freebsd32_getfsstat   AUE_GETFSSTAT
1555 #define FREEBSD32_SYS_AUE_freebsd32_mknodat     AUE_MKNODAT
1556 #define FREEBSD32_SYS_AUE_freebsd32_mknodat     AUE_MKNODAT
1557 #define FREEBSD32_SYS_AUE_freebsd32_kevent      AUE_KEVENT
1558 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain    AUE_NULL
1559 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain    AUE_NULL
1560 #define FREEBSD32_SYS_AUE_freebsd32___sysctlbyname      AUE_SYSCTL
1561 #define FREEBSD32_SYS_AUE_freebsd32_aio_writev  AUE_AIO_WRITEV
1562 #define FREEBSD32_SYS_AUE_freebsd32_aio_readv   AUE_AIO_READV
1563 #define FREEBSD32_SYS_AUE_freebsd32_fspacectl   AUE_FSPACECTL
1564
1565 #undef PAD_
1566 #undef PADL_
1567 #undef PADR_
1568
1569 #endif /* !_FREEBSD32_SYSPROTO_H_ */