15eb29d9bSDoug Rabson /* 25eb29d9bSDoug Rabson * System call prototypes. 35eb29d9bSDoug Rabson * 45eb29d9bSDoug Rabson * DO NOT EDIT-- this file is automatically generated. 55eb29d9bSDoug Rabson * $FreeBSD$ 65eb29d9bSDoug Rabson */ 75eb29d9bSDoug Rabson 894e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_ 994e75644SPeter Wemm #define _FREEBSD32_SYSPROTO_H_ 105eb29d9bSDoug Rabson 115eb29d9bSDoug Rabson #include <sys/signal.h> 125eb29d9bSDoug Rabson #include <sys/acl.h> 135c63b21aSJohn Baldwin #include <sys/cpuset.h> 14af80820aSJeff Roberson #include <sys/domainset.h> 15cf13a585SLawrence Stewart #include <sys/_ffcounter.h> 169f706204SRuslan Ermilov #include <sys/_semaphore.h> 179bc65d35SJohn Baldwin #include <sys/ucontext.h> 189fdb497cSJilles Tjoelker #include <sys/wait.h> 199bc65d35SJohn Baldwin 20f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h> 21f8f1f7fbSJohn Baldwin 225eb29d9bSDoug Rabson struct proc; 235eb29d9bSDoug Rabson 245eb29d9bSDoug Rabson struct thread; 255eb29d9bSDoug Rabson 265eb29d9bSDoug Rabson #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 275eb29d9bSDoug Rabson 0 : sizeof(register_t) - sizeof(t)) 285eb29d9bSDoug Rabson 295eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN 305eb29d9bSDoug Rabson #define PADL_(t) 0 315eb29d9bSDoug Rabson #define PADR_(t) PAD_(t) 325eb29d9bSDoug Rabson #else 335eb29d9bSDoug Rabson #define PADL_(t) PAD_(t) 345eb29d9bSDoug Rabson #define PADR_(t) 0 355eb29d9bSDoug Rabson #endif 365eb29d9bSDoug Rabson 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)]; 58938e8dcfSBrooks Davis char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 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)]; 61938e8dcfSBrooks Davis char from_l_[PADL_(struct sockaddr *)]; struct sockaddr * from; char from_r_[PADR_(struct sockaddr *)]; 624412ad48SEd Schouten char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)]; 6315857ef5SPaul Saab }; 64a72c64b0SBrooks Davis struct freebsd10_freebsd32_pipe_args { 65a72c64b0SBrooks Davis register_t dummy; 66a72c64b0SBrooks Davis }; 67946bca4fSPeter Wemm struct ofreebsd32_sigpending_args { 6890168b92SPaul Saab register_t dummy; 6990168b92SPaul Saab }; 7094e75644SPeter Wemm struct freebsd32_sigaltstack_args { 71db27052eSPeter Wemm char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; 72db27052eSPeter Wemm char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; 735eb29d9bSDoug Rabson }; 74663c5800SDavid E. O'Brien struct freebsd32_ioctl_args { 75663c5800SDavid E. O'Brien char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 76663c5800SDavid E. O'Brien char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)]; 77663c5800SDavid E. O'Brien char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)]; 78663c5800SDavid E. O'Brien }; 7994e75644SPeter Wemm struct freebsd32_execve_args { 804e8c73ebSBrooks Davis char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)]; 814412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 824412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 835eb29d9bSDoug Rabson }; 84f8244106SMarcel Moolenaar struct freebsd32_mprotect_args { 85e938ebbcSEd Schouten char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 86f8244106SMarcel Moolenaar char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 87f8244106SMarcel Moolenaar char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 88f8244106SMarcel Moolenaar }; 8994e75644SPeter Wemm struct freebsd32_setitimer_args { 905eb29d9bSDoug Rabson char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 91db27052eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 92db27052eSPeter Wemm char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; 935eb29d9bSDoug Rabson }; 94996a568eSPeter Wemm struct freebsd32_getitimer_args { 95996a568eSPeter Wemm char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 96996a568eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 97996a568eSPeter Wemm }; 985aec07c7SKonstantin Belousov struct freebsd32_fcntl_args { 995aec07c7SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1005aec07c7SKonstantin Belousov char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 1015aec07c7SKonstantin Belousov char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)]; 1025aec07c7SKonstantin Belousov }; 10394e75644SPeter Wemm struct freebsd32_select_args { 1045eb29d9bSDoug Rabson char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 1055eb29d9bSDoug Rabson char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 1065eb29d9bSDoug Rabson char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 1075eb29d9bSDoug Rabson char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 108db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1095eb29d9bSDoug Rabson }; 11094e75644SPeter Wemm struct freebsd32_gettimeofday_args { 111db27052eSPeter Wemm char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; 1125eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1135eb29d9bSDoug Rabson }; 11494e75644SPeter Wemm struct freebsd32_getrusage_args { 1155eb29d9bSDoug Rabson char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; 116db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 1175eb29d9bSDoug Rabson }; 11894e75644SPeter Wemm struct freebsd32_readv_args { 1195eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 120db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1215eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1225eb29d9bSDoug Rabson }; 12394e75644SPeter Wemm struct freebsd32_writev_args { 1245eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 125db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1265eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1275eb29d9bSDoug Rabson }; 12894e75644SPeter Wemm struct freebsd32_settimeofday_args { 129db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1305eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1315eb29d9bSDoug Rabson }; 13294e75644SPeter Wemm struct freebsd32_utimes_args { 1334e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 134db27052eSPeter Wemm char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 135db27052eSPeter Wemm }; 13694e75644SPeter Wemm struct freebsd32_adjtime_args { 137db27052eSPeter Wemm char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; 138db27052eSPeter Wemm char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; 139db27052eSPeter Wemm }; 1409da68040SKonstantin Belousov struct freebsd32_sysarch_args { 1419da68040SKonstantin Belousov char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 1429da68040SKonstantin Belousov char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)]; 1439da68040SKonstantin Belousov }; 14494e75644SPeter Wemm struct freebsd32_semsys_args { 1455eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1465eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1475eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1485eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1495eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1505eb29d9bSDoug Rabson }; 15194e75644SPeter Wemm struct freebsd32_msgsys_args { 1525eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1535eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1545eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1555eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1565eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1575eb29d9bSDoug Rabson char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; 1585eb29d9bSDoug Rabson }; 15994e75644SPeter Wemm struct freebsd32_shmsys_args { 16074f7258fSPaul Saab char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)]; 16174f7258fSPaul Saab char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)]; 16274f7258fSPaul Saab char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)]; 16374f7258fSPaul Saab char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)]; 1645eb29d9bSDoug Rabson }; 165*86e06fa5SBrooks Davis struct freebsd32___sysctl_args { 1665eb29d9bSDoug Rabson char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; 1675eb29d9bSDoug Rabson char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; 1685eb29d9bSDoug Rabson char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; 1694412ad48SEd Schouten char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)]; 1705eb29d9bSDoug Rabson char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; 1714412ad48SEd Schouten char newlen_l_[PADL_(uint32_t)]; uint32_t newlen; char newlen_r_[PADR_(uint32_t)]; 1725eb29d9bSDoug Rabson }; 173f06b8643SDoug Ambrisko struct freebsd32_futimes_args { 174f06b8643SDoug Ambrisko char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 175f06b8643SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 176f06b8643SDoug Ambrisko }; 1775e868cbbSJung-uk Kim struct freebsd32_msgsnd_args { 1785e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1795e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1805e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1815e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1825e868cbbSJung-uk Kim }; 1835e868cbbSJung-uk Kim struct freebsd32_msgrcv_args { 1845e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1855e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1865e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1875e868cbbSJung-uk Kim char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)]; 1885e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1895e868cbbSJung-uk Kim }; 190fd151bb9SPaul Saab struct freebsd32_clock_gettime_args { 191fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 192fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 193fd151bb9SPaul Saab }; 194fd151bb9SPaul Saab struct freebsd32_clock_settime_args { 195fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 196fd151bb9SPaul Saab char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)]; 197fd151bb9SPaul Saab }; 198fd151bb9SPaul Saab struct freebsd32_clock_getres_args { 199fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 200fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 201fd151bb9SPaul Saab }; 20268044954SKonstantin Belousov struct freebsd32_ktimer_create_args { 20368044954SKonstantin Belousov char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 20468044954SKonstantin Belousov char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)]; 20568044954SKonstantin Belousov char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)]; 20668044954SKonstantin Belousov }; 20768044954SKonstantin Belousov struct freebsd32_ktimer_settime_args { 20868044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 20968044954SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 21068044954SKonstantin Belousov char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)]; 21168044954SKonstantin Belousov char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)]; 21268044954SKonstantin Belousov }; 21368044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args { 21468044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 21568044954SKonstantin Belousov char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)]; 21668044954SKonstantin Belousov }; 2177fdf2c85SPaul Saab struct freebsd32_nanosleep_args { 218145f7e60SPaul Saab char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 219145f7e60SPaul Saab char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 2207fdf2c85SPaul Saab }; 22126f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args { 22226f86ab7SEric van Gyzen char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 22326f86ab7SEric van Gyzen char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 22426f86ab7SEric van Gyzen char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 22526f86ab7SEric van Gyzen char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 22626f86ab7SEric van Gyzen }; 227c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args { 228c5d03637SKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 229c5d03637SKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 230c5d03637SKonstantin Belousov char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 231c5d03637SKonstantin Belousov char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)]; 232c5d03637SKonstantin Belousov }; 2335d8d23c7SJohn Baldwin struct freebsd32_aio_read_args { 2345d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2355d8d23c7SJohn Baldwin }; 2365d8d23c7SJohn Baldwin struct freebsd32_aio_write_args { 2375d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2385d8d23c7SJohn Baldwin }; 2395d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args { 2405d8d23c7SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 2415d8d23c7SJohn Baldwin char acb_list_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * acb_list; char acb_list_r_[PADR_(struct aiocb32 *const *)]; 2425d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 24368044954SKonstantin Belousov char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)]; 2445d8d23c7SJohn Baldwin }; 245cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args { 2464e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 247cac2fa64SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 248cac2fa64SDoug Ambrisko }; 2499f3157a2SJohn Baldwin struct freebsd32_preadv_args { 2509f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2519f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2529f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2534412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2544412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2559f3157a2SJohn Baldwin }; 2569f3157a2SJohn Baldwin struct freebsd32_pwritev_args { 2579f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2589f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2599f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2604412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2614412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2629f3157a2SJohn Baldwin }; 2630e214fadSPaul Saab struct freebsd32_modstat_args { 2640e214fadSPaul Saab char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; 2650e214fadSPaul Saab char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)]; 2660e214fadSPaul Saab }; 267eea5c618SKonstantin Belousov struct freebsd32_kldstat_args { 268eea5c618SKonstantin Belousov char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)]; 269eea5c618SKonstantin Belousov char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)]; 270eea5c618SKonstantin Belousov }; 2715d8d23c7SJohn Baldwin struct freebsd32_aio_return_args { 2725d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2735d8d23c7SJohn Baldwin }; 2745d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args { 2755d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *const *)]; 2765d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2775d8d23c7SJohn Baldwin char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 2785d8d23c7SJohn Baldwin }; 2795d8d23c7SJohn Baldwin struct freebsd32_aio_error_args { 2805d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2815d8d23c7SJohn Baldwin }; 282f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args { 283f2f5c215SKonstantin Belousov char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 284f2f5c215SKonstantin Belousov char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)]; 285f2f5c215SKonstantin Belousov }; 286c542c43eSJamie Gritton struct freebsd32_jail_args { 287c542c43eSJamie Gritton char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)]; 288c542c43eSJamie Gritton }; 289312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args { 290312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 291312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 292312a0e5fSDavid Xu char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; 293312a0e5fSDavid Xu }; 294312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args { 295312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 296312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 297312a0e5fSDavid Xu }; 2985d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args { 2995d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)]; 3005d8d23c7SJohn Baldwin char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)]; 3015d8d23c7SJohn Baldwin }; 302f1287854SDavid E. O'Brien struct freebsd32_nmount_args { 303f1287854SDavid E. O'Brien char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 304f1287854SDavid E. O'Brien char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 305f1287854SDavid E. O'Brien char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 306f1287854SDavid E. O'Brien }; 30794e75644SPeter Wemm struct freebsd32_sendfile_args { 3085eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 3095eb29d9bSDoug Rabson char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 3104412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 3114412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 3125eb29d9bSDoug Rabson char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 31326e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 3145eb29d9bSDoug Rabson char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 3155eb29d9bSDoug Rabson char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 3165eb29d9bSDoug Rabson }; 31728ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args { 31828ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 31928ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 32028ad01d2SKonstantin Belousov }; 32128ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args { 32228ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 32328ad01d2SKonstantin Belousov char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; 32428ad01d2SKonstantin Belousov char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)]; 32528ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 32628ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 32728ad01d2SKonstantin Belousov }; 32894e75644SPeter Wemm struct freebsd32_sigaction_args { 329e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 330e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 331e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 332e14528b3SPeter Wemm }; 33394e75644SPeter Wemm struct freebsd32_sigreturn_args { 33494e75644SPeter Wemm char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)]; 33582914097SPeter Wemm }; 336a11ea6e3SPeter Wemm struct freebsd32_getcontext_args { 337a11ea6e3SPeter Wemm char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)]; 338a11ea6e3SPeter Wemm }; 339a11ea6e3SPeter Wemm struct freebsd32_setcontext_args { 340a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 341a11ea6e3SPeter Wemm }; 342a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args { 343a11ea6e3SPeter Wemm char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)]; 344a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 345a11ea6e3SPeter Wemm }; 34628ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args { 34728ad01d2SKonstantin Belousov char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)]; 34828ad01d2SKonstantin Belousov char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)]; 34928ad01d2SKonstantin Belousov }; 350ac3674aaSDavid Xu struct freebsd32_thr_suspend_args { 351ac3674aaSDavid Xu char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 352ac3674aaSDavid Xu }; 35327bbb2e7SDavid Xu struct freebsd32_umtx_op_args { 35427bbb2e7SDavid Xu char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)]; 35527bbb2e7SDavid Xu char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 356034b26fcSDavid Xu char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)]; 35727bbb2e7SDavid Xu char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)]; 35827bbb2e7SDavid Xu char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)]; 35927bbb2e7SDavid Xu }; 360ac3674aaSDavid Xu struct freebsd32_thr_new_args { 361ac3674aaSDavid Xu char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)]; 362ac3674aaSDavid Xu char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)]; 363ac3674aaSDavid Xu }; 364e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args { 365e9f32d1dSBrooks Davis char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 366e9f32d1dSBrooks Davis char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 367e9f32d1dSBrooks Davis char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)]; 368e9f32d1dSBrooks Davis }; 36928ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args { 37028ad01d2SKonstantin Belousov char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 37128ad01d2SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 37228ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 37328ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 37428ad01d2SKonstantin Belousov }; 37528ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args { 37628ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 37728ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 37828ad01d2SKonstantin Belousov char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)]; 37928ad01d2SKonstantin Belousov }; 38028ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args { 38128ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 38228ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)]; 38328ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 38428ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)]; 38528ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 38628ad01d2SKonstantin Belousov }; 38728ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args { 38828ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 38928ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)]; 39028ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 39128ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)]; 39228ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 39328ad01d2SKonstantin Belousov }; 39468044954SKonstantin Belousov struct freebsd32_kmq_notify_args { 39568044954SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 39668044954SKonstantin Belousov char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)]; 39768044954SKonstantin Belousov }; 3985d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args { 3995d8d23c7SJohn Baldwin char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 4005d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 4015d8d23c7SJohn Baldwin }; 402841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 403486abf93SPeter Wemm struct freebsd32_pread_args { 404486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 405486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 406486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 407841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4084412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4094412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 410486abf93SPeter Wemm }; 411486abf93SPeter Wemm struct freebsd32_pwrite_args { 412486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 413486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 414486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 415841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4164412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4174412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 418486abf93SPeter Wemm }; 419486abf93SPeter Wemm struct freebsd32_mmap_args { 420938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 421486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 422486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 423486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 424486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 425841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4264412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4274412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 428486abf93SPeter Wemm }; 429486abf93SPeter Wemm struct freebsd32_lseek_args { 430486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 431841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4324412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4334412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 434486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 435486abf93SPeter Wemm }; 436486abf93SPeter Wemm struct freebsd32_truncate_args { 4374e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 438841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4394412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4404412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 441486abf93SPeter Wemm }; 442486abf93SPeter Wemm struct freebsd32_ftruncate_args { 443486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 444841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4454412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4464412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 447486abf93SPeter Wemm }; 448841c0c7eSNathan Whitehorn #else 449841c0c7eSNathan Whitehorn struct freebsd32_pread_args { 450841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 451841c0c7eSNathan Whitehorn char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 452841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 4534412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4544412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 455841c0c7eSNathan Whitehorn }; 456841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args { 457841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 458841c0c7eSNathan Whitehorn char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 459841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 4604412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4614412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 462841c0c7eSNathan Whitehorn }; 463841c0c7eSNathan Whitehorn struct freebsd32_mmap_args { 464938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 465841c0c7eSNathan Whitehorn char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 466841c0c7eSNathan Whitehorn char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 467841c0c7eSNathan Whitehorn char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 468841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4694412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4704412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 471841c0c7eSNathan Whitehorn }; 472841c0c7eSNathan Whitehorn struct freebsd32_lseek_args { 473841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4744412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4754412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 476841c0c7eSNathan Whitehorn char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 477841c0c7eSNathan Whitehorn }; 478841c0c7eSNathan Whitehorn struct freebsd32_truncate_args { 4794e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 4804412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4814412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 482841c0c7eSNathan Whitehorn }; 483841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args { 484841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4854412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4864412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 487841c0c7eSNathan Whitehorn }; 488841c0c7eSNathan Whitehorn #endif 489841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 490774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args { 491774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 492841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4934412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 4944412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 495774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 496774b72e1SBrooks Davis }; 497841c0c7eSNathan Whitehorn #else 498841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args { 499841c0c7eSNathan Whitehorn char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5004412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5014412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 502841c0c7eSNathan Whitehorn char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 503841c0c7eSNathan Whitehorn }; 504841c0c7eSNathan Whitehorn #endif 505774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args { 506774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 507774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5084412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5094412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 510774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)]; 511774b72e1SBrooks Davis }; 512774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args { 513774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 514774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5154412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5164412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 517774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 518774b72e1SBrooks Davis char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)]; 519774b72e1SBrooks Davis }; 520774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args { 521774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 522774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5234412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5244412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 525774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 526774b72e1SBrooks Davis char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)]; 527774b72e1SBrooks Davis }; 528f2296b58SKonstantin Belousov struct freebsd32_fexecve_args { 529f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5304412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 5314412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 532f2296b58SKonstantin Belousov }; 533f2296b58SKonstantin Belousov struct freebsd32_futimesat_args { 534f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5354e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 536f2296b58SKonstantin Belousov char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)]; 537f2296b58SKonstantin Belousov }; 538fe2f3c65SJamie Gritton struct freebsd32_jail_get_args { 539fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 540fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 541fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 542fe2f3c65SJamie Gritton }; 543fe2f3c65SJamie Gritton struct freebsd32_jail_set_args { 544fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 545fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 546fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 547fe2f3c65SJamie Gritton }; 5483899e0dfSJohn Baldwin struct freebsd32_semctl_args { 5493899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 5503899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 5513899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5523899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 5533899e0dfSJohn Baldwin }; 5543899e0dfSJohn Baldwin struct freebsd32_msgctl_args { 5553899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 5563899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5573899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)]; 5583899e0dfSJohn Baldwin }; 5593899e0dfSJohn Baldwin struct freebsd32_shmctl_args { 5603899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 5613899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5623899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)]; 5633899e0dfSJohn Baldwin }; 564063e9958SKonstantin Belousov struct freebsd32_pselect_args { 565063e9958SKonstantin Belousov char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 566063e9958SKonstantin Belousov char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 567063e9958SKonstantin Belousov char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 568063e9958SKonstantin Belousov char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 569063e9958SKonstantin Belousov char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 570063e9958SKonstantin Belousov char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)]; 571063e9958SKonstantin Belousov }; 572f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 573f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args { 574f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 575f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 576f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 577f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 578f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 579f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 580f85769ebSKonstantin Belousov }; 581f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args { 582f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 583f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 584f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 585f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 586f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 587f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 588f85769ebSKonstantin Belousov char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 589f85769ebSKonstantin Belousov }; 590f85769ebSKonstantin Belousov struct freebsd32_wait6_args { 591f85769ebSKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 592f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 593f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 594f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 595f85769ebSKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 596f85769ebSKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 597f85769ebSKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 598f85769ebSKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 599f85769ebSKonstantin Belousov }; 600f85769ebSKonstantin Belousov #else 6017323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args { 6027323776bSMatthew D Fleming char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 603660d55fbSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 604660d55fbSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 605660d55fbSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 606660d55fbSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 6077323776bSMatthew D Fleming }; 608cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args { 609cd06ae5cSJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 610cd06ae5cSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 611cd06ae5cSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 612cd06ae5cSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 613cd06ae5cSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 614cd06ae5cSJohn Baldwin char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 615cd06ae5cSJohn Baldwin }; 616552e9935SKonstantin Belousov struct freebsd32_wait6_args { 617552e9935SKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 618f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 619f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 620552e9935SKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 621552e9935SKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 622552e9935SKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 623552e9935SKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 624552e9935SKonstantin Belousov }; 625f85769ebSKonstantin Belousov #endif 626e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args { 627e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 628e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)]; 629e11dc435SPawel Jakub Dawidek char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)]; 630e11dc435SPawel Jakub Dawidek }; 631e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args { 632e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 633e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)]; 634e11dc435SPawel Jakub Dawidek char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)]; 635e11dc435SPawel Jakub Dawidek }; 6368d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args { 6378d1aa3c6SGleb Smirnoff char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 6388d1aa3c6SGleb Smirnoff }; 639a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 640a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 641a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 642a566e8e3SJohn Baldwin char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 643a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 644a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 645a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 646a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 647a566e8e3SJohn Baldwin }; 648a566e8e3SJohn Baldwin #else 649a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 650a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 651a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 652a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 653a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 654a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 655a566e8e3SJohn Baldwin }; 656a566e8e3SJohn Baldwin #endif 657c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args { 658c28d9d0fSDmitry Chagin char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)]; 659c28d9d0fSDmitry Chagin char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)]; 660c28d9d0fSDmitry Chagin char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 661c28d9d0fSDmitry Chagin char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 662c28d9d0fSDmitry Chagin }; 6632b35e6a9SJilles Tjoelker struct freebsd32_futimens_args { 6642b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6652b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6662b35e6a9SJilles Tjoelker }; 6672b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args { 6682b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6694e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 6702b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6712b35e6a9SJilles Tjoelker char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 6722b35e6a9SJilles Tjoelker }; 673ec95c622SKonstantin Belousov struct freebsd32_fstat_args { 674ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 675ec95c622SKonstantin Belousov char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 676ec95c622SKonstantin Belousov }; 677ec95c622SKonstantin Belousov struct freebsd32_fstatat_args { 678ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6794e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 680ec95c622SKonstantin Belousov char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)]; 681ec95c622SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 682ec95c622SKonstantin Belousov }; 683ec95c622SKonstantin Belousov struct freebsd32_fhstat_args { 684ec95c622SKonstantin Belousov char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 685ec95c622SKonstantin Belousov char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)]; 686ec95c622SKonstantin Belousov }; 687eb84ca64SKonstantin Belousov struct freebsd32_kevent_args { 688eb84ca64SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 689eb84ca64SKonstantin Belousov char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)]; 690eb84ca64SKonstantin Belousov char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 691eb84ca64SKonstantin Belousov char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)]; 692eb84ca64SKonstantin Belousov char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 693eb84ca64SKonstantin Belousov char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 694eb84ca64SKonstantin Belousov }; 695af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args { 696af80820aSJeff Roberson char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 697af80820aSJeff Roberson char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 698af80820aSJeff Roberson char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 699af80820aSJeff Roberson char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 700af80820aSJeff Roberson char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)]; 701af80820aSJeff Roberson char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; 702af80820aSJeff Roberson char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)]; 703af80820aSJeff Roberson }; 704af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args { 705af80820aSJeff Roberson char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 706af80820aSJeff Roberson char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 707af80820aSJeff Roberson char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 708af80820aSJeff Roberson char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 709af80820aSJeff Roberson char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)]; 710af80820aSJeff Roberson char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; 711af80820aSJeff Roberson char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)]; 712af80820aSJeff Roberson }; 7139624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 714841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 715841c0c7eSNathan Whitehorn #endif 71694e75644SPeter Wemm int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); 71715857ef5SPaul Saab int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *); 71815857ef5SPaul Saab int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *); 71915857ef5SPaul Saab int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *); 72094e75644SPeter Wemm int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); 721663c5800SDavid E. O'Brien int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *); 72294e75644SPeter Wemm int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); 723f8244106SMarcel Moolenaar int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *); 72494e75644SPeter Wemm int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); 725996a568eSPeter Wemm int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *); 7265aec07c7SKonstantin Belousov int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *); 72794e75644SPeter Wemm int freebsd32_select(struct thread *, struct freebsd32_select_args *); 72894e75644SPeter Wemm int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *); 72994e75644SPeter Wemm int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *); 73094e75644SPeter Wemm int freebsd32_readv(struct thread *, struct freebsd32_readv_args *); 73194e75644SPeter Wemm int freebsd32_writev(struct thread *, struct freebsd32_writev_args *); 73294e75644SPeter Wemm int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *); 73394e75644SPeter Wemm int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *); 73494e75644SPeter Wemm int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *); 7359da68040SKonstantin Belousov int freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *); 73694e75644SPeter Wemm int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *); 73794e75644SPeter Wemm int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *); 73894e75644SPeter Wemm int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *); 739*86e06fa5SBrooks Davis int freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *); 740f06b8643SDoug Ambrisko int freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *); 7415e868cbbSJung-uk Kim int freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *); 7425e868cbbSJung-uk Kim int freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *); 743fd151bb9SPaul Saab int freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *); 744fd151bb9SPaul Saab int freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *); 745fd151bb9SPaul Saab int freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *); 74668044954SKonstantin Belousov int freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *); 74768044954SKonstantin Belousov int freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *); 74868044954SKonstantin Belousov int freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *); 7497fdf2c85SPaul Saab int freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *); 75026f86ab7SEric van Gyzen int freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *); 751c5d03637SKonstantin Belousov int freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *); 7525d8d23c7SJohn Baldwin int freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *); 7535d8d23c7SJohn Baldwin int freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *); 7545d8d23c7SJohn Baldwin int freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *); 755cac2fa64SDoug Ambrisko int freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *); 7569f3157a2SJohn Baldwin int freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *); 7579f3157a2SJohn Baldwin int freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *); 7580e214fadSPaul Saab int freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *); 759eea5c618SKonstantin Belousov int freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *); 7605d8d23c7SJohn Baldwin int freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *); 7615d8d23c7SJohn Baldwin int freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *); 7625d8d23c7SJohn Baldwin int freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *); 763f2f5c215SKonstantin Belousov int freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *); 764c542c43eSJamie Gritton int freebsd32_jail(struct thread *, struct freebsd32_jail_args *); 765312a0e5fSDavid Xu int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *); 766312a0e5fSDavid Xu int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *); 7675d8d23c7SJohn Baldwin int freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *); 768f1287854SDavid E. O'Brien int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *); 76994e75644SPeter Wemm int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *); 77028ad01d2SKonstantin Belousov int freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *); 77128ad01d2SKonstantin Belousov int freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *); 77294e75644SPeter Wemm int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *); 77394e75644SPeter Wemm int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *); 774a11ea6e3SPeter Wemm int freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *); 775a11ea6e3SPeter Wemm int freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *); 776a11ea6e3SPeter Wemm int freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *); 77728ad01d2SKonstantin Belousov int freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *); 778ac3674aaSDavid Xu int freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *); 77927bbb2e7SDavid Xu int freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *); 780ac3674aaSDavid Xu int freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *); 781e9f32d1dSBrooks Davis int freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *); 78228ad01d2SKonstantin Belousov int freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *); 78328ad01d2SKonstantin Belousov int freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *); 78428ad01d2SKonstantin Belousov int freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *); 78528ad01d2SKonstantin Belousov int freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *); 78668044954SKonstantin Belousov int freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *); 7875d8d23c7SJohn Baldwin int freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *); 788841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 789486abf93SPeter Wemm int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 790486abf93SPeter Wemm int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 791486abf93SPeter Wemm int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 792486abf93SPeter Wemm int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 793486abf93SPeter Wemm int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 794486abf93SPeter Wemm int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 795841c0c7eSNathan Whitehorn #else 796841c0c7eSNathan Whitehorn int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 797841c0c7eSNathan Whitehorn int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 798841c0c7eSNathan Whitehorn int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 799841c0c7eSNathan Whitehorn int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 800841c0c7eSNathan Whitehorn int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 801841c0c7eSNathan Whitehorn int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 802841c0c7eSNathan Whitehorn #endif 803841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 804774b72e1SBrooks Davis int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 805841c0c7eSNathan Whitehorn #else 806841c0c7eSNathan Whitehorn int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 807841c0c7eSNathan Whitehorn #endif 808774b72e1SBrooks Davis int freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *); 809774b72e1SBrooks Davis int freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *); 810774b72e1SBrooks Davis int freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *); 811f2296b58SKonstantin Belousov int freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *); 812f2296b58SKonstantin Belousov int freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *); 813fe2f3c65SJamie Gritton int freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *); 814fe2f3c65SJamie Gritton int freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *); 8153899e0dfSJohn Baldwin int freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *); 8163899e0dfSJohn Baldwin int freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *); 8173899e0dfSJohn Baldwin int freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *); 818063e9958SKonstantin Belousov int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *); 819f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 8207323776bSMatthew D Fleming int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 821cd06ae5cSJohn Baldwin int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 822552e9935SKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 823f85769ebSKonstantin Belousov #else 824f85769ebSKonstantin Belousov int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 825f85769ebSKonstantin Belousov int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 826f85769ebSKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 827f85769ebSKonstantin Belousov #endif 828e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *); 829e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *); 8308d1aa3c6SGleb Smirnoff int freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *); 831a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 832a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 833a566e8e3SJohn Baldwin #else 834a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 835a566e8e3SJohn Baldwin #endif 836c28d9d0fSDmitry Chagin int freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *); 8372b35e6a9SJilles Tjoelker int freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *); 8382b35e6a9SJilles Tjoelker int freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *); 839ec95c622SKonstantin Belousov int freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *); 840ec95c622SKonstantin Belousov int freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *); 841ec95c622SKonstantin Belousov int freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *); 842eb84ca64SKonstantin Belousov int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *); 843af80820aSJeff Roberson int freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *); 844af80820aSJeff Roberson int freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *); 8455eb29d9bSDoug Rabson 8465eb29d9bSDoug Rabson #ifdef COMPAT_43 8475eb29d9bSDoug Rabson 8489624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 849841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 850841c0c7eSNathan Whitehorn #endif 851160e5953SKonstantin Belousov struct ofreebsd32_lseek_args { 852160e5953SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 853160e5953SKonstantin Belousov char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)]; 854160e5953SKonstantin Belousov char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 855160e5953SKonstantin Belousov }; 856c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args { 8574e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 858c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 859c3b2c052SKonstantin Belousov }; 860c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args { 8614e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 862c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)]; 863c3b2c052SKonstantin Belousov }; 864946bca4fSPeter Wemm struct ofreebsd32_sigaction_args { 865946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 866946bca4fSPeter Wemm char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)]; 867946bca4fSPeter Wemm char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)]; 868946bca4fSPeter Wemm }; 869946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args { 870946bca4fSPeter Wemm char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)]; 871946bca4fSPeter Wemm char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)]; 872946bca4fSPeter Wemm }; 873c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args { 874c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 875c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 876c3b2c052SKonstantin Belousov }; 877c3b2c052SKonstantin Belousov struct ofreebsd32_getpagesize_args { 878c3b2c052SKonstantin Belousov char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)]; 879c3b2c052SKonstantin Belousov }; 880c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args { 881c3b2c052SKonstantin Belousov char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)]; 882c3b2c052SKonstantin Belousov }; 883946bca4fSPeter Wemm struct ofreebsd32_sigvec_args { 884946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 885946bca4fSPeter Wemm char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)]; 886946bca4fSPeter Wemm char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)]; 887946bca4fSPeter Wemm }; 888946bca4fSPeter Wemm struct ofreebsd32_sigblock_args { 889946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 890946bca4fSPeter Wemm }; 891946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args { 892946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 893946bca4fSPeter Wemm }; 894946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args { 895946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 896946bca4fSPeter Wemm }; 897946bca4fSPeter Wemm struct ofreebsd32_sigstack_args { 898946bca4fSPeter Wemm char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)]; 899946bca4fSPeter Wemm char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)]; 900946bca4fSPeter Wemm }; 901c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args { 902c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 903c3b2c052SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 904c3b2c052SKonstantin Belousov char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 905c3b2c052SKonstantin Belousov char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)]; 906c3b2c052SKonstantin Belousov }; 907841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 908841c0c7eSNathan Whitehorn #else 909841c0c7eSNathan Whitehorn #endif 910841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 911841c0c7eSNathan Whitehorn #else 912841c0c7eSNathan Whitehorn #endif 913f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 914f85769ebSKonstantin Belousov #else 915f85769ebSKonstantin Belousov #endif 916a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 917a566e8e3SJohn Baldwin #else 918a566e8e3SJohn Baldwin #endif 919160e5953SKonstantin Belousov int ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *); 920c3b2c052SKonstantin Belousov int ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *); 921c3b2c052SKonstantin Belousov int ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *); 922946bca4fSPeter Wemm int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *); 923946bca4fSPeter Wemm int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *); 924946bca4fSPeter Wemm int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *); 925c3b2c052SKonstantin Belousov int ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *); 926c3b2c052SKonstantin Belousov int ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *); 927c3b2c052SKonstantin Belousov int ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *); 928946bca4fSPeter Wemm int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *); 929946bca4fSPeter Wemm int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *); 930946bca4fSPeter Wemm int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *); 931946bca4fSPeter Wemm int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *); 932946bca4fSPeter Wemm int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *); 933c3b2c052SKonstantin Belousov int ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *); 9345eb29d9bSDoug Rabson 9355eb29d9bSDoug Rabson #endif /* COMPAT_43 */ 9365eb29d9bSDoug Rabson 937db27052eSPeter Wemm 938db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4 939db27052eSPeter Wemm 9409624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 941841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 942841c0c7eSNathan Whitehorn #endif 9435b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args { 9445b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9455b3283b0SPeter Wemm char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; 9461fabda45SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 9475b3283b0SPeter Wemm }; 9485b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args { 9494e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 9505b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9515b3283b0SPeter Wemm }; 9525b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args { 9535b3283b0SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 9545b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9555b3283b0SPeter Wemm }; 9565b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args { 9575b3283b0SPeter Wemm char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 9585b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9595b3283b0SPeter Wemm }; 96094e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args { 9619105d26bSPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 9629105d26bSPeter Wemm char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 9634412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 9644412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 9659105d26bSPeter Wemm char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 96626e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 9679105d26bSPeter Wemm char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 9689105d26bSPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 9699105d26bSPeter Wemm }; 97094e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args { 971e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 972e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 973e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 974e14528b3SPeter Wemm }; 97594e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args { 976fffaaed4SPeter 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 *)]; 977e14528b3SPeter Wemm }; 978841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 979841c0c7eSNathan Whitehorn #else 980841c0c7eSNathan Whitehorn #endif 981841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 982841c0c7eSNathan Whitehorn #else 983841c0c7eSNathan Whitehorn #endif 984f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 985f85769ebSKonstantin Belousov #else 986f85769ebSKonstantin Belousov #endif 987a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 988a566e8e3SJohn Baldwin #else 989a566e8e3SJohn Baldwin #endif 9905b3283b0SPeter Wemm int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *); 9915b3283b0SPeter Wemm int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *); 9925b3283b0SPeter Wemm int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *); 9935b3283b0SPeter Wemm int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *); 99494e75644SPeter Wemm int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *); 99594e75644SPeter Wemm int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *); 99694e75644SPeter Wemm int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *); 997db27052eSPeter Wemm 998db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */ 999db27052eSPeter Wemm 1000486abf93SPeter Wemm 1001718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6 1002486abf93SPeter Wemm 10039624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1004841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 1005841c0c7eSNathan Whitehorn #endif 1006486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args { 1007486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1008486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 1009486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 1010486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10114412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10124412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1013486abf93SPeter Wemm }; 1014486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args { 1015486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1016486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 1017486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 1018486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10194412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10204412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1021486abf93SPeter Wemm }; 1022486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args { 1023938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 1024486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 1025486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 1026486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 1027486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1028486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10294412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 10304412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 1031486abf93SPeter Wemm }; 1032486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args { 1033486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1034486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10354412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10364412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1037486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 1038486abf93SPeter Wemm }; 1039486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args { 10404e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1041486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10424412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 10434412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1044486abf93SPeter Wemm }; 1045486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args { 1046486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1047486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10484412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 10494412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1050486abf93SPeter Wemm }; 10518d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args { 10528d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 10538d91acedSJohn Baldwin }; 10548d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args { 10558d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 10568d91acedSJohn Baldwin }; 10578d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args { 10588d91acedSJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 10598d91acedSJohn Baldwin char acb_list_l_[PADL_(struct oaiocb32 *const *)]; struct oaiocb32 *const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 *const *)]; 10608d91acedSJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 10618d91acedSJohn Baldwin char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)]; 10628d91acedSJohn Baldwin }; 1063841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1064841c0c7eSNathan Whitehorn #else 1065841c0c7eSNathan Whitehorn #endif 1066841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1067841c0c7eSNathan Whitehorn #else 1068841c0c7eSNathan Whitehorn #endif 1069f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1070f85769ebSKonstantin Belousov #else 1071f85769ebSKonstantin Belousov #endif 1072a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1073a566e8e3SJohn Baldwin #else 1074a566e8e3SJohn Baldwin #endif 1075486abf93SPeter Wemm int freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *); 1076486abf93SPeter Wemm int freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *); 1077486abf93SPeter Wemm int freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *); 1078486abf93SPeter Wemm int freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *); 1079486abf93SPeter Wemm int freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *); 1080486abf93SPeter Wemm int freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *); 10818d91acedSJohn Baldwin int freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *); 10828d91acedSJohn Baldwin int freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *); 10838d91acedSJohn Baldwin int freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *); 1084486abf93SPeter Wemm 1085718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */ 1086486abf93SPeter Wemm 10873899e0dfSJohn Baldwin 10888ffab864SWarner Losh #ifdef COMPAT_FREEBSD7 10893899e0dfSJohn Baldwin 10909624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1091841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 1092841c0c7eSNathan Whitehorn #endif 10933899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args { 10943899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 10953899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 10963899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 10973899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 10983899e0dfSJohn Baldwin }; 10993899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args { 11003899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 11013899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 11023899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)]; 11033899e0dfSJohn Baldwin }; 11043899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args { 11053899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 11063899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 11073899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)]; 11083899e0dfSJohn Baldwin }; 1109841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1110841c0c7eSNathan Whitehorn #else 1111841c0c7eSNathan Whitehorn #endif 1112841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1113841c0c7eSNathan Whitehorn #else 1114841c0c7eSNathan Whitehorn #endif 1115f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1116f85769ebSKonstantin Belousov #else 1117f85769ebSKonstantin Belousov #endif 1118a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1119a566e8e3SJohn Baldwin #else 1120a566e8e3SJohn Baldwin #endif 11213899e0dfSJohn Baldwin int freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *); 11223899e0dfSJohn Baldwin int freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *); 11233899e0dfSJohn Baldwin int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *); 11243899e0dfSJohn Baldwin 11258ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */ 11263899e0dfSJohn Baldwin 1127a72c64b0SBrooks Davis 1128a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10 1129a72c64b0SBrooks Davis 1130a72c64b0SBrooks Davis #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1131a72c64b0SBrooks Davis #define PAD64_REQUIRED 1132a72c64b0SBrooks Davis #endif 1133a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1134a72c64b0SBrooks Davis #else 1135a72c64b0SBrooks Davis #endif 1136a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1137a72c64b0SBrooks Davis #else 1138a72c64b0SBrooks Davis #endif 1139a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1140a72c64b0SBrooks Davis #else 1141a72c64b0SBrooks Davis #endif 1142a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1143a72c64b0SBrooks Davis #else 1144a72c64b0SBrooks Davis #endif 1145a72c64b0SBrooks Davis int freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_args *); 1146a72c64b0SBrooks Davis 1147a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */ 1148a72c64b0SBrooks Davis 1149ec95c622SKonstantin Belousov 1150ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11 1151ec95c622SKonstantin Belousov 1152ec95c622SKonstantin Belousov #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1153ec95c622SKonstantin Belousov #define PAD64_REQUIRED 1154ec95c622SKonstantin Belousov #endif 1155ec95c622SKonstantin Belousov struct freebsd11_freebsd32_mknod_args { 11564e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1157ec95c622SKonstantin Belousov char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 1158ec95c622SKonstantin Belousov char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)]; 1159ec95c622SKonstantin Belousov }; 1160ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args { 11614e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1162ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1163ec95c622SKonstantin Belousov }; 1164ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args { 1165ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1166ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1167ec95c622SKonstantin Belousov }; 1168ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args { 11694e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1170ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1171ec95c622SKonstantin Belousov }; 1172ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args { 1173ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1174ec95c622SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 1175ec95c622SKonstantin Belousov char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 1176ec95c622SKonstantin Belousov char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)]; 1177ec95c622SKonstantin Belousov }; 1178ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdents_args { 1179ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1180ec95c622SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 1181ec95c622SKonstantin Belousov char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)]; 1182ec95c622SKonstantin Belousov }; 1183ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args { 1184ec95c622SKonstantin Belousov char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 1185ec95c622SKonstantin Belousov char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)]; 1186ec95c622SKonstantin Belousov }; 1187eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args { 1188eb84ca64SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1189eb84ca64SKonstantin Belousov char changelist_l_[PADL_(const struct kevent32_freebsd11 *)]; const struct kevent32_freebsd11 * changelist; char changelist_r_[PADR_(const struct kevent32_freebsd11 *)]; 1190eb84ca64SKonstantin Belousov char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 1191eb84ca64SKonstantin Belousov char eventlist_l_[PADL_(struct kevent32_freebsd11 *)]; struct kevent32_freebsd11 * eventlist; char eventlist_r_[PADR_(struct kevent32_freebsd11 *)]; 1192eb84ca64SKonstantin Belousov char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 1193eb84ca64SKonstantin Belousov char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 1194eb84ca64SKonstantin Belousov }; 1195ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1196ec95c622SKonstantin Belousov #else 1197ec95c622SKonstantin Belousov #endif 1198ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1199ec95c622SKonstantin Belousov #else 1200ec95c622SKonstantin Belousov #endif 1201ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args { 1202ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 12034e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1204ec95c622SKonstantin Belousov char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)]; 1205ec95c622SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 1206ec95c622SKonstantin Belousov }; 1207ec95c622SKonstantin Belousov struct freebsd11_freebsd32_mknodat_args { 1208ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 12094e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1210ec95c622SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 1211ec95c622SKonstantin Belousov char dev_l_[PADL_(uint32_t)]; uint32_t dev; char dev_r_[PADR_(uint32_t)]; 1212ec95c622SKonstantin Belousov }; 1213ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1214ec95c622SKonstantin Belousov #else 1215ec95c622SKonstantin Belousov #endif 1216ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1217ec95c622SKonstantin Belousov #else 1218ec95c622SKonstantin Belousov #endif 1219ec95c622SKonstantin Belousov int freebsd11_freebsd32_mknod(struct thread *, struct freebsd11_freebsd32_mknod_args *); 1220ec95c622SKonstantin Belousov int freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *); 1221ec95c622SKonstantin Belousov int freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *); 1222ec95c622SKonstantin Belousov int freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *); 1223ec95c622SKonstantin Belousov int freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *); 1224ec95c622SKonstantin Belousov int freebsd11_freebsd32_getdents(struct thread *, struct freebsd11_freebsd32_getdents_args *); 1225ec95c622SKonstantin Belousov int freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *); 1226eb84ca64SKonstantin Belousov int freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *); 1227ec95c622SKonstantin Belousov int freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *); 1228ec95c622SKonstantin Belousov int freebsd11_freebsd32_mknodat(struct thread *, struct freebsd11_freebsd32_mknodat_args *); 1229ec95c622SKonstantin Belousov 1230ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */ 1231ec95c622SKonstantin Belousov 1232f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_wait4 AUE_WAIT4 1233ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_mknod AUE_MKNOD 1234e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat AUE_GETFSSTAT 1235160e5953SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lseek AUE_LSEEK 1236f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG 1237f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG 1238f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM 1239c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_stat AUE_STAT 1240c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lstat AUE_LSTAT 1241a72c64b0SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_pipe AUE_PIPE 1242e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION 1243e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK 1244e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING 1245da7cbdc2SRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK 1246d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_IOCTL 1247f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE 1248c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_fstat AUE_FSTAT 1249c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getpagesize AUE_NULL 1250f8244106SMarcel Moolenaar #define FREEBSD32_SYS_AUE_freebsd32_mprotect AUE_MPROTECT 1251f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER 1252f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER 12535aec07c7SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fcntl AUE_FCNTL 1254f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT 1255d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_SIGRETURN 1256e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC 1257e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK 1258e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK 1259e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND 1260e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack AUE_O_SIGSTACK 1261f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday AUE_GETTIMEOFDAY 1262f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getrusage AUE_GETRUSAGE 1263f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_readv AUE_READV 1264f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_writev AUE_WRITEV 1265f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY 1266f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES 1267f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME 1268c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries AUE_GETDIRENTRIES 1269e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS 1270e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS 12719da68040SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH 1272f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semsys AUE_SEMSYS 1273f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgsys AUE_MSGSYS 1274f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmsys AUE_SHMSYS 1275e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread AUE_PREAD 1276e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite AUE_PWRITE 1277ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat AUE_STAT 1278ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat AUE_FSTAT 1279ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat AUE_LSTAT 1280ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries AUE_GETDIRENTRIES 1281e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap AUE_MMAP 1282e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek AUE_LSEEK 1283e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate AUE_TRUNCATE 1284e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate AUE_FTRUNCATE 1285*86e06fa5SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32___sysctl AUE_SYSCTL 1286f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_futimes AUE_FUTIMES 12873899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl AUE_SEMCTL 12883899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl AUE_MSGCTL 12895e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgsnd AUE_MSGSND 12905e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgrcv AUE_MSGRCV 12913899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl AUE_SHMCTL 1292f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime AUE_NULL 1293f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_settime AUE_CLOCK_SETTIME 1294f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_getres AUE_NULL 129568044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_create AUE_NULL 129668044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_settime AUE_NULL 129768044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime AUE_NULL 1298f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_nanosleep AUE_NULL 129926f86ab7SEric van Gyzen #define FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep AUE_NULL 1300c5d03637SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2 AUE_NULL 1301d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_read AUE_AIO_READ 1302d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_write AUE_AIO_WRITE 1303d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_lio_listio AUE_LIO_LISTIO 1304ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdents AUE_O_GETDENTS 1305f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lutimes AUE_LUTIMES 1306f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_preadv AUE_PREADV 1307f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_pwritev AUE_PWRITEV 1308e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs AUE_FHSTATFS 1309ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat AUE_FHSTAT 1310f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_modstat AUE_NULL 1311eea5c618SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_kldstat AUE_NULL 1312d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_return AUE_AIO_RETURN 1313d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_AIO_SUSPEND 1314d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_error AUE_AIO_ERROR 1315d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read AUE_AIO_READ 1316d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write AUE_AIO_WRITE 1317d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio AUE_LIO_LISTIO 1318f2f5c215SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval AUE_NULL 1319e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile AUE_SENDFILE 1320c542c43eSJamie Gritton #define FREEBSD32_SYS_AUE_freebsd32_jail AUE_JAIL 1321e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction AUE_SIGACTION 1322e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn AUE_SIGRETURN 1323312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT 1324312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL 1325d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete AUE_AIO_WAITCOMPLETE 1326eb84ca64SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent AUE_KEVENT 1327f1287854SDavid E. O'Brien #define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT 1328e482025eSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE 1329d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_init AUE_SEMINIT 1330d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_open AUE_SEMOPEN 1331f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION 1332f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN 1333f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getcontext AUE_NULL 1334f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setcontext AUE_NULL 1335f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL 1336d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait AUE_SEMWAIT 1337ac3674aaSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL 133827bbb2e7SDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_umtx_op AUE_NULL 1339d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_thr_new AUE_THR_NEW 1340e9f32d1dSBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_sigqueue AUE_NULL 1341d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_open AUE_MQ_OPEN 1342d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_MQ_SETATTR 1343d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive AUE_MQ_TIMEDRECEIVE 1344d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend AUE_MQ_TIMEDSEND 1345d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_notify AUE_MQ_NOTIFY 1346d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync AUE_AIO_FSYNC 1347486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1348486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1349486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1350486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1351486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1352486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1353841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1354841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1355841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1356841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1357841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1358841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1359841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1360774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1361774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid AUE_NULL 1362774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity AUE_NULL 1363774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity AUE_NULL 1364f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fexecve AUE_FEXECVE 1365ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat AUE_FSTATAT 1366f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_futimesat AUE_FUTIMESAT 1367ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_mknodat AUE_MKNODAT 1368d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_get AUE_JAIL_GET 1369d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_set AUE_JAIL_SET 13703899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semctl AUE_SEMCTL 13713899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgctl AUE_MSGCTL 13723899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmctl AUE_SHMCTL 1373063e9958SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_pselect AUE_SELECT 1374d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1375d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1376552e9935SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1377d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1378d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1379f85769ebSKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1380e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit AUE_CAP_IOCTLS_LIMIT 1381e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get AUE_CAP_IOCTLS_GET 1382d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_mlock AUE_AIO_MLOCK 1383d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1384d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1385c28d9d0fSDmitry Chagin #define FREEBSD32_SYS_AUE_freebsd32_ppoll AUE_POLL 13862b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_futimens AUE_FUTIMES 13872b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_utimensat AUE_FUTIMESAT 1388ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstat AUE_FSTAT 1389ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstatat AUE_FSTATAT 1390ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fhstat AUE_FHSTAT 1391eb84ca64SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_KEVENT 1392af80820aSJeff Roberson #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain AUE_NULL 1393af80820aSJeff Roberson #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain AUE_NULL 1394f8f1f7fbSJohn Baldwin 13955eb29d9bSDoug Rabson #undef PAD_ 13965eb29d9bSDoug Rabson #undef PADL_ 13975eb29d9bSDoug Rabson #undef PADR_ 13985eb29d9bSDoug Rabson 139994e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */ 1400