xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision 0e765d9b08dcc2386b799815f2c835c97a93614c)
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 {
77*0e765d9bSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(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)];
938460d3e9SBrooks Davis 	char arg_l_[PADL_(int32_t)]; int32_t arg; char arg_r_[PADR_(int32_t)];
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 {
1528460d3e9SBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1538460d3e9SBrooks Davis 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1548460d3e9SBrooks Davis 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1558460d3e9SBrooks Davis 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
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 };
25030bc335aSBrooks Davis struct freebsd32_preadv_args {
25130bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
25230bc335aSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
25330bc335aSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
254d257e57dSBrooks Davis #ifdef PAD64_REQUIRED
255d257e57dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
256d257e57dSBrooks Davis #endif
25730bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
25830bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
25930bc335aSBrooks Davis };
26030bc335aSBrooks Davis struct freebsd32_pwritev_args {
26130bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
26230bc335aSBrooks Davis 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
26330bc335aSBrooks Davis 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
26430bc335aSBrooks Davis #ifdef PAD64_REQUIRED
26530bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
26630bc335aSBrooks Davis #endif
26730bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
26830bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
26930bc335aSBrooks Davis };
2700e214fadSPaul Saab struct freebsd32_modstat_args {
2710e214fadSPaul Saab 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
2720e214fadSPaul Saab 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
2730e214fadSPaul Saab };
274eea5c618SKonstantin Belousov struct freebsd32_kldstat_args {
275eea5c618SKonstantin Belousov 	char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
2765d0d6869SBrooks Davis 	char stat_l_[PADL_(struct kld_file_stat32 *)]; struct kld_file_stat32 * stat; char stat_r_[PADR_(struct kld_file_stat32 *)];
277eea5c618SKonstantin Belousov };
2785d8d23c7SJohn Baldwin struct freebsd32_aio_return_args {
2795d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2805d8d23c7SJohn Baldwin };
2815d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args {
2826dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
2835d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
2845d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
2855d8d23c7SJohn Baldwin };
2865d8d23c7SJohn Baldwin struct freebsd32_aio_error_args {
2875d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2885d8d23c7SJohn Baldwin };
289f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args {
290f2f5c215SKonstantin Belousov 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
291f2f5c215SKonstantin Belousov 	char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
292f2f5c215SKonstantin Belousov };
293c542c43eSJamie Gritton struct freebsd32_jail_args {
294c542c43eSJamie Gritton 	char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
295c542c43eSJamie Gritton };
296312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args {
297312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
29885d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
299a944d28dSBrooks Davis 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
300312a0e5fSDavid Xu };
301312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args {
302312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
30385d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
304312a0e5fSDavid Xu };
3055d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args {
3066dcd7db1SBrooks Davis 	char aiocbp_l_[PADL_(uint32_t *)]; uint32_t * aiocbp; char aiocbp_r_[PADR_(uint32_t *)];
3075d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
3085d8d23c7SJohn Baldwin };
309f1287854SDavid E. O'Brien struct freebsd32_nmount_args {
310f1287854SDavid E. O'Brien 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
311f1287854SDavid E. O'Brien 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
312f1287854SDavid E. O'Brien 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
313f1287854SDavid E. O'Brien };
31494e75644SPeter Wemm struct freebsd32_sendfile_args {
3155eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
3165eb29d9bSDoug Rabson 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
3174412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
3184412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
3195eb29d9bSDoug Rabson 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
32026e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
3215eb29d9bSDoug Rabson 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
3225eb29d9bSDoug Rabson 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
3235eb29d9bSDoug Rabson };
32428ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args {
325265a4b83SBrooks Davis 	char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
32628ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
32728ad01d2SKonstantin Belousov };
32828ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args {
329265a4b83SBrooks Davis 	char idp_l_[PADL_(int32_t *)]; int32_t * idp; char idp_r_[PADR_(int32_t *)];
33028ad01d2SKonstantin Belousov 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
33128ad01d2SKonstantin Belousov 	char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
33228ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
33328ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
33428ad01d2SKonstantin Belousov };
33594e75644SPeter Wemm struct freebsd32_sigaction_args {
336e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
337a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
338e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
339e14528b3SPeter Wemm };
34094e75644SPeter Wemm struct freebsd32_sigreturn_args {
3416de7c053SBrooks Davis 	char sigcntxp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext32 *)];
34282914097SPeter Wemm };
343a11ea6e3SPeter Wemm struct freebsd32_getcontext_args {
3446de7c053SBrooks Davis 	char ucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * ucp; char ucp_r_[PADR_(struct __ucontext32 *)];
345a11ea6e3SPeter Wemm };
346a11ea6e3SPeter Wemm struct freebsd32_setcontext_args {
3476de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
348a11ea6e3SPeter Wemm };
349a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args {
3506de7c053SBrooks Davis 	char oucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * oucp; char oucp_r_[PADR_(struct __ucontext32 *)];
3516de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
352a11ea6e3SPeter Wemm };
35328ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args {
354265a4b83SBrooks Davis 	char id_l_[PADL_(int32_t)]; int32_t id; char id_r_[PADR_(int32_t)];
35528ad01d2SKonstantin Belousov 	char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
35628ad01d2SKonstantin Belousov };
357ac3674aaSDavid Xu struct freebsd32_thr_suspend_args {
358ac3674aaSDavid Xu 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
359ac3674aaSDavid Xu };
360e1e300b6SBrooks Davis struct freebsd32__umtx_op_args {
36127bbb2e7SDavid Xu 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
36227bbb2e7SDavid Xu 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
363034b26fcSDavid Xu 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
364d35a7716SBrooks Davis 	char uaddr1_l_[PADL_(void *)]; void * uaddr1; char uaddr1_r_[PADR_(void *)];
36527bbb2e7SDavid Xu 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
36627bbb2e7SDavid Xu };
367ac3674aaSDavid Xu struct freebsd32_thr_new_args {
368ac3674aaSDavid Xu 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
369ac3674aaSDavid Xu 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
370ac3674aaSDavid Xu };
371e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args {
372e9f32d1dSBrooks Davis 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
373e9f32d1dSBrooks Davis 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
374158dcd73SBrooks Davis 	char value_l_[PADL_(void *)]; void * value; char value_r_[PADR_(void *)];
375e9f32d1dSBrooks Davis };
37628ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args {
37728ad01d2SKonstantin Belousov 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
37828ad01d2SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
37928ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
38028ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38128ad01d2SKonstantin Belousov };
38228ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args {
38328ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
38428ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38528ad01d2SKonstantin Belousov 	char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
38628ad01d2SKonstantin Belousov };
38728ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args {
38828ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
38928ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
39028ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
39128ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
39228ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
39328ad01d2SKonstantin Belousov };
39428ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args {
39528ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
39628ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
39728ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
39828ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
39928ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
40028ad01d2SKonstantin Belousov };
40168044954SKonstantin Belousov struct freebsd32_kmq_notify_args {
40268044954SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40368044954SKonstantin Belousov 	char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
40468044954SKonstantin Belousov };
405e02f64d9SBrooks Davis struct freebsd32_abort2_args {
406e02f64d9SBrooks Davis 	char why_l_[PADL_(const char *)]; const char * why; char why_r_[PADR_(const char *)];
407e02f64d9SBrooks Davis 	char nargs_l_[PADL_(int)]; int nargs; char nargs_r_[PADR_(int)];
408e02f64d9SBrooks Davis 	char args_l_[PADL_(uint32_t *)]; uint32_t * args; char args_r_[PADR_(uint32_t *)];
409e02f64d9SBrooks Davis };
4105d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args {
4115d8d23c7SJohn Baldwin 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
4125d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
4135d8d23c7SJohn Baldwin };
414486abf93SPeter Wemm struct freebsd32_pread_args {
415486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
416486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
417486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
41830bc335aSBrooks Davis #ifdef PAD64_REQUIRED
419a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
42030bc335aSBrooks Davis #endif
4214412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4224412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
423486abf93SPeter Wemm };
424486abf93SPeter Wemm struct freebsd32_pwrite_args {
425486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
426486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
427486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
42830bc335aSBrooks Davis #ifdef PAD64_REQUIRED
429a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
43030bc335aSBrooks Davis #endif
4314412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4324412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
433486abf93SPeter Wemm };
434486abf93SPeter Wemm struct freebsd32_mmap_args {
435938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
436486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
437486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
438486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
439486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
440841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
441a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
44230bc335aSBrooks Davis #endif
44330bc335aSBrooks Davis 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
44430bc335aSBrooks Davis 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
445774b72e1SBrooks Davis };
44630bc335aSBrooks Davis struct freebsd32_lseek_args {
44730bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
44830bc335aSBrooks Davis #ifdef PAD64_REQUIRED
44930bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
45030bc335aSBrooks Davis #endif
45130bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
45230bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
45330bc335aSBrooks Davis 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
45430bc335aSBrooks Davis };
45530bc335aSBrooks Davis struct freebsd32_truncate_args {
45630bc335aSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
45730bc335aSBrooks Davis #ifdef PAD64_REQUIRED
45830bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
45930bc335aSBrooks Davis #endif
46030bc335aSBrooks Davis 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
46130bc335aSBrooks Davis 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
46230bc335aSBrooks Davis };
46330bc335aSBrooks Davis struct freebsd32_ftruncate_args {
46430bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
46530bc335aSBrooks Davis #ifdef PAD64_REQUIRED
46630bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
46730bc335aSBrooks Davis #endif
46830bc335aSBrooks Davis 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
46930bc335aSBrooks Davis 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
47030bc335aSBrooks Davis };
471841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args {
472841c0c7eSNathan Whitehorn 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
47330bc335aSBrooks Davis #ifdef PAD64_REQUIRED
47430bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
47530bc335aSBrooks Davis #endif
4764412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4774412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
478841c0c7eSNathan Whitehorn 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
479841c0c7eSNathan Whitehorn };
480774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args {
481774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
482774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4834412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4844412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
485774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
486774b72e1SBrooks Davis };
487774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args {
488774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
489774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4904412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4914412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
492774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
493774b72e1SBrooks Davis 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
494774b72e1SBrooks Davis };
495774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args {
496774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
497774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
4984412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
4994412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
500774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
501774b72e1SBrooks Davis 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
502774b72e1SBrooks Davis };
503f2296b58SKonstantin Belousov struct freebsd32_fexecve_args {
504f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5054412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
5064412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
507f2296b58SKonstantin Belousov };
508f2296b58SKonstantin Belousov struct freebsd32_futimesat_args {
509f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5104e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
511a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * times; char times_r_[PADR_(const struct timeval32 *)];
512f2296b58SKonstantin Belousov };
513fe2f3c65SJamie Gritton struct freebsd32_jail_get_args {
514fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
515fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
516fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
517fe2f3c65SJamie Gritton };
518fe2f3c65SJamie Gritton struct freebsd32_jail_set_args {
519fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
520fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
521fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
522fe2f3c65SJamie Gritton };
5230ebea139SBrooks Davis struct freebsd32___semctl_args {
5243899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
5253899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
5263899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5273899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
5283899e0dfSJohn Baldwin };
5293899e0dfSJohn Baldwin struct freebsd32_msgctl_args {
5303899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
5313899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5323899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
5333899e0dfSJohn Baldwin };
5343899e0dfSJohn Baldwin struct freebsd32_shmctl_args {
5353899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
5363899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5373899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
5383899e0dfSJohn Baldwin };
539063e9958SKonstantin Belousov struct freebsd32_pselect_args {
540063e9958SKonstantin Belousov 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
541063e9958SKonstantin Belousov 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
542063e9958SKonstantin Belousov 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
543063e9958SKonstantin Belousov 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
544063e9958SKonstantin Belousov 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
545063e9958SKonstantin Belousov 	char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
546063e9958SKonstantin Belousov };
54730bc335aSBrooks Davis struct freebsd32_posix_fallocate_args {
54830bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
549f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
550a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
551f85769ebSKonstantin Belousov #endif
55230bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
55330bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
55430bc335aSBrooks Davis 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
55530bc335aSBrooks Davis 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
55630bc335aSBrooks Davis };
55730bc335aSBrooks Davis struct freebsd32_posix_fadvise_args {
55830bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
55930bc335aSBrooks Davis #ifdef PAD64_REQUIRED
56030bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
56130bc335aSBrooks Davis #endif
56230bc335aSBrooks Davis 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
56330bc335aSBrooks Davis 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
56430bc335aSBrooks Davis 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
56530bc335aSBrooks Davis 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
56630bc335aSBrooks Davis 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
56730bc335aSBrooks Davis };
56830bc335aSBrooks Davis struct freebsd32_wait6_args {
56930bc335aSBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
57030bc335aSBrooks Davis #ifdef PAD64_REQUIRED
57130bc335aSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
57230bc335aSBrooks Davis #endif
57330bc335aSBrooks Davis 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
57430bc335aSBrooks Davis 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
57530bc335aSBrooks Davis 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
57630bc335aSBrooks Davis 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
57730bc335aSBrooks Davis 	char wrusage_l_[PADL_(struct __wrusage32 *)]; struct __wrusage32 * wrusage; char wrusage_r_[PADR_(struct __wrusage32 *)];
57830bc335aSBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
57930bc335aSBrooks Davis };
580e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args {
581e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
582e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
583e11dc435SPawel Jakub Dawidek 	char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
584e11dc435SPawel Jakub Dawidek };
585e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args {
586e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
587e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
588e11dc435SPawel Jakub Dawidek 	char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
589e11dc435SPawel Jakub Dawidek };
5908d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args {
5918d1aa3c6SGleb Smirnoff 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
5928d1aa3c6SGleb Smirnoff };
59330bc335aSBrooks Davis struct freebsd32_procctl_args {
59430bc335aSBrooks Davis 	char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
595a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
596a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
597a566e8e3SJohn Baldwin #endif
59830bc335aSBrooks Davis 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
59930bc335aSBrooks Davis 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
60030bc335aSBrooks Davis 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
60130bc335aSBrooks Davis 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
60230bc335aSBrooks Davis };
603c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args {
604c28d9d0fSDmitry Chagin 	char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
605c28d9d0fSDmitry Chagin 	char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
606c28d9d0fSDmitry Chagin 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
607c28d9d0fSDmitry Chagin 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
608c28d9d0fSDmitry Chagin };
6092b35e6a9SJilles Tjoelker struct freebsd32_futimens_args {
6102b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
611a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6122b35e6a9SJilles Tjoelker };
6132b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args {
6142b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6154e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
616a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6172b35e6a9SJilles Tjoelker 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
6182b35e6a9SJilles Tjoelker };
619ec95c622SKonstantin Belousov struct freebsd32_fstat_args {
620ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
621f1a14110SBrooks Davis 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
622ec95c622SKonstantin Belousov };
623ec95c622SKonstantin Belousov struct freebsd32_fstatat_args {
624ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6254e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
626ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
627ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
628ec95c622SKonstantin Belousov };
629ec95c622SKonstantin Belousov struct freebsd32_fhstat_args {
630ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
631ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
632ec95c622SKonstantin Belousov };
6332b9d052dSBrooks Davis struct freebsd32_getfsstat_args {
6342b9d052dSBrooks Davis 	char buf_l_[PADL_(struct statfs *)]; struct statfs * buf; char buf_r_[PADR_(struct statfs *)];
6352b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
6362b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
6372b9d052dSBrooks Davis };
63830bc335aSBrooks Davis struct freebsd32_mknodat_args {
63930bc335aSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
64030bc335aSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
64130bc335aSBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
6424b499c75SBrooks Davis #ifdef PAD64_REQUIRED
643a016320dSBrooks Davis 	char _pad_l_[PADL_(int)]; int _pad; char _pad_r_[PADR_(int)];
6444b499c75SBrooks Davis #endif
64530bc335aSBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
64630bc335aSBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
64730bc335aSBrooks Davis };
648eb84ca64SKonstantin Belousov struct freebsd32_kevent_args {
649eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
650eb84ca64SKonstantin Belousov 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
651eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
652eb84ca64SKonstantin Belousov 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
653eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
654eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
655eb84ca64SKonstantin Belousov };
656af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args {
657af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
658af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
659af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
660af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
661af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
662af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
663af80820aSJeff Roberson 	char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
664af80820aSJeff Roberson };
665af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args {
666af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
667af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
668af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
669af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
670af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
671af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
672af80820aSJeff Roberson 	char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
673af80820aSJeff Roberson };
674d05b53e0SMateusz Guzik struct freebsd32___sysctlbyname_args {
675d05b53e0SMateusz Guzik 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
676d05b53e0SMateusz Guzik 	char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
677d05b53e0SMateusz Guzik 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
678d05b53e0SMateusz Guzik 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
679d05b53e0SMateusz Guzik 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
680d05b53e0SMateusz Guzik 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
681d05b53e0SMateusz Guzik };
68220321e62SAlan Somers struct freebsd32_aio_writev_args {
68320321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
68420321e62SAlan Somers };
68520321e62SAlan Somers struct freebsd32_aio_readv_args {
68620321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
68720321e62SAlan Somers };
68894e75644SPeter Wemm int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
68958b552dcSJohn Baldwin int	freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
69015857ef5SPaul Saab int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
69115857ef5SPaul Saab int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
69294e75644SPeter Wemm int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
693663c5800SDavid E. O'Brien int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
69494e75644SPeter Wemm int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
695f8244106SMarcel Moolenaar int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
69694e75644SPeter Wemm int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
697996a568eSPeter Wemm int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
6985aec07c7SKonstantin Belousov int	freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
69994e75644SPeter Wemm int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
70094e75644SPeter Wemm int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
70194e75644SPeter Wemm int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
70294e75644SPeter Wemm int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
70394e75644SPeter Wemm int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
70494e75644SPeter Wemm int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
70594e75644SPeter Wemm int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
70694e75644SPeter Wemm int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
7079da68040SKonstantin Belousov int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
70894e75644SPeter Wemm int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
70994e75644SPeter Wemm int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
71094e75644SPeter Wemm int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
711d7d95c3fSKonstantin Belousov int	freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
71286e06fa5SBrooks Davis int	freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
713f06b8643SDoug Ambrisko int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
7145e868cbbSJung-uk Kim int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
7155e868cbbSJung-uk Kim int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
716fd151bb9SPaul Saab int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
717fd151bb9SPaul Saab int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
718fd151bb9SPaul Saab int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
71968044954SKonstantin Belousov int	freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
72068044954SKonstantin Belousov int	freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
72168044954SKonstantin Belousov int	freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
7227fdf2c85SPaul Saab int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
723e3e811a3SBrooks Davis int	freebsd32_ffclock_setestimate(struct thread *, struct freebsd32_ffclock_setestimate_args *);
724e3e811a3SBrooks Davis int	freebsd32_ffclock_getestimate(struct thread *, struct freebsd32_ffclock_getestimate_args *);
72526f86ab7SEric van Gyzen int	freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
726c5d03637SKonstantin Belousov int	freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
7275d8d23c7SJohn Baldwin int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
7285d8d23c7SJohn Baldwin int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
7295d8d23c7SJohn Baldwin int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
730cac2fa64SDoug Ambrisko int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
7319f3157a2SJohn Baldwin int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
7329f3157a2SJohn Baldwin int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
7330e214fadSPaul Saab int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
734eea5c618SKonstantin Belousov int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
7355d8d23c7SJohn Baldwin int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
7365d8d23c7SJohn Baldwin int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
7375d8d23c7SJohn Baldwin int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
738f2f5c215SKonstantin Belousov int	freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
739c542c43eSJamie Gritton int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
740312a0e5fSDavid Xu int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
741312a0e5fSDavid Xu int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
7425d8d23c7SJohn Baldwin int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
743f1287854SDavid E. O'Brien int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
74494e75644SPeter Wemm int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
74528ad01d2SKonstantin Belousov int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
74628ad01d2SKonstantin Belousov int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
74794e75644SPeter Wemm int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
74894e75644SPeter Wemm int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
749a11ea6e3SPeter Wemm int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
750a11ea6e3SPeter Wemm int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
751a11ea6e3SPeter Wemm int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
75228ad01d2SKonstantin Belousov int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
753ac3674aaSDavid Xu int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
754e1e300b6SBrooks Davis int	freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
755ac3674aaSDavid Xu int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
756e9f32d1dSBrooks Davis int	freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
75728ad01d2SKonstantin Belousov int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
75828ad01d2SKonstantin Belousov int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
75928ad01d2SKonstantin Belousov int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
76028ad01d2SKonstantin Belousov int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
76168044954SKonstantin Belousov int	freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
762e02f64d9SBrooks Davis int	freebsd32_abort2(struct thread *, struct freebsd32_abort2_args *);
7635d8d23c7SJohn Baldwin int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
764486abf93SPeter Wemm int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
765486abf93SPeter Wemm int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
766486abf93SPeter Wemm int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
767486abf93SPeter Wemm int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
768486abf93SPeter Wemm int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
769486abf93SPeter Wemm int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
770774b72e1SBrooks Davis int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
771774b72e1SBrooks Davis int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
772774b72e1SBrooks Davis int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
773774b72e1SBrooks Davis int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
774f2296b58SKonstantin Belousov int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
775f2296b58SKonstantin Belousov int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
776fe2f3c65SJamie Gritton int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
777fe2f3c65SJamie Gritton int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
7780ebea139SBrooks Davis int	freebsd32___semctl(struct thread *, struct freebsd32___semctl_args *);
7793899e0dfSJohn Baldwin int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
7803899e0dfSJohn Baldwin int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
781063e9958SKonstantin Belousov int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
7827323776bSMatthew D Fleming int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
783cd06ae5cSJohn Baldwin int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
784552e9935SKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
785e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
786e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
7878d1aa3c6SGleb Smirnoff int	freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
788a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
789c28d9d0fSDmitry Chagin int	freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
7902b35e6a9SJilles Tjoelker int	freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
7912b35e6a9SJilles Tjoelker int	freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
792ec95c622SKonstantin Belousov int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
793ec95c622SKonstantin Belousov int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
794ec95c622SKonstantin Belousov int	freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
7952b9d052dSBrooks Davis int	freebsd32_getfsstat(struct thread *, struct freebsd32_getfsstat_args *);
7964b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
797eb84ca64SKonstantin Belousov int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
798af80820aSJeff Roberson int	freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
799af80820aSJeff Roberson int	freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
800d05b53e0SMateusz Guzik int	freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
80120321e62SAlan Somers int	freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
80220321e62SAlan Somers int	freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
8035eb29d9bSDoug Rabson 
8045eb29d9bSDoug Rabson #ifdef COMPAT_43
8055eb29d9bSDoug Rabson 
806160e5953SKonstantin Belousov struct ofreebsd32_lseek_args {
807160e5953SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
808f19e3fd2SBrooks Davis 	char offset_l_[PADL_(int32_t)]; int32_t offset; char offset_r_[PADR_(int32_t)];
809160e5953SKonstantin Belousov 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
810160e5953SKonstantin Belousov };
811c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args {
8124e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
813c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
814c3b2c052SKonstantin Belousov };
815c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args {
8164e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
817381f6804SBrooks Davis 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
818c3b2c052SKonstantin Belousov };
819946bca4fSPeter Wemm struct ofreebsd32_sigaction_args {
820946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
821946bca4fSPeter Wemm 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
822946bca4fSPeter Wemm 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
823946bca4fSPeter Wemm };
824c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args {
825c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
826ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct ostat32 *)]; struct ostat32 * sb; char sb_r_[PADR_(struct ostat32 *)];
827c3b2c052SKonstantin Belousov };
8289df4e7e2SBrooks Davis struct ofreebsd32_mmap_args {
8299df4e7e2SBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
8309df4e7e2SBrooks Davis 	char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
8319df4e7e2SBrooks Davis 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
8329df4e7e2SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
8339df4e7e2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
8349df4e7e2SBrooks Davis 	char pos_l_[PADL_(int32_t)]; int32_t pos; char pos_r_[PADR_(int32_t)];
8359df4e7e2SBrooks Davis };
836c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args {
837b92f4ae5SBrooks Davis 	char sigcntxp_l_[PADL_(struct osigcontext *)]; struct osigcontext * sigcntxp; char sigcntxp_r_[PADR_(struct osigcontext *)];
838c3b2c052SKonstantin Belousov };
839946bca4fSPeter Wemm struct ofreebsd32_sigvec_args {
840946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
841946bca4fSPeter Wemm 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
842946bca4fSPeter Wemm 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
843946bca4fSPeter Wemm };
844946bca4fSPeter Wemm struct ofreebsd32_sigstack_args {
845946bca4fSPeter Wemm 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
846946bca4fSPeter Wemm 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
847946bca4fSPeter Wemm };
848f089a2f3SBrooks Davis struct ofreebsd32_recvmsg_args {
849f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
850f089a2f3SBrooks Davis 	char msg_l_[PADL_(struct omsghdr32 *)]; struct omsghdr32 * msg; char msg_r_[PADR_(struct omsghdr32 *)];
851f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
852f089a2f3SBrooks Davis };
853f089a2f3SBrooks Davis struct ofreebsd32_sendmsg_args {
854f089a2f3SBrooks Davis 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
855f089a2f3SBrooks Davis 	char msg_l_[PADL_(const struct omsghdr32 *)]; const struct omsghdr32 * msg; char msg_r_[PADR_(const struct omsghdr32 *)];
856f089a2f3SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
857f089a2f3SBrooks Davis };
858f19e3fd2SBrooks Davis struct ofreebsd32_truncate_args {
859f19e3fd2SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
860f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
861f19e3fd2SBrooks Davis };
862f19e3fd2SBrooks Davis struct ofreebsd32_ftruncate_args {
863f19e3fd2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
864f19e3fd2SBrooks Davis 	char length_l_[PADL_(int32_t)]; int32_t length; char length_r_[PADR_(int32_t)];
865f19e3fd2SBrooks Davis };
866f19e3fd2SBrooks Davis struct ofreebsd32_sethostid_args {
867f19e3fd2SBrooks Davis 	char hostid_l_[PADL_(int32_t)]; int32_t hostid; char hostid_r_[PADR_(int32_t)];
868f19e3fd2SBrooks Davis };
869c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args {
870c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
871c3b2c052SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
872c3b2c052SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
873f19e3fd2SBrooks Davis 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
874c3b2c052SKonstantin Belousov };
875160e5953SKonstantin Belousov int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
876c3b2c052SKonstantin Belousov int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
877c3b2c052SKonstantin Belousov int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
878946bca4fSPeter Wemm int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
879c3b2c052SKonstantin Belousov int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
8809df4e7e2SBrooks Davis int	ofreebsd32_mmap(struct thread *, struct ofreebsd32_mmap_args *);
881c3b2c052SKonstantin Belousov int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
882946bca4fSPeter Wemm int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
883946bca4fSPeter Wemm int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
884f089a2f3SBrooks Davis int	ofreebsd32_recvmsg(struct thread *, struct ofreebsd32_recvmsg_args *);
885f089a2f3SBrooks Davis int	ofreebsd32_sendmsg(struct thread *, struct ofreebsd32_sendmsg_args *);
886f19e3fd2SBrooks Davis int	ofreebsd32_truncate(struct thread *, struct ofreebsd32_truncate_args *);
887f19e3fd2SBrooks Davis int	ofreebsd32_ftruncate(struct thread *, struct ofreebsd32_ftruncate_args *);
888f19e3fd2SBrooks Davis int	ofreebsd32_sethostid(struct thread *, struct ofreebsd32_sethostid_args *);
889c3b2c052SKonstantin Belousov int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
8905eb29d9bSDoug Rabson 
8915eb29d9bSDoug Rabson #endif /* COMPAT_43 */
8925eb29d9bSDoug Rabson 
8930c5bd5f9SEdward Tomasz Napierala 
894db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4
895db27052eSPeter Wemm 
8965b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args {
8972e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
898f19e3fd2SBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
8991fabda45SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
9005b3283b0SPeter Wemm };
9015b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args {
9024e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
9032e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9045b3283b0SPeter Wemm };
9055b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args {
9065b3283b0SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9072e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9085b3283b0SPeter Wemm };
9095b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args {
9105b3283b0SPeter Wemm 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
9112e89f95dSBrooks Davis 	char buf_l_[PADL_(struct ostatfs32 *)]; struct ostatfs32 * buf; char buf_r_[PADR_(struct ostatfs32 *)];
9125b3283b0SPeter Wemm };
91394e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args {
9149105d26bSPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9159105d26bSPeter Wemm 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
9164412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9174412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
9189105d26bSPeter Wemm 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
91926e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
9209105d26bSPeter Wemm 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
9219105d26bSPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9229105d26bSPeter Wemm };
92394e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args {
924e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
925a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
926e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
927e14528b3SPeter Wemm };
92894e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args {
9295fdbd21dSBrooks Davis 	char sigcntxp_l_[PADL_(const struct freebsd4_ucontext32 *)]; const struct freebsd4_ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_ucontext32 *)];
930e14528b3SPeter Wemm };
9315b3283b0SPeter Wemm int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
9325b3283b0SPeter Wemm int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
9335b3283b0SPeter Wemm int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
9345b3283b0SPeter Wemm int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
93594e75644SPeter Wemm int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
93694e75644SPeter Wemm int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
93794e75644SPeter Wemm int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
938db27052eSPeter Wemm 
939db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */
940db27052eSPeter Wemm 
9410c5bd5f9SEdward Tomasz Napierala 
942718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6
943486abf93SPeter Wemm 
944486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args {
945486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
946486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
947486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
948486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9494412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9504412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
951486abf93SPeter Wemm };
952486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args {
953486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
954486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
955486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
956486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9574412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9584412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
959486abf93SPeter Wemm };
960486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args {
961938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
962486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
963486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
964486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
965486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
966486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9674412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
9684412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
969486abf93SPeter Wemm };
970486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args {
971486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
972486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9734412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9744412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
975486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
976486abf93SPeter Wemm };
977486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args {
9784e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
979486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9804412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
9814412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
982486abf93SPeter Wemm };
983486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args {
984486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
985486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9864412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
9874412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
988486abf93SPeter Wemm };
9898d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args {
9908d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
9918d91acedSJohn Baldwin };
9928d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args {
9938d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
9948d91acedSJohn Baldwin };
9958d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args {
9968d91acedSJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
9976dcd7db1SBrooks Davis 	char acb_list_l_[PADL_(uint32_t *)]; uint32_t * acb_list; char acb_list_r_[PADR_(uint32_t *)];
9988d91acedSJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
9998d91acedSJohn Baldwin 	char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
10008d91acedSJohn Baldwin };
1001486abf93SPeter Wemm int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1002486abf93SPeter Wemm int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1003486abf93SPeter Wemm int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1004486abf93SPeter Wemm int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1005486abf93SPeter Wemm int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1006486abf93SPeter Wemm int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
10078d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
10088d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
10098d91acedSJohn Baldwin int	freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1010486abf93SPeter Wemm 
1011718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */
1012486abf93SPeter Wemm 
10130c5bd5f9SEdward Tomasz Napierala 
10148ffab864SWarner Losh #ifdef COMPAT_FREEBSD7
10153899e0dfSJohn Baldwin 
10160ebea139SBrooks Davis struct freebsd7_freebsd32___semctl_args {
10173899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
10183899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
10193899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1020e5b09976SBrooks Davis 	char arg_l_[PADL_(union semun_old32 *)]; union semun_old32 * arg; char arg_r_[PADR_(union semun_old32 *)];
10213899e0dfSJohn Baldwin };
10223899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args {
10233899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
10243899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10253b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct msqid_ds_old32 *)]; struct msqid_ds_old32 * buf; char buf_r_[PADR_(struct msqid_ds_old32 *)];
10263899e0dfSJohn Baldwin };
10273899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args {
10283899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
10293899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10303b0cd7e5SBrooks Davis 	char buf_l_[PADL_(struct shmid_ds_old32 *)]; struct shmid_ds_old32 * buf; char buf_r_[PADR_(struct shmid_ds_old32 *)];
10313899e0dfSJohn Baldwin };
10320ebea139SBrooks Davis int	freebsd7_freebsd32___semctl(struct thread *, struct freebsd7_freebsd32___semctl_args *);
10333899e0dfSJohn Baldwin int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
10343899e0dfSJohn Baldwin int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
10353899e0dfSJohn Baldwin 
10368ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */
10373899e0dfSJohn Baldwin 
10380c5bd5f9SEdward Tomasz Napierala 
1039a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10
1040a72c64b0SBrooks Davis 
10418460d3e9SBrooks Davis struct freebsd10_freebsd32__umtx_lock_args {
1042273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1043273728b1SKonstantin Belousov };
10448460d3e9SBrooks Davis struct freebsd10_freebsd32__umtx_unlock_args {
1045273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1046273728b1SKonstantin Belousov };
10478460d3e9SBrooks Davis int	freebsd10_freebsd32__umtx_lock(struct thread *, struct freebsd10_freebsd32__umtx_lock_args *);
10488460d3e9SBrooks Davis int	freebsd10_freebsd32__umtx_unlock(struct thread *, struct freebsd10_freebsd32__umtx_unlock_args *);
1049a72c64b0SBrooks Davis 
1050a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */
1051a72c64b0SBrooks Davis 
10520c5bd5f9SEdward Tomasz Napierala 
1053ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11
1054ec95c622SKonstantin Belousov 
1055ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args {
10564e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1057ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1058ec95c622SKonstantin Belousov };
1059ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args {
1060ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1061ab3ccb75SBrooks Davis 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1062ec95c622SKonstantin Belousov };
1063ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args {
10644e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1065ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1066ec95c622SKonstantin Belousov };
1067ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args {
1068ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1069ec95c622SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1070ec95c622SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1071ec95c622SKonstantin Belousov 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1072ec95c622SKonstantin Belousov };
1073bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nstat_args {
1074bcd07aaaSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1075bcd07aaaSBrooks Davis 	char ub_l_[PADL_(struct nstat32 *)]; struct nstat32 * ub; char ub_r_[PADR_(struct nstat32 *)];
1076bcd07aaaSBrooks Davis };
1077bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nfstat_args {
1078bcd07aaaSBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1079bcd07aaaSBrooks Davis 	char sb_l_[PADL_(struct nstat32 *)]; struct nstat32 * sb; char sb_r_[PADR_(struct nstat32 *)];
1080bcd07aaaSBrooks Davis };
1081bcd07aaaSBrooks Davis struct freebsd11_freebsd32_nlstat_args {
1082bcd07aaaSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1083bcd07aaaSBrooks Davis 	char ub_l_[PADL_(struct nstat32 *)]; struct nstat32 * ub; char ub_r_[PADR_(struct nstat32 *)];
1084bcd07aaaSBrooks Davis };
1085ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args {
1086ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1087ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1088ec95c622SKonstantin Belousov };
1089eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args {
1090eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
10913f8ced5bSBrooks Davis 	char changelist_l_[PADL_(const struct freebsd11_kevent32 *)]; const struct freebsd11_kevent32 * changelist; char changelist_r_[PADR_(const struct freebsd11_kevent32 *)];
1092eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
10933f8ced5bSBrooks Davis 	char eventlist_l_[PADL_(struct freebsd11_kevent32 *)]; struct freebsd11_kevent32 * eventlist; char eventlist_r_[PADR_(struct freebsd11_kevent32 *)];
1094eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1095eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1096eb84ca64SKonstantin Belousov };
10972b9d052dSBrooks Davis struct freebsd11_freebsd32_getfsstat_args {
10982b9d052dSBrooks Davis 	char buf_l_[PADL_(struct freebsd11_statfs *)]; struct freebsd11_statfs * buf; char buf_r_[PADR_(struct freebsd11_statfs *)];
10992b9d052dSBrooks Davis 	char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
11002b9d052dSBrooks Davis 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
11012b9d052dSBrooks Davis };
1102ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args {
1103ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
11044e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1105ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1106ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1107ec95c622SKonstantin Belousov };
1108ec95c622SKonstantin Belousov int	freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1109ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1110ec95c622SKonstantin Belousov int	freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1111ec95c622SKonstantin Belousov int	freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1112bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nstat(struct thread *, struct freebsd11_freebsd32_nstat_args *);
1113bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nfstat(struct thread *, struct freebsd11_freebsd32_nfstat_args *);
1114bcd07aaaSBrooks Davis int	freebsd11_freebsd32_nlstat(struct thread *, struct freebsd11_freebsd32_nlstat_args *);
1115ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1116eb84ca64SKonstantin Belousov int	freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
11172b9d052dSBrooks Davis int	freebsd11_freebsd32_getfsstat(struct thread *, struct freebsd11_freebsd32_getfsstat_args *);
1118ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1119ec95c622SKonstantin Belousov 
1120ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */
1121ec95c622SKonstantin Belousov 
11220c5bd5f9SEdward Tomasz Napierala 
1123d19f028eSKyle Evans #ifdef COMPAT_FREEBSD12
1124d19f028eSKyle Evans 
1125d19f028eSKyle Evans 
1126d19f028eSKyle Evans #endif /* COMPAT_FREEBSD12 */
1127d19f028eSKyle Evans 
1128f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
1129e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
1130160e5953SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
113158b552dcSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_ptrace	AUE_PTRACE
1132f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
1133f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
1134c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
1135c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
1136e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
1137da7cbdc2SRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
1138d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_IOCTL
1139f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
1140c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
11419df4e7e2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_mmap	AUE_MMAP
1142f8244106SMarcel Moolenaar #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
1143f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
1144f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
11455aec07c7SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fcntl	AUE_FCNTL
1146f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
1147d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_SIGRETURN
1148572be9c8SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_NULL
1149572be9c8SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_NULL
1150f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_recvmsg	AUE_RECVMSG
1151f089a2f3SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sendmsg	AUE_SENDMSG
1152f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
1153f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
1154f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
1155f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
1156f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
1157f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_truncate	AUE_TRUNCATE
1158f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_ftruncate	AUE_FTRUNCATE
1159f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
1160f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
1161f19e3fd2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_sethostid	AUE_SYSCTL
1162c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
1163e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
1164e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
11659da68040SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
1166f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
1167f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
1168f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
1169e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
1170e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
1171d7d95c3fSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime	AUE_NTP_ADJTIME
1172ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat	AUE_STAT
1173ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat	AUE_FSTAT
1174ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat	AUE_LSTAT
1175ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries	AUE_GETDIRENTRIES
1176e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1177e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1178e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1179e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
118086e06fa5SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___sysctl	AUE_SYSCTL
1181f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
11820ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32___semctl	AUE_SEMCTL
11833899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
11845e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
11855e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
11863899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1187f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1188f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1189f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
119068044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_create	AUE_NULL
119168044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_settime	AUE_NULL
119268044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime	AUE_NULL
1193f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
1194e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_setestimate	AUE_NULL
1195e3e811a3SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_ffclock_getestimate	AUE_NULL
119626f86ab7SEric van Gyzen #define	FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep	AUE_NULL
1197c5d03637SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2	AUE_NULL
1198d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_AIO_READ
1199d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_AIO_WRITE
1200d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_LIO_LISTIO
1201f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1202bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nstat	AUE_STAT
1203bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nfstat	AUE_FSTAT
1204bcd07aaaSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_nlstat	AUE_LSTAT
1205f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1206f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1207e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1208ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat	AUE_FHSTAT
1209f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1210eea5c618SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
1211d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_AIO_RETURN
1212d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_AIO_SUSPEND
1213d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_AIO_ERROR
1214d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read	AUE_AIO_READ
1215d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write	AUE_AIO_WRITE
1216d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio	AUE_LIO_LISTIO
1217f2f5c215SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval	AUE_NULL
1218e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1219c542c43eSJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1220e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1221e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1222312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1223312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
1224d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_AIO_WAITCOMPLETE
1225eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent	AUE_KEVENT
1226f1287854SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1227e482025eSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
12282b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getfsstat	AUE_GETFSSTAT
1229d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_SEMINIT
1230d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_SEMOPEN
1231f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1232f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1233f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1234f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1235f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
12368460d3e9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32__umtx_lock	AUE_NULL
12378460d3e9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32__umtx_unlock	AUE_NULL
1238d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_SEMWAIT
1239ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
1240e1e300b6SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32__umtx_op	AUE_NULL
1241d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_THR_NEW
1242e9f32d1dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_sigqueue	AUE_NULL
1243d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_MQ_OPEN
1244d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_MQ_SETATTR
1245d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_MQ_TIMEDRECEIVE
1246d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_MQ_TIMEDSEND
1247d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_notify	AUE_MQ_NOTIFY
1248e02f64d9SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_abort2	AUE_NULL
1249d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_AIO_FSYNC
1250486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1251486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1252486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1253486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1254486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1255486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1256774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1257774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1258774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1259774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1260f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1261ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat	AUE_FSTATAT
1262f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1263d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_JAIL_GET
1264d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_JAIL_SET
12650ebea139SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___semctl	AUE_SEMCTL
12663899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
12673899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
1268063e9958SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
1269d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1270d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1271552e9935SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1272e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit	AUE_CAP_IOCTLS_LIMIT
1273e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get	AUE_CAP_IOCTLS_GET
1274d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_mlock	AUE_AIO_MLOCK
1275d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1276c28d9d0fSDmitry Chagin #define	FREEBSD32_SYS_AUE_freebsd32_ppoll	AUE_POLL
12772b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_futimens	AUE_FUTIMES
12782b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_utimensat	AUE_FUTIMESAT
1279ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
1280ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1281ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fhstat	AUE_FHSTAT
12822b9d052dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_getfsstat	AUE_GETFSSTAT
12834b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
1284eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_KEVENT
1285af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain	AUE_NULL
1286af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain	AUE_NULL
1287d05b53e0SMateusz Guzik #define	FREEBSD32_SYS_AUE_freebsd32___sysctlbyname	AUE_SYSCTL
128820321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_writev	AUE_AIO_WRITEV
128920321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_readv	AUE_AIO_READV
1290f8f1f7fbSJohn Baldwin 
12915eb29d9bSDoug Rabson #undef PAD_
12925eb29d9bSDoug Rabson #undef PADL_
12935eb29d9bSDoug Rabson #undef PADR_
12945eb29d9bSDoug Rabson 
129594e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */
1296