xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision ddae7b9aaa6c0f0ff747c029246ab0c5ad795d1c)
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 };
6215857ef5SPaul Saab struct freebsd32_recvfrom_args {
6315857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
64938e8dcfSBrooks Davis 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
65*ddae7b9aSBrooks Davis 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
6615857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
67938e8dcfSBrooks Davis 	char from_l_[PADL_(struct sockaddr *)]; struct sockaddr * from; char from_r_[PADR_(struct sockaddr *)];
684412ad48SEd Schouten 	char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)];
6915857ef5SPaul Saab };
70a72c64b0SBrooks Davis struct freebsd10_freebsd32_pipe_args {
71a72c64b0SBrooks Davis 	register_t dummy;
72a72c64b0SBrooks Davis };
73946bca4fSPeter Wemm struct ofreebsd32_sigpending_args {
7490168b92SPaul Saab 	register_t dummy;
7590168b92SPaul Saab };
7694e75644SPeter Wemm struct freebsd32_sigaltstack_args {
77a944d28dSBrooks Davis 	char ss_l_[PADL_(const struct sigaltstack32 *)]; const struct sigaltstack32 * ss; char ss_r_[PADR_(const struct sigaltstack32 *)];
78db27052eSPeter Wemm 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
795eb29d9bSDoug Rabson };
80663c5800SDavid E. O'Brien struct freebsd32_ioctl_args {
81663c5800SDavid E. O'Brien 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
8270c9698fSBrooks Davis 	char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
8370c9698fSBrooks Davis 	char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)];
84663c5800SDavid E. O'Brien };
8594e75644SPeter Wemm struct freebsd32_execve_args {
864e8c73ebSBrooks Davis 	char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
874412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
884412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
895eb29d9bSDoug Rabson };
90f8244106SMarcel Moolenaar struct freebsd32_mprotect_args {
91a944d28dSBrooks Davis 	char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
92f8244106SMarcel Moolenaar 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
93f8244106SMarcel Moolenaar 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
94f8244106SMarcel Moolenaar };
9594e75644SPeter Wemm struct freebsd32_setitimer_args {
968ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
97a944d28dSBrooks Davis 	char itv_l_[PADL_(const struct itimerval32 *)]; const struct itimerval32 * itv; char itv_r_[PADR_(const struct itimerval32 *)];
98db27052eSPeter Wemm 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
995eb29d9bSDoug Rabson };
100996a568eSPeter Wemm struct freebsd32_getitimer_args {
1018ba369edSBrooks Davis 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
102996a568eSPeter Wemm 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
103996a568eSPeter Wemm };
1045aec07c7SKonstantin Belousov struct freebsd32_fcntl_args {
1055aec07c7SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1065aec07c7SKonstantin Belousov 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1075aec07c7SKonstantin Belousov 	char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)];
1085aec07c7SKonstantin Belousov };
10994e75644SPeter Wemm struct freebsd32_select_args {
1105eb29d9bSDoug Rabson 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
1115eb29d9bSDoug Rabson 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
1125eb29d9bSDoug Rabson 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
1135eb29d9bSDoug Rabson 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
114db27052eSPeter Wemm 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
1155eb29d9bSDoug Rabson };
11694e75644SPeter Wemm struct freebsd32_gettimeofday_args {
117db27052eSPeter Wemm 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
1185eb29d9bSDoug Rabson 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
1195eb29d9bSDoug Rabson };
12094e75644SPeter Wemm struct freebsd32_getrusage_args {
1215eb29d9bSDoug Rabson 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
122db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
1235eb29d9bSDoug Rabson };
12494e75644SPeter Wemm struct freebsd32_readv_args {
1255eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
126db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1275eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1285eb29d9bSDoug Rabson };
12994e75644SPeter Wemm struct freebsd32_writev_args {
1305eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
131db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1325eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1335eb29d9bSDoug Rabson };
13494e75644SPeter Wemm struct freebsd32_settimeofday_args {
135a944d28dSBrooks Davis 	char tv_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tv; char tv_r_[PADR_(const struct timeval32 *)];
136a944d28dSBrooks Davis 	char tzp_l_[PADL_(const struct timezone *)]; const struct timezone * tzp; char tzp_r_[PADR_(const struct timezone *)];
1375eb29d9bSDoug Rabson };
13894e75644SPeter Wemm struct freebsd32_utimes_args {
1394e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
140a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
141db27052eSPeter Wemm };
14294e75644SPeter Wemm struct freebsd32_adjtime_args {
143a944d28dSBrooks Davis 	char delta_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * delta; char delta_r_[PADR_(const struct timeval32 *)];
144db27052eSPeter Wemm 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
145db27052eSPeter Wemm };
1469da68040SKonstantin Belousov struct freebsd32_sysarch_args {
1479da68040SKonstantin Belousov 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1489da68040SKonstantin Belousov 	char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
1499da68040SKonstantin Belousov };
15094e75644SPeter Wemm struct freebsd32_semsys_args {
1515eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1525eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1535eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1545eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1555eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1565eb29d9bSDoug Rabson };
15794e75644SPeter Wemm struct freebsd32_msgsys_args {
1585eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1595eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1605eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1615eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1625eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1635eb29d9bSDoug Rabson 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
1645eb29d9bSDoug Rabson };
16594e75644SPeter Wemm struct freebsd32_shmsys_args {
16674f7258fSPaul Saab 	char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
16774f7258fSPaul Saab 	char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
16874f7258fSPaul Saab 	char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
16974f7258fSPaul Saab 	char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
1705eb29d9bSDoug Rabson };
171d7d95c3fSKonstantin Belousov struct freebsd32_ntp_adjtime_args {
172d7d95c3fSKonstantin Belousov 	char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)];
173d7d95c3fSKonstantin Belousov };
17486e06fa5SBrooks Davis struct freebsd32___sysctl_args {
1755eb29d9bSDoug Rabson 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
1765eb29d9bSDoug Rabson 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
1775eb29d9bSDoug Rabson 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
1784412ad48SEd Schouten 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
17921fb6624SOlivier Houchard 	char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)];
180*ddae7b9aSBrooks Davis 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
1815eb29d9bSDoug Rabson };
182f06b8643SDoug Ambrisko struct freebsd32_futimes_args {
183f06b8643SDoug Ambrisko 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
184a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
185f06b8643SDoug Ambrisko };
1865e868cbbSJung-uk Kim struct freebsd32_msgsnd_args {
1875e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
188a944d28dSBrooks Davis 	char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)];
1895e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1905e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1915e868cbbSJung-uk Kim };
1925e868cbbSJung-uk Kim struct freebsd32_msgrcv_args {
1935e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1945e868cbbSJung-uk Kim 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
1955e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1965e868cbbSJung-uk Kim 	char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
1975e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1985e868cbbSJung-uk Kim };
199fd151bb9SPaul Saab struct freebsd32_clock_gettime_args {
200fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
201fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
202fd151bb9SPaul Saab };
203fd151bb9SPaul Saab struct freebsd32_clock_settime_args {
204fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
205fd151bb9SPaul Saab 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
206fd151bb9SPaul Saab };
207fd151bb9SPaul Saab struct freebsd32_clock_getres_args {
208fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
209fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
210fd151bb9SPaul Saab };
21168044954SKonstantin Belousov struct freebsd32_ktimer_create_args {
21268044954SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
21368044954SKonstantin Belousov 	char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
21468044954SKonstantin Belousov 	char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
21568044954SKonstantin Belousov };
21668044954SKonstantin Belousov struct freebsd32_ktimer_settime_args {
21768044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
21868044954SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
21968044954SKonstantin Belousov 	char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
22068044954SKonstantin Belousov 	char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
22168044954SKonstantin Belousov };
22268044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args {
22368044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
22468044954SKonstantin Belousov 	char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
22568044954SKonstantin Belousov };
2267fdf2c85SPaul Saab struct freebsd32_nanosleep_args {
227145f7e60SPaul Saab 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
228145f7e60SPaul Saab 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
2297fdf2c85SPaul Saab };
23026f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args {
23126f86ab7SEric van Gyzen 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
23226f86ab7SEric van Gyzen 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
23326f86ab7SEric van Gyzen 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
23426f86ab7SEric van Gyzen 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
23526f86ab7SEric van Gyzen };
236c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args {
237c5d03637SKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
238c5d03637SKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
239c5d03637SKonstantin Belousov 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
240c5d03637SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
241c5d03637SKonstantin Belousov };
2425d8d23c7SJohn Baldwin struct freebsd32_aio_read_args {
2435d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2445d8d23c7SJohn Baldwin };
2455d8d23c7SJohn Baldwin struct freebsd32_aio_write_args {
2465d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2475d8d23c7SJohn Baldwin };
2485d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args {
2495d8d23c7SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2505d8d23c7SJohn Baldwin 	char acb_list_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * acb_list; char acb_list_r_[PADR_(struct aiocb32 * const *)];
2515d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
25268044954SKonstantin Belousov 	char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
2535d8d23c7SJohn Baldwin };
254cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args {
2554e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
256a944d28dSBrooks Davis 	char tptr_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * tptr; char tptr_r_[PADR_(const struct timeval32 *)];
257cac2fa64SDoug Ambrisko };
2589f3157a2SJohn Baldwin struct freebsd32_preadv_args {
2599f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2609f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2619f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2624412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2634412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2649f3157a2SJohn Baldwin };
2659f3157a2SJohn Baldwin struct freebsd32_pwritev_args {
2669f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2679f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2689f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2694412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2704412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2719f3157a2SJohn Baldwin };
2720e214fadSPaul Saab struct freebsd32_modstat_args {
2730e214fadSPaul Saab 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
2740e214fadSPaul Saab 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
2750e214fadSPaul Saab };
276eea5c618SKonstantin Belousov struct freebsd32_kldstat_args {
277eea5c618SKonstantin Belousov 	char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
278eea5c618SKonstantin Belousov 	char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)];
279eea5c618SKonstantin Belousov };
2805d8d23c7SJohn Baldwin struct freebsd32_aio_return_args {
2815d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2825d8d23c7SJohn Baldwin };
2835d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args {
2845d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 * const *)];
2855d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
2865d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
2875d8d23c7SJohn Baldwin };
2885d8d23c7SJohn Baldwin struct freebsd32_aio_error_args {
2895d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2905d8d23c7SJohn Baldwin };
291f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args {
292f2f5c215SKonstantin Belousov 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
293f2f5c215SKonstantin Belousov 	char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
294f2f5c215SKonstantin Belousov };
295c542c43eSJamie Gritton struct freebsd32_jail_args {
296c542c43eSJamie Gritton 	char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
297c542c43eSJamie Gritton };
298312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args {
299312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
30085d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
301a944d28dSBrooks Davis 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
302312a0e5fSDavid Xu };
303312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args {
304312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
30585d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
306312a0e5fSDavid Xu };
3075d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args {
3085d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)];
3095d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
3105d8d23c7SJohn Baldwin };
311f1287854SDavid E. O'Brien struct freebsd32_nmount_args {
312f1287854SDavid E. O'Brien 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
313f1287854SDavid E. O'Brien 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
314f1287854SDavid E. O'Brien 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
315f1287854SDavid E. O'Brien };
31694e75644SPeter Wemm struct freebsd32_sendfile_args {
3175eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
3185eb29d9bSDoug Rabson 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
3194412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
3204412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
3215eb29d9bSDoug Rabson 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
32226e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
3235eb29d9bSDoug Rabson 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
3245eb29d9bSDoug Rabson 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
3255eb29d9bSDoug Rabson };
32628ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args {
32728ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
32828ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
32928ad01d2SKonstantin Belousov };
33028ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args {
33128ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
33228ad01d2SKonstantin Belousov 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
33328ad01d2SKonstantin Belousov 	char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
33428ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
33528ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
33628ad01d2SKonstantin Belousov };
33794e75644SPeter Wemm struct freebsd32_sigaction_args {
338e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
339a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
340e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
341e14528b3SPeter Wemm };
34294e75644SPeter Wemm struct freebsd32_sigreturn_args {
3436de7c053SBrooks Davis 	char sigcntxp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext32 *)];
34482914097SPeter Wemm };
345a11ea6e3SPeter Wemm struct freebsd32_getcontext_args {
3466de7c053SBrooks Davis 	char ucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * ucp; char ucp_r_[PADR_(struct __ucontext32 *)];
347a11ea6e3SPeter Wemm };
348a11ea6e3SPeter Wemm struct freebsd32_setcontext_args {
3496de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
350a11ea6e3SPeter Wemm };
351a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args {
3526de7c053SBrooks Davis 	char oucp_l_[PADL_(struct __ucontext32 *)]; struct __ucontext32 * oucp; char oucp_r_[PADR_(struct __ucontext32 *)];
3536de7c053SBrooks Davis 	char ucp_l_[PADL_(const struct __ucontext32 *)]; const struct __ucontext32 * ucp; char ucp_r_[PADR_(const struct __ucontext32 *)];
354a11ea6e3SPeter Wemm };
35528ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args {
35628ad01d2SKonstantin Belousov 	char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)];
35728ad01d2SKonstantin Belousov 	char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
35828ad01d2SKonstantin Belousov };
359ac3674aaSDavid Xu struct freebsd32_thr_suspend_args {
360ac3674aaSDavid Xu 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
361ac3674aaSDavid Xu };
362e1e300b6SBrooks Davis struct freebsd32__umtx_op_args {
36327bbb2e7SDavid Xu 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
36427bbb2e7SDavid Xu 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
365034b26fcSDavid Xu 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
36627bbb2e7SDavid Xu 	char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
36727bbb2e7SDavid Xu 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
36827bbb2e7SDavid Xu };
369ac3674aaSDavid Xu struct freebsd32_thr_new_args {
370ac3674aaSDavid Xu 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
371ac3674aaSDavid Xu 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
372ac3674aaSDavid Xu };
373e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args {
374e9f32d1dSBrooks Davis 	char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
375e9f32d1dSBrooks Davis 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
376e9f32d1dSBrooks Davis 	char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
377e9f32d1dSBrooks Davis };
37828ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args {
37928ad01d2SKonstantin Belousov 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
38028ad01d2SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
38128ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
38228ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38328ad01d2SKonstantin Belousov };
38428ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args {
38528ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
38628ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
38728ad01d2SKonstantin Belousov 	char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
38828ad01d2SKonstantin Belousov };
38928ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args {
39028ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
39128ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
39228ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
39328ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
39428ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
39528ad01d2SKonstantin Belousov };
39628ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args {
39728ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
39828ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
39928ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
40028ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
40128ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
40228ad01d2SKonstantin Belousov };
40368044954SKonstantin Belousov struct freebsd32_kmq_notify_args {
40468044954SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40568044954SKonstantin Belousov 	char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
40668044954SKonstantin Belousov };
4075d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args {
4085d8d23c7SJohn Baldwin 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
4095d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
4105d8d23c7SJohn Baldwin };
411841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
412486abf93SPeter Wemm struct freebsd32_pread_args {
413486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
414486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
415486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
416841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4174412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4184412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
419486abf93SPeter Wemm };
420486abf93SPeter Wemm struct freebsd32_pwrite_args {
421486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
422486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
423486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
424841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4254412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4264412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
427486abf93SPeter Wemm };
428486abf93SPeter Wemm struct freebsd32_mmap_args {
429938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
430486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
431486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
432486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
433486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
434841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4354412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4364412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
437486abf93SPeter Wemm };
438486abf93SPeter Wemm struct freebsd32_lseek_args {
439486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
440841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4414412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4424412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
443486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
444486abf93SPeter Wemm };
445486abf93SPeter Wemm struct freebsd32_truncate_args {
4464e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
447841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4484412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4494412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
450486abf93SPeter Wemm };
451486abf93SPeter Wemm struct freebsd32_ftruncate_args {
452486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
453841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4544412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4554412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
456486abf93SPeter Wemm };
457841c0c7eSNathan Whitehorn #else
458841c0c7eSNathan Whitehorn struct freebsd32_pread_args {
459841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
460841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
461841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4624412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4634412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
464841c0c7eSNathan Whitehorn };
465841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args {
466841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
467841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
468841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4694412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4704412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
471841c0c7eSNathan Whitehorn };
472841c0c7eSNathan Whitehorn struct freebsd32_mmap_args {
473938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
474841c0c7eSNathan Whitehorn 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
475841c0c7eSNathan Whitehorn 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
476841c0c7eSNathan Whitehorn 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
477841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4784412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4794412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
480841c0c7eSNathan Whitehorn };
481841c0c7eSNathan Whitehorn struct freebsd32_lseek_args {
482841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4834412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4844412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
485841c0c7eSNathan Whitehorn 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
486841c0c7eSNathan Whitehorn };
487841c0c7eSNathan Whitehorn struct freebsd32_truncate_args {
4884e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
4894412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4904412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
491841c0c7eSNathan Whitehorn };
492841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args {
493841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4944412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4954412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
496841c0c7eSNathan Whitehorn };
497841c0c7eSNathan Whitehorn #endif
498841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
499774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args {
500774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
501841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
5024412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5034412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
504774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
505774b72e1SBrooks Davis };
506841c0c7eSNathan Whitehorn #else
507841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args {
508841c0c7eSNathan Whitehorn 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5094412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5104412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
511841c0c7eSNathan Whitehorn 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
512841c0c7eSNathan Whitehorn };
513841c0c7eSNathan Whitehorn #endif
514774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args {
515774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
516774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5174412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5184412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
519774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
520774b72e1SBrooks Davis };
521774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args {
522774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
523774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5244412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5254412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
526774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
527774b72e1SBrooks Davis 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
528774b72e1SBrooks Davis };
529774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args {
530774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
531774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5324412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5334412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
534774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
535774b72e1SBrooks Davis 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
536774b72e1SBrooks Davis };
537f2296b58SKonstantin Belousov struct freebsd32_fexecve_args {
538f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5394412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
5404412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
541f2296b58SKonstantin Belousov };
542f2296b58SKonstantin Belousov struct freebsd32_futimesat_args {
543f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5444e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
545a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timeval32 *)]; const struct timeval32 * times; char times_r_[PADR_(const struct timeval32 *)];
546f2296b58SKonstantin Belousov };
547fe2f3c65SJamie Gritton struct freebsd32_jail_get_args {
548fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
549fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
550fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
551fe2f3c65SJamie Gritton };
552fe2f3c65SJamie Gritton struct freebsd32_jail_set_args {
553fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
554fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
555fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
556fe2f3c65SJamie Gritton };
5573899e0dfSJohn Baldwin struct freebsd32_semctl_args {
5583899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
5593899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
5603899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5613899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
5623899e0dfSJohn Baldwin };
5633899e0dfSJohn Baldwin struct freebsd32_msgctl_args {
5643899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
5653899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5663899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
5673899e0dfSJohn Baldwin };
5683899e0dfSJohn Baldwin struct freebsd32_shmctl_args {
5693899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
5703899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5713899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
5723899e0dfSJohn Baldwin };
573063e9958SKonstantin Belousov struct freebsd32_pselect_args {
574063e9958SKonstantin Belousov 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
575063e9958SKonstantin Belousov 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
576063e9958SKonstantin Belousov 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
577063e9958SKonstantin Belousov 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
578063e9958SKonstantin Belousov 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
579063e9958SKonstantin Belousov 	char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
580063e9958SKonstantin Belousov };
581f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
582f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args {
583f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
584f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
585f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
586f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
587f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
588f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
589f85769ebSKonstantin Belousov };
590f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args {
591f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
592f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
593f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
594f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
595f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
596f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
597f85769ebSKonstantin Belousov 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
598f85769ebSKonstantin Belousov };
599f85769ebSKonstantin Belousov struct freebsd32_wait6_args {
600f85769ebSKonstantin Belousov 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
601f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
602f85769ebSKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
603f85769ebSKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
604f85769ebSKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
605f85769ebSKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
606f85769ebSKonstantin Belousov 	char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
60785d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
608f85769ebSKonstantin Belousov };
609f85769ebSKonstantin Belousov #else
6107323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args {
6117323776bSMatthew D Fleming 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
612660d55fbSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
613660d55fbSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
614660d55fbSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
615660d55fbSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
6167323776bSMatthew D Fleming };
617cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args {
618cd06ae5cSJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
619cd06ae5cSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
620cd06ae5cSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
621cd06ae5cSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
622cd06ae5cSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
623cd06ae5cSJohn Baldwin 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
624cd06ae5cSJohn Baldwin };
625552e9935SKonstantin Belousov struct freebsd32_wait6_args {
626552e9935SKonstantin Belousov 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
627f85769ebSKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
628f85769ebSKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
629552e9935SKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
630552e9935SKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
631552e9935SKonstantin Belousov 	char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
63285d1d2a6SBrooks Davis 	char info_l_[PADL_(struct siginfo32 *)]; struct siginfo32 * info; char info_r_[PADR_(struct siginfo32 *)];
633552e9935SKonstantin Belousov };
634f85769ebSKonstantin Belousov #endif
635e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args {
636e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
637e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
638e11dc435SPawel Jakub Dawidek 	char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
639e11dc435SPawel Jakub Dawidek };
640e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args {
641e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
642e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
643e11dc435SPawel Jakub Dawidek 	char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
644e11dc435SPawel Jakub Dawidek };
6458d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args {
6468d1aa3c6SGleb Smirnoff 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
6478d1aa3c6SGleb Smirnoff };
648a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
649a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
650a566e8e3SJohn Baldwin 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
651a566e8e3SJohn Baldwin 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
652a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
653a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
654a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
655a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
656a566e8e3SJohn Baldwin };
657a566e8e3SJohn Baldwin #else
658a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
659a566e8e3SJohn Baldwin 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
660a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
661a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
662a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
663a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
664a566e8e3SJohn Baldwin };
665a566e8e3SJohn Baldwin #endif
666c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args {
667c28d9d0fSDmitry Chagin 	char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
668c28d9d0fSDmitry Chagin 	char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
669c28d9d0fSDmitry Chagin 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
670c28d9d0fSDmitry Chagin 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
671c28d9d0fSDmitry Chagin };
6722b35e6a9SJilles Tjoelker struct freebsd32_futimens_args {
6732b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
674a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6752b35e6a9SJilles Tjoelker };
6762b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args {
6772b35e6a9SJilles Tjoelker 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6784e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
679a944d28dSBrooks Davis 	char times_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * times; char times_r_[PADR_(const struct timespec32 *)];
6802b35e6a9SJilles Tjoelker 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
6812b35e6a9SJilles Tjoelker };
682ec95c622SKonstantin Belousov struct freebsd32_fstat_args {
683ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
684ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
685ec95c622SKonstantin Belousov };
686ec95c622SKonstantin Belousov struct freebsd32_fstatat_args {
687ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6884e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
689ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
690ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
691ec95c622SKonstantin Belousov };
692ec95c622SKonstantin Belousov struct freebsd32_fhstat_args {
693ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
694ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
695ec95c622SKonstantin Belousov };
6964b499c75SBrooks Davis #ifdef PAD64_REQUIRED
6974b499c75SBrooks Davis struct freebsd32_mknodat_args {
6984b499c75SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
6994b499c75SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
7004b499c75SBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
7014b499c75SBrooks Davis 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
7024b499c75SBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
7034b499c75SBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
7044b499c75SBrooks Davis };
7054b499c75SBrooks Davis #else
7064b499c75SBrooks Davis struct freebsd32_mknodat_args {
7074b499c75SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
7084b499c75SBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
7094b499c75SBrooks Davis 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
7104b499c75SBrooks Davis 	char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
7114b499c75SBrooks Davis 	char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
7124b499c75SBrooks Davis };
7134b499c75SBrooks Davis #endif
714eb84ca64SKonstantin Belousov struct freebsd32_kevent_args {
715eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
716eb84ca64SKonstantin Belousov 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
717eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
718eb84ca64SKonstantin Belousov 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
719eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
720eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
721eb84ca64SKonstantin Belousov };
722af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args {
723af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
724af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
725af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
726af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
727af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
728af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
729af80820aSJeff Roberson 	char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
730af80820aSJeff Roberson };
731af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args {
732af80820aSJeff Roberson 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
733af80820aSJeff Roberson 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
734af80820aSJeff Roberson 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
735af80820aSJeff Roberson 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
736af80820aSJeff Roberson 	char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
737af80820aSJeff Roberson 	char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
738af80820aSJeff Roberson 	char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
739af80820aSJeff Roberson };
740d05b53e0SMateusz Guzik struct freebsd32___sysctlbyname_args {
741d05b53e0SMateusz Guzik 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
742d05b53e0SMateusz Guzik 	char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
743d05b53e0SMateusz Guzik 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
744d05b53e0SMateusz Guzik 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
745d05b53e0SMateusz Guzik 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
746d05b53e0SMateusz Guzik 	char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
747d05b53e0SMateusz Guzik };
74820321e62SAlan Somers struct freebsd32_aio_writev_args {
74920321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
75020321e62SAlan Somers };
75120321e62SAlan Somers struct freebsd32_aio_readv_args {
75220321e62SAlan Somers 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
75320321e62SAlan Somers };
754da9fe352SKa Ho Ng struct freebsd32_fspacectl_args {
755da9fe352SKa Ho Ng 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
756da9fe352SKa Ho Ng 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
757da9fe352SKa Ho Ng 	char rqsr_l_[PADL_(const struct spacectl_range32 *)]; const struct spacectl_range32 * rqsr; char rqsr_r_[PADR_(const struct spacectl_range32 *)];
758da9fe352SKa Ho Ng 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
759da9fe352SKa Ho Ng 	char rmsr_l_[PADL_(struct spacectl_range32 *)]; struct spacectl_range32 * rmsr; char rmsr_r_[PADR_(struct spacectl_range32 *)];
760da9fe352SKa Ho Ng };
76121fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
762841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
763841c0c7eSNathan Whitehorn #endif
76494e75644SPeter Wemm int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
76558b552dcSJohn Baldwin int	freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
76615857ef5SPaul Saab int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
76715857ef5SPaul Saab int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
76815857ef5SPaul Saab int	freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
76994e75644SPeter Wemm int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
770663c5800SDavid E. O'Brien int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
77194e75644SPeter Wemm int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
772f8244106SMarcel Moolenaar int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
77394e75644SPeter Wemm int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
774996a568eSPeter Wemm int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
7755aec07c7SKonstantin Belousov int	freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
77694e75644SPeter Wemm int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
77794e75644SPeter Wemm int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
77894e75644SPeter Wemm int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
77994e75644SPeter Wemm int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
78094e75644SPeter Wemm int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
78194e75644SPeter Wemm int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
78294e75644SPeter Wemm int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
78394e75644SPeter Wemm int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
7849da68040SKonstantin Belousov int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
78594e75644SPeter Wemm int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
78694e75644SPeter Wemm int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
78794e75644SPeter Wemm int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
788d7d95c3fSKonstantin Belousov int	freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
78986e06fa5SBrooks Davis int	freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
790f06b8643SDoug Ambrisko int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
7915e868cbbSJung-uk Kim int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
7925e868cbbSJung-uk Kim int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
793fd151bb9SPaul Saab int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
794fd151bb9SPaul Saab int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
795fd151bb9SPaul Saab int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
79668044954SKonstantin Belousov int	freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
79768044954SKonstantin Belousov int	freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
79868044954SKonstantin Belousov int	freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
7997fdf2c85SPaul Saab int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
80026f86ab7SEric van Gyzen int	freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
801c5d03637SKonstantin Belousov int	freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
8025d8d23c7SJohn Baldwin int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
8035d8d23c7SJohn Baldwin int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
8045d8d23c7SJohn Baldwin int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
805cac2fa64SDoug Ambrisko int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
8069f3157a2SJohn Baldwin int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
8079f3157a2SJohn Baldwin int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
8080e214fadSPaul Saab int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
809eea5c618SKonstantin Belousov int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
8105d8d23c7SJohn Baldwin int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
8115d8d23c7SJohn Baldwin int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
8125d8d23c7SJohn Baldwin int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
813f2f5c215SKonstantin Belousov int	freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
814c542c43eSJamie Gritton int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
815312a0e5fSDavid Xu int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
816312a0e5fSDavid Xu int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
8175d8d23c7SJohn Baldwin int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
818f1287854SDavid E. O'Brien int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
81994e75644SPeter Wemm int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
82028ad01d2SKonstantin Belousov int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
82128ad01d2SKonstantin Belousov int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
82294e75644SPeter Wemm int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
82394e75644SPeter Wemm int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
824a11ea6e3SPeter Wemm int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
825a11ea6e3SPeter Wemm int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
826a11ea6e3SPeter Wemm int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
82728ad01d2SKonstantin Belousov int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
828ac3674aaSDavid Xu int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
829e1e300b6SBrooks Davis int	freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
830ac3674aaSDavid Xu int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
831e9f32d1dSBrooks Davis int	freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
83228ad01d2SKonstantin Belousov int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
83328ad01d2SKonstantin Belousov int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
83428ad01d2SKonstantin Belousov int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
83528ad01d2SKonstantin Belousov int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
83668044954SKonstantin Belousov int	freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
8375d8d23c7SJohn Baldwin int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
838841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
839486abf93SPeter Wemm int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
840486abf93SPeter Wemm int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
841486abf93SPeter Wemm int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
842486abf93SPeter Wemm int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
843486abf93SPeter Wemm int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
844486abf93SPeter Wemm int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
845841c0c7eSNathan Whitehorn #else
846841c0c7eSNathan Whitehorn int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
847841c0c7eSNathan Whitehorn int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
848841c0c7eSNathan Whitehorn int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
849841c0c7eSNathan Whitehorn int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
850841c0c7eSNathan Whitehorn int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
851841c0c7eSNathan Whitehorn int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
852841c0c7eSNathan Whitehorn #endif
853841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
854774b72e1SBrooks Davis int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
855841c0c7eSNathan Whitehorn #else
856841c0c7eSNathan Whitehorn int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
857841c0c7eSNathan Whitehorn #endif
858774b72e1SBrooks Davis int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
859774b72e1SBrooks Davis int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
860774b72e1SBrooks Davis int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
861f2296b58SKonstantin Belousov int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
862f2296b58SKonstantin Belousov int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
863fe2f3c65SJamie Gritton int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
864fe2f3c65SJamie Gritton int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
8653899e0dfSJohn Baldwin int	freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
8663899e0dfSJohn Baldwin int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
8673899e0dfSJohn Baldwin int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
868063e9958SKonstantin Belousov int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
869f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
8707323776bSMatthew D Fleming int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
871cd06ae5cSJohn Baldwin int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
872552e9935SKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
873f85769ebSKonstantin Belousov #else
874f85769ebSKonstantin Belousov int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
875f85769ebSKonstantin Belousov int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
876f85769ebSKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
877f85769ebSKonstantin Belousov #endif
878e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
879e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
8808d1aa3c6SGleb Smirnoff int	freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
881a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
882a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
883a566e8e3SJohn Baldwin #else
884a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
885a566e8e3SJohn Baldwin #endif
886c28d9d0fSDmitry Chagin int	freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
8872b35e6a9SJilles Tjoelker int	freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
8882b35e6a9SJilles Tjoelker int	freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
889ec95c622SKonstantin Belousov int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
890ec95c622SKonstantin Belousov int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
891ec95c622SKonstantin Belousov int	freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
8924b499c75SBrooks Davis #ifdef PAD64_REQUIRED
8934b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
8944b499c75SBrooks Davis #else
8954b499c75SBrooks Davis int	freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
8964b499c75SBrooks Davis #endif
897eb84ca64SKonstantin Belousov int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
898af80820aSJeff Roberson int	freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
899af80820aSJeff Roberson int	freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
900d05b53e0SMateusz Guzik int	freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
90120321e62SAlan Somers int	freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
90220321e62SAlan Somers int	freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
903da9fe352SKa Ho Ng int	freebsd32_fspacectl(struct thread *, struct freebsd32_fspacectl_args *);
9045eb29d9bSDoug Rabson 
9055eb29d9bSDoug Rabson #ifdef COMPAT_43
9065eb29d9bSDoug Rabson 
90721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
908841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
909841c0c7eSNathan Whitehorn #endif
910160e5953SKonstantin Belousov struct ofreebsd32_lseek_args {
911160e5953SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
912160e5953SKonstantin Belousov 	char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)];
913160e5953SKonstantin Belousov 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
914160e5953SKonstantin Belousov };
915c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args {
9164e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
917c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
918c3b2c052SKonstantin Belousov };
919c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args {
9204e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
921c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
922c3b2c052SKonstantin Belousov };
923946bca4fSPeter Wemm struct ofreebsd32_sigaction_args {
924946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
925946bca4fSPeter Wemm 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
926946bca4fSPeter Wemm 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
927946bca4fSPeter Wemm };
928946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args {
929946bca4fSPeter Wemm 	char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
930946bca4fSPeter Wemm 	char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
931946bca4fSPeter Wemm };
932c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args {
933c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
934c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
935c3b2c052SKonstantin Belousov };
936c3b2c052SKonstantin Belousov struct ofreebsd32_getpagesize_args {
937c3b2c052SKonstantin Belousov 	char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)];
938c3b2c052SKonstantin Belousov };
9399df4e7e2SBrooks Davis struct ofreebsd32_mmap_args {
9409df4e7e2SBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
9419df4e7e2SBrooks Davis 	char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
9429df4e7e2SBrooks Davis 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
9439df4e7e2SBrooks Davis 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9449df4e7e2SBrooks Davis 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9459df4e7e2SBrooks Davis 	char pos_l_[PADL_(int32_t)]; int32_t pos; char pos_r_[PADR_(int32_t)];
9469df4e7e2SBrooks Davis };
947c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args {
948c3b2c052SKonstantin Belousov 	char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
949c3b2c052SKonstantin Belousov };
950946bca4fSPeter Wemm struct ofreebsd32_sigvec_args {
951946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
952946bca4fSPeter Wemm 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
953946bca4fSPeter Wemm 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
954946bca4fSPeter Wemm };
955946bca4fSPeter Wemm struct ofreebsd32_sigblock_args {
956946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
957946bca4fSPeter Wemm };
958946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args {
959946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
960946bca4fSPeter Wemm };
961946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args {
962946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
963946bca4fSPeter Wemm };
964946bca4fSPeter Wemm struct ofreebsd32_sigstack_args {
965946bca4fSPeter Wemm 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
966946bca4fSPeter Wemm 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
967946bca4fSPeter Wemm };
968c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args {
969c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
970c3b2c052SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
971c3b2c052SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
972c3b2c052SKonstantin Belousov 	char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)];
973c3b2c052SKonstantin Belousov };
974841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
975841c0c7eSNathan Whitehorn #else
976841c0c7eSNathan Whitehorn #endif
977841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
978841c0c7eSNathan Whitehorn #else
979841c0c7eSNathan Whitehorn #endif
980f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
981f85769ebSKonstantin Belousov #else
982f85769ebSKonstantin Belousov #endif
983a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
984a566e8e3SJohn Baldwin #else
985a566e8e3SJohn Baldwin #endif
9864b499c75SBrooks Davis #ifdef PAD64_REQUIRED
9874b499c75SBrooks Davis #else
9884b499c75SBrooks Davis #endif
989160e5953SKonstantin Belousov int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
990c3b2c052SKonstantin Belousov int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
991c3b2c052SKonstantin Belousov int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
992946bca4fSPeter Wemm int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
993946bca4fSPeter Wemm int	ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
994946bca4fSPeter Wemm int	ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
995c3b2c052SKonstantin Belousov int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
996c3b2c052SKonstantin Belousov int	ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *);
9979df4e7e2SBrooks Davis int	ofreebsd32_mmap(struct thread *, struct ofreebsd32_mmap_args *);
998c3b2c052SKonstantin Belousov int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
999946bca4fSPeter Wemm int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
1000946bca4fSPeter Wemm int	ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
1001946bca4fSPeter Wemm int	ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
1002946bca4fSPeter Wemm int	ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
1003946bca4fSPeter Wemm int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
1004c3b2c052SKonstantin Belousov int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
10055eb29d9bSDoug Rabson 
10065eb29d9bSDoug Rabson #endif /* COMPAT_43 */
10075eb29d9bSDoug Rabson 
10080c5bd5f9SEdward Tomasz Napierala 
1009db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4
1010db27052eSPeter Wemm 
101121fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1012841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1013841c0c7eSNathan Whitehorn #endif
10145b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args {
10155b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
10165b3283b0SPeter Wemm 	char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
10171fabda45SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
10185b3283b0SPeter Wemm };
10195b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args {
10204e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
10215b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
10225b3283b0SPeter Wemm };
10235b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args {
10245b3283b0SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
10255b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
10265b3283b0SPeter Wemm };
10275b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args {
10285b3283b0SPeter Wemm 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
10295b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
10305b3283b0SPeter Wemm };
103194e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args {
10329105d26bSPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
10339105d26bSPeter Wemm 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
10344412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
10354412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
10369105d26bSPeter Wemm 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
103726e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
10389105d26bSPeter Wemm 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
10399105d26bSPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
10409105d26bSPeter Wemm };
104194e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args {
1042e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1043a944d28dSBrooks Davis 	char act_l_[PADL_(const struct sigaction32 *)]; const struct sigaction32 * act; char act_r_[PADR_(const struct sigaction32 *)];
1044e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
1045e14528b3SPeter Wemm };
104694e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args {
10475fdbd21dSBrooks Davis 	char sigcntxp_l_[PADL_(const struct freebsd4_ucontext32 *)]; const struct freebsd4_ucontext32 * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_ucontext32 *)];
1048e14528b3SPeter Wemm };
1049841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1050841c0c7eSNathan Whitehorn #else
1051841c0c7eSNathan Whitehorn #endif
1052841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1053841c0c7eSNathan Whitehorn #else
1054841c0c7eSNathan Whitehorn #endif
1055f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1056f85769ebSKonstantin Belousov #else
1057f85769ebSKonstantin Belousov #endif
1058a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1059a566e8e3SJohn Baldwin #else
1060a566e8e3SJohn Baldwin #endif
10614b499c75SBrooks Davis #ifdef PAD64_REQUIRED
10624b499c75SBrooks Davis #else
10634b499c75SBrooks Davis #endif
10645b3283b0SPeter Wemm int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
10655b3283b0SPeter Wemm int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
10665b3283b0SPeter Wemm int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
10675b3283b0SPeter Wemm int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
106894e75644SPeter Wemm int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
106994e75644SPeter Wemm int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
107094e75644SPeter Wemm int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
1071db27052eSPeter Wemm 
1072db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */
1073db27052eSPeter Wemm 
10740c5bd5f9SEdward Tomasz Napierala 
1075718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6
1076486abf93SPeter Wemm 
107721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1078841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1079841c0c7eSNathan Whitehorn #endif
1080486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args {
1081486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1082486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
1083486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1084486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10854412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
10864412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1087486abf93SPeter Wemm };
1088486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args {
1089486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1090486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
1091486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1092486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10934412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
10944412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1095486abf93SPeter Wemm };
1096486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args {
1097938e8dcfSBrooks Davis 	char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
1098486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
1099486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
1100486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1101486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1102486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11034412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
11044412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
1105486abf93SPeter Wemm };
1106486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args {
1107486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1108486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11094412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
11104412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1111486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
1112486abf93SPeter Wemm };
1113486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args {
11144e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1115486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11164412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
11174412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1118486abf93SPeter Wemm };
1119486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args {
1120486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1121486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
11224412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
11234412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1124486abf93SPeter Wemm };
11258d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args {
11268d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
11278d91acedSJohn Baldwin };
11288d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args {
11298d91acedSJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
11308d91acedSJohn Baldwin };
11318d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args {
11328d91acedSJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
11338d91acedSJohn Baldwin 	char acb_list_l_[PADL_(struct oaiocb32 * const *)]; struct oaiocb32 * const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 * const *)];
11348d91acedSJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
11358d91acedSJohn Baldwin 	char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
11368d91acedSJohn Baldwin };
1137841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1138841c0c7eSNathan Whitehorn #else
1139841c0c7eSNathan Whitehorn #endif
1140841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1141841c0c7eSNathan Whitehorn #else
1142841c0c7eSNathan Whitehorn #endif
1143f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1144f85769ebSKonstantin Belousov #else
1145f85769ebSKonstantin Belousov #endif
1146a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1147a566e8e3SJohn Baldwin #else
1148a566e8e3SJohn Baldwin #endif
11494b499c75SBrooks Davis #ifdef PAD64_REQUIRED
11504b499c75SBrooks Davis #else
11514b499c75SBrooks Davis #endif
1152486abf93SPeter Wemm int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1153486abf93SPeter Wemm int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1154486abf93SPeter Wemm int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1155486abf93SPeter Wemm int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1156486abf93SPeter Wemm int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1157486abf93SPeter Wemm int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
11588d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
11598d91acedSJohn Baldwin int	freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
11608d91acedSJohn Baldwin int	freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1161486abf93SPeter Wemm 
1162718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */
1163486abf93SPeter Wemm 
11640c5bd5f9SEdward Tomasz Napierala 
11658ffab864SWarner Losh #ifdef COMPAT_FREEBSD7
11663899e0dfSJohn Baldwin 
116721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1168841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1169841c0c7eSNathan Whitehorn #endif
11703899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args {
11713899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
11723899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
11733899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
11743899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
11753899e0dfSJohn Baldwin };
11763899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args {
11773899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
11783899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
11793899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)];
11803899e0dfSJohn Baldwin };
11813899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args {
11823899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
11833899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
11843899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)];
11853899e0dfSJohn Baldwin };
1186841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1187841c0c7eSNathan Whitehorn #else
1188841c0c7eSNathan Whitehorn #endif
1189841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1190841c0c7eSNathan Whitehorn #else
1191841c0c7eSNathan Whitehorn #endif
1192f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1193f85769ebSKonstantin Belousov #else
1194f85769ebSKonstantin Belousov #endif
1195a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1196a566e8e3SJohn Baldwin #else
1197a566e8e3SJohn Baldwin #endif
11984b499c75SBrooks Davis #ifdef PAD64_REQUIRED
11994b499c75SBrooks Davis #else
12004b499c75SBrooks Davis #endif
12013899e0dfSJohn Baldwin int	freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *);
12023899e0dfSJohn Baldwin int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
12033899e0dfSJohn Baldwin int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
12043899e0dfSJohn Baldwin 
12058ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */
12063899e0dfSJohn Baldwin 
12070c5bd5f9SEdward Tomasz Napierala 
1208a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10
1209a72c64b0SBrooks Davis 
121021fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1211a72c64b0SBrooks Davis #define PAD64_REQUIRED
1212a72c64b0SBrooks Davis #endif
1213273728b1SKonstantin Belousov struct freebsd10_freebsd32_umtx_lock_args {
1214273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1215273728b1SKonstantin Belousov };
1216273728b1SKonstantin Belousov struct freebsd10_freebsd32_umtx_unlock_args {
1217273728b1SKonstantin Belousov 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1218273728b1SKonstantin Belousov };
1219a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1220a72c64b0SBrooks Davis #else
1221a72c64b0SBrooks Davis #endif
1222a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1223a72c64b0SBrooks Davis #else
1224a72c64b0SBrooks Davis #endif
1225a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1226a72c64b0SBrooks Davis #else
1227a72c64b0SBrooks Davis #endif
1228a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED
1229a72c64b0SBrooks Davis #else
1230a72c64b0SBrooks Davis #endif
12314b499c75SBrooks Davis #ifdef PAD64_REQUIRED
12324b499c75SBrooks Davis #else
12334b499c75SBrooks Davis #endif
1234a72c64b0SBrooks Davis int	freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_args *);
1235273728b1SKonstantin Belousov int	freebsd10_freebsd32_umtx_lock(struct thread *, struct freebsd10_freebsd32_umtx_lock_args *);
1236273728b1SKonstantin Belousov int	freebsd10_freebsd32_umtx_unlock(struct thread *, struct freebsd10_freebsd32_umtx_unlock_args *);
1237a72c64b0SBrooks Davis 
1238a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */
1239a72c64b0SBrooks Davis 
12400c5bd5f9SEdward Tomasz Napierala 
1241ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11
1242ec95c622SKonstantin Belousov 
124321fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1244ec95c622SKonstantin Belousov #define PAD64_REQUIRED
1245ec95c622SKonstantin Belousov #endif
1246ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args {
12474e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1248ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1249ec95c622SKonstantin Belousov };
1250ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args {
1251ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1252ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1253ec95c622SKonstantin Belousov };
1254ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args {
12554e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1256ec95c622SKonstantin Belousov 	char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1257ec95c622SKonstantin Belousov };
1258ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args {
1259ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1260ec95c622SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1261ec95c622SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1262ec95c622SKonstantin Belousov 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1263ec95c622SKonstantin Belousov };
1264ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdents_args {
1265ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1266ec95c622SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1267ec95c622SKonstantin Belousov 	char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
1268ec95c622SKonstantin Belousov };
1269ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args {
1270ec95c622SKonstantin Belousov 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1271ec95c622SKonstantin Belousov 	char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1272ec95c622SKonstantin Belousov };
1273eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args {
1274eb84ca64SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
12753f8ced5bSBrooks Davis 	char changelist_l_[PADL_(const struct freebsd11_kevent32 *)]; const struct freebsd11_kevent32 * changelist; char changelist_r_[PADR_(const struct freebsd11_kevent32 *)];
1276eb84ca64SKonstantin Belousov 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
12773f8ced5bSBrooks Davis 	char eventlist_l_[PADL_(struct freebsd11_kevent32 *)]; struct freebsd11_kevent32 * eventlist; char eventlist_r_[PADR_(struct freebsd11_kevent32 *)];
1278eb84ca64SKonstantin Belousov 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1279eb84ca64SKonstantin Belousov 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1280eb84ca64SKonstantin Belousov };
1281ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1282ec95c622SKonstantin Belousov #else
1283ec95c622SKonstantin Belousov #endif
1284ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1285ec95c622SKonstantin Belousov #else
1286ec95c622SKonstantin Belousov #endif
1287ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args {
1288ec95c622SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
12894e8c73ebSBrooks Davis 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1290ec95c622SKonstantin Belousov 	char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1291ec95c622SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1292ec95c622SKonstantin Belousov };
1293ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1294ec95c622SKonstantin Belousov #else
1295ec95c622SKonstantin Belousov #endif
1296ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED
1297ec95c622SKonstantin Belousov #else
1298ec95c622SKonstantin Belousov #endif
12994b499c75SBrooks Davis #ifdef PAD64_REQUIRED
13004b499c75SBrooks Davis #else
13014b499c75SBrooks Davis #endif
1302ec95c622SKonstantin Belousov int	freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1303ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1304ec95c622SKonstantin Belousov int	freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1305ec95c622SKonstantin Belousov int	freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1306ec95c622SKonstantin Belousov int	freebsd11_freebsd32_getdents(struct thread *, struct freebsd11_freebsd32_getdents_args *);
1307ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1308eb84ca64SKonstantin Belousov int	freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
1309ec95c622SKonstantin Belousov int	freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1310ec95c622SKonstantin Belousov 
1311ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */
1312ec95c622SKonstantin Belousov 
13130c5bd5f9SEdward Tomasz Napierala 
1314d19f028eSKyle Evans #ifdef COMPAT_FREEBSD12
1315d19f028eSKyle Evans 
1316d19f028eSKyle Evans #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1317d19f028eSKyle Evans #define PAD64_REQUIRED
1318d19f028eSKyle Evans #endif
1319d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1320d19f028eSKyle Evans #else
1321d19f028eSKyle Evans #endif
1322d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1323d19f028eSKyle Evans #else
1324d19f028eSKyle Evans #endif
1325d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1326d19f028eSKyle Evans #else
1327d19f028eSKyle Evans #endif
1328d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1329d19f028eSKyle Evans #else
1330d19f028eSKyle Evans #endif
1331d19f028eSKyle Evans #ifdef PAD64_REQUIRED
1332d19f028eSKyle Evans #else
1333d19f028eSKyle Evans #endif
1334d19f028eSKyle Evans 
1335d19f028eSKyle Evans #endif /* COMPAT_FREEBSD12 */
1336d19f028eSKyle Evans 
1337f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
1338e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
1339160e5953SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
134058b552dcSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_ptrace	AUE_PTRACE
1341f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
1342f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
1343f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvfrom	AUE_RECVFROM
1344c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
1345c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
1346a72c64b0SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32_pipe	AUE_PIPE
1347e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
1348e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask	AUE_SIGPROCMASK
1349e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigpending	AUE_SIGPENDING
1350da7cbdc2SRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
1351d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_IOCTL
1352f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
1353c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
1354c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getpagesize	AUE_NULL
13559df4e7e2SBrooks Davis #define	FREEBSD32_SYS_AUE_ofreebsd32_mmap	AUE_MMAP
1356f8244106SMarcel Moolenaar #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
1357f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
1358f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
13595aec07c7SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fcntl	AUE_FCNTL
1360f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
1361d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_SIGRETURN
1362e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_O_SIGVEC
1363e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigblock	AUE_O_SIGBLOCK
1364e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask	AUE_O_SIGSETMASK
1365e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend	AUE_SIGSUSPEND
1366e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_O_SIGSTACK
1367f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
1368f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
1369f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
1370f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
1371f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
1372f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
1373f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
1374c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
1375e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
1376e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
13779da68040SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
1378f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
1379f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
1380f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
1381e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
1382e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
1383d7d95c3fSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime	AUE_NTP_ADJTIME
1384ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat	AUE_STAT
1385ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat	AUE_FSTAT
1386ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat	AUE_LSTAT
1387ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries	AUE_GETDIRENTRIES
1388e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1389e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1390e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1391e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
139286e06fa5SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32___sysctl	AUE_SYSCTL
1393f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
13943899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl	AUE_SEMCTL
13953899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
13965e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
13975e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
13983899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1399f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1400f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1401f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
140268044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_create	AUE_NULL
140368044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_settime	AUE_NULL
140468044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime	AUE_NULL
1405f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
140626f86ab7SEric van Gyzen #define	FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep	AUE_NULL
1407c5d03637SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2	AUE_NULL
1408d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_AIO_READ
1409d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_AIO_WRITE
1410d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_LIO_LISTIO
1411ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdents	AUE_O_GETDENTS
1412f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1413f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1414f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1415e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1416ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat	AUE_FHSTAT
1417f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1418eea5c618SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
1419d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_AIO_RETURN
1420d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_AIO_SUSPEND
1421d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_AIO_ERROR
1422d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read	AUE_AIO_READ
1423d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write	AUE_AIO_WRITE
1424d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio	AUE_LIO_LISTIO
1425f2f5c215SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval	AUE_NULL
1426e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1427c542c43eSJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1428e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1429e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1430312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1431312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
1432d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_AIO_WAITCOMPLETE
1433eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent	AUE_KEVENT
1434f1287854SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1435e482025eSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
1436d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_SEMINIT
1437d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_SEMOPEN
1438f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1439f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1440f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1441f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1442f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
1443273728b1SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_lock	AUE_NULL
1444273728b1SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_unlock	AUE_NULL
1445d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_SEMWAIT
1446ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
1447e1e300b6SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32__umtx_op	AUE_NULL
1448d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_THR_NEW
1449e9f32d1dSBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_sigqueue	AUE_NULL
1450d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_MQ_OPEN
1451d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_MQ_SETATTR
1452d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_MQ_TIMEDRECEIVE
1453d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_MQ_TIMEDSEND
1454d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_kmq_notify	AUE_MQ_NOTIFY
1455d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_AIO_FSYNC
1456486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1457486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1458486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1459486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1460486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1461486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1462841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1463841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1464841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1465841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1466841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1467841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1468841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1469774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1470774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1471774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1472774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1473f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1474ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat	AUE_FSTATAT
1475f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1476d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_JAIL_GET
1477d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_JAIL_SET
14783899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semctl	AUE_SEMCTL
14793899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
14803899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
1481063e9958SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
1482d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1483d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1484552e9935SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1485d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_POSIX_FALLOCATE
1486d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_POSIX_FADVISE
1487f85769ebSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1488e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit	AUE_CAP_IOCTLS_LIMIT
1489e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get	AUE_CAP_IOCTLS_GET
1490d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_aio_mlock	AUE_AIO_MLOCK
1491d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1492d8ca0a2bSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_PROCCTL
1493c28d9d0fSDmitry Chagin #define	FREEBSD32_SYS_AUE_freebsd32_ppoll	AUE_POLL
14942b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_futimens	AUE_FUTIMES
14952b35e6a9SJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_utimensat	AUE_FUTIMESAT
1496ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
1497ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1498ec95c622SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fhstat	AUE_FHSTAT
14994b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
15004b499c75SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_mknodat	AUE_MKNODAT
1501eb84ca64SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_KEVENT
1502af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain	AUE_NULL
1503af80820aSJeff Roberson #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain	AUE_NULL
1504d05b53e0SMateusz Guzik #define	FREEBSD32_SYS_AUE_freebsd32___sysctlbyname	AUE_SYSCTL
150520321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_writev	AUE_AIO_WRITEV
150620321e62SAlan Somers #define	FREEBSD32_SYS_AUE_freebsd32_aio_readv	AUE_AIO_READV
1507da9fe352SKa Ho Ng #define	FREEBSD32_SYS_AUE_freebsd32_fspacectl	AUE_FSPACECTL
1508f8f1f7fbSJohn Baldwin 
15095eb29d9bSDoug Rabson #undef PAD_
15105eb29d9bSDoug Rabson #undef PADL_
15115eb29d9bSDoug Rabson #undef PADR_
15125eb29d9bSDoug Rabson 
151394e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */
1514