xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision e07d37c7056a549ce1ed5dd0dfdbeadfe1b82605)
15eb29d9bSDoug Rabson /*
25eb29d9bSDoug Rabson  * System call prototypes.
35eb29d9bSDoug Rabson  *
40e26cd44SEd Maste  * DO NOT EDIT-- this file is automatically @generated.
55eb29d9bSDoug Rabson  */
65eb29d9bSDoug Rabson 
794e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_
894e75644SPeter Wemm #define	_FREEBSD32_SYSPROTO_H_
95eb29d9bSDoug Rabson 
105eb29d9bSDoug Rabson #include <sys/signal.h>
115eb29d9bSDoug Rabson #include <sys/acl.h>
125c63b21aSJohn Baldwin #include <sys/cpuset.h>
13af80820aSJeff Roberson #include <sys/domainset.h>
14cf13a585SLawrence Stewart #include <sys/_ffcounter.h>
159f706204SRuslan Ermilov #include <sys/_semaphore.h>
169bc65d35SJohn Baldwin #include <sys/ucontext.h>
179fdb497cSJilles Tjoelker #include <sys/wait.h>
189bc65d35SJohn Baldwin 
19f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h>
20f8f1f7fbSJohn Baldwin 
215eb29d9bSDoug Rabson struct proc;
225eb29d9bSDoug Rabson 
235eb29d9bSDoug Rabson struct thread;
245eb29d9bSDoug Rabson 
258601fca7SBrooks Davis #define	PAD_(t)	(sizeof(syscallarg_t) <= sizeof(t) ? \
268601fca7SBrooks Davis 		0 : sizeof(syscallarg_t) - sizeof(t))
275eb29d9bSDoug Rabson 
285eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN
295eb29d9bSDoug Rabson #define	PADL_(t)	0
305eb29d9bSDoug Rabson #define	PADR_(t)	PAD_(t)
315eb29d9bSDoug Rabson #else
325eb29d9bSDoug Rabson #define	PADL_(t)	PAD_(t)
335eb29d9bSDoug Rabson #define	PADR_(t)	0
345eb29d9bSDoug Rabson #endif
355eb29d9bSDoug Rabson 
3621fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
37841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
38841c0c7eSNathan Whitehorn #endif
3994e75644SPeter Wemm struct freebsd32_wait4_args {
405eb29d9bSDoug Rabson 	char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
415eb29d9bSDoug Rabson 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
425eb29d9bSDoug Rabson 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
43db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
445eb29d9bSDoug Rabson };
4558b552dcSJohn Baldwin struct freebsd32_ptrace_args {
4658b552dcSJohn Baldwin 	char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
4758b552dcSJohn Baldwin 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
4858b552dcSJohn Baldwin 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
4958b552dcSJohn Baldwin 	char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
5058b552dcSJohn Baldwin };
5115857ef5SPaul Saab struct freebsd32_recvmsg_args {
5215857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
5315857ef5SPaul Saab 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
5415857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
5515857ef5SPaul Saab };
5615857ef5SPaul Saab struct freebsd32_sendmsg_args {
5715857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
58a944d28dSBrooks Davis 	char msg_l_[PADL_(const struct msghdr32 *)]; const struct msghdr32 * msg; char msg_r_[PADR_(const struct msghdr32 *)];
5915857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
6015857ef5SPaul Saab };
6194e75644SPeter Wemm struct freebsd32_sigaltstack_args {
62a944d28dSBrooks Davis 	char ss_l_[PADL_(const struct sigaltstack32 *)]; const struct sigaltstack32 * ss; char ss_r_[PADR_(const struct sigaltstack32 *)];
63db27052eSPeter Wemm 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
645eb29d9bSDoug Rabson };
65663c5800SDavid E. O'Brien struct freebsd32_ioctl_args {
66663c5800SDavid E. O'Brien 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6770c9698fSBrooks Davis 	char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
6870c9698fSBrooks Davis 	char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)];
69663c5800SDavid E. O'Brien };
7094e75644SPeter Wemm struct freebsd32_execve_args {
714e8c73ebSBrooks Davis 	char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
724412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
734412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
745eb29d9bSDoug Rabson };
75f8244106SMarcel Moolenaar struct freebsd32_mprotect_args {
760e765d9bSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
77f8244106SMarcel Moolenaar 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
78f8244106SMarcel Moolenaar 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
79f8244106SMarcel Moolenaar };
8094e75644SPeter Wemm struct freebsd32_setitimer_args {
818ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
82a944d28dSBrooks Davis 	char itv_l_[PADL_(const struct itimerval32 *)]; const struct itimerval32 * itv; char itv_r_[PADR_(const struct itimerval32 *)];
83db27052eSPeter Wemm 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
845eb29d9bSDoug Rabson };
85996a568eSPeter Wemm struct freebsd32_getitimer_args {
868ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
87996a568eSPeter Wemm 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
88996a568eSPeter Wemm };
895aec07c7SKonstantin Belousov struct freebsd32_fcntl_args {
905aec07c7SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
915aec07c7SKonstantin Belousov 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
92*e07d37c7SBrooks Davis 	char arg_l_[PADL_(intptr_t)]; intptr_t arg; char arg_r_[PADR_(intptr_t)];
935aec07c7SKonstantin Belousov };
9494e75644SPeter Wemm struct freebsd32_select_args {
955eb29d9bSDoug Rabson 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
965eb29d9bSDoug Rabson 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
975eb29d9bSDoug Rabson 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
985eb29d9bSDoug Rabson 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
99db27052eSPeter Wemm 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
1005eb29d9bSDoug Rabson };
10194e75644SPeter Wemm struct freebsd32_gettimeofday_args {
102db27052eSPeter Wemm 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
1035eb29d9bSDoug Rabson 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
1045eb29d9bSDoug Rabson };
10594e75644SPeter Wemm struct freebsd32_getrusage_args {
1065eb29d9bSDoug Rabson 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
107db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
1085eb29d9bSDoug Rabson };
10994e75644SPeter Wemm struct freebsd32_readv_args {
1105eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
111*e07d37c7SBrooks Davis 	char iovp_l_[PADL_(const struct iovec32 *)]; const struct iovec32 * iovp; char iovp_r_[PADR_(const struct iovec32 *)];
1125eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1135eb29d9bSDoug Rabson };
11494e75644SPeter Wemm struct freebsd32_writev_args {
1155eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
116*e07d37c7SBrooks Davis 	char iovp_l_[PADL_(const struct iovec32 *)]; const struct iovec32 * iovp; char iovp_r_[PADR_(const struct iovec32 *)];
1175eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1185eb29d9bSDoug Rabson };
11994e75644SPeter Wemm struct freebsd32_settimeofday_args {
120a944d28dSBrooks Davis 	char tv_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tv; char tv_r_[PADR_(const struct timeval32 *)];
121a944d28dSBrooks Davis 	char tzp_l_[PADL_(const struct timezone *)]; const struct timezone * tzp; char tzp_r_[PADR_(const struct timezone *)];
1225eb29d9bSDoug Rabson };
12394e75644SPeter Wemm struct freebsd32_utimes_args {
1244e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
125a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
126db27052eSPeter Wemm };
12794e75644SPeter Wemm struct freebsd32_adjtime_args {
128a944d28dSBrooks Davis 	char delta_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * delta; char delta_r_[PADR_(const struct timeval32 *)];
129db27052eSPeter Wemm 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
130db27052eSPeter Wemm };
1319da68040SKonstantin Belousov struct freebsd32_sysarch_args {
1329da68040SKonstantin Belousov 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1339da68040SKonstantin Belousov 	char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
1349da68040SKonstantin Belousov };
13594e75644SPeter Wemm struct freebsd32_semsys_args {
1365eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1375eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1385eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1395eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1405eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1415eb29d9bSDoug Rabson };
14294e75644SPeter Wemm struct freebsd32_msgsys_args {
1435eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1445eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1455eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1465eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1475eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1485eb29d9bSDoug Rabson 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
1495eb29d9bSDoug Rabson };
15094e75644SPeter Wemm struct freebsd32_shmsys_args {
1518460d3e9SBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1528460d3e9SBrooks Davis 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1538460d3e9SBrooks Davis 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1548460d3e9SBrooks Davis 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1555eb29d9bSDoug Rabson };
156d7d95c3fSKonstantin Belousov struct freebsd32_ntp_adjtime_args {
157d7d95c3fSKonstantin Belousov 	char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)];
158d7d95c3fSKonstantin Belousov };
15986e06fa5SBrooks Davis struct freebsd32___sysctl_args {
1605eb29d9bSDoug Rabson 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
1615eb29d9bSDoug Rabson 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
1625eb29d9bSDoug Rabson 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
1634412ad48SEd Schouten 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
16421fb6624SOlivier Houchard 	char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)];
165ddae7b9aSBrooks Davis 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
1665eb29d9bSDoug Rabson };
167f06b8643SDoug Ambrisko struct freebsd32_futimes_args {
168f06b8643SDoug Ambrisko 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
169a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
170f06b8643SDoug Ambrisko };
1715e868cbbSJung-uk Kim struct freebsd32_msgsnd_args {
1725e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
173a944d28dSBrooks Davis 	char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)];
1745e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1755e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1765e868cbbSJung-uk Kim };
1775e868cbbSJung-uk Kim struct freebsd32_msgrcv_args {
1785e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1795e868cbbSJung-uk Kim 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
1805e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
181f19e3fd2SBrooks Davis 	char msgtyp_l_[PADL_(int32_t)]; int32_t msgtyp; char msgtyp_r_[PADR_(int32_t)];
1825e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1835e868cbbSJung-uk Kim };
184fd151bb9SPaul Saab struct freebsd32_clock_gettime_args {
185fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
186fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
187fd151bb9SPaul Saab };
188fd151bb9SPaul Saab struct freebsd32_clock_settime_args {
189fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
190fd151bb9SPaul Saab 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
191fd151bb9SPaul Saab };
192fd151bb9SPaul Saab struct freebsd32_clock_getres_args {
193fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
194fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
195fd151bb9SPaul Saab };
19668044954SKonstantin Belousov struct freebsd32_ktimer_create_args {
19768044954SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
19868044954SKonstantin Belousov 	char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
19968044954SKonstantin Belousov 	char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
20068044954SKonstantin Belousov };
20168044954SKonstantin Belousov struct freebsd32_ktimer_settime_args {
20268044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
20368044954SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
20468044954SKonstantin Belousov 	char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
20568044954SKonstantin Belousov 	char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
20668044954SKonstantin Belousov };
20768044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args {
20868044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
20968044954SKonstantin Belousov 	char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
21068044954SKonstantin Belousov };
2117fdf2c85SPaul Saab struct freebsd32_nanosleep_args {
212145f7e60SPaul Saab 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
213145f7e60SPaul Saab 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
2147fdf2c85SPaul Saab };
215e3e811a3SBrooks Davis struct freebsd32_ffclock_setestimate_args {
216e3e811a3SBrooks Davis 	char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
217e3e811a3SBrooks Davis };
218e3e811a3SBrooks Davis struct freebsd32_ffclock_getestimate_args {
219e3e811a3SBrooks Davis 	char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
220e3e811a3SBrooks Davis };
22126f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args {
22226f86ab7SEric van Gyzen 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
22326f86ab7SEric van Gyzen 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
22426f86ab7SEric van Gyzen 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
22526f86ab7SEric van Gyzen 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
22626f86ab7SEric van Gyzen };
227c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args {
228c5d03637SKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
229c5d03637SKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
230c5d03637SKonstantin Belousov 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
231c5d03637SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
232c5d03637SKonstantin Belousov };
2335d8d23c7SJohn Baldwin struct freebsd32_aio_read_args {
2345d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2355d8d23c7SJohn Baldwin };
2365d8d23c7SJohn Baldwin struct freebsd32_aio_write_args {
2375d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2385d8d23c7SJohn Baldwin };
2395d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args {
2405d8d23c7SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2416dcd7db1SBrooks Davis 	char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
2425d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
24368044954SKonstantin Belousov 	char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
2445d8d23c7SJohn Baldwin };
245cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args {
2464e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
247a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
248cac2fa64SDoug Ambrisko };
24930bc335aSBrooks Davis struct freebsd32_preadv_args {
25030bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
25130bc335aSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
25230bc335aSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
253d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
254d257e57dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
255d257e57dSBrooks Davis #endif
25630bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
25730bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
25830bc335aSBrooks Davis };
25930bc335aSBrooks Davis struct freebsd32_pwritev_args {
26030bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
26130bc335aSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
26230bc335aSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
26330bc335aSBrooks Davis #ifdef PAD64_REQUIRED
26430bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
26530bc335aSBrooks Davis #endif
26630bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
26730bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
26830bc335aSBrooks Davis };
2690e214fadSPaul Saab struct freebsd32_modstat_args {
2700e214fadSPaul Saab 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
2710e214fadSPaul Saab 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
2720e214fadSPaul Saab };
273eea5c618SKonstantin Belousov struct freebsd32_kldstat_args {
274eea5c618SKonstantin Belousov 	char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
2755d0d6869SBrooks Davis 	char stat_l_[PADL_(struct kld_file_stat32 *)]; struct kld_file_stat32 * stat; char stat_r_[PADR_(struct kld_file_stat32 *)];
276eea5c618SKonstantin Belousov };
2775d8d23c7SJohn Baldwin struct freebsd32_aio_return_args {
2785d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2795d8d23c7SJohn Baldwin };
2805d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args {
2816dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
2825d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
2835d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
2845d8d23c7SJohn Baldwin };
2855d8d23c7SJohn Baldwin struct freebsd32_aio_error_args {
2865d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2875d8d23c7SJohn Baldwin };
288f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args {
289f2f5c215SKonstantin Belousov 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
290f2f5c215SKonstantin Belousov 	char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
291f2f5c215SKonstantin Belousov };
292c542c43eSJamie Gritton struct freebsd32_jail_args {
293c542c43eSJamie Gritton 	char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
294c542c43eSJamie Gritton };
295312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args {
296312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
297*e07d37c7SBrooks Davis 	char info_l_[PADL_(struct __siginfo32 *)]; struct __siginfo32 * info; char info_r_[PADR_(struct __siginfo32 *)];
298a944d28dSBrooks Davis 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
299312a0e5fSDavid Xu };
300312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args {
301312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
302*e07d37c7SBrooks Davis 	char info_l_[PADL_(struct __siginfo32 *)]; struct __siginfo32 * info; char info_r_[PADR_(struct __siginfo32 *)];
303312a0e5fSDavid Xu };
3045d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args {
3056dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
3065d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
3075d8d23c7SJohn Baldwin };
308f1287854SDavid E. O'Brien struct freebsd32_nmount_args {
309f1287854SDavid E. O'Brien 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
310f1287854SDavid E. O'Brien 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
311f1287854SDavid E. O'Brien 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
312f1287854SDavid E. O'Brien };
31394e75644SPeter Wemm struct freebsd32_sendfile_args {
3145eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
3155eb29d9bSDoug Rabson 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
3164412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
3174412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
3185eb29d9bSDoug Rabson 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
31926e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
3205eb29d9bSDoug Rabson 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
3215eb29d9bSDoug Rabson 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
3225eb29d9bSDoug Rabson };
32328ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args {
324265a4b83SBrooks Davis 	char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
32528ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
32628ad01d2SKonstantin Belousov };
32728ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args {
328265a4b83SBrooks Davis 	char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
32928ad01d2SKonstantin Belousov 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
33028ad01d2SKonstantin Belousov 	char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
33128ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
33228ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
33328ad01d2SKonstantin Belousov };
33494e75644SPeter Wemm struct freebsd32_sigaction_args {
335e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
336a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
337e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
338e14528b3SPeter Wemm };
33994e75644SPeter Wemm struct freebsd32_sigreturn_args {
3406de7c053SBrooks Davis 	char sigcntxp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext32 *)];
34182914097SPeter Wemm };
342a11ea6e3SPeter Wemm struct freebsd32_getcontext_args {
3436de7c053SBrooks Davis 	char ucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * ucp; char ucp_r_[PADR_(struct __ucontext32 *)];
344a11ea6e3SPeter Wemm };
345a11ea6e3SPeter Wemm struct freebsd32_setcontext_args {
3466de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
347a11ea6e3SPeter Wemm };
348a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args {
3496de7c053SBrooks Davis 	char oucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * oucp; char oucp_r_[PADR_(struct __ucontext32 *)];
3506de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
351a11ea6e3SPeter Wemm };
35228ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args {
353265a4b83SBrooks Davis 	char id_l_[PADL_(int32_t)]; int32_t id; char id_r_[PADR_(int32_t)];
35428ad01d2SKonstantin Belousov 	char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
35528ad01d2SKonstantin Belousov };
356ac3674aaSDavid Xu struct freebsd32_thr_suspend_args {
357ac3674aaSDavid Xu 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
358ac3674aaSDavid Xu };
359e1e300b6SBrooks Davis struct freebsd32__umtx_op_args {
36027bbb2e7SDavid Xu 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
36127bbb2e7SDavid Xu 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
362034b26fcSDavid Xu 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
363d35a7716SBrooks Davis 	char uaddr1_l_[PADL_(void *)]; void * uaddr1; char uaddr1_r_[PADR_(void *)];
36427bbb2e7SDavid Xu 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
36527bbb2e7SDavid Xu };
366ac3674aaSDavid Xu struct freebsd32_thr_new_args {
367ac3674aaSDavid Xu 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
368ac3674aaSDavid Xu 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
369ac3674aaSDavid Xu };
370e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args {
371e9f32d1dSBrooks Davis 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
372e9f32d1dSBrooks Davis 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
373158dcd73SBrooks Davis 	char value_l_[PADL_(void *)]; void * value; char value_r_[PADR_(void *)];
374e9f32d1dSBrooks Davis };
37528ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args {
37628ad01d2SKonstantin Belousov 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
37728ad01d2SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
37828ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
37928ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38028ad01d2SKonstantin Belousov };
38128ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args {
38228ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
38328ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38428ad01d2SKonstantin Belousov 	char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
38528ad01d2SKonstantin Belousov };
38628ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args {
38728ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
38828ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
38928ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
39028ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
39128ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
39228ad01d2SKonstantin Belousov };
39328ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args {
39428ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
39528ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
39628ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
39728ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
39828ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
39928ad01d2SKonstantin Belousov };
40068044954SKonstantin Belousov struct freebsd32_kmq_notify_args {
40168044954SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40268044954SKonstantin Belousov 	char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
40368044954SKonstantin Belousov };
404e02f64d9SBrooks Davis struct freebsd32_abort2_args {
405e02f64d9SBrooks Davis 	char why_l_[PADL_(const char *)]; const char * why; char why_r_[PADR_(const char *)];
406e02f64d9SBrooks Davis 	char nargs_l_[PADL_(int)]; int nargs; char nargs_r_[PADR_(int)];
407e02f64d9SBrooks Davis 	char args_l_[PADL_(uint32_t *)]; uint32_t * args; char args_r_[PADR_(uint32_t *)];
408e02f64d9SBrooks Davis };
4095d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args {
4105d8d23c7SJohn Baldwin 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
4115d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
4125d8d23c7SJohn Baldwin };
413486abf93SPeter Wemm struct freebsd32_pread_args {
414486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
415486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
416486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
41730bc335aSBrooks Davis #ifdef PAD64_REQUIRED
418a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
41930bc335aSBrooks Davis #endif
4204412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4214412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
422486abf93SPeter Wemm };
423486abf93SPeter Wemm struct freebsd32_pwrite_args {
424486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
425486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
426486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
42730bc335aSBrooks Davis #ifdef PAD64_REQUIRED
428a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
42930bc335aSBrooks Davis #endif
4304412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4314412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
432486abf93SPeter Wemm };
433486abf93SPeter Wemm struct freebsd32_mmap_args {
434938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
435486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
436486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
437486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
438486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
439841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
440a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
44130bc335aSBrooks Davis #endif
44230bc335aSBrooks Davis 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
44330bc335aSBrooks Davis 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
444774b72e1SBrooks Davis };
44530bc335aSBrooks Davis struct freebsd32_lseek_args {
44630bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
44730bc335aSBrooks Davis #ifdef PAD64_REQUIRED
44830bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
44930bc335aSBrooks Davis #endif
45030bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
45130bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
45230bc335aSBrooks Davis 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
45330bc335aSBrooks Davis };
45430bc335aSBrooks Davis struct freebsd32_truncate_args {
45530bc335aSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
45630bc335aSBrooks Davis #ifdef PAD64_REQUIRED
45730bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
45830bc335aSBrooks Davis #endif
45930bc335aSBrooks Davis 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
46030bc335aSBrooks Davis 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
46130bc335aSBrooks Davis };
46230bc335aSBrooks Davis struct freebsd32_ftruncate_args {
46330bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
46430bc335aSBrooks Davis #ifdef PAD64_REQUIRED
46530bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
46630bc335aSBrooks Davis #endif
46730bc335aSBrooks Davis 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
46830bc335aSBrooks Davis 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
46930bc335aSBrooks Davis };
470841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args {
471841c0c7eSNathan Whitehorn 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
47230bc335aSBrooks Davis #ifdef PAD64_REQUIRED
47330bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
47430bc335aSBrooks Davis #endif
4754412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4764412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
477841c0c7eSNathan Whitehorn 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
478841c0c7eSNathan Whitehorn };
479774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args {
480774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
481774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4824412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4834412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
484774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
485774b72e1SBrooks Davis };
486774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args {
487774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
488774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4894412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4904412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
491774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
492774b72e1SBrooks Davis 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
493774b72e1SBrooks Davis };
494774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args {
495774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
496774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4974412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4984412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
499774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
500774b72e1SBrooks Davis 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
501774b72e1SBrooks Davis };
502f2296b58SKonstantin Belousov struct freebsd32_fexecve_args {
503f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5044412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
5054412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
506f2296b58SKonstantin Belousov };
507f2296b58SKonstantin Belousov struct freebsd32_futimesat_args {
508f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5094e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
510a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * times; char times_r_[PADR_(const struct timeval32 *)];
511f2296b58SKonstantin Belousov };
512fe2f3c65SJamie Gritton struct freebsd32_jail_get_args {
513fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
514fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
515fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
516fe2f3c65SJamie Gritton };
517fe2f3c65SJamie Gritton struct freebsd32_jail_set_args {
518fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
519fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
520fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
521fe2f3c65SJamie Gritton };
5220ebea139SBrooks Davis struct freebsd32___semctl_args {
5233899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
5243899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
5253899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5263899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
5273899e0dfSJohn Baldwin };
5283899e0dfSJohn Baldwin struct freebsd32_msgctl_args {
5293899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
5303899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5313899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
5323899e0dfSJohn Baldwin };
5333899e0dfSJohn Baldwin struct freebsd32_shmctl_args {
5343899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
5353899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5363899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
5373899e0dfSJohn Baldwin };
538063e9958SKonstantin Belousov struct freebsd32_pselect_args {
539063e9958SKonstantin Belousov 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
540063e9958SKonstantin Belousov 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
541063e9958SKonstantin Belousov 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
542063e9958SKonstantin Belousov 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
543063e9958SKonstantin Belousov 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
544063e9958SKonstantin Belousov 	char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
545063e9958SKonstantin Belousov };
54630bc335aSBrooks Davis struct freebsd32_posix_fallocate_args {
54730bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
548f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
549a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
550f85769ebSKonstantin Belousov #endif
55130bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
55230bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
55330bc335aSBrooks Davis 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
55430bc335aSBrooks Davis 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
55530bc335aSBrooks Davis };
55630bc335aSBrooks Davis struct freebsd32_posix_fadvise_args {
55730bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
55830bc335aSBrooks Davis #ifdef PAD64_REQUIRED
55930bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
56030bc335aSBrooks Davis #endif
56130bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
56230bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
56330bc335aSBrooks Davis 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
56430bc335aSBrooks Davis 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
56530bc335aSBrooks Davis 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
56630bc335aSBrooks Davis };
56730bc335aSBrooks Davis struct freebsd32_wait6_args {
56830bc335aSBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
56930bc335aSBrooks Davis #ifdef PAD64_REQUIRED
57030bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
57130bc335aSBrooks Davis #endif
57230bc335aSBrooks Davis 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
57330bc335aSBrooks Davis 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
57430bc335aSBrooks Davis 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
57530bc335aSBrooks Davis 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
57630bc335aSBrooks Davis 	char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
577*e07d37c7SBrooks Davis 	char info_l_[PADL_(struct __siginfo32 *)]; struct __siginfo32 * info; char info_r_[PADR_(struct __siginfo32 *)];
57830bc335aSBrooks Davis };
579e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args {
580e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
581e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
582e11dc435SPawel Jakub Dawidek 	char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
583e11dc435SPawel Jakub Dawidek };
584e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args {
585e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
586e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
587e11dc435SPawel Jakub Dawidek 	char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
588e11dc435SPawel Jakub Dawidek };
5898d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args {
5908d1aa3c6SGleb Smirnoff 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
5918d1aa3c6SGleb Smirnoff };
59230bc335aSBrooks Davis struct freebsd32_procctl_args {
59330bc335aSBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
594a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
595a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
596a566e8e3SJohn Baldwin #endif
59730bc335aSBrooks Davis 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
59830bc335aSBrooks Davis 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
59930bc335aSBrooks Davis 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
60030bc335aSBrooks Davis 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
60130bc335aSBrooks Davis };
602c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args {
603c28d9d0fSDmitry Chagin 	char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
604c28d9d0fSDmitry Chagin 	char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
605c28d9d0fSDmitry Chagin 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
606c28d9d0fSDmitry Chagin 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
607c28d9d0fSDmitry Chagin };
6082b35e6a9SJilles Tjoelker struct freebsd32_futimens_args {
6092b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
610a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6112b35e6a9SJilles Tjoelker };
6122b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args {
6132b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6144e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
615a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6162b35e6a9SJilles Tjoelker 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
6172b35e6a9SJilles Tjoelker };
618ec95c622SKonstantin Belousov struct freebsd32_fstat_args {
619ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
620f1a14110SBrooks Davis 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
621ec95c622SKonstantin Belousov };
622ec95c622SKonstantin Belousov struct freebsd32_fstatat_args {
623ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6244e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
625ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
626ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
627ec95c622SKonstantin Belousov };
628ec95c622SKonstantin Belousov struct freebsd32_fhstat_args {
629ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
630ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
631ec95c622SKonstantin Belousov };
6322b9d052dSBrooks Davis struct freebsd32_getfsstat_args {
6332b9d052dSBrooks Davis 	char buf_l_[PADL_(struct statfs *)]; struct statfs * buf; char buf_r_[PADR_(struct statfs *)];
6342b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
6352b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
6362b9d052dSBrooks Davis };
63730bc335aSBrooks Davis struct freebsd32_mknodat_args {
63830bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
63930bc335aSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
64030bc335aSBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
6414b499c75SBrooks Davis #ifdef PAD64_REQUIRED
642a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
6434b499c75SBrooks Davis #endif
64430bc335aSBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
64530bc335aSBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
64630bc335aSBrooks Davis };
647eb84ca64SKonstantin Belousov struct freebsd32_kevent_args {
648eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
649eb84ca64SKonstantin Belousov 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
650eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
651eb84ca64SKonstantin Belousov 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
652eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
653eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
654eb84ca64SKonstantin Belousov };
655af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args {
656af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
657af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
658af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
659af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
660af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
661af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
662af80820aSJeff Roberson 	char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
663af80820aSJeff Roberson };
664af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args {
665af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
666af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
667af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
668af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
669af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
670af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
671af80820aSJeff Roberson 	char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
672af80820aSJeff Roberson };
673d05b53e0SMateusz Guzik struct freebsd32___sysctlbyname_args {
674d05b53e0SMateusz Guzik 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
675d05b53e0SMateusz Guzik 	char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
676d05b53e0SMateusz Guzik 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
677d05b53e0SMateusz Guzik 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
678d05b53e0SMateusz Guzik 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
679d05b53e0SMateusz Guzik 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
680d05b53e0SMateusz Guzik };
68120321e62SAlan Somers struct freebsd32_aio_writev_args {
68220321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
68320321e62SAlan Somers };
68420321e62SAlan Somers struct freebsd32_aio_readv_args {
68520321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
68620321e62SAlan Somers };
687af93fea7SJake Freeland struct freebsd32_timerfd_gettime_args {
688af93fea7SJake Freeland 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
689af93fea7SJake Freeland 	char curr_value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * curr_value; char curr_value_r_[PADR_(struct itimerspec32 *)];
690af93fea7SJake Freeland };
691af93fea7SJake Freeland struct freebsd32_timerfd_settime_args {
692af93fea7SJake Freeland 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
693af93fea7SJake Freeland 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
694af93fea7SJake Freeland 	char new_value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * new_value; char new_value_r_[PADR_(const struct itimerspec32 *)];
695af93fea7SJake Freeland 	char old_value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * old_value; char old_value_r_[PADR_(struct itimerspec32 *)];
696af93fea7SJake Freeland };
69794e75644SPeter Wemm int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
69858b552dcSJohn Baldwin int	freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
69915857ef5SPaul Saab int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
70015857ef5SPaul Saab int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
70194e75644SPeter Wemm int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
702663c5800SDavid E. O'Brien int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
70394e75644SPeter Wemm int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
704f8244106SMarcel Moolenaar int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
70594e75644SPeter Wemm int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
706996a568eSPeter Wemm int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
7075aec07c7SKonstantin Belousov int	freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
70894e75644SPeter Wemm int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
70994e75644SPeter Wemm int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
71094e75644SPeter Wemm int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
71194e75644SPeter Wemm int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
71294e75644SPeter Wemm int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
71394e75644SPeter Wemm int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
71494e75644SPeter Wemm int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
71594e75644SPeter Wemm int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
7169da68040SKonstantin Belousov int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
71794e75644SPeter Wemm int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
71894e75644SPeter Wemm int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
71994e75644SPeter Wemm int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
720d7d95c3fSKonstantin Belousov int	freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
72186e06fa5SBrooks Davis int	freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
722f06b8643SDoug Ambrisko int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
7235e868cbbSJung-uk Kim int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
7245e868cbbSJung-uk Kim int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
725fd151bb9SPaul Saab int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
726fd151bb9SPaul Saab int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
727fd151bb9SPaul Saab int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
72868044954SKonstantin Belousov int	freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
72968044954SKonstantin Belousov int	freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
73068044954SKonstantin Belousov int	freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
7317fdf2c85SPaul Saab int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
732e3e811a3SBrooks Davis int	freebsd32_ffclock_setestimate(struct thread *, struct freebsd32_ffclock_setestimate_args *);
733e3e811a3SBrooks Davis int	freebsd32_ffclock_getestimate(struct thread *, struct freebsd32_ffclock_getestimate_args *);
73426f86ab7SEric van Gyzen int	freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
735c5d03637SKonstantin Belousov int	freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
7365d8d23c7SJohn Baldwin int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
7375d8d23c7SJohn Baldwin int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
7385d8d23c7SJohn Baldwin int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
739cac2fa64SDoug Ambrisko int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
7409f3157a2SJohn Baldwin int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
7419f3157a2SJohn Baldwin int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
7420e214fadSPaul Saab int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
743eea5c618SKonstantin Belousov int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
7445d8d23c7SJohn Baldwin int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
7455d8d23c7SJohn Baldwin int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
7465d8d23c7SJohn Baldwin int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
747f2f5c215SKonstantin Belousov int	freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
748c542c43eSJamie Gritton int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
749312a0e5fSDavid Xu int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
750312a0e5fSDavid Xu int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
7515d8d23c7SJohn Baldwin int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
752f1287854SDavid E. O'Brien int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
75394e75644SPeter Wemm int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
75428ad01d2SKonstantin Belousov int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
75528ad01d2SKonstantin Belousov int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
75694e75644SPeter Wemm int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
75794e75644SPeter Wemm int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
758a11ea6e3SPeter Wemm int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
759a11ea6e3SPeter Wemm int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
760a11ea6e3SPeter Wemm int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
76128ad01d2SKonstantin Belousov int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
762ac3674aaSDavid Xu int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
763e1e300b6SBrooks Davis int	freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
764ac3674aaSDavid Xu int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
765e9f32d1dSBrooks Davis int	freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
76628ad01d2SKonstantin Belousov int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
76728ad01d2SKonstantin Belousov int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
76828ad01d2SKonstantin Belousov int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
76928ad01d2SKonstantin Belousov int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
77068044954SKonstantin Belousov int	freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
771e02f64d9SBrooks Davis int	freebsd32_abort2(struct thread *, struct freebsd32_abort2_args *);
7725d8d23c7SJohn Baldwin int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
773486abf93SPeter Wemm int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
774486abf93SPeter Wemm int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
775486abf93SPeter Wemm int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
776486abf93SPeter Wemm int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
777486abf93SPeter Wemm int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
778486abf93SPeter Wemm int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
779774b72e1SBrooks Davis int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
780774b72e1SBrooks Davis int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
781774b72e1SBrooks Davis int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
782774b72e1SBrooks Davis int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
783f2296b58SKonstantin Belousov int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
784f2296b58SKonstantin Belousov int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
785fe2f3c65SJamie Gritton int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
786fe2f3c65SJamie Gritton int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
7870ebea139SBrooks Davis int	freebsd32___semctl(struct thread *, struct freebsd32___semctl_args *);
7883899e0dfSJohn Baldwin int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
7893899e0dfSJohn Baldwin int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
790063e9958SKonstantin Belousov int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
7917323776bSMatthew D Fleming int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
792cd06ae5cSJohn Baldwin int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
793552e9935SKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
794e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
795e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
7968d1aa3c6SGleb Smirnoff int	freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
797a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
798c28d9d0fSDmitry Chagin int	freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
7992b35e6a9SJilles Tjoelker int	freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
8002b35e6a9SJilles Tjoelker int	freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
801ec95c622SKonstantin Belousov int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
802ec95c622SKonstantin Belousov int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
803ec95c622SKonstantin Belousov int	freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
8042b9d052dSBrooks Davis int	freebsd32_getfsstat(struct thread *, struct freebsd32_getfsstat_args *);
8054b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
806eb84ca64SKonstantin Belousov int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
807af80820aSJeff Roberson int	freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
808af80820aSJeff Roberson int	freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
809d05b53e0SMateusz Guzik int	freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
81020321e62SAlan Somers int	freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
81120321e62SAlan Somers int	freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
812af93fea7SJake Freeland int	freebsd32_timerfd_gettime(struct thread *, struct freebsd32_timerfd_gettime_args *);
813af93fea7SJake Freeland int	freebsd32_timerfd_settime(struct thread *, struct freebsd32_timerfd_settime_args *);
8145eb29d9bSDoug Rabson 
8155eb29d9bSDoug Rabson #ifdef COMPAT_43
8165eb29d9bSDoug Rabson 
817160e5953SKonstantin Belousov struct ofreebsd32_lseek_args {
818160e5953SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
819f19e3fd2SBrooks Davis 	char offset_l_[PADL_(int32_t)]; int32_t offset; char offset_r_[PADR_(int32_t)];
820160e5953SKonstantin Belousov 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
821160e5953SKonstantin Belousov };
822c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args {
8234e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
824c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
825c3b2c052SKonstantin Belousov };
826c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args {
8274e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
828381f6804SBrooks Davis 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
829c3b2c052SKonstantin Belousov };
830946bca4fSPeter Wemm struct ofreebsd32_sigaction_args {
831946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
832946bca4fSPeter Wemm 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
833946bca4fSPeter Wemm 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
834946bca4fSPeter Wemm };
835c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args {
836c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
837ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct ostat32 *)]; struct ostat32 * sb; char sb_r_[PADR_(struct ostat32 *)];
838c3b2c052SKonstantin Belousov };
8399df4e7e2SBrooks Davis struct ofreebsd32_mmap_args {
8409df4e7e2SBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
8419df4e7e2SBrooks Davis 	char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
8429df4e7e2SBrooks Davis 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
8439df4e7e2SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
8449df4e7e2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
8459df4e7e2SBrooks Davis 	char pos_l_[PADL_(int32_t)]; int32_t pos; char pos_r_[PADR_(int32_t)];
8469df4e7e2SBrooks Davis };
847c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args {
848b92f4ae5SBrooks Davis 	char sigcntxp_l_[PADL_(struct osigcontext *)]; struct osigcontext * sigcntxp; char sigcntxp_r_[PADR_(struct osigcontext *)];
849c3b2c052SKonstantin Belousov };
850946bca4fSPeter Wemm struct ofreebsd32_sigvec_args {
851946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
852946bca4fSPeter Wemm 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
853946bca4fSPeter Wemm 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
854946bca4fSPeter Wemm };
855946bca4fSPeter Wemm struct ofreebsd32_sigstack_args {
856946bca4fSPeter Wemm 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
857946bca4fSPeter Wemm 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
858946bca4fSPeter Wemm };
859f089a2f3SBrooks Davis struct ofreebsd32_recvmsg_args {
860f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
861f089a2f3SBrooks Davis 	char msg_l_[PADL_(struct omsghdr32 *)]; struct omsghdr32 * msg; char msg_r_[PADR_(struct omsghdr32 *)];
862f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
863f089a2f3SBrooks Davis };
864f089a2f3SBrooks Davis struct ofreebsd32_sendmsg_args {
865f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
866f089a2f3SBrooks Davis 	char msg_l_[PADL_(const struct omsghdr32 *)]; const struct omsghdr32 * msg; char msg_r_[PADR_(const struct omsghdr32 *)];
867f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
868f089a2f3SBrooks Davis };
869f19e3fd2SBrooks Davis struct ofreebsd32_truncate_args {
870f19e3fd2SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
871f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
872f19e3fd2SBrooks Davis };
873f19e3fd2SBrooks Davis struct ofreebsd32_ftruncate_args {
874f19e3fd2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
875f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
876f19e3fd2SBrooks Davis };
877f19e3fd2SBrooks Davis struct ofreebsd32_sethostid_args {
878f19e3fd2SBrooks Davis 	char hostid_l_[PADL_(int32_t)]; int32_t hostid; char hostid_r_[PADR_(int32_t)];
879f19e3fd2SBrooks Davis };
880c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args {
881c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
882c3b2c052SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
883c3b2c052SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
884f19e3fd2SBrooks Davis 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
885c3b2c052SKonstantin Belousov };
886160e5953SKonstantin Belousov int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
887c3b2c052SKonstantin Belousov int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
888c3b2c052SKonstantin Belousov int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
889946bca4fSPeter Wemm int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
890c3b2c052SKonstantin Belousov int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
8919df4e7e2SBrooks Davis int	ofreebsd32_mmap(struct thread *, struct ofreebsd32_mmap_args *);
892c3b2c052SKonstantin Belousov int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
893946bca4fSPeter Wemm int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
894946bca4fSPeter Wemm int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
895f089a2f3SBrooks Davis int	ofreebsd32_recvmsg(struct thread *, struct ofreebsd32_recvmsg_args *);
896f089a2f3SBrooks Davis int	ofreebsd32_sendmsg(struct thread *, struct ofreebsd32_sendmsg_args *);
897f19e3fd2SBrooks Davis int	ofreebsd32_truncate(struct thread *, struct ofreebsd32_truncate_args *);
898f19e3fd2SBrooks Davis int	ofreebsd32_ftruncate(struct thread *, struct ofreebsd32_ftruncate_args *);
899f19e3fd2SBrooks Davis int	ofreebsd32_sethostid(struct thread *, struct ofreebsd32_sethostid_args *);
900c3b2c052SKonstantin Belousov int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
9015eb29d9bSDoug Rabson 
9025eb29d9bSDoug Rabson #endif /* COMPAT_43 */
9035eb29d9bSDoug Rabson 
9040c5bd5f9SEdward Tomasz Napierala 
905db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4
906db27052eSPeter Wemm 
9075b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args {
9082e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
909f19e3fd2SBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
9101fabda45SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
9115b3283b0SPeter Wemm };
9125b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args {
9134e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
9142e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9155b3283b0SPeter Wemm };
9165b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args {
9175b3283b0SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9182e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9195b3283b0SPeter Wemm };
9205b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args {
9215b3283b0SPeter Wemm 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
9222e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9235b3283b0SPeter Wemm };
92494e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args {
9259105d26bSPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9269105d26bSPeter Wemm 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
9274412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9284412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
9299105d26bSPeter Wemm 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
93026e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
9319105d26bSPeter Wemm 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
9329105d26bSPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9339105d26bSPeter Wemm };
93494e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args {
935e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
936a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
937e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
938e14528b3SPeter Wemm };
93994e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args {
9405fdbd21dSBrooks Davis 	char sigcntxp_l_[PADL_(const struct freebsd4_ucontext32 *)]; const struct freebsd4_ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_ucontext32 *)];
941e14528b3SPeter Wemm };
9425b3283b0SPeter Wemm int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
9435b3283b0SPeter Wemm int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
9445b3283b0SPeter Wemm int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
9455b3283b0SPeter Wemm int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
94694e75644SPeter Wemm int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
94794e75644SPeter Wemm int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
94894e75644SPeter Wemm int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
949db27052eSPeter Wemm 
950db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */
951db27052eSPeter Wemm 
9520c5bd5f9SEdward Tomasz Napierala 
953718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6
954486abf93SPeter Wemm 
955486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args {
956486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
957486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
958486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
959486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9604412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9614412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
962486abf93SPeter Wemm };
963486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args {
964486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
965486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
966486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
967486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9684412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9694412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
970486abf93SPeter Wemm };
971486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args {
972938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
973486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
974486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
975486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
976486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
977486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9784412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
9794412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
980486abf93SPeter Wemm };
981486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args {
982486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
983486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9844412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9854412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
986486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
987486abf93SPeter Wemm };
988486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args {
9894e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
990486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9914412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
9924412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
993486abf93SPeter Wemm };
994486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args {
995486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
996486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9974412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
9984412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
999486abf93SPeter Wemm };
10008d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args {
10018d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
10028d91acedSJohn Baldwin };
10038d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args {
10048d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
10058d91acedSJohn Baldwin };
10068d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args {
10078d91acedSJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
10086dcd7db1SBrooks Davis 	char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
10098d91acedSJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
10108d91acedSJohn Baldwin 	char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
10118d91acedSJohn Baldwin };
1012486abf93SPeter Wemm int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1013486abf93SPeter Wemm int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1014486abf93SPeter Wemm int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1015486abf93SPeter Wemm int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1016486abf93SPeter Wemm int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1017486abf93SPeter Wemm int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
10188d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
10198d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
10208d91acedSJohn Baldwin int	freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1021486abf93SPeter Wemm 
1022718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */
1023486abf93SPeter Wemm 
10240c5bd5f9SEdward Tomasz Napierala 
10258ffab864SWarner Losh #ifdef COMPAT_FREEBSD7
10263899e0dfSJohn Baldwin 
10270ebea139SBrooks Davis struct freebsd7_freebsd32___semctl_args {
10283899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
10293899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
10303899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1031e5b09976SBrooks Davis 	char arg_l_[PADL_(union semun_old32 *)]; union semun_old32 * arg; char arg_r_[PADR_(union semun_old32 *)];
10323899e0dfSJohn Baldwin };
10333899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args {
10343899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
10353899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10363b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct msqid_ds_old32 *)]; struct msqid_ds_old32 * buf; char buf_r_[PADR_(struct msqid_ds_old32 *)];
10373899e0dfSJohn Baldwin };
10383899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args {
10393899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
10403899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10413b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct shmid_ds_old32 *)]; struct shmid_ds_old32 * buf; char buf_r_[PADR_(struct shmid_ds_old32 *)];
10423899e0dfSJohn Baldwin };
10430ebea139SBrooks Davis int	freebsd7_freebsd32___semctl(struct thread *, struct freebsd7_freebsd32___semctl_args *);
10443899e0dfSJohn Baldwin int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
10453899e0dfSJohn Baldwin int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
10463899e0dfSJohn Baldwin 
10478ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */
10483899e0dfSJohn Baldwin 
10490c5bd5f9SEdward Tomasz Napierala 
1050a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10
1051a72c64b0SBrooks Davis 
10528460d3e9SBrooks Davis struct freebsd10_freebsd32__umtx_lock_args {
1053273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1054273728b1SKonstantin Belousov };
10558460d3e9SBrooks Davis struct freebsd10_freebsd32__umtx_unlock_args {
1056273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1057273728b1SKonstantin Belousov };
10588460d3e9SBrooks Davis int	freebsd10_freebsd32__umtx_lock(struct thread *, struct freebsd10_freebsd32__umtx_lock_args *);
10598460d3e9SBrooks Davis int	freebsd10_freebsd32__umtx_unlock(struct thread *, struct freebsd10_freebsd32__umtx_unlock_args *);
1060a72c64b0SBrooks Davis 
1061a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */
1062a72c64b0SBrooks Davis 
10630c5bd5f9SEdward Tomasz Napierala 
1064ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11
1065ec95c622SKonstantin Belousov 
1066ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args {
10674e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1068ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1069ec95c622SKonstantin Belousov };
1070ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args {
1071ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1072ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1073ec95c622SKonstantin Belousov };
1074ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args {
10754e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1076ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1077ec95c622SKonstantin Belousov };
1078ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args {
1079ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1080ec95c622SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1081ec95c622SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1082ec95c622SKonstantin Belousov 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1083ec95c622SKonstantin Belousov };
1084bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nstat_args {
1085bcd07aaaSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1086bcd07aaaSBrooks Davis 	char ub_l_[PADL_(struct nstat32 *)]; struct nstat32 * ub; char ub_r_[PADR_(struct nstat32 *)];
1087bcd07aaaSBrooks Davis };
1088bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nfstat_args {
1089bcd07aaaSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1090bcd07aaaSBrooks Davis 	char sb_l_[PADL_(struct nstat32 *)]; struct nstat32 * sb; char sb_r_[PADR_(struct nstat32 *)];
1091bcd07aaaSBrooks Davis };
1092bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nlstat_args {
1093bcd07aaaSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1094bcd07aaaSBrooks Davis 	char ub_l_[PADL_(struct nstat32 *)]; struct nstat32 * ub; char ub_r_[PADR_(struct nstat32 *)];
1095bcd07aaaSBrooks Davis };
1096ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args {
1097ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1098ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1099ec95c622SKonstantin Belousov };
1100eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args {
1101eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
11023f8ced5bSBrooks Davis 	char changelist_l_[PADL_(const struct freebsd11_kevent32 *)]; const struct freebsd11_kevent32 * changelist; char changelist_r_[PADR_(const struct freebsd11_kevent32 *)];
1103eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
11043f8ced5bSBrooks Davis 	char eventlist_l_[PADL_(struct freebsd11_kevent32 *)]; struct freebsd11_kevent32 * eventlist; char eventlist_r_[PADR_(struct freebsd11_kevent32 *)];
1105eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1106eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1107eb84ca64SKonstantin Belousov };
11082b9d052dSBrooks Davis struct freebsd11_freebsd32_getfsstat_args {
11092b9d052dSBrooks Davis 	char buf_l_[PADL_(struct freebsd11_statfs *)]; struct freebsd11_statfs * buf; char buf_r_[PADR_(struct freebsd11_statfs *)];
11102b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
11112b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
11122b9d052dSBrooks Davis };
1113ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args {
1114ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
11154e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1116ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1117ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1118ec95c622SKonstantin Belousov };
1119ec95c622SKonstantin Belousov int	freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1120ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1121ec95c622SKonstantin Belousov int	freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1122ec95c622SKonstantin Belousov int	freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1123bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nstat(struct thread *, struct freebsd11_freebsd32_nstat_args *);
1124bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nfstat(struct thread *, struct freebsd11_freebsd32_nfstat_args *);
1125bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nlstat(struct thread *, struct freebsd11_freebsd32_nlstat_args *);
1126ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1127eb84ca64SKonstantin Belousov int	freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
11282b9d052dSBrooks Davis int	freebsd11_freebsd32_getfsstat(struct thread *, struct freebsd11_freebsd32_getfsstat_args *);
1129ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1130ec95c622SKonstantin Belousov 
1131ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */
1132ec95c622SKonstantin Belousov 
11330c5bd5f9SEdward Tomasz Napierala 
1134d19f028eSKyle Evans #ifdef COMPAT_FREEBSD12
1135d19f028eSKyle Evans 
1136d19f028eSKyle Evans 
1137d19f028eSKyle Evans #endif /* COMPAT_FREEBSD12 */
1138d19f028eSKyle Evans 
1139b7c55487SKonstantin Belousov 
1140b7c55487SKonstantin Belousov #ifdef COMPAT_FREEBSD13
1141b7c55487SKonstantin Belousov 
1142b7c55487SKonstantin Belousov 
1143b7c55487SKonstantin Belousov #endif /* COMPAT_FREEBSD13 */
1144b7c55487SKonstantin Belousov 
1145ab89c5f7SBrooks Davis 
1146ab89c5f7SBrooks Davis #ifdef COMPAT_FREEBSD14
1147ab89c5f7SBrooks Davis 
1148ab89c5f7SBrooks Davis 
1149ab89c5f7SBrooks Davis #endif /* COMPAT_FREEBSD14 */
1150ab89c5f7SBrooks Davis 
1151f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
1152e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
1153160e5953SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
115458b552dcSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_ptrace	AUE_PTRACE
1155f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
1156f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
1157c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
1158c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
1159e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
1160da7cbdc2SRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
1161d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_IOCTL
1162f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
1163c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
11649df4e7e2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_mmap	AUE_MMAP
1165f8244106SMarcel Moolenaar #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
1166f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
1167f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
11685aec07c7SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fcntl	AUE_FCNTL
1169f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
1170d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_SIGRETURN
1171572be9c8SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_NULL
1172572be9c8SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_NULL
1173f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_recvmsg	AUE_RECVMSG
1174f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sendmsg	AUE_SENDMSG
1175f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
1176f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
1177f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
1178f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
1179f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
1180f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_truncate	AUE_TRUNCATE
1181f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_ftruncate	AUE_FTRUNCATE
1182f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
1183f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
1184f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sethostid	AUE_SYSCTL
1185c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
1186e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
1187e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
11889da68040SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
1189f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
1190f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
1191f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
1192e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
1193e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
1194d7d95c3fSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime	AUE_NTP_ADJTIME
1195ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat	AUE_STAT
1196ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat	AUE_FSTAT
1197ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat	AUE_LSTAT
1198ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries	AUE_GETDIRENTRIES
1199e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1200e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1201e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1202e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
120386e06fa5SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___sysctl	AUE_SYSCTL
1204f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
12050ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32___semctl	AUE_SEMCTL
12063899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
12075e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
12085e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
12093899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1210f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1211f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1212f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
121368044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_create	AUE_NULL
121468044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_settime	AUE_NULL
121568044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime	AUE_NULL
1216f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
1217e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_setestimate	AUE_NULL
1218e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_getestimate	AUE_NULL
121926f86ab7SEric van Gyzen #define	FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep	AUE_NULL
1220c5d03637SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2	AUE_NULL
1221d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_AIO_READ
1222d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_AIO_WRITE
1223d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_LIO_LISTIO
1224f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1225bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nstat	AUE_STAT
1226bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nfstat	AUE_FSTAT
1227bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nlstat	AUE_LSTAT
1228f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1229f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1230e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1231ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat	AUE_FHSTAT
1232f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1233eea5c618SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
1234d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_AIO_RETURN
1235d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_AIO_SUSPEND
1236d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_AIO_ERROR
1237d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read	AUE_AIO_READ
1238d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write	AUE_AIO_WRITE
1239d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio	AUE_LIO_LISTIO
1240f2f5c215SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval	AUE_NULL
1241e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1242c542c43eSJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1243e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1244e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1245312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1246312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
1247d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_AIO_WAITCOMPLETE
1248eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent	AUE_KEVENT
1249f1287854SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1250e482025eSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
12512b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getfsstat	AUE_GETFSSTAT
1252d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_SEMINIT
1253d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_SEMOPEN
1254f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1255f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1256f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1257f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1258f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
12598460d3e9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32__umtx_lock	AUE_NULL
12608460d3e9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32__umtx_unlock	AUE_NULL
1261d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_SEMWAIT
1262ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
1263e1e300b6SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32__umtx_op	AUE_NULL
1264d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_THR_NEW
1265e9f32d1dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_sigqueue	AUE_NULL
1266d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_MQ_OPEN
1267d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_MQ_SETATTR
1268d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_MQ_TIMEDRECEIVE
1269d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_MQ_TIMEDSEND
1270d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_notify	AUE_MQ_NOTIFY
1271e02f64d9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_abort2	AUE_NULL
1272d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_AIO_FSYNC
1273486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1274486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1275486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1276486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1277486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1278486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1279774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1280774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1281774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1282774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1283f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1284ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat	AUE_FSTATAT
1285f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1286d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_JAIL_GET
1287d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_JAIL_SET
12880ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___semctl	AUE_SEMCTL
12893899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
12903899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
1291063e9958SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
1292d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1293d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1294552e9935SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1295e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit	AUE_CAP_IOCTLS_LIMIT
1296e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get	AUE_CAP_IOCTLS_GET
1297d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_mlock	AUE_AIO_MLOCK
1298d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1299c28d9d0fSDmitry Chagin #define	FREEBSD32_SYS_AUE_freebsd32_ppoll	AUE_POLL
13002b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_futimens	AUE_FUTIMES
13012b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_utimensat	AUE_FUTIMESAT
1302ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
1303ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1304ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fhstat	AUE_FHSTAT
13052b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_getfsstat	AUE_GETFSSTAT
13064b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
1307eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_KEVENT
1308af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain	AUE_NULL
1309af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain	AUE_NULL
1310d05b53e0SMateusz Guzik #define	FREEBSD32_SYS_AUE_freebsd32___sysctlbyname	AUE_SYSCTL
131120321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_writev	AUE_AIO_WRITEV
131220321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_readv	AUE_AIO_READV
1313af93fea7SJake Freeland #define	FREEBSD32_SYS_AUE_freebsd32_timerfd_gettime	AUE_TIMERFD
1314af93fea7SJake Freeland #define	FREEBSD32_SYS_AUE_freebsd32_timerfd_settime	AUE_TIMERFD
1315f8f1f7fbSJohn Baldwin 
13165eb29d9bSDoug Rabson #undef PAD_
13175eb29d9bSDoug Rabson #undef PADL_
13185eb29d9bSDoug Rabson #undef PADR_
13195eb29d9bSDoug Rabson 
132094e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */
1321