xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision 2b9d052d3eeb9ffd1094dc5165eff555b9fd6bc3)
15eb29d9bSDoug Rabson /*
25eb29d9bSDoug Rabson  * System call prototypes.
35eb29d9bSDoug Rabson  *
40e26cd44SEd Maste  * DO NOT EDIT-- this file is automatically @generated.
55eb29d9bSDoug Rabson  * $FreeBSD$
65eb29d9bSDoug Rabson  */
75eb29d9bSDoug Rabson 
894e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_
994e75644SPeter Wemm #define	_FREEBSD32_SYSPROTO_H_
105eb29d9bSDoug Rabson 
115eb29d9bSDoug Rabson #include <sys/signal.h>
125eb29d9bSDoug Rabson #include <sys/acl.h>
135c63b21aSJohn Baldwin #include <sys/cpuset.h>
14af80820aSJeff Roberson #include <sys/domainset.h>
15cf13a585SLawrence Stewart #include <sys/_ffcounter.h>
169f706204SRuslan Ermilov #include <sys/_semaphore.h>
179bc65d35SJohn Baldwin #include <sys/ucontext.h>
189fdb497cSJilles Tjoelker #include <sys/wait.h>
199bc65d35SJohn Baldwin 
20f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h>
21f8f1f7fbSJohn Baldwin 
225eb29d9bSDoug Rabson struct proc;
235eb29d9bSDoug Rabson 
245eb29d9bSDoug Rabson struct thread;
255eb29d9bSDoug Rabson 
265eb29d9bSDoug Rabson #define	PAD_(t)	(sizeof(register_t) <= sizeof(t) ? \
275eb29d9bSDoug Rabson 		0 : sizeof(register_t) - sizeof(t))
285eb29d9bSDoug Rabson 
295eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN
305eb29d9bSDoug Rabson #define	PADL_(t)	0
315eb29d9bSDoug Rabson #define	PADR_(t)	PAD_(t)
325eb29d9bSDoug Rabson #else
335eb29d9bSDoug Rabson #define	PADL_(t)	PAD_(t)
345eb29d9bSDoug Rabson #define	PADR_(t)	0
355eb29d9bSDoug Rabson #endif
365eb29d9bSDoug Rabson 
3721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
38841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
39841c0c7eSNathan Whitehorn #endif
4094e75644SPeter Wemm struct freebsd32_wait4_args {
415eb29d9bSDoug Rabson 	char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
425eb29d9bSDoug Rabson 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
435eb29d9bSDoug Rabson 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
44db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
455eb29d9bSDoug Rabson };
4658b552dcSJohn Baldwin struct freebsd32_ptrace_args {
4758b552dcSJohn Baldwin 	char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
4858b552dcSJohn Baldwin 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
4958b552dcSJohn Baldwin 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
5058b552dcSJohn Baldwin 	char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
5158b552dcSJohn Baldwin };
5215857ef5SPaul Saab struct freebsd32_recvmsg_args {
5315857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
5415857ef5SPaul Saab 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
5515857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
5615857ef5SPaul Saab };
5715857ef5SPaul Saab struct freebsd32_sendmsg_args {
5815857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
59a944d28dSBrooks Davis 	char msg_l_[PADL_(const struct msghdr32 *)]; const struct msghdr32 * msg; char msg_r_[PADR_(const struct msghdr32 *)];
6015857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
6115857ef5SPaul Saab };
6294e75644SPeter Wemm struct freebsd32_sigaltstack_args {
63a944d28dSBrooks Davis 	char ss_l_[PADL_(const struct sigaltstack32 *)]; const struct sigaltstack32 * ss; char ss_r_[PADR_(const struct sigaltstack32 *)];
64db27052eSPeter Wemm 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
655eb29d9bSDoug Rabson };
66663c5800SDavid E. O'Brien struct freebsd32_ioctl_args {
67663c5800SDavid E. O'Brien 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6870c9698fSBrooks Davis 	char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
6970c9698fSBrooks Davis 	char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)];
70663c5800SDavid E. O'Brien };
7194e75644SPeter Wemm struct freebsd32_execve_args {
724e8c73ebSBrooks Davis 	char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
734412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
744412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
755eb29d9bSDoug Rabson };
76f8244106SMarcel Moolenaar struct freebsd32_mprotect_args {
77a944d28dSBrooks Davis 	char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
78f8244106SMarcel Moolenaar 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
79f8244106SMarcel Moolenaar 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
80f8244106SMarcel Moolenaar };
8194e75644SPeter Wemm struct freebsd32_setitimer_args {
828ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
83a944d28dSBrooks Davis 	char itv_l_[PADL_(const struct itimerval32 *)]; const struct itimerval32 * itv; char itv_r_[PADR_(const struct itimerval32 *)];
84db27052eSPeter Wemm 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
855eb29d9bSDoug Rabson };
86996a568eSPeter Wemm struct freebsd32_getitimer_args {
878ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
88996a568eSPeter Wemm 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
89996a568eSPeter Wemm };
905aec07c7SKonstantin Belousov struct freebsd32_fcntl_args {
915aec07c7SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
925aec07c7SKonstantin Belousov 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
935aec07c7SKonstantin Belousov 	char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)];
945aec07c7SKonstantin Belousov };
9594e75644SPeter Wemm struct freebsd32_select_args {
965eb29d9bSDoug Rabson 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
975eb29d9bSDoug Rabson 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
985eb29d9bSDoug Rabson 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
995eb29d9bSDoug Rabson 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
100db27052eSPeter Wemm 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
1015eb29d9bSDoug Rabson };
10294e75644SPeter Wemm struct freebsd32_gettimeofday_args {
103db27052eSPeter Wemm 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
1045eb29d9bSDoug Rabson 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
1055eb29d9bSDoug Rabson };
10694e75644SPeter Wemm struct freebsd32_getrusage_args {
1075eb29d9bSDoug Rabson 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
108db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
1095eb29d9bSDoug Rabson };
11094e75644SPeter Wemm struct freebsd32_readv_args {
1115eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1135eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1145eb29d9bSDoug Rabson };
11594e75644SPeter Wemm struct freebsd32_writev_args {
1165eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
117db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1185eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1195eb29d9bSDoug Rabson };
12094e75644SPeter Wemm struct freebsd32_settimeofday_args {
121a944d28dSBrooks Davis 	char tv_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tv; char tv_r_[PADR_(const struct timeval32 *)];
122a944d28dSBrooks Davis 	char tzp_l_[PADL_(const struct timezone *)]; const struct timezone * tzp; char tzp_r_[PADR_(const struct timezone *)];
1235eb29d9bSDoug Rabson };
12494e75644SPeter Wemm struct freebsd32_utimes_args {
1254e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
126a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
127db27052eSPeter Wemm };
12894e75644SPeter Wemm struct freebsd32_adjtime_args {
129a944d28dSBrooks Davis 	char delta_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * delta; char delta_r_[PADR_(const struct timeval32 *)];
130db27052eSPeter Wemm 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
131db27052eSPeter Wemm };
1329da68040SKonstantin Belousov struct freebsd32_sysarch_args {
1339da68040SKonstantin Belousov 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1349da68040SKonstantin Belousov 	char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
1359da68040SKonstantin Belousov };
13694e75644SPeter Wemm struct freebsd32_semsys_args {
1375eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1385eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1395eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1405eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1415eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1425eb29d9bSDoug Rabson };
14394e75644SPeter Wemm struct freebsd32_msgsys_args {
1445eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1455eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1465eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1475eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1485eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1495eb29d9bSDoug Rabson 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
1505eb29d9bSDoug Rabson };
15194e75644SPeter Wemm struct freebsd32_shmsys_args {
15274f7258fSPaul Saab 	char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
15374f7258fSPaul Saab 	char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
15474f7258fSPaul Saab 	char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
15574f7258fSPaul Saab 	char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
1565eb29d9bSDoug Rabson };
157d7d95c3fSKonstantin Belousov struct freebsd32_ntp_adjtime_args {
158d7d95c3fSKonstantin Belousov 	char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)];
159d7d95c3fSKonstantin Belousov };
16086e06fa5SBrooks Davis struct freebsd32___sysctl_args {
1615eb29d9bSDoug Rabson 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
1625eb29d9bSDoug Rabson 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
1635eb29d9bSDoug Rabson 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
1644412ad48SEd Schouten 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
16521fb6624SOlivier Houchard 	char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)];
166ddae7b9aSBrooks Davis 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
1675eb29d9bSDoug Rabson };
168f06b8643SDoug Ambrisko struct freebsd32_futimes_args {
169f06b8643SDoug Ambrisko 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
170a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
171f06b8643SDoug Ambrisko };
1725e868cbbSJung-uk Kim struct freebsd32_msgsnd_args {
1735e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
174a944d28dSBrooks Davis 	char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)];
1755e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1765e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1775e868cbbSJung-uk Kim };
1785e868cbbSJung-uk Kim struct freebsd32_msgrcv_args {
1795e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1805e868cbbSJung-uk Kim 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
1815e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
182f19e3fd2SBrooks Davis 	char msgtyp_l_[PADL_(int32_t)]; int32_t msgtyp; char msgtyp_r_[PADR_(int32_t)];
1835e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1845e868cbbSJung-uk Kim };
185fd151bb9SPaul Saab struct freebsd32_clock_gettime_args {
186fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
187fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
188fd151bb9SPaul Saab };
189fd151bb9SPaul Saab struct freebsd32_clock_settime_args {
190fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
191fd151bb9SPaul Saab 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
192fd151bb9SPaul Saab };
193fd151bb9SPaul Saab struct freebsd32_clock_getres_args {
194fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
195fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
196fd151bb9SPaul Saab };
19768044954SKonstantin Belousov struct freebsd32_ktimer_create_args {
19868044954SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
19968044954SKonstantin Belousov 	char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
20068044954SKonstantin Belousov 	char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
20168044954SKonstantin Belousov };
20268044954SKonstantin Belousov struct freebsd32_ktimer_settime_args {
20368044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
20468044954SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
20568044954SKonstantin Belousov 	char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
20668044954SKonstantin Belousov 	char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
20768044954SKonstantin Belousov };
20868044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args {
20968044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
21068044954SKonstantin Belousov 	char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
21168044954SKonstantin Belousov };
2127fdf2c85SPaul Saab struct freebsd32_nanosleep_args {
213145f7e60SPaul Saab 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
214145f7e60SPaul Saab 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
2157fdf2c85SPaul Saab };
216e3e811a3SBrooks Davis struct freebsd32_ffclock_setestimate_args {
217e3e811a3SBrooks Davis 	char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
218e3e811a3SBrooks Davis };
219e3e811a3SBrooks Davis struct freebsd32_ffclock_getestimate_args {
220e3e811a3SBrooks Davis 	char cest_l_[PADL_(struct ffclock_estimate32 *)]; struct ffclock_estimate32 * cest; char cest_r_[PADR_(struct ffclock_estimate32 *)];
221e3e811a3SBrooks Davis };
22226f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args {
22326f86ab7SEric van Gyzen 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
22426f86ab7SEric van Gyzen 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
22526f86ab7SEric van Gyzen 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
22626f86ab7SEric van Gyzen 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
22726f86ab7SEric van Gyzen };
228c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args {
229c5d03637SKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
230c5d03637SKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
231c5d03637SKonstantin Belousov 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
232c5d03637SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
233c5d03637SKonstantin Belousov };
2345d8d23c7SJohn Baldwin struct freebsd32_aio_read_args {
2355d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2365d8d23c7SJohn Baldwin };
2375d8d23c7SJohn Baldwin struct freebsd32_aio_write_args {
2385d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2395d8d23c7SJohn Baldwin };
2405d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args {
2415d8d23c7SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2426dcd7db1SBrooks Davis 	char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
2435d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
24468044954SKonstantin Belousov 	char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
2455d8d23c7SJohn Baldwin };
246cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args {
2474e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
248a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
249cac2fa64SDoug Ambrisko };
250d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
251d257e57dSBrooks Davis struct freebsd32_preadv_args {
252d257e57dSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
253d257e57dSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
254d257e57dSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
255d257e57dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
256d257e57dSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
257d257e57dSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
258d257e57dSBrooks Davis };
259d257e57dSBrooks Davis struct freebsd32_pwritev_args {
260d257e57dSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
261d257e57dSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
262d257e57dSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
263d257e57dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
264d257e57dSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
265d257e57dSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
266d257e57dSBrooks Davis };
267d257e57dSBrooks Davis #else
2689f3157a2SJohn Baldwin struct freebsd32_preadv_args {
2699f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2709f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2719f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2724412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2734412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2749f3157a2SJohn Baldwin };
2759f3157a2SJohn Baldwin struct freebsd32_pwritev_args {
2769f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2779f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2789f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2794412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2804412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2819f3157a2SJohn Baldwin };
282d257e57dSBrooks Davis #endif
2830e214fadSPaul Saab struct freebsd32_modstat_args {
2840e214fadSPaul Saab 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
2850e214fadSPaul Saab 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
2860e214fadSPaul Saab };
287eea5c618SKonstantin Belousov struct freebsd32_kldstat_args {
288eea5c618SKonstantin Belousov 	char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
2895d0d6869SBrooks Davis 	char stat_l_[PADL_(struct kld_file_stat32 *)]; struct kld_file_stat32 * stat; char stat_r_[PADR_(struct kld_file_stat32 *)];
290eea5c618SKonstantin Belousov };
2915d8d23c7SJohn Baldwin struct freebsd32_aio_return_args {
2925d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2935d8d23c7SJohn Baldwin };
2945d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args {
2956dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
2965d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
2975d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
2985d8d23c7SJohn Baldwin };
2995d8d23c7SJohn Baldwin struct freebsd32_aio_error_args {
3005d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
3015d8d23c7SJohn Baldwin };
302f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args {
303f2f5c215SKonstantin Belousov 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
304f2f5c215SKonstantin Belousov 	char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
305f2f5c215SKonstantin Belousov };
306c542c43eSJamie Gritton struct freebsd32_jail_args {
307c542c43eSJamie Gritton 	char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
308c542c43eSJamie Gritton };
309312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args {
310312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
31185d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
312a944d28dSBrooks Davis 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
313312a0e5fSDavid Xu };
314312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args {
315312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
31685d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
317312a0e5fSDavid Xu };
3185d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args {
3196dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
3205d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
3215d8d23c7SJohn Baldwin };
322f1287854SDavid E. O'Brien struct freebsd32_nmount_args {
323f1287854SDavid E. O'Brien 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
324f1287854SDavid E. O'Brien 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
325f1287854SDavid E. O'Brien 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
326f1287854SDavid E. O'Brien };
32794e75644SPeter Wemm struct freebsd32_sendfile_args {
3285eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
3295eb29d9bSDoug Rabson 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
3304412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
3314412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
3325eb29d9bSDoug Rabson 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
33326e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
3345eb29d9bSDoug Rabson 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
3355eb29d9bSDoug Rabson 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
3365eb29d9bSDoug Rabson };
33728ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args {
33828ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
33928ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
34028ad01d2SKonstantin Belousov };
34128ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args {
34228ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
34328ad01d2SKonstantin Belousov 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
34428ad01d2SKonstantin Belousov 	char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
34528ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
34628ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
34728ad01d2SKonstantin Belousov };
34894e75644SPeter Wemm struct freebsd32_sigaction_args {
349e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
350a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
351e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
352e14528b3SPeter Wemm };
35394e75644SPeter Wemm struct freebsd32_sigreturn_args {
3546de7c053SBrooks Davis 	char sigcntxp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext32 *)];
35582914097SPeter Wemm };
356a11ea6e3SPeter Wemm struct freebsd32_getcontext_args {
3576de7c053SBrooks Davis 	char ucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * ucp; char ucp_r_[PADR_(struct __ucontext32 *)];
358a11ea6e3SPeter Wemm };
359a11ea6e3SPeter Wemm struct freebsd32_setcontext_args {
3606de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
361a11ea6e3SPeter Wemm };
362a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args {
3636de7c053SBrooks Davis 	char oucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * oucp; char oucp_r_[PADR_(struct __ucontext32 *)];
3646de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
365a11ea6e3SPeter Wemm };
36628ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args {
36728ad01d2SKonstantin Belousov 	char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)];
36828ad01d2SKonstantin Belousov 	char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
36928ad01d2SKonstantin Belousov };
370ac3674aaSDavid Xu struct freebsd32_thr_suspend_args {
371ac3674aaSDavid Xu 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
372ac3674aaSDavid Xu };
373e1e300b6SBrooks Davis struct freebsd32__umtx_op_args {
37427bbb2e7SDavid Xu 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
37527bbb2e7SDavid Xu 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
376034b26fcSDavid Xu 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
377d35a7716SBrooks Davis 	char uaddr1_l_[PADL_(void *)]; void * uaddr1; char uaddr1_r_[PADR_(void *)];
37827bbb2e7SDavid Xu 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
37927bbb2e7SDavid Xu };
380ac3674aaSDavid Xu struct freebsd32_thr_new_args {
381ac3674aaSDavid Xu 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
382ac3674aaSDavid Xu 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
383ac3674aaSDavid Xu };
384e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args {
385e9f32d1dSBrooks Davis 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
386e9f32d1dSBrooks Davis 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
387e9f32d1dSBrooks Davis 	char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
388e9f32d1dSBrooks Davis };
38928ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args {
39028ad01d2SKonstantin Belousov 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
39128ad01d2SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
39228ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
39328ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
39428ad01d2SKonstantin Belousov };
39528ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args {
39628ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
39728ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
39828ad01d2SKonstantin Belousov 	char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
39928ad01d2SKonstantin Belousov };
40028ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args {
40128ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40228ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
40328ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
40428ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
40528ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
40628ad01d2SKonstantin Belousov };
40728ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args {
40828ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40928ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
41028ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
41128ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
41228ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
41328ad01d2SKonstantin Belousov };
41468044954SKonstantin Belousov struct freebsd32_kmq_notify_args {
41568044954SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
41668044954SKonstantin Belousov 	char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
41768044954SKonstantin Belousov };
418e02f64d9SBrooks Davis struct freebsd32_abort2_args {
419e02f64d9SBrooks Davis 	char why_l_[PADL_(const char *)]; const char * why; char why_r_[PADR_(const char *)];
420e02f64d9SBrooks Davis 	char nargs_l_[PADL_(int)]; int nargs; char nargs_r_[PADR_(int)];
421e02f64d9SBrooks Davis 	char args_l_[PADL_(uint32_t *)]; uint32_t * args; char args_r_[PADR_(uint32_t *)];
422e02f64d9SBrooks Davis };
4235d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args {
4245d8d23c7SJohn Baldwin 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
4255d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
4265d8d23c7SJohn Baldwin };
427841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
428486abf93SPeter Wemm struct freebsd32_pread_args {
429486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
430486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
431486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
432841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4334412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4344412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
435486abf93SPeter Wemm };
436486abf93SPeter Wemm struct freebsd32_pwrite_args {
437486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
438486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
439486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
440841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4414412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4424412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
443486abf93SPeter Wemm };
444486abf93SPeter Wemm struct freebsd32_mmap_args {
445938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
446486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
447486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
448486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
449486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
450841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4514412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4524412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
453486abf93SPeter Wemm };
454486abf93SPeter Wemm struct freebsd32_lseek_args {
455486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
456841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4574412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4584412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
459486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
460486abf93SPeter Wemm };
461486abf93SPeter Wemm struct freebsd32_truncate_args {
4624e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
463841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4644412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4654412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
466486abf93SPeter Wemm };
467486abf93SPeter Wemm struct freebsd32_ftruncate_args {
468486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
469841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4704412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4714412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
472486abf93SPeter Wemm };
473841c0c7eSNathan Whitehorn #else
474841c0c7eSNathan Whitehorn struct freebsd32_pread_args {
475841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
476841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
477841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4784412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4794412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
480841c0c7eSNathan Whitehorn };
481841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args {
482841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
483841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
484841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4854412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4864412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
487841c0c7eSNathan Whitehorn };
488841c0c7eSNathan Whitehorn struct freebsd32_mmap_args {
489938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
490841c0c7eSNathan Whitehorn 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
491841c0c7eSNathan Whitehorn 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
492841c0c7eSNathan Whitehorn 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
493841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4944412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4954412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
496841c0c7eSNathan Whitehorn };
497841c0c7eSNathan Whitehorn struct freebsd32_lseek_args {
498841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4994412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
5004412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
501841c0c7eSNathan Whitehorn 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
502841c0c7eSNathan Whitehorn };
503841c0c7eSNathan Whitehorn struct freebsd32_truncate_args {
5044e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
5054412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
5064412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
507841c0c7eSNathan Whitehorn };
508841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args {
509841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5104412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
5114412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
512841c0c7eSNathan Whitehorn };
513841c0c7eSNathan Whitehorn #endif
514841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
515774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args {
516774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
517841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
5184412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5194412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
520774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
521774b72e1SBrooks Davis };
522841c0c7eSNathan Whitehorn #else
523841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args {
524841c0c7eSNathan Whitehorn 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5254412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5264412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
527841c0c7eSNathan Whitehorn 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
528841c0c7eSNathan Whitehorn };
529841c0c7eSNathan Whitehorn #endif
530774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args {
531774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
532774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5334412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5344412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
535774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
536774b72e1SBrooks Davis };
537774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args {
538774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
539774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5404412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5414412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
542774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
543774b72e1SBrooks Davis 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
544774b72e1SBrooks Davis };
545774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args {
546774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
547774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5484412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5494412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
550774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
551774b72e1SBrooks Davis 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
552774b72e1SBrooks Davis };
553f2296b58SKonstantin Belousov struct freebsd32_fexecve_args {
554f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5554412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
5564412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
557f2296b58SKonstantin Belousov };
558f2296b58SKonstantin Belousov struct freebsd32_futimesat_args {
559f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5604e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
561a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * times; char times_r_[PADR_(const struct timeval32 *)];
562f2296b58SKonstantin Belousov };
563fe2f3c65SJamie Gritton struct freebsd32_jail_get_args {
564fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
565fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
566fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
567fe2f3c65SJamie Gritton };
568fe2f3c65SJamie Gritton struct freebsd32_jail_set_args {
569fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
570fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
571fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
572fe2f3c65SJamie Gritton };
5730ebea139SBrooks Davis struct freebsd32___semctl_args {
5743899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
5753899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
5763899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5773899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
5783899e0dfSJohn Baldwin };
5793899e0dfSJohn Baldwin struct freebsd32_msgctl_args {
5803899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
5813899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5823899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
5833899e0dfSJohn Baldwin };
5843899e0dfSJohn Baldwin struct freebsd32_shmctl_args {
5853899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
5863899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5873899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
5883899e0dfSJohn Baldwin };
589063e9958SKonstantin Belousov struct freebsd32_pselect_args {
590063e9958SKonstantin Belousov 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
591063e9958SKonstantin Belousov 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
592063e9958SKonstantin Belousov 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
593063e9958SKonstantin Belousov 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
594063e9958SKonstantin Belousov 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
595063e9958SKonstantin Belousov 	char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
596063e9958SKonstantin Belousov };
597f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
598f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args {
599f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
600f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
601f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
602f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
603f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
604f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
605f85769ebSKonstantin Belousov };
606f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args {
607f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
608f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
609f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
610f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
611f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
612f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
613f85769ebSKonstantin Belousov 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
614f85769ebSKonstantin Belousov };
615f85769ebSKonstantin Belousov struct freebsd32_wait6_args {
6169946c920SBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
617f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
618f85769ebSKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
619f85769ebSKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
620f85769ebSKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
621f85769ebSKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
622b35c2bcaSBrooks Davis 	char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
62385d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
624f85769ebSKonstantin Belousov };
625f85769ebSKonstantin Belousov #else
6267323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args {
6277323776bSMatthew D Fleming 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
628660d55fbSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
629660d55fbSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
630660d55fbSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
631660d55fbSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
6327323776bSMatthew D Fleming };
633cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args {
634cd06ae5cSJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
635cd06ae5cSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
636cd06ae5cSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
637cd06ae5cSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
638cd06ae5cSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
639cd06ae5cSJohn Baldwin 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
640cd06ae5cSJohn Baldwin };
641552e9935SKonstantin Belousov struct freebsd32_wait6_args {
6429946c920SBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
643f85769ebSKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
644f85769ebSKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
645552e9935SKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
646552e9935SKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
647b35c2bcaSBrooks Davis 	char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
64885d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
649552e9935SKonstantin Belousov };
650f85769ebSKonstantin Belousov #endif
651e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args {
652e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
653e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
654e11dc435SPawel Jakub Dawidek 	char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
655e11dc435SPawel Jakub Dawidek };
656e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args {
657e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
658e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
659e11dc435SPawel Jakub Dawidek 	char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
660e11dc435SPawel Jakub Dawidek };
6618d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args {
6628d1aa3c6SGleb Smirnoff 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
6638d1aa3c6SGleb Smirnoff };
664a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
665a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
6669946c920SBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
667a566e8e3SJohn Baldwin 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
668a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
669a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
670a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
671a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
672a566e8e3SJohn Baldwin };
673a566e8e3SJohn Baldwin #else
674a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
6759946c920SBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
676a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
677a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
678a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
679a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
680a566e8e3SJohn Baldwin };
681a566e8e3SJohn Baldwin #endif
682c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args {
683c28d9d0fSDmitry Chagin 	char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
684c28d9d0fSDmitry Chagin 	char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
685c28d9d0fSDmitry Chagin 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
686c28d9d0fSDmitry Chagin 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
687c28d9d0fSDmitry Chagin };
6882b35e6a9SJilles Tjoelker struct freebsd32_futimens_args {
6892b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
690a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6912b35e6a9SJilles Tjoelker };
6922b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args {
6932b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6944e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
695a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6962b35e6a9SJilles Tjoelker 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
6972b35e6a9SJilles Tjoelker };
698ec95c622SKonstantin Belousov struct freebsd32_fstat_args {
699ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
700f1a14110SBrooks Davis 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
701ec95c622SKonstantin Belousov };
702ec95c622SKonstantin Belousov struct freebsd32_fstatat_args {
703ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
7044e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
705ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
706ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
707ec95c622SKonstantin Belousov };
708ec95c622SKonstantin Belousov struct freebsd32_fhstat_args {
709ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
710ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
711ec95c622SKonstantin Belousov };
712*2b9d052dSBrooks Davis struct freebsd32_getfsstat_args {
713*2b9d052dSBrooks Davis 	char buf_l_[PADL_(struct statfs *)]; struct statfs * buf; char buf_r_[PADR_(struct statfs *)];
714*2b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
715*2b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
716*2b9d052dSBrooks Davis };
7174b499c75SBrooks Davis #ifdef PAD64_REQUIRED
7184b499c75SBrooks Davis struct freebsd32_mknodat_args {
7194b499c75SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
7204b499c75SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
7214b499c75SBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
7224b499c75SBrooks Davis 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
7234b499c75SBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
7244b499c75SBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
7254b499c75SBrooks Davis };
7264b499c75SBrooks Davis #else
7274b499c75SBrooks Davis struct freebsd32_mknodat_args {
7284b499c75SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
7294b499c75SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
7304b499c75SBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
7314b499c75SBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
7324b499c75SBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
7334b499c75SBrooks Davis };
7344b499c75SBrooks Davis #endif
735eb84ca64SKonstantin Belousov struct freebsd32_kevent_args {
736eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
737eb84ca64SKonstantin Belousov 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
738eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
739eb84ca64SKonstantin Belousov 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
740eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
741eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
742eb84ca64SKonstantin Belousov };
743af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args {
744af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
745af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
746af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
747af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
748af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
749af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
750af80820aSJeff Roberson 	char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
751af80820aSJeff Roberson };
752af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args {
753af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
754af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
755af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
756af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
757af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
758af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
759af80820aSJeff Roberson 	char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
760af80820aSJeff Roberson };
761d05b53e0SMateusz Guzik struct freebsd32___sysctlbyname_args {
762d05b53e0SMateusz Guzik 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
763d05b53e0SMateusz Guzik 	char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
764d05b53e0SMateusz Guzik 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
765d05b53e0SMateusz Guzik 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
766d05b53e0SMateusz Guzik 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
767d05b53e0SMateusz Guzik 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
768d05b53e0SMateusz Guzik };
76920321e62SAlan Somers struct freebsd32_aio_writev_args {
77020321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
77120321e62SAlan Somers };
77220321e62SAlan Somers struct freebsd32_aio_readv_args {
77320321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
77420321e62SAlan Somers };
775da9fe352SKa Ho Ng struct freebsd32_fspacectl_args {
776da9fe352SKa Ho Ng 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
777da9fe352SKa Ho Ng 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
778da9fe352SKa Ho Ng 	char rqsr_l_[PADL_(const struct spacectl_range32 *)]; const struct spacectl_range32 * rqsr; char rqsr_r_[PADR_(const struct spacectl_range32 *)];
779da9fe352SKa Ho Ng 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
780da9fe352SKa Ho Ng 	char rmsr_l_[PADL_(struct spacectl_range32 *)]; struct spacectl_range32 * rmsr; char rmsr_r_[PADR_(struct spacectl_range32 *)];
781da9fe352SKa Ho Ng };
78221fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
783841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
784841c0c7eSNathan Whitehorn #endif
78594e75644SPeter Wemm int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
78658b552dcSJohn Baldwin int	freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
78715857ef5SPaul Saab int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
78815857ef5SPaul Saab int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
78994e75644SPeter Wemm int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
790663c5800SDavid E. O'Brien int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
79194e75644SPeter Wemm int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
792f8244106SMarcel Moolenaar int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
79394e75644SPeter Wemm int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
794996a568eSPeter Wemm int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
7955aec07c7SKonstantin Belousov int	freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
79694e75644SPeter Wemm int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
79794e75644SPeter Wemm int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
79894e75644SPeter Wemm int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
79994e75644SPeter Wemm int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
80094e75644SPeter Wemm int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
80194e75644SPeter Wemm int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
80294e75644SPeter Wemm int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
80394e75644SPeter Wemm int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
8049da68040SKonstantin Belousov int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
80594e75644SPeter Wemm int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
80694e75644SPeter Wemm int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
80794e75644SPeter Wemm int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
808d7d95c3fSKonstantin Belousov int	freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
80986e06fa5SBrooks Davis int	freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
810f06b8643SDoug Ambrisko int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
8115e868cbbSJung-uk Kim int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
8125e868cbbSJung-uk Kim int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
813fd151bb9SPaul Saab int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
814fd151bb9SPaul Saab int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
815fd151bb9SPaul Saab int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
81668044954SKonstantin Belousov int	freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
81768044954SKonstantin Belousov int	freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
81868044954SKonstantin Belousov int	freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
8197fdf2c85SPaul Saab int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
820e3e811a3SBrooks Davis int	freebsd32_ffclock_setestimate(struct thread *, struct freebsd32_ffclock_setestimate_args *);
821e3e811a3SBrooks Davis int	freebsd32_ffclock_getestimate(struct thread *, struct freebsd32_ffclock_getestimate_args *);
82226f86ab7SEric van Gyzen int	freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
823c5d03637SKonstantin Belousov int	freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
8245d8d23c7SJohn Baldwin int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
8255d8d23c7SJohn Baldwin int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
8265d8d23c7SJohn Baldwin int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
827cac2fa64SDoug Ambrisko int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
828d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
8299f3157a2SJohn Baldwin int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
8309f3157a2SJohn Baldwin int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
831d257e57dSBrooks Davis #else
832d257e57dSBrooks Davis int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
833d257e57dSBrooks Davis int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
834d257e57dSBrooks Davis #endif
8350e214fadSPaul Saab int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
836eea5c618SKonstantin Belousov int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
8375d8d23c7SJohn Baldwin int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
8385d8d23c7SJohn Baldwin int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
8395d8d23c7SJohn Baldwin int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
840f2f5c215SKonstantin Belousov int	freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
841c542c43eSJamie Gritton int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
842312a0e5fSDavid Xu int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
843312a0e5fSDavid Xu int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
8445d8d23c7SJohn Baldwin int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
845f1287854SDavid E. O'Brien int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
84694e75644SPeter Wemm int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
84728ad01d2SKonstantin Belousov int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
84828ad01d2SKonstantin Belousov int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
84994e75644SPeter Wemm int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
85094e75644SPeter Wemm int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
851a11ea6e3SPeter Wemm int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
852a11ea6e3SPeter Wemm int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
853a11ea6e3SPeter Wemm int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
85428ad01d2SKonstantin Belousov int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
855ac3674aaSDavid Xu int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
856e1e300b6SBrooks Davis int	freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
857ac3674aaSDavid Xu int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
858e9f32d1dSBrooks Davis int	freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
85928ad01d2SKonstantin Belousov int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
86028ad01d2SKonstantin Belousov int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
86128ad01d2SKonstantin Belousov int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
86228ad01d2SKonstantin Belousov int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
86368044954SKonstantin Belousov int	freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
864e02f64d9SBrooks Davis int	freebsd32_abort2(struct thread *, struct freebsd32_abort2_args *);
8655d8d23c7SJohn Baldwin int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
866841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
867486abf93SPeter Wemm int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
868486abf93SPeter Wemm int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
869486abf93SPeter Wemm int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
870486abf93SPeter Wemm int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
871486abf93SPeter Wemm int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
872486abf93SPeter Wemm int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
873841c0c7eSNathan Whitehorn #else
874841c0c7eSNathan Whitehorn int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
875841c0c7eSNathan Whitehorn int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
876841c0c7eSNathan Whitehorn int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
877841c0c7eSNathan Whitehorn int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
878841c0c7eSNathan Whitehorn int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
879841c0c7eSNathan Whitehorn int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
880841c0c7eSNathan Whitehorn #endif
881841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
882774b72e1SBrooks Davis int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
883841c0c7eSNathan Whitehorn #else
884841c0c7eSNathan Whitehorn int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
885841c0c7eSNathan Whitehorn #endif
886774b72e1SBrooks Davis int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
887774b72e1SBrooks Davis int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
888774b72e1SBrooks Davis int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
889f2296b58SKonstantin Belousov int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
890f2296b58SKonstantin Belousov int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
891fe2f3c65SJamie Gritton int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
892fe2f3c65SJamie Gritton int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
8930ebea139SBrooks Davis int	freebsd32___semctl(struct thread *, struct freebsd32___semctl_args *);
8943899e0dfSJohn Baldwin int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
8953899e0dfSJohn Baldwin int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
896063e9958SKonstantin Belousov int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
897f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
8987323776bSMatthew D Fleming int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
899cd06ae5cSJohn Baldwin int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
900552e9935SKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
901f85769ebSKonstantin Belousov #else
902f85769ebSKonstantin Belousov int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
903f85769ebSKonstantin Belousov int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
904f85769ebSKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
905f85769ebSKonstantin Belousov #endif
906e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
907e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
9088d1aa3c6SGleb Smirnoff int	freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
909a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
910a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
911a566e8e3SJohn Baldwin #else
912a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
913a566e8e3SJohn Baldwin #endif
914c28d9d0fSDmitry Chagin int	freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
9152b35e6a9SJilles Tjoelker int	freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
9162b35e6a9SJilles Tjoelker int	freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
917ec95c622SKonstantin Belousov int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
918ec95c622SKonstantin Belousov int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
919ec95c622SKonstantin Belousov int	freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
920*2b9d052dSBrooks Davis int	freebsd32_getfsstat(struct thread *, struct freebsd32_getfsstat_args *);
9214b499c75SBrooks Davis #ifdef PAD64_REQUIRED
9224b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
9234b499c75SBrooks Davis #else
9244b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
9254b499c75SBrooks Davis #endif
926eb84ca64SKonstantin Belousov int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
927af80820aSJeff Roberson int	freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
928af80820aSJeff Roberson int	freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
929d05b53e0SMateusz Guzik int	freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
93020321e62SAlan Somers int	freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
93120321e62SAlan Somers int	freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
932da9fe352SKa Ho Ng int	freebsd32_fspacectl(struct thread *, struct freebsd32_fspacectl_args *);
9335eb29d9bSDoug Rabson 
9345eb29d9bSDoug Rabson #ifdef COMPAT_43
9355eb29d9bSDoug Rabson 
93621fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
937841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
938841c0c7eSNathan Whitehorn #endif
939160e5953SKonstantin Belousov struct ofreebsd32_lseek_args {
940160e5953SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
941f19e3fd2SBrooks Davis 	char offset_l_[PADL_(int32_t)]; int32_t offset; char offset_r_[PADR_(int32_t)];
942160e5953SKonstantin Belousov 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
943160e5953SKonstantin Belousov };
944c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args {
9454e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
946c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
947c3b2c052SKonstantin Belousov };
948c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args {
9494e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
950381f6804SBrooks Davis 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
951c3b2c052SKonstantin Belousov };
952946bca4fSPeter Wemm struct ofreebsd32_sigaction_args {
953946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
954946bca4fSPeter Wemm 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
955946bca4fSPeter Wemm 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
956946bca4fSPeter Wemm };
957c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args {
958c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
959ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct ostat32 *)]; struct ostat32 * sb; char sb_r_[PADR_(struct ostat32 *)];
960c3b2c052SKonstantin Belousov };
9619df4e7e2SBrooks Davis struct ofreebsd32_mmap_args {
9629df4e7e2SBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
9639df4e7e2SBrooks Davis 	char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
9649df4e7e2SBrooks Davis 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
9659df4e7e2SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9669df4e7e2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9679df4e7e2SBrooks Davis 	char pos_l_[PADL_(int32_t)]; int32_t pos; char pos_r_[PADR_(int32_t)];
9689df4e7e2SBrooks Davis };
969c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args {
970c3b2c052SKonstantin Belousov 	char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
971c3b2c052SKonstantin Belousov };
972946bca4fSPeter Wemm struct ofreebsd32_sigvec_args {
973946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
974946bca4fSPeter Wemm 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
975946bca4fSPeter Wemm 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
976946bca4fSPeter Wemm };
977946bca4fSPeter Wemm struct ofreebsd32_sigstack_args {
978946bca4fSPeter Wemm 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
979946bca4fSPeter Wemm 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
980946bca4fSPeter Wemm };
981f089a2f3SBrooks Davis struct ofreebsd32_recvmsg_args {
982f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
983f089a2f3SBrooks Davis 	char msg_l_[PADL_(struct omsghdr32 *)]; struct omsghdr32 * msg; char msg_r_[PADR_(struct omsghdr32 *)];
984f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
985f089a2f3SBrooks Davis };
986f089a2f3SBrooks Davis struct ofreebsd32_sendmsg_args {
987f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
988f089a2f3SBrooks Davis 	char msg_l_[PADL_(const struct omsghdr32 *)]; const struct omsghdr32 * msg; char msg_r_[PADR_(const struct omsghdr32 *)];
989f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
990f089a2f3SBrooks Davis };
991f19e3fd2SBrooks Davis struct ofreebsd32_truncate_args {
992f19e3fd2SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
993f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
994f19e3fd2SBrooks Davis };
995f19e3fd2SBrooks Davis struct ofreebsd32_ftruncate_args {
996f19e3fd2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
997f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
998f19e3fd2SBrooks Davis };
999f19e3fd2SBrooks Davis struct ofreebsd32_sethostid_args {
1000f19e3fd2SBrooks Davis 	char hostid_l_[PADL_(int32_t)]; int32_t hostid; char hostid_r_[PADR_(int32_t)];
1001f19e3fd2SBrooks Davis };
1002c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args {
1003c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1004c3b2c052SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1005c3b2c052SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1006f19e3fd2SBrooks Davis 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1007c3b2c052SKonstantin Belousov };
1008841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1009841c0c7eSNathan Whitehorn #else
1010841c0c7eSNathan Whitehorn #endif
1011841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1012841c0c7eSNathan Whitehorn #else
1013841c0c7eSNathan Whitehorn #endif
1014f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1015f85769ebSKonstantin Belousov #else
1016f85769ebSKonstantin Belousov #endif
1017a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1018a566e8e3SJohn Baldwin #else
1019a566e8e3SJohn Baldwin #endif
10204b499c75SBrooks Davis #ifdef PAD64_REQUIRED
10214b499c75SBrooks Davis #else
10224b499c75SBrooks Davis #endif
1023d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1024d257e57dSBrooks Davis #else
1025d257e57dSBrooks Davis #endif
1026160e5953SKonstantin Belousov int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
1027c3b2c052SKonstantin Belousov int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
1028c3b2c052SKonstantin Belousov int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
1029946bca4fSPeter Wemm int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
1030c3b2c052SKonstantin Belousov int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
10319df4e7e2SBrooks Davis int	ofreebsd32_mmap(struct thread *, struct ofreebsd32_mmap_args *);
1032c3b2c052SKonstantin Belousov int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
1033946bca4fSPeter Wemm int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
1034946bca4fSPeter Wemm int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
1035f089a2f3SBrooks Davis int	ofreebsd32_recvmsg(struct thread *, struct ofreebsd32_recvmsg_args *);
1036f089a2f3SBrooks Davis int	ofreebsd32_sendmsg(struct thread *, struct ofreebsd32_sendmsg_args *);
1037f19e3fd2SBrooks Davis int	ofreebsd32_truncate(struct thread *, struct ofreebsd32_truncate_args *);
1038f19e3fd2SBrooks Davis int	ofreebsd32_ftruncate(struct thread *, struct ofreebsd32_ftruncate_args *);
1039f19e3fd2SBrooks Davis int	ofreebsd32_sethostid(struct thread *, struct ofreebsd32_sethostid_args *);
1040c3b2c052SKonstantin Belousov int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
10415eb29d9bSDoug Rabson 
10425eb29d9bSDoug Rabson #endif /* COMPAT_43 */
10435eb29d9bSDoug Rabson 
10440c5bd5f9SEdward Tomasz Napierala 
1045db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4
1046db27052eSPeter Wemm 
104721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1048841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1049841c0c7eSNathan Whitehorn #endif
10505b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args {
10512e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
1052f19e3fd2SBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
10531fabda45SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
10545b3283b0SPeter Wemm };
10555b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args {
10564e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
10572e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
10585b3283b0SPeter Wemm };
10595b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args {
10605b3283b0SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
10612e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
10625b3283b0SPeter Wemm };
1063d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1064d257e57dSBrooks Davis #else
1065d257e57dSBrooks Davis #endif
10665b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args {
10675b3283b0SPeter Wemm 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
10682e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
10695b3283b0SPeter Wemm };
107094e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args {
10719105d26bSPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
10729105d26bSPeter Wemm 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
10734412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
10744412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
10759105d26bSPeter Wemm 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
107626e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
10779105d26bSPeter Wemm 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
10789105d26bSPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
10799105d26bSPeter Wemm };
108094e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args {
1081e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1082a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
1083e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
1084e14528b3SPeter Wemm };
108594e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args {
10865fdbd21dSBrooks Davis 	char sigcntxp_l_[PADL_(const struct freebsd4_ucontext32 *)]; const struct freebsd4_ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_ucontext32 *)];
1087e14528b3SPeter Wemm };
1088841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1089841c0c7eSNathan Whitehorn #else
1090841c0c7eSNathan Whitehorn #endif
1091841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1092841c0c7eSNathan Whitehorn #else
1093841c0c7eSNathan Whitehorn #endif
1094f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1095f85769ebSKonstantin Belousov #else
1096f85769ebSKonstantin Belousov #endif
1097a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1098a566e8e3SJohn Baldwin #else
1099a566e8e3SJohn Baldwin #endif
11004b499c75SBrooks Davis #ifdef PAD64_REQUIRED
11014b499c75SBrooks Davis #else
11024b499c75SBrooks Davis #endif
11035b3283b0SPeter Wemm int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
11045b3283b0SPeter Wemm int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
11055b3283b0SPeter Wemm int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
11065b3283b0SPeter Wemm int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
110794e75644SPeter Wemm int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
110894e75644SPeter Wemm int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
110994e75644SPeter Wemm int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
1110db27052eSPeter Wemm 
1111db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */
1112db27052eSPeter Wemm 
11130c5bd5f9SEdward Tomasz Napierala 
1114718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6
1115486abf93SPeter Wemm 
111621fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1117841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1118841c0c7eSNathan Whitehorn #endif
1119486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args {
1120486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1121486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
1122486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1123486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11244412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
11254412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1126486abf93SPeter Wemm };
1127486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args {
1128486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1129486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
1130486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1131486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11324412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
11334412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1134486abf93SPeter Wemm };
1135486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args {
1136938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
1137486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
1138486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
1139486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1140486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1141486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11424412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
11434412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
1144486abf93SPeter Wemm };
1145486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args {
1146486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1147486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11484412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
11494412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1150486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
1151486abf93SPeter Wemm };
1152486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args {
11534e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1154486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11554412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
11564412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1157486abf93SPeter Wemm };
1158486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args {
1159486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1160486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11614412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
11624412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1163486abf93SPeter Wemm };
1164d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1165d257e57dSBrooks Davis #else
1166d257e57dSBrooks Davis #endif
11678d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args {
11688d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
11698d91acedSJohn Baldwin };
11708d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args {
11718d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
11728d91acedSJohn Baldwin };
11738d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args {
11748d91acedSJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
11756dcd7db1SBrooks Davis 	char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
11768d91acedSJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
11778d91acedSJohn Baldwin 	char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
11788d91acedSJohn Baldwin };
1179841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1180841c0c7eSNathan Whitehorn #else
1181841c0c7eSNathan Whitehorn #endif
1182841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1183841c0c7eSNathan Whitehorn #else
1184841c0c7eSNathan Whitehorn #endif
1185f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1186f85769ebSKonstantin Belousov #else
1187f85769ebSKonstantin Belousov #endif
1188a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1189a566e8e3SJohn Baldwin #else
1190a566e8e3SJohn Baldwin #endif
11914b499c75SBrooks Davis #ifdef PAD64_REQUIRED
11924b499c75SBrooks Davis #else
11934b499c75SBrooks Davis #endif
1194486abf93SPeter Wemm int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1195486abf93SPeter Wemm int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1196486abf93SPeter Wemm int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1197486abf93SPeter Wemm int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1198486abf93SPeter Wemm int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1199486abf93SPeter Wemm int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
12008d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
12018d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
12028d91acedSJohn Baldwin int	freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1203486abf93SPeter Wemm 
1204718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */
1205486abf93SPeter Wemm 
12060c5bd5f9SEdward Tomasz Napierala 
12078ffab864SWarner Losh #ifdef COMPAT_FREEBSD7
12083899e0dfSJohn Baldwin 
120921fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1210841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1211841c0c7eSNathan Whitehorn #endif
12120ebea139SBrooks Davis struct freebsd7_freebsd32___semctl_args {
12133899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
12143899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
12153899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1216e5b09976SBrooks Davis 	char arg_l_[PADL_(union semun_old32 *)]; union semun_old32 * arg; char arg_r_[PADR_(union semun_old32 *)];
12173899e0dfSJohn Baldwin };
12183899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args {
12193899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
12203899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
12213b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct msqid_ds_old32 *)]; struct msqid_ds_old32 * buf; char buf_r_[PADR_(struct msqid_ds_old32 *)];
12223899e0dfSJohn Baldwin };
12233899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args {
12243899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
12253899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
12263b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct shmid_ds_old32 *)]; struct shmid_ds_old32 * buf; char buf_r_[PADR_(struct shmid_ds_old32 *)];
12273899e0dfSJohn Baldwin };
1228841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1229841c0c7eSNathan Whitehorn #else
1230841c0c7eSNathan Whitehorn #endif
1231841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1232841c0c7eSNathan Whitehorn #else
1233841c0c7eSNathan Whitehorn #endif
1234f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1235f85769ebSKonstantin Belousov #else
1236f85769ebSKonstantin Belousov #endif
1237a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1238a566e8e3SJohn Baldwin #else
1239a566e8e3SJohn Baldwin #endif
12404b499c75SBrooks Davis #ifdef PAD64_REQUIRED
12414b499c75SBrooks Davis #else
12424b499c75SBrooks Davis #endif
1243d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1244d257e57dSBrooks Davis #else
1245d257e57dSBrooks Davis #endif
12460ebea139SBrooks Davis int	freebsd7_freebsd32___semctl(struct thread *, struct freebsd7_freebsd32___semctl_args *);
12473899e0dfSJohn Baldwin int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
12483899e0dfSJohn Baldwin int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
12493899e0dfSJohn Baldwin 
12508ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */
12513899e0dfSJohn Baldwin 
12520c5bd5f9SEdward Tomasz Napierala 
1253a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10
1254a72c64b0SBrooks Davis 
125521fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1256a72c64b0SBrooks Davis #define PAD64_REQUIRED
1257a72c64b0SBrooks Davis #endif
1258d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1259d257e57dSBrooks Davis #else
1260d257e57dSBrooks Davis #endif
1261273728b1SKonstantin Belousov struct freebsd10_freebsd32_umtx_lock_args {
1262273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1263273728b1SKonstantin Belousov };
1264273728b1SKonstantin Belousov struct freebsd10_freebsd32_umtx_unlock_args {
1265273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1266273728b1SKonstantin Belousov };
1267a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1268a72c64b0SBrooks Davis #else
1269a72c64b0SBrooks Davis #endif
1270a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1271a72c64b0SBrooks Davis #else
1272a72c64b0SBrooks Davis #endif
1273a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1274a72c64b0SBrooks Davis #else
1275a72c64b0SBrooks Davis #endif
1276a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1277a72c64b0SBrooks Davis #else
1278a72c64b0SBrooks Davis #endif
12794b499c75SBrooks Davis #ifdef PAD64_REQUIRED
12804b499c75SBrooks Davis #else
12814b499c75SBrooks Davis #endif
1282273728b1SKonstantin Belousov int	freebsd10_freebsd32_umtx_lock(struct thread *, struct freebsd10_freebsd32_umtx_lock_args *);
1283273728b1SKonstantin Belousov int	freebsd10_freebsd32_umtx_unlock(struct thread *, struct freebsd10_freebsd32_umtx_unlock_args *);
1284a72c64b0SBrooks Davis 
1285a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */
1286a72c64b0SBrooks Davis 
12870c5bd5f9SEdward Tomasz Napierala 
1288ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11
1289ec95c622SKonstantin Belousov 
129021fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1291ec95c622SKonstantin Belousov #define PAD64_REQUIRED
1292ec95c622SKonstantin Belousov #endif
1293ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args {
12944e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1295ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1296ec95c622SKonstantin Belousov };
1297ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args {
1298ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1299ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1300ec95c622SKonstantin Belousov };
1301ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args {
13024e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1303ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1304ec95c622SKonstantin Belousov };
1305ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args {
1306ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1307ec95c622SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1308ec95c622SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1309ec95c622SKonstantin Belousov 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1310ec95c622SKonstantin Belousov };
1311d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1312d257e57dSBrooks Davis #else
1313d257e57dSBrooks Davis #endif
1314ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args {
1315ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1316ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1317ec95c622SKonstantin Belousov };
1318eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args {
1319eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
13203f8ced5bSBrooks Davis 	char changelist_l_[PADL_(const struct freebsd11_kevent32 *)]; const struct freebsd11_kevent32 * changelist; char changelist_r_[PADR_(const struct freebsd11_kevent32 *)];
1321eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
13223f8ced5bSBrooks Davis 	char eventlist_l_[PADL_(struct freebsd11_kevent32 *)]; struct freebsd11_kevent32 * eventlist; char eventlist_r_[PADR_(struct freebsd11_kevent32 *)];
1323eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1324eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1325eb84ca64SKonstantin Belousov };
1326*2b9d052dSBrooks Davis struct freebsd11_freebsd32_getfsstat_args {
1327*2b9d052dSBrooks Davis 	char buf_l_[PADL_(struct freebsd11_statfs *)]; struct freebsd11_statfs * buf; char buf_r_[PADR_(struct freebsd11_statfs *)];
1328*2b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
1329*2b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1330*2b9d052dSBrooks Davis };
1331ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1332ec95c622SKonstantin Belousov #else
1333ec95c622SKonstantin Belousov #endif
1334ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1335ec95c622SKonstantin Belousov #else
1336ec95c622SKonstantin Belousov #endif
1337ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args {
1338ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
13394e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1340ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1341ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1342ec95c622SKonstantin Belousov };
1343ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1344ec95c622SKonstantin Belousov #else
1345ec95c622SKonstantin Belousov #endif
1346ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1347ec95c622SKonstantin Belousov #else
1348ec95c622SKonstantin Belousov #endif
13494b499c75SBrooks Davis #ifdef PAD64_REQUIRED
13504b499c75SBrooks Davis #else
13514b499c75SBrooks Davis #endif
1352ec95c622SKonstantin Belousov int	freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1353ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1354ec95c622SKonstantin Belousov int	freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1355ec95c622SKonstantin Belousov int	freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1356ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1357eb84ca64SKonstantin Belousov int	freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
1358*2b9d052dSBrooks Davis int	freebsd11_freebsd32_getfsstat(struct thread *, struct freebsd11_freebsd32_getfsstat_args *);
1359ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1360ec95c622SKonstantin Belousov 
1361ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */
1362ec95c622SKonstantin Belousov 
13630c5bd5f9SEdward Tomasz Napierala 
1364d19f028eSKyle Evans #ifdef COMPAT_FREEBSD12
1365d19f028eSKyle Evans 
1366d19f028eSKyle Evans #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1367d19f028eSKyle Evans #define PAD64_REQUIRED
1368d19f028eSKyle Evans #endif
1369d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1370d19f028eSKyle Evans #else
1371d19f028eSKyle Evans #endif
1372d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1373d19f028eSKyle Evans #else
1374d19f028eSKyle Evans #endif
1375d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1376d19f028eSKyle Evans #else
1377d19f028eSKyle Evans #endif
1378d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1379d19f028eSKyle Evans #else
1380d19f028eSKyle Evans #endif
1381d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1382d19f028eSKyle Evans #else
1383d19f028eSKyle Evans #endif
1384d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
1385d257e57dSBrooks Davis #else
1386d257e57dSBrooks Davis #endif
1387d19f028eSKyle Evans 
1388d19f028eSKyle Evans #endif /* COMPAT_FREEBSD12 */
1389d19f028eSKyle Evans 
1390f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
1391e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
1392160e5953SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
139358b552dcSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_ptrace	AUE_PTRACE
1394f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
1395f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
1396c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
1397c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
1398e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
1399da7cbdc2SRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
1400d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_IOCTL
1401f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
1402c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
14039df4e7e2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_mmap	AUE_MMAP
1404f8244106SMarcel Moolenaar #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
1405f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
1406f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
14075aec07c7SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fcntl	AUE_FCNTL
1408f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
1409d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_SIGRETURN
1410e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_O_SIGVEC
1411e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_O_SIGSTACK
1412f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_recvmsg	AUE_RECVMSG
1413f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sendmsg	AUE_SENDMSG
1414f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
1415f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
1416f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
1417f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
1418f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
1419f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_truncate	AUE_TRUNCATE
1420f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_ftruncate	AUE_FTRUNCATE
1421f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
1422f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
1423f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sethostid	AUE_SYSCTL
1424c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
1425e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
1426e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
14279da68040SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
1428f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
1429f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
1430f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
1431e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
1432e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
1433d7d95c3fSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime	AUE_NTP_ADJTIME
1434ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat	AUE_STAT
1435ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat	AUE_FSTAT
1436ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat	AUE_LSTAT
1437ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries	AUE_GETDIRENTRIES
1438e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1439e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1440e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1441e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
144286e06fa5SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___sysctl	AUE_SYSCTL
1443f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
14440ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32___semctl	AUE_SEMCTL
14453899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
14465e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
14475e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
14483899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1449f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1450f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1451f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
145268044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_create	AUE_NULL
145368044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_settime	AUE_NULL
145468044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime	AUE_NULL
1455f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
1456e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_setestimate	AUE_NULL
1457e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_getestimate	AUE_NULL
145826f86ab7SEric van Gyzen #define	FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep	AUE_NULL
1459c5d03637SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2	AUE_NULL
1460d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_AIO_READ
1461d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_AIO_WRITE
1462d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_LIO_LISTIO
1463f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1464f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1465f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1466d257e57dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1467d257e57dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1468e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1469ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat	AUE_FHSTAT
1470f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1471eea5c618SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
1472d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_AIO_RETURN
1473d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_AIO_SUSPEND
1474d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_AIO_ERROR
1475d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read	AUE_AIO_READ
1476d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write	AUE_AIO_WRITE
1477d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio	AUE_LIO_LISTIO
1478f2f5c215SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval	AUE_NULL
1479e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1480c542c43eSJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1481e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1482e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1483312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1484312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
1485d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_AIO_WAITCOMPLETE
1486eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent	AUE_KEVENT
1487f1287854SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1488e482025eSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
1489*2b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getfsstat	AUE_GETFSSTAT
1490d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_SEMINIT
1491d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_SEMOPEN
1492f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1493f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1494f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1495f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1496f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
1497273728b1SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_lock	AUE_NULL
1498273728b1SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_unlock	AUE_NULL
1499d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_SEMWAIT
1500ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
1501e1e300b6SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32__umtx_op	AUE_NULL
1502d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_THR_NEW
1503e9f32d1dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_sigqueue	AUE_NULL
1504d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_MQ_OPEN
1505d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_MQ_SETATTR
1506d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_MQ_TIMEDRECEIVE
1507d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_MQ_TIMEDSEND
1508d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_notify	AUE_MQ_NOTIFY
1509e02f64d9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_abort2	AUE_NULL
1510d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_AIO_FSYNC
1511486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1512486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1513486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1514486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1515486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1516486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1517841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1518841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1519841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1520841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1521841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1522841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1523841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1524774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1525774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1526774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1527774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1528f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1529ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat	AUE_FSTATAT
1530f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1531d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_JAIL_GET
1532d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_JAIL_SET
15330ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___semctl	AUE_SEMCTL
15343899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
15353899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
1536063e9958SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
1537d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1538d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1539552e9935SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1540d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1541d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1542f85769ebSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1543e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit	AUE_CAP_IOCTLS_LIMIT
1544e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get	AUE_CAP_IOCTLS_GET
1545d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_mlock	AUE_AIO_MLOCK
1546d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1547d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1548c28d9d0fSDmitry Chagin #define	FREEBSD32_SYS_AUE_freebsd32_ppoll	AUE_POLL
15492b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_futimens	AUE_FUTIMES
15502b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_utimensat	AUE_FUTIMESAT
1551ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
1552ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1553ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fhstat	AUE_FHSTAT
1554*2b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_getfsstat	AUE_GETFSSTAT
15554b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
15564b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
1557eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_KEVENT
1558af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain	AUE_NULL
1559af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain	AUE_NULL
1560d05b53e0SMateusz Guzik #define	FREEBSD32_SYS_AUE_freebsd32___sysctlbyname	AUE_SYSCTL
156120321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_writev	AUE_AIO_WRITEV
156220321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_readv	AUE_AIO_READV
1563da9fe352SKa Ho Ng #define	FREEBSD32_SYS_AUE_freebsd32_fspacectl	AUE_FSPACECTL
1564f8f1f7fbSJohn Baldwin 
15655eb29d9bSDoug Rabson #undef PAD_
15665eb29d9bSDoug Rabson #undef PADL_
15675eb29d9bSDoug Rabson #undef PADR_
15685eb29d9bSDoug Rabson 
156994e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */
1570