xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision a566e8e3c5b6e5574dbb29a86a4d418162b4af52)
15eb29d9bSDoug Rabson /*
25eb29d9bSDoug Rabson  * System call prototypes.
35eb29d9bSDoug Rabson  *
45eb29d9bSDoug Rabson  * DO NOT EDIT-- this file is automatically generated.
55eb29d9bSDoug Rabson  * $FreeBSD$
6*a566e8e3SJohn Baldwin  * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 255708 2013-09-19 18:53:42Z jhb
75eb29d9bSDoug Rabson  */
85eb29d9bSDoug Rabson 
994e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_
1094e75644SPeter Wemm #define	_FREEBSD32_SYSPROTO_H_
115eb29d9bSDoug Rabson 
125eb29d9bSDoug Rabson #include <sys/signal.h>
135eb29d9bSDoug Rabson #include <sys/acl.h>
145c63b21aSJohn Baldwin #include <sys/cpuset.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 
379624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
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 };
4615857ef5SPaul Saab struct freebsd32_recvmsg_args {
4715857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
4815857ef5SPaul Saab 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
4915857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
5015857ef5SPaul Saab };
5115857ef5SPaul Saab struct freebsd32_sendmsg_args {
5215857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
5315857ef5SPaul Saab 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
5415857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
5515857ef5SPaul Saab };
5615857ef5SPaul Saab struct freebsd32_recvfrom_args {
5715857ef5SPaul Saab 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
584412ad48SEd Schouten 	char buf_l_[PADL_(uint32_t)]; uint32_t buf; char buf_r_[PADR_(uint32_t)];
594412ad48SEd Schouten 	char len_l_[PADL_(uint32_t)]; uint32_t len; char len_r_[PADR_(uint32_t)];
6015857ef5SPaul Saab 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
614412ad48SEd Schouten 	char from_l_[PADL_(uint32_t)]; uint32_t from; char from_r_[PADR_(uint32_t)];
624412ad48SEd Schouten 	char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)];
6315857ef5SPaul Saab };
64946bca4fSPeter Wemm struct ofreebsd32_sigpending_args {
6590168b92SPaul Saab 	register_t dummy;
6690168b92SPaul Saab };
6794e75644SPeter Wemm struct freebsd32_sigaltstack_args {
68db27052eSPeter Wemm 	char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
69db27052eSPeter Wemm 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
705eb29d9bSDoug Rabson };
71663c5800SDavid E. O'Brien struct freebsd32_ioctl_args {
72663c5800SDavid E. O'Brien 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
73663c5800SDavid E. O'Brien 	char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)];
74663c5800SDavid E. O'Brien 	char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)];
75663c5800SDavid E. O'Brien };
7694e75644SPeter Wemm struct freebsd32_execve_args {
775eb29d9bSDoug Rabson 	char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
784412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
794412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
805eb29d9bSDoug Rabson };
81f8244106SMarcel Moolenaar struct freebsd32_mprotect_args {
82f8244106SMarcel Moolenaar 	char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
83f8244106SMarcel Moolenaar 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
84f8244106SMarcel Moolenaar 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
85f8244106SMarcel Moolenaar };
8694e75644SPeter Wemm struct freebsd32_setitimer_args {
875eb29d9bSDoug Rabson 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
88db27052eSPeter Wemm 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
89db27052eSPeter Wemm 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
905eb29d9bSDoug Rabson };
91996a568eSPeter Wemm struct freebsd32_getitimer_args {
92996a568eSPeter Wemm 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
93996a568eSPeter Wemm 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
94996a568eSPeter Wemm };
9594e75644SPeter Wemm struct freebsd32_select_args {
965eb29d9bSDoug Rabson 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
975eb29d9bSDoug Rabson 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
985eb29d9bSDoug Rabson 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
995eb29d9bSDoug Rabson 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
100db27052eSPeter Wemm 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
1015eb29d9bSDoug Rabson };
10294e75644SPeter Wemm struct freebsd32_gettimeofday_args {
103db27052eSPeter Wemm 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
1045eb29d9bSDoug Rabson 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
1055eb29d9bSDoug Rabson };
10694e75644SPeter Wemm struct freebsd32_getrusage_args {
1075eb29d9bSDoug Rabson 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
108db27052eSPeter Wemm 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
1095eb29d9bSDoug Rabson };
11094e75644SPeter Wemm struct freebsd32_readv_args {
1115eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1135eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1145eb29d9bSDoug Rabson };
11594e75644SPeter Wemm struct freebsd32_writev_args {
1165eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
117db27052eSPeter Wemm 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
1185eb29d9bSDoug Rabson 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1195eb29d9bSDoug Rabson };
12094e75644SPeter Wemm struct freebsd32_settimeofday_args {
121db27052eSPeter Wemm 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
1225eb29d9bSDoug Rabson 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
1235eb29d9bSDoug Rabson };
12494e75644SPeter Wemm struct freebsd32_utimes_args {
125db27052eSPeter Wemm 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
126db27052eSPeter Wemm 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
127db27052eSPeter Wemm };
12894e75644SPeter Wemm struct freebsd32_adjtime_args {
129db27052eSPeter Wemm 	char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
130db27052eSPeter Wemm 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
131db27052eSPeter Wemm };
1329da68040SKonstantin Belousov struct freebsd32_sysarch_args {
1339da68040SKonstantin Belousov 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1349da68040SKonstantin Belousov 	char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
1359da68040SKonstantin Belousov };
13694e75644SPeter Wemm struct freebsd32_semsys_args {
1375eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1385eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1395eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1405eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1415eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1425eb29d9bSDoug Rabson };
14394e75644SPeter Wemm struct freebsd32_msgsys_args {
1445eb29d9bSDoug Rabson 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
1455eb29d9bSDoug Rabson 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
1465eb29d9bSDoug Rabson 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
1475eb29d9bSDoug Rabson 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
1485eb29d9bSDoug Rabson 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
1495eb29d9bSDoug Rabson 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
1505eb29d9bSDoug Rabson };
15194e75644SPeter Wemm struct freebsd32_shmsys_args {
15274f7258fSPaul Saab 	char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
15374f7258fSPaul Saab 	char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
15474f7258fSPaul Saab 	char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
15574f7258fSPaul Saab 	char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
1565eb29d9bSDoug Rabson };
15794e75644SPeter Wemm struct freebsd32_stat_args {
1585eb29d9bSDoug Rabson 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
159db27052eSPeter Wemm 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
1605eb29d9bSDoug Rabson };
16194e75644SPeter Wemm struct freebsd32_fstat_args {
1625eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
163db27052eSPeter Wemm 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
1645eb29d9bSDoug Rabson };
16594e75644SPeter Wemm struct freebsd32_lstat_args {
1665eb29d9bSDoug Rabson 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
167db27052eSPeter Wemm 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
1685eb29d9bSDoug Rabson };
16923aa8eeaSJohn Baldwin struct freebsd32_getdirentries_args {
17023aa8eeaSJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
17123aa8eeaSJohn Baldwin 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
17223aa8eeaSJohn Baldwin 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
17323aa8eeaSJohn Baldwin 	char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
17423aa8eeaSJohn Baldwin };
17594e75644SPeter Wemm struct freebsd32_sysctl_args {
1765eb29d9bSDoug Rabson 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
1775eb29d9bSDoug Rabson 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
1785eb29d9bSDoug Rabson 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
1794412ad48SEd Schouten 	char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
1805eb29d9bSDoug Rabson 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
1814412ad48SEd Schouten 	char newlen_l_[PADL_(uint32_t)]; uint32_t newlen; char newlen_r_[PADR_(uint32_t)];
1825eb29d9bSDoug Rabson };
183f06b8643SDoug Ambrisko struct freebsd32_futimes_args {
184f06b8643SDoug Ambrisko 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
185f06b8643SDoug Ambrisko 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
186f06b8643SDoug Ambrisko };
1875e868cbbSJung-uk Kim struct freebsd32_msgsnd_args {
1885e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1895e868cbbSJung-uk Kim 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
1905e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1915e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1925e868cbbSJung-uk Kim };
1935e868cbbSJung-uk Kim struct freebsd32_msgrcv_args {
1945e868cbbSJung-uk Kim 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1955e868cbbSJung-uk Kim 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
1965e868cbbSJung-uk Kim 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
1975e868cbbSJung-uk Kim 	char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
1985e868cbbSJung-uk Kim 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1995e868cbbSJung-uk Kim };
200fd151bb9SPaul Saab struct freebsd32_clock_gettime_args {
201fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
202fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
203fd151bb9SPaul Saab };
204fd151bb9SPaul Saab struct freebsd32_clock_settime_args {
205fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
206fd151bb9SPaul Saab 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
207fd151bb9SPaul Saab };
208fd151bb9SPaul Saab struct freebsd32_clock_getres_args {
209fd151bb9SPaul Saab 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
210fd151bb9SPaul Saab 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
211fd151bb9SPaul Saab };
21268044954SKonstantin Belousov struct freebsd32_ktimer_create_args {
21368044954SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
21468044954SKonstantin Belousov 	char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
21568044954SKonstantin Belousov 	char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
21668044954SKonstantin Belousov };
21768044954SKonstantin Belousov struct freebsd32_ktimer_settime_args {
21868044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
21968044954SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
22068044954SKonstantin Belousov 	char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
22168044954SKonstantin Belousov 	char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
22268044954SKonstantin Belousov };
22368044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args {
22468044954SKonstantin Belousov 	char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
22568044954SKonstantin Belousov 	char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
22668044954SKonstantin Belousov };
2277fdf2c85SPaul Saab struct freebsd32_nanosleep_args {
228145f7e60SPaul Saab 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
229145f7e60SPaul Saab 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
2307fdf2c85SPaul Saab };
231c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args {
232c5d03637SKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
233c5d03637SKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
234c5d03637SKonstantin Belousov 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
235c5d03637SKonstantin Belousov 	char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
236c5d03637SKonstantin Belousov };
2375d8d23c7SJohn Baldwin struct freebsd32_aio_read_args {
2385d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2395d8d23c7SJohn Baldwin };
2405d8d23c7SJohn Baldwin struct freebsd32_aio_write_args {
2415d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2425d8d23c7SJohn Baldwin };
2435d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args {
2445d8d23c7SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2455d8d23c7SJohn Baldwin 	char acb_list_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * acb_list; char acb_list_r_[PADR_(struct aiocb32 *const *)];
2465d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
24768044954SKonstantin Belousov 	char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
2485d8d23c7SJohn Baldwin };
249cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args {
250cac2fa64SDoug Ambrisko 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
251cac2fa64SDoug Ambrisko 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
252cac2fa64SDoug Ambrisko };
2539f3157a2SJohn Baldwin struct freebsd32_preadv_args {
2549f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2559f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2569f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2574412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2584412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2599f3157a2SJohn Baldwin };
2609f3157a2SJohn Baldwin struct freebsd32_pwritev_args {
2619f3157a2SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2629f3157a2SJohn Baldwin 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
2639f3157a2SJohn Baldwin 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
2644412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
2654412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
2669f3157a2SJohn Baldwin };
2670e214fadSPaul Saab struct freebsd32_modstat_args {
2680e214fadSPaul Saab 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
2690e214fadSPaul Saab 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
2700e214fadSPaul Saab };
271eea5c618SKonstantin Belousov struct freebsd32_kldstat_args {
272eea5c618SKonstantin Belousov 	char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
273eea5c618SKonstantin Belousov 	char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)];
274eea5c618SKonstantin Belousov };
2755d8d23c7SJohn Baldwin struct freebsd32_aio_return_args {
2765d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2775d8d23c7SJohn Baldwin };
2785d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args {
2795d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *const *)];
2805d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
2815d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
2825d8d23c7SJohn Baldwin };
2835d8d23c7SJohn Baldwin struct freebsd32_aio_cancel_args {
2845d8d23c7SJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2855d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2865d8d23c7SJohn Baldwin };
2875d8d23c7SJohn Baldwin struct freebsd32_aio_error_args {
2885d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
2895d8d23c7SJohn Baldwin };
2905d8d23c7SJohn Baldwin struct freebsd32_oaio_read_args {
2915d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
2925d8d23c7SJohn Baldwin };
2935d8d23c7SJohn Baldwin struct freebsd32_oaio_write_args {
2945d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
2955d8d23c7SJohn Baldwin };
2965d8d23c7SJohn Baldwin struct freebsd32_olio_listio_args {
2975d8d23c7SJohn Baldwin 	char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2985d8d23c7SJohn Baldwin 	char acb_list_l_[PADL_(struct oaiocb32 *const *)]; struct oaiocb32 *const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 *const *)];
2995d8d23c7SJohn Baldwin 	char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
3005d8d23c7SJohn Baldwin 	char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
3015d8d23c7SJohn Baldwin };
302759e7c0bSBjoern A. Zeeb struct freebsd32_jail_args {
303759e7c0bSBjoern A. Zeeb 	char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
304759e7c0bSBjoern A. Zeeb };
305312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args {
306312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
307312a0e5fSDavid Xu 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
308312a0e5fSDavid Xu 	char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)];
309312a0e5fSDavid Xu };
310312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args {
311312a0e5fSDavid Xu 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
312312a0e5fSDavid Xu 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
313312a0e5fSDavid Xu };
3145d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args {
3155d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)];
3165d8d23c7SJohn Baldwin 	char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
3175d8d23c7SJohn Baldwin };
31894e75644SPeter Wemm struct freebsd32_kevent_args {
319e14528b3SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
320a95e8cd3SPaul Saab 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
321e14528b3SPeter Wemm 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
322a95e8cd3SPaul Saab 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
323e14528b3SPeter Wemm 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
324a95e8cd3SPaul Saab 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
3259105d26bSPeter Wemm };
326f1287854SDavid E. O'Brien struct freebsd32_nmount_args {
327f1287854SDavid E. O'Brien 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
328f1287854SDavid E. O'Brien 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
329f1287854SDavid E. O'Brien 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
330f1287854SDavid E. O'Brien };
33194e75644SPeter Wemm struct freebsd32_sendfile_args {
3325eb29d9bSDoug Rabson 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
3335eb29d9bSDoug Rabson 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
3344412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
3354412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
3365eb29d9bSDoug Rabson 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
33726e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
3385eb29d9bSDoug Rabson 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
3395eb29d9bSDoug Rabson 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
3405eb29d9bSDoug Rabson };
34128ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args {
34228ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
34328ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
34428ad01d2SKonstantin Belousov };
34528ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args {
34628ad01d2SKonstantin Belousov 	char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
34728ad01d2SKonstantin Belousov 	char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
34828ad01d2SKonstantin Belousov 	char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
34928ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
35028ad01d2SKonstantin Belousov 	char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
35128ad01d2SKonstantin Belousov };
35294e75644SPeter Wemm struct freebsd32_sigaction_args {
353e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
354e14528b3SPeter Wemm 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
355e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
356e14528b3SPeter Wemm };
35794e75644SPeter Wemm struct freebsd32_sigreturn_args {
35894e75644SPeter Wemm 	char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)];
35982914097SPeter Wemm };
360a11ea6e3SPeter Wemm struct freebsd32_getcontext_args {
361a11ea6e3SPeter Wemm 	char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)];
362a11ea6e3SPeter Wemm };
363a11ea6e3SPeter Wemm struct freebsd32_setcontext_args {
364a11ea6e3SPeter Wemm 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
365a11ea6e3SPeter Wemm };
366a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args {
367a11ea6e3SPeter Wemm 	char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)];
368a11ea6e3SPeter Wemm 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
369a11ea6e3SPeter Wemm };
370295426f4SDavid Xu struct freebsd32_umtx_lock_args {
371295426f4SDavid Xu 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
372295426f4SDavid Xu };
373295426f4SDavid Xu struct freebsd32_umtx_unlock_args {
374295426f4SDavid Xu 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
375295426f4SDavid Xu };
37628ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args {
37728ad01d2SKonstantin Belousov 	char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)];
37828ad01d2SKonstantin Belousov 	char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
37928ad01d2SKonstantin Belousov };
380ac3674aaSDavid Xu struct freebsd32_thr_suspend_args {
381ac3674aaSDavid Xu 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
382ac3674aaSDavid Xu };
38327bbb2e7SDavid Xu struct freebsd32_umtx_op_args {
38427bbb2e7SDavid Xu 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
38527bbb2e7SDavid Xu 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
386034b26fcSDavid Xu 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
38727bbb2e7SDavid Xu 	char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
38827bbb2e7SDavid Xu 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
38927bbb2e7SDavid Xu };
390ac3674aaSDavid Xu struct freebsd32_thr_new_args {
391ac3674aaSDavid Xu 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
392ac3674aaSDavid Xu 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
393ac3674aaSDavid Xu };
39428ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args {
39528ad01d2SKonstantin Belousov 	char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
39628ad01d2SKonstantin Belousov 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
39728ad01d2SKonstantin Belousov 	char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
39828ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
39928ad01d2SKonstantin Belousov };
40028ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args {
40128ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40228ad01d2SKonstantin Belousov 	char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
40328ad01d2SKonstantin Belousov 	char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
40428ad01d2SKonstantin Belousov };
40528ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args {
40628ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
40728ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
40828ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
40928ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
41028ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
41128ad01d2SKonstantin Belousov };
41228ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args {
41328ad01d2SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
41428ad01d2SKonstantin Belousov 	char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
41528ad01d2SKonstantin Belousov 	char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
41628ad01d2SKonstantin Belousov 	char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
41728ad01d2SKonstantin Belousov 	char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
41828ad01d2SKonstantin Belousov };
41968044954SKonstantin Belousov struct freebsd32_kmq_notify_args {
42068044954SKonstantin Belousov 	char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
42168044954SKonstantin Belousov 	char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
42268044954SKonstantin Belousov };
4235d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args {
4245d8d23c7SJohn Baldwin 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
4255d8d23c7SJohn Baldwin 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
4265d8d23c7SJohn Baldwin };
427841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
428486abf93SPeter Wemm struct freebsd32_pread_args {
429486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
430486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
431486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
432841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4334412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4344412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
435486abf93SPeter Wemm };
436486abf93SPeter Wemm struct freebsd32_pwrite_args {
437486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
438486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
439486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
440841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4414412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4424412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
443486abf93SPeter Wemm };
444486abf93SPeter Wemm struct freebsd32_mmap_args {
445486abf93SPeter Wemm 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
446486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
447486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
448486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
449486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
450841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4514412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4524412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
453486abf93SPeter Wemm };
454486abf93SPeter Wemm struct freebsd32_lseek_args {
455486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
456841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4574412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4584412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
459486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
460486abf93SPeter Wemm };
461486abf93SPeter Wemm struct freebsd32_truncate_args {
462486abf93SPeter Wemm 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
463841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4644412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4654412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
466486abf93SPeter Wemm };
467486abf93SPeter Wemm struct freebsd32_ftruncate_args {
468486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
469841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
4704412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
4714412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
472486abf93SPeter Wemm };
473841c0c7eSNathan Whitehorn #else
474841c0c7eSNathan Whitehorn struct freebsd32_pread_args {
475841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
476841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
477841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4784412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4794412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
480841c0c7eSNathan Whitehorn };
481841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args {
482841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
483841c0c7eSNathan Whitehorn 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
484841c0c7eSNathan Whitehorn 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
4854412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
4864412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
487841c0c7eSNathan Whitehorn };
488841c0c7eSNathan Whitehorn struct freebsd32_mmap_args {
489841c0c7eSNathan Whitehorn 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
490841c0c7eSNathan Whitehorn 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
491841c0c7eSNathan Whitehorn 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
492841c0c7eSNathan Whitehorn 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
493841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4944412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
4954412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
496841c0c7eSNathan Whitehorn };
497841c0c7eSNathan Whitehorn struct freebsd32_lseek_args {
498841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
4994412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
5004412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
501841c0c7eSNathan Whitehorn 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
502841c0c7eSNathan Whitehorn };
503841c0c7eSNathan Whitehorn struct freebsd32_truncate_args {
504841c0c7eSNathan Whitehorn 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
5054412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
5064412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
507841c0c7eSNathan Whitehorn };
508841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args {
509841c0c7eSNathan Whitehorn 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5104412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
5114412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
512841c0c7eSNathan Whitehorn };
513841c0c7eSNathan Whitehorn #endif
514841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
515774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args {
516774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
517841c0c7eSNathan Whitehorn 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
5184412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5194412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
520774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
521774b72e1SBrooks Davis };
522841c0c7eSNathan Whitehorn #else
523841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args {
524841c0c7eSNathan Whitehorn 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5254412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5264412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
527841c0c7eSNathan Whitehorn 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
528841c0c7eSNathan Whitehorn };
529841c0c7eSNathan Whitehorn #endif
530774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args {
531774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
532774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5334412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5344412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
535774b72e1SBrooks Davis 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
536774b72e1SBrooks Davis };
537774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args {
538774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
539774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5404412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5414412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
542774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
543774b72e1SBrooks Davis 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
544774b72e1SBrooks Davis };
545774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args {
546774b72e1SBrooks Davis 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
547774b72e1SBrooks Davis 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
5484412ad48SEd Schouten 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
5494412ad48SEd Schouten 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
550774b72e1SBrooks Davis 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
551774b72e1SBrooks Davis 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
552774b72e1SBrooks Davis };
553f2296b58SKonstantin Belousov struct freebsd32_fexecve_args {
554f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
5554412ad48SEd Schouten 	char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
5564412ad48SEd Schouten 	char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
557f2296b58SKonstantin Belousov };
558f2296b58SKonstantin Belousov struct freebsd32_fstatat_args {
559f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
560f2296b58SKonstantin Belousov 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
561f2296b58SKonstantin Belousov 	char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)];
562f2296b58SKonstantin Belousov 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
563f2296b58SKonstantin Belousov };
564f2296b58SKonstantin Belousov struct freebsd32_futimesat_args {
565f2296b58SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
566f2296b58SKonstantin Belousov 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
567f2296b58SKonstantin Belousov 	char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
568f2296b58SKonstantin Belousov };
569fe2f3c65SJamie Gritton struct freebsd32_jail_get_args {
570fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
571fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
572fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
573fe2f3c65SJamie Gritton };
574fe2f3c65SJamie Gritton struct freebsd32_jail_set_args {
575fe2f3c65SJamie Gritton 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
576fe2f3c65SJamie Gritton 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
577fe2f3c65SJamie Gritton 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
578fe2f3c65SJamie Gritton };
5793899e0dfSJohn Baldwin struct freebsd32_semctl_args {
5803899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
5813899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
5823899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5833899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
5843899e0dfSJohn Baldwin };
5853899e0dfSJohn Baldwin struct freebsd32_msgctl_args {
5863899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
5873899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5883899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
5893899e0dfSJohn Baldwin };
5903899e0dfSJohn Baldwin struct freebsd32_shmctl_args {
5913899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
5923899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
5933899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
5943899e0dfSJohn Baldwin };
5959fdb497cSJilles Tjoelker struct freebsd32_cap_enter_args {
5969fdb497cSJilles Tjoelker 	register_t dummy;
5979fdb497cSJilles Tjoelker };
598063e9958SKonstantin Belousov struct freebsd32_pselect_args {
599063e9958SKonstantin Belousov 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
600063e9958SKonstantin Belousov 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
601063e9958SKonstantin Belousov 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
602063e9958SKonstantin Belousov 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
603063e9958SKonstantin Belousov 	char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
604063e9958SKonstantin Belousov 	char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
605063e9958SKonstantin Belousov };
606f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
607f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args {
608f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
609f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
610f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
611f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
612f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
613f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
614f85769ebSKonstantin Belousov };
615f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args {
616f85769ebSKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
617f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
618f85769ebSKonstantin Belousov 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
619f85769ebSKonstantin Belousov 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
620f85769ebSKonstantin Belousov 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
621f85769ebSKonstantin Belousov 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
622f85769ebSKonstantin Belousov 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
623f85769ebSKonstantin Belousov };
624f85769ebSKonstantin Belousov struct freebsd32_wait6_args {
625f85769ebSKonstantin Belousov 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
626f85769ebSKonstantin Belousov 	char pad_l_[PADL_(int)]; int pad; char pad_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)];
629f85769ebSKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
630f85769ebSKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
631f85769ebSKonstantin Belousov 	char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
632f85769ebSKonstantin Belousov 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
633f85769ebSKonstantin Belousov };
634f85769ebSKonstantin Belousov #else
6357323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args {
6367323776bSMatthew D Fleming 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
637660d55fbSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
638660d55fbSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
639660d55fbSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
640660d55fbSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
6417323776bSMatthew D Fleming };
642cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args {
643cd06ae5cSJohn Baldwin 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
644cd06ae5cSJohn Baldwin 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
645cd06ae5cSJohn Baldwin 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
646cd06ae5cSJohn Baldwin 	char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
647cd06ae5cSJohn Baldwin 	char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
648cd06ae5cSJohn Baldwin 	char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
649cd06ae5cSJohn Baldwin };
650552e9935SKonstantin Belousov struct freebsd32_wait6_args {
651552e9935SKonstantin Belousov 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
652f85769ebSKonstantin Belousov 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
653f85769ebSKonstantin Belousov 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
654552e9935SKonstantin Belousov 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
655552e9935SKonstantin Belousov 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
656552e9935SKonstantin Belousov 	char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
657552e9935SKonstantin Belousov 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
658552e9935SKonstantin Belousov };
659f85769ebSKonstantin Belousov #endif
660e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args {
661e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
662e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
663e11dc435SPawel Jakub Dawidek 	char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
664e11dc435SPawel Jakub Dawidek };
665e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args {
666e11dc435SPawel Jakub Dawidek 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
667e11dc435SPawel Jakub Dawidek 	char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
668e11dc435SPawel Jakub Dawidek 	char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
669e11dc435SPawel Jakub Dawidek };
6708d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args {
6718d1aa3c6SGleb Smirnoff 	char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
6728d1aa3c6SGleb Smirnoff };
673*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
674*a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
675*a566e8e3SJohn Baldwin 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
676*a566e8e3SJohn Baldwin 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
677*a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
678*a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
679*a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
680*a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
681*a566e8e3SJohn Baldwin };
682*a566e8e3SJohn Baldwin #else
683*a566e8e3SJohn Baldwin struct freebsd32_procctl_args {
684*a566e8e3SJohn Baldwin 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
685*a566e8e3SJohn Baldwin 	char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
686*a566e8e3SJohn Baldwin 	char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
687*a566e8e3SJohn Baldwin 	char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
688*a566e8e3SJohn Baldwin 	char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
689*a566e8e3SJohn Baldwin };
690*a566e8e3SJohn Baldwin #endif
6919624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
692841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
693841c0c7eSNathan Whitehorn #endif
69494e75644SPeter Wemm int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
69515857ef5SPaul Saab int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
69615857ef5SPaul Saab int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
69715857ef5SPaul Saab int	freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
69894e75644SPeter Wemm int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
699663c5800SDavid E. O'Brien int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
70094e75644SPeter Wemm int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
701f8244106SMarcel Moolenaar int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
70294e75644SPeter Wemm int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
703996a568eSPeter Wemm int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
70494e75644SPeter Wemm int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
70594e75644SPeter Wemm int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
70694e75644SPeter Wemm int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
70794e75644SPeter Wemm int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
70894e75644SPeter Wemm int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
70994e75644SPeter Wemm int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
71094e75644SPeter Wemm int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
71194e75644SPeter Wemm int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
7129da68040SKonstantin Belousov int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
71394e75644SPeter Wemm int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
71494e75644SPeter Wemm int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
71594e75644SPeter Wemm int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
71694e75644SPeter Wemm int	freebsd32_stat(struct thread *, struct freebsd32_stat_args *);
71794e75644SPeter Wemm int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
71894e75644SPeter Wemm int	freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *);
71923aa8eeaSJohn Baldwin int	freebsd32_getdirentries(struct thread *, struct freebsd32_getdirentries_args *);
72094e75644SPeter Wemm int	freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *);
721f06b8643SDoug Ambrisko int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
7225e868cbbSJung-uk Kim int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
7235e868cbbSJung-uk Kim int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
724fd151bb9SPaul Saab int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
725fd151bb9SPaul Saab int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
726fd151bb9SPaul Saab int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
72768044954SKonstantin Belousov int	freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
72868044954SKonstantin Belousov int	freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
72968044954SKonstantin Belousov int	freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
7307fdf2c85SPaul Saab int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
731c5d03637SKonstantin Belousov int	freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
7325d8d23c7SJohn Baldwin int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
7335d8d23c7SJohn Baldwin int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
7345d8d23c7SJohn Baldwin int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
735cac2fa64SDoug Ambrisko int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
7369f3157a2SJohn Baldwin int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
7379f3157a2SJohn Baldwin int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
7380e214fadSPaul Saab int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
739eea5c618SKonstantin Belousov int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
7405d8d23c7SJohn Baldwin int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
7415d8d23c7SJohn Baldwin int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
7425d8d23c7SJohn Baldwin int	freebsd32_aio_cancel(struct thread *, struct freebsd32_aio_cancel_args *);
7435d8d23c7SJohn Baldwin int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
7445d8d23c7SJohn Baldwin int	freebsd32_oaio_read(struct thread *, struct freebsd32_oaio_read_args *);
7455d8d23c7SJohn Baldwin int	freebsd32_oaio_write(struct thread *, struct freebsd32_oaio_write_args *);
7465d8d23c7SJohn Baldwin int	freebsd32_olio_listio(struct thread *, struct freebsd32_olio_listio_args *);
747759e7c0bSBjoern A. Zeeb int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
748312a0e5fSDavid Xu int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
749312a0e5fSDavid Xu int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
7505d8d23c7SJohn Baldwin int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
75194e75644SPeter Wemm int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
752f1287854SDavid E. O'Brien int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
75394e75644SPeter Wemm int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
75428ad01d2SKonstantin Belousov int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
75528ad01d2SKonstantin Belousov int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
75694e75644SPeter Wemm int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
75794e75644SPeter Wemm int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
758a11ea6e3SPeter Wemm int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
759a11ea6e3SPeter Wemm int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
760a11ea6e3SPeter Wemm int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
761295426f4SDavid Xu int	freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *);
762295426f4SDavid Xu int	freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *);
76328ad01d2SKonstantin Belousov int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
764ac3674aaSDavid Xu int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
76527bbb2e7SDavid Xu int	freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *);
766ac3674aaSDavid Xu int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
76728ad01d2SKonstantin Belousov int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
76828ad01d2SKonstantin Belousov int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
76928ad01d2SKonstantin Belousov int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
77028ad01d2SKonstantin Belousov int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
77168044954SKonstantin Belousov int	freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
7725d8d23c7SJohn Baldwin int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
773841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
774486abf93SPeter Wemm int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
775486abf93SPeter Wemm int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
776486abf93SPeter Wemm int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
777486abf93SPeter Wemm int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
778486abf93SPeter Wemm int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
779486abf93SPeter Wemm int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
780841c0c7eSNathan Whitehorn #else
781841c0c7eSNathan Whitehorn int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
782841c0c7eSNathan Whitehorn int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
783841c0c7eSNathan Whitehorn int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
784841c0c7eSNathan Whitehorn int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
785841c0c7eSNathan Whitehorn int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
786841c0c7eSNathan Whitehorn int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
787841c0c7eSNathan Whitehorn #endif
788841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
789774b72e1SBrooks Davis int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
790841c0c7eSNathan Whitehorn #else
791841c0c7eSNathan Whitehorn int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
792841c0c7eSNathan Whitehorn #endif
793774b72e1SBrooks Davis int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
794774b72e1SBrooks Davis int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
795774b72e1SBrooks Davis int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
796f2296b58SKonstantin Belousov int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
797f2296b58SKonstantin Belousov int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
798f2296b58SKonstantin Belousov int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
799fe2f3c65SJamie Gritton int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
800fe2f3c65SJamie Gritton int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
8013899e0dfSJohn Baldwin int	freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
8023899e0dfSJohn Baldwin int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
8033899e0dfSJohn Baldwin int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
8049fdb497cSJilles Tjoelker int	freebsd32_cap_enter(struct thread *, struct freebsd32_cap_enter_args *);
805063e9958SKonstantin Belousov int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
806f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
8077323776bSMatthew D Fleming int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
808cd06ae5cSJohn Baldwin int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
809552e9935SKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
810f85769ebSKonstantin Belousov #else
811f85769ebSKonstantin Belousov int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
812f85769ebSKonstantin Belousov int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
813f85769ebSKonstantin Belousov int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
814f85769ebSKonstantin Belousov #endif
815e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
816e11dc435SPawel Jakub Dawidek int	freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
8178d1aa3c6SGleb Smirnoff int	freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
818*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
819*a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
820*a566e8e3SJohn Baldwin #else
821*a566e8e3SJohn Baldwin int	freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
822*a566e8e3SJohn Baldwin #endif
8235eb29d9bSDoug Rabson 
8245eb29d9bSDoug Rabson #ifdef COMPAT_43
8255eb29d9bSDoug Rabson 
8269624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
827841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
828841c0c7eSNathan Whitehorn #endif
829160e5953SKonstantin Belousov struct ofreebsd32_lseek_args {
830160e5953SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
831160e5953SKonstantin Belousov 	char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)];
832160e5953SKonstantin Belousov 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
833160e5953SKonstantin Belousov };
834c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args {
835c3b2c052SKonstantin Belousov 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
836c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
837c3b2c052SKonstantin Belousov };
838c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args {
839c3b2c052SKonstantin Belousov 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
840c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
841c3b2c052SKonstantin Belousov };
842946bca4fSPeter Wemm struct ofreebsd32_sigaction_args {
843946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
844946bca4fSPeter Wemm 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
845946bca4fSPeter Wemm 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
846946bca4fSPeter Wemm };
847946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args {
848946bca4fSPeter Wemm 	char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
849946bca4fSPeter Wemm 	char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
850946bca4fSPeter Wemm };
851c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args {
852c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
853c3b2c052SKonstantin Belousov 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
854c3b2c052SKonstantin Belousov };
855c3b2c052SKonstantin Belousov struct ofreebsd32_getpagesize_args {
856c3b2c052SKonstantin Belousov 	char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)];
857c3b2c052SKonstantin Belousov };
858c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args {
859c3b2c052SKonstantin Belousov 	char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
860c3b2c052SKonstantin Belousov };
861946bca4fSPeter Wemm struct ofreebsd32_sigvec_args {
862946bca4fSPeter Wemm 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
863946bca4fSPeter Wemm 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
864946bca4fSPeter Wemm 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
865946bca4fSPeter Wemm };
866946bca4fSPeter Wemm struct ofreebsd32_sigblock_args {
867946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
868946bca4fSPeter Wemm };
869946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args {
870946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
871946bca4fSPeter Wemm };
872946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args {
873946bca4fSPeter Wemm 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
874946bca4fSPeter Wemm };
875946bca4fSPeter Wemm struct ofreebsd32_sigstack_args {
876946bca4fSPeter Wemm 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
877946bca4fSPeter Wemm 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
878946bca4fSPeter Wemm };
879c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args {
880c3b2c052SKonstantin Belousov 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
881c3b2c052SKonstantin Belousov 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
882c3b2c052SKonstantin Belousov 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
883c3b2c052SKonstantin Belousov 	char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)];
884c3b2c052SKonstantin Belousov };
885841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
886841c0c7eSNathan Whitehorn #else
887841c0c7eSNathan Whitehorn #endif
888841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
889841c0c7eSNathan Whitehorn #else
890841c0c7eSNathan Whitehorn #endif
891f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
892f85769ebSKonstantin Belousov #else
893f85769ebSKonstantin Belousov #endif
894*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
895*a566e8e3SJohn Baldwin #else
896*a566e8e3SJohn Baldwin #endif
897160e5953SKonstantin Belousov int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
898c3b2c052SKonstantin Belousov int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
899c3b2c052SKonstantin Belousov int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
900946bca4fSPeter Wemm int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
901946bca4fSPeter Wemm int	ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
902946bca4fSPeter Wemm int	ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
903c3b2c052SKonstantin Belousov int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
904c3b2c052SKonstantin Belousov int	ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *);
905c3b2c052SKonstantin Belousov int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
906946bca4fSPeter Wemm int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
907946bca4fSPeter Wemm int	ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
908946bca4fSPeter Wemm int	ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
909946bca4fSPeter Wemm int	ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
910946bca4fSPeter Wemm int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
911c3b2c052SKonstantin Belousov int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
9125eb29d9bSDoug Rabson 
9135eb29d9bSDoug Rabson #endif /* COMPAT_43 */
9145eb29d9bSDoug Rabson 
915db27052eSPeter Wemm 
916db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4
917db27052eSPeter Wemm 
9189624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
919841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
920841c0c7eSNathan Whitehorn #endif
9215b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args {
9225b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
9235b3283b0SPeter Wemm 	char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
9245b3283b0SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9255b3283b0SPeter Wemm };
9265b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args {
9275b3283b0SPeter Wemm 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
9285b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
9295b3283b0SPeter Wemm };
9305b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args {
9315b3283b0SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9325b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
9335b3283b0SPeter Wemm };
9345b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args {
9355b3283b0SPeter Wemm 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
9365b3283b0SPeter Wemm 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
9375b3283b0SPeter Wemm };
93894e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args {
9399105d26bSPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
9409105d26bSPeter Wemm 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
9414412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9424412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
9439105d26bSPeter Wemm 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
94426e4fb05SPaul Saab 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
9459105d26bSPeter Wemm 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
9469105d26bSPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
9479105d26bSPeter Wemm };
94894e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args {
949e14528b3SPeter Wemm 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
950e14528b3SPeter Wemm 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
951e14528b3SPeter Wemm 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
952e14528b3SPeter Wemm };
95394e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args {
954fffaaed4SPeter Wemm 	char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
955e14528b3SPeter Wemm };
956841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
957841c0c7eSNathan Whitehorn #else
958841c0c7eSNathan Whitehorn #endif
959841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
960841c0c7eSNathan Whitehorn #else
961841c0c7eSNathan Whitehorn #endif
962f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
963f85769ebSKonstantin Belousov #else
964f85769ebSKonstantin Belousov #endif
965*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
966*a566e8e3SJohn Baldwin #else
967*a566e8e3SJohn Baldwin #endif
9685b3283b0SPeter Wemm int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
9695b3283b0SPeter Wemm int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
9705b3283b0SPeter Wemm int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
9715b3283b0SPeter Wemm int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
97294e75644SPeter Wemm int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
97394e75644SPeter Wemm int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
97494e75644SPeter Wemm int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
975db27052eSPeter Wemm 
976db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */
977db27052eSPeter Wemm 
978486abf93SPeter Wemm 
979718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6
980486abf93SPeter Wemm 
9819624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
982841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
983841c0c7eSNathan Whitehorn #endif
984486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args {
985486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
986486abf93SPeter Wemm 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
987486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
988486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9894412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9904412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
991486abf93SPeter Wemm };
992486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args {
993486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
994486abf93SPeter Wemm 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
995486abf93SPeter Wemm 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
996486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
9974412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
9984412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
999486abf93SPeter Wemm };
1000486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args {
1001486abf93SPeter Wemm 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
1002486abf93SPeter Wemm 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
1003486abf93SPeter Wemm 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
1004486abf93SPeter Wemm 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1005486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1006486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10074412ad48SEd Schouten 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
10084412ad48SEd Schouten 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
1009486abf93SPeter Wemm };
1010486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args {
1011486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1012486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10134412ad48SEd Schouten 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
10144412ad48SEd Schouten 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1015486abf93SPeter Wemm 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
1016486abf93SPeter Wemm };
1017486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args {
1018486abf93SPeter Wemm 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
1019486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10204412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
10214412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1022486abf93SPeter Wemm };
1023486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args {
1024486abf93SPeter Wemm 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1025486abf93SPeter Wemm 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
10264412ad48SEd Schouten 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
10274412ad48SEd Schouten 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1028486abf93SPeter Wemm };
1029841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1030841c0c7eSNathan Whitehorn #else
1031841c0c7eSNathan Whitehorn #endif
1032841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1033841c0c7eSNathan Whitehorn #else
1034841c0c7eSNathan Whitehorn #endif
1035f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1036f85769ebSKonstantin Belousov #else
1037f85769ebSKonstantin Belousov #endif
1038*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1039*a566e8e3SJohn Baldwin #else
1040*a566e8e3SJohn Baldwin #endif
1041486abf93SPeter Wemm int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1042486abf93SPeter Wemm int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1043486abf93SPeter Wemm int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1044486abf93SPeter Wemm int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1045486abf93SPeter Wemm int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1046486abf93SPeter Wemm int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
1047486abf93SPeter Wemm 
1048718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */
1049486abf93SPeter Wemm 
10503899e0dfSJohn Baldwin 
10518ffab864SWarner Losh #ifdef COMPAT_FREEBSD7
10523899e0dfSJohn Baldwin 
10539624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
1054841c0c7eSNathan Whitehorn #define PAD64_REQUIRED
1055841c0c7eSNathan Whitehorn #endif
10563899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args {
10573899e0dfSJohn Baldwin 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
10583899e0dfSJohn Baldwin 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
10593899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10603899e0dfSJohn Baldwin 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
10613899e0dfSJohn Baldwin };
10623899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args {
10633899e0dfSJohn Baldwin 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
10643899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10653899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)];
10663899e0dfSJohn Baldwin };
10673899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args {
10683899e0dfSJohn Baldwin 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
10693899e0dfSJohn Baldwin 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
10703899e0dfSJohn Baldwin 	char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)];
10713899e0dfSJohn Baldwin };
1072841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1073841c0c7eSNathan Whitehorn #else
1074841c0c7eSNathan Whitehorn #endif
1075841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED
1076841c0c7eSNathan Whitehorn #else
1077841c0c7eSNathan Whitehorn #endif
1078f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED
1079f85769ebSKonstantin Belousov #else
1080f85769ebSKonstantin Belousov #endif
1081*a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED
1082*a566e8e3SJohn Baldwin #else
1083*a566e8e3SJohn Baldwin #endif
10843899e0dfSJohn Baldwin int	freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *);
10853899e0dfSJohn Baldwin int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
10863899e0dfSJohn Baldwin int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
10873899e0dfSJohn Baldwin 
10888ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */
10893899e0dfSJohn Baldwin 
1090f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
1091e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
1092160e5953SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
1093f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
1094f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
1095f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_recvfrom	AUE_RECVFROM
1096c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
1097c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
1098e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
1099e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask	AUE_SIGPROCMASK
1100e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigpending	AUE_SIGPENDING
1101da7cbdc2SRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
1102663c5800SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_NULL
1103f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
1104c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
1105c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getpagesize	AUE_NULL
1106f8244106SMarcel Moolenaar #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
1107f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
1108f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
1109f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
1110c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_NULL
1111e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_O_SIGVEC
1112e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigblock	AUE_O_SIGBLOCK
1113e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask	AUE_O_SIGSETMASK
1114e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend	AUE_SIGSUSPEND
1115e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_O_SIGSTACK
1116f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
1117f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
1118f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
1119f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
1120f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
1121f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
1122f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
1123c3b2c052SKonstantin Belousov #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
1124e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
1125e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
11269da68040SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
1127f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
1128f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
1129f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
1130e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
1131e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
1132f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_stat	AUE_STAT
1133f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
1134f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lstat	AUE_LSTAT
113523aa8eeaSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getdirentries	AUE_GETDIRENTRIES
1136e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1137e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1138e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1139e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
1140f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sysctl	AUE_SYSCTL
1141f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
11423899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl	AUE_SEMCTL
11433899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
11445e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
11455e868cbbSJung-uk Kim #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
11463899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1147f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1148f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1149f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
115068044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_create	AUE_NULL
115168044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_settime	AUE_NULL
115268044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime	AUE_NULL
1153f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
1154c5d03637SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2	AUE_NULL
11555d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_NULL
11565d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_NULL
11575d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_NULL
1158f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1159f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1160f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1161e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1162f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1163eea5c618SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
11645d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_NULL
11655d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_NULL
11665d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_cancel	AUE_NULL
11675d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_NULL
11685d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_oaio_read	AUE_NULL
11695d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_oaio_write	AUE_NULL
11705d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_olio_listio	AUE_NULL
1171e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1172759e7c0bSBjoern A. Zeeb #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1173e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1174e47a833fSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1175312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1176312a0e5fSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
11775d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_NULL
1178f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_NULL
1179f1287854SDavid E. O'Brien #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1180e482025eSRobert Watson #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
118128ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_NULL
118228ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_NULL
1183f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1184f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1185f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1186f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1187f8f1f7fbSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
1188295426f4SDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_umtx_lock	AUE_NULL
1189295426f4SDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_umtx_unlock	AUE_NULL
119028ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_NULL
1191ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
119227bbb2e7SDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_umtx_op	AUE_NULL
1193ac3674aaSDavid Xu #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_NULL
119428ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_NULL
119528ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_NULL
119628ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_NULL
119728ad01d2SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_NULL
119868044954SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_kmq_notify	AUE_NULL
11995d8d23c7SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_NULL
1200486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1201486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1202486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1203486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1204486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1205486abf93SPeter Wemm #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1206841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1207841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1208841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1209841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1210841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1211841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1212841c0c7eSNathan Whitehorn #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1213774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1214774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1215774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1216774b72e1SBrooks Davis #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1217f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1218f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1219f2296b58SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1220fe2f3c65SJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_NULL
1221fe2f3c65SJamie Gritton #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_NULL
12223899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_semctl	AUE_SEMCTL
12233899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
12243899e0dfSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
12259fdb497cSJilles Tjoelker #define	FREEBSD32_SYS_AUE_freebsd32_cap_enter	AUE_CAP_ENTER
1226063e9958SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
12277323776bSMatthew D Fleming #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_NULL
1228cd06ae5cSJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_NULL
1229552e9935SKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1230f85769ebSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_NULL
1231f85769ebSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_NULL
1232f85769ebSKonstantin Belousov #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1233e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit	AUE_CAP_IOCTLS_LIMIT
1234e11dc435SPawel Jakub Dawidek #define	FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get	AUE_CAP_IOCTLS_GET
12358d1aa3c6SGleb Smirnoff #define	FREEBSD32_SYS_AUE_freebsd32_aio_mlock	AUE_NULL
1236*a566e8e3SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_NULL
1237*a566e8e3SJohn Baldwin #define	FREEBSD32_SYS_AUE_freebsd32_procctl	AUE_NULL
1238f8f1f7fbSJohn Baldwin 
12395eb29d9bSDoug Rabson #undef PAD_
12405eb29d9bSDoug Rabson #undef PADL_
12415eb29d9bSDoug Rabson #undef PADR_
12425eb29d9bSDoug Rabson 
124394e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */
1244