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> 14cf13a585SLawrence Stewart #include <sys/_ffcounter.h> 159f706204SRuslan Ermilov #include <sys/_semaphore.h> 169bc65d35SJohn Baldwin #include <sys/ucontext.h> 179fdb497cSJilles Tjoelker #include <sys/wait.h> 189bc65d35SJohn Baldwin 19f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h> 20f8f1f7fbSJohn Baldwin 215eb29d9bSDoug Rabson struct proc; 225eb29d9bSDoug Rabson 235eb29d9bSDoug Rabson struct thread; 245eb29d9bSDoug Rabson 255eb29d9bSDoug Rabson #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 265eb29d9bSDoug Rabson 0 : sizeof(register_t) - sizeof(t)) 275eb29d9bSDoug Rabson 285eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN 295eb29d9bSDoug Rabson #define PADL_(t) 0 305eb29d9bSDoug Rabson #define PADR_(t) PAD_(t) 315eb29d9bSDoug Rabson #else 325eb29d9bSDoug Rabson #define PADL_(t) PAD_(t) 335eb29d9bSDoug Rabson #define PADR_(t) 0 345eb29d9bSDoug Rabson #endif 355eb29d9bSDoug Rabson 369624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 37841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 38841c0c7eSNathan Whitehorn #endif 3994e75644SPeter Wemm struct freebsd32_wait4_args { 405eb29d9bSDoug Rabson char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; 415eb29d9bSDoug Rabson char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 425eb29d9bSDoug Rabson char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 43db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 445eb29d9bSDoug Rabson }; 4515857ef5SPaul Saab struct freebsd32_recvmsg_args { 4615857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 4715857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 4815857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 4915857ef5SPaul Saab }; 5015857ef5SPaul Saab struct freebsd32_sendmsg_args { 5115857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 5215857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 5315857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 5415857ef5SPaul Saab }; 5515857ef5SPaul Saab struct freebsd32_recvfrom_args { 5615857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 574412ad48SEd Schouten char buf_l_[PADL_(uint32_t)]; uint32_t buf; char buf_r_[PADR_(uint32_t)]; 584412ad48SEd Schouten char len_l_[PADL_(uint32_t)]; uint32_t len; char len_r_[PADR_(uint32_t)]; 5915857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 604412ad48SEd Schouten char from_l_[PADL_(uint32_t)]; uint32_t from; char from_r_[PADR_(uint32_t)]; 614412ad48SEd Schouten char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)]; 6215857ef5SPaul Saab }; 63a72c64b0SBrooks Davis struct freebsd10_freebsd32_pipe_args { 64a72c64b0SBrooks Davis register_t dummy; 65a72c64b0SBrooks Davis }; 66946bca4fSPeter Wemm struct ofreebsd32_sigpending_args { 6790168b92SPaul Saab register_t dummy; 6890168b92SPaul Saab }; 6994e75644SPeter Wemm struct freebsd32_sigaltstack_args { 70db27052eSPeter Wemm char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; 71db27052eSPeter Wemm char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; 725eb29d9bSDoug Rabson }; 73663c5800SDavid E. O'Brien struct freebsd32_ioctl_args { 74663c5800SDavid E. O'Brien char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 75663c5800SDavid E. O'Brien char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)]; 76663c5800SDavid E. O'Brien char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)]; 77663c5800SDavid E. O'Brien }; 7894e75644SPeter Wemm struct freebsd32_execve_args { 795eb29d9bSDoug Rabson char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)]; 804412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 814412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 825eb29d9bSDoug Rabson }; 83f8244106SMarcel Moolenaar struct freebsd32_mprotect_args { 84e938ebbcSEd Schouten char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 85f8244106SMarcel Moolenaar char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 86f8244106SMarcel Moolenaar char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 87f8244106SMarcel Moolenaar }; 8894e75644SPeter Wemm struct freebsd32_setitimer_args { 895eb29d9bSDoug Rabson char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 90db27052eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 91db27052eSPeter Wemm char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; 925eb29d9bSDoug Rabson }; 93996a568eSPeter Wemm struct freebsd32_getitimer_args { 94996a568eSPeter Wemm char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 95996a568eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 96996a568eSPeter Wemm }; 975aec07c7SKonstantin Belousov struct freebsd32_fcntl_args { 985aec07c7SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 995aec07c7SKonstantin Belousov char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 1005aec07c7SKonstantin Belousov char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)]; 1015aec07c7SKonstantin Belousov }; 10294e75644SPeter Wemm struct freebsd32_select_args { 1035eb29d9bSDoug Rabson char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 1045eb29d9bSDoug Rabson char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 1055eb29d9bSDoug Rabson char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 1065eb29d9bSDoug Rabson char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 107db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1085eb29d9bSDoug Rabson }; 10994e75644SPeter Wemm struct freebsd32_gettimeofday_args { 110db27052eSPeter Wemm char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; 1115eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1125eb29d9bSDoug Rabson }; 11394e75644SPeter Wemm struct freebsd32_getrusage_args { 1145eb29d9bSDoug Rabson char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; 115db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 1165eb29d9bSDoug Rabson }; 11794e75644SPeter Wemm struct freebsd32_readv_args { 1185eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 119db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1205eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1215eb29d9bSDoug Rabson }; 12294e75644SPeter Wemm struct freebsd32_writev_args { 1235eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 124db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1255eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1265eb29d9bSDoug Rabson }; 12794e75644SPeter Wemm struct freebsd32_settimeofday_args { 128db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1295eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1305eb29d9bSDoug Rabson }; 13194e75644SPeter Wemm struct freebsd32_utimes_args { 132db27052eSPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 133db27052eSPeter Wemm char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 134db27052eSPeter Wemm }; 13594e75644SPeter Wemm struct freebsd32_adjtime_args { 136db27052eSPeter Wemm char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; 137db27052eSPeter Wemm char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; 138db27052eSPeter Wemm }; 1399da68040SKonstantin Belousov struct freebsd32_sysarch_args { 1409da68040SKonstantin Belousov char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 1419da68040SKonstantin Belousov char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)]; 1429da68040SKonstantin Belousov }; 14394e75644SPeter Wemm struct freebsd32_semsys_args { 1445eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1455eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1465eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1475eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1485eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1495eb29d9bSDoug Rabson }; 15094e75644SPeter Wemm struct freebsd32_msgsys_args { 1515eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1525eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1535eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1545eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1555eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1565eb29d9bSDoug Rabson char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; 1575eb29d9bSDoug Rabson }; 15894e75644SPeter Wemm struct freebsd32_shmsys_args { 15974f7258fSPaul Saab char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)]; 16074f7258fSPaul Saab char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)]; 16174f7258fSPaul Saab char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)]; 16274f7258fSPaul Saab char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)]; 1635eb29d9bSDoug Rabson }; 16494e75644SPeter Wemm struct freebsd32_stat_args { 1655eb29d9bSDoug Rabson char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 166db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1675eb29d9bSDoug Rabson }; 16894e75644SPeter Wemm struct freebsd32_fstat_args { 1695eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 170db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1715eb29d9bSDoug Rabson }; 17294e75644SPeter Wemm struct freebsd32_lstat_args { 1735eb29d9bSDoug Rabson char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 174db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1755eb29d9bSDoug Rabson }; 17623aa8eeaSJohn Baldwin struct freebsd32_getdirentries_args { 17723aa8eeaSJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 17823aa8eeaSJohn Baldwin char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 17923aa8eeaSJohn Baldwin char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 18023aa8eeaSJohn Baldwin char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)]; 18123aa8eeaSJohn Baldwin }; 18294e75644SPeter Wemm struct freebsd32_sysctl_args { 1835eb29d9bSDoug Rabson char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; 1845eb29d9bSDoug Rabson char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; 1855eb29d9bSDoug Rabson char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; 1864412ad48SEd Schouten char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)]; 1875eb29d9bSDoug Rabson char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; 1884412ad48SEd Schouten char newlen_l_[PADL_(uint32_t)]; uint32_t newlen; char newlen_r_[PADR_(uint32_t)]; 1895eb29d9bSDoug Rabson }; 190f06b8643SDoug Ambrisko struct freebsd32_futimes_args { 191f06b8643SDoug Ambrisko char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 192f06b8643SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 193f06b8643SDoug Ambrisko }; 1945e868cbbSJung-uk Kim struct freebsd32_msgsnd_args { 1955e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1965e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1975e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1985e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1995e868cbbSJung-uk Kim }; 2005e868cbbSJung-uk Kim struct freebsd32_msgrcv_args { 2015e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 2025e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 2035e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 2045e868cbbSJung-uk Kim char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)]; 2055e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 2065e868cbbSJung-uk Kim }; 207fd151bb9SPaul Saab struct freebsd32_clock_gettime_args { 208fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 209fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 210fd151bb9SPaul Saab }; 211fd151bb9SPaul Saab struct freebsd32_clock_settime_args { 212fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 213fd151bb9SPaul Saab char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)]; 214fd151bb9SPaul Saab }; 215fd151bb9SPaul Saab struct freebsd32_clock_getres_args { 216fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 217fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 218fd151bb9SPaul Saab }; 21968044954SKonstantin Belousov struct freebsd32_ktimer_create_args { 22068044954SKonstantin Belousov char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 22168044954SKonstantin Belousov char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)]; 22268044954SKonstantin Belousov char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)]; 22368044954SKonstantin Belousov }; 22468044954SKonstantin Belousov struct freebsd32_ktimer_settime_args { 22568044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 22668044954SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 22768044954SKonstantin Belousov char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)]; 22868044954SKonstantin Belousov char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)]; 22968044954SKonstantin Belousov }; 23068044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args { 23168044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 23268044954SKonstantin Belousov char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)]; 23368044954SKonstantin Belousov }; 2347fdf2c85SPaul Saab struct freebsd32_nanosleep_args { 235145f7e60SPaul Saab char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 236145f7e60SPaul Saab char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 2377fdf2c85SPaul Saab }; 23826f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args { 23926f86ab7SEric van Gyzen char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 24026f86ab7SEric van Gyzen char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 24126f86ab7SEric van Gyzen char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 24226f86ab7SEric van Gyzen char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 24326f86ab7SEric van Gyzen }; 244c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args { 245c5d03637SKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 246c5d03637SKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 247c5d03637SKonstantin Belousov char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 248c5d03637SKonstantin Belousov char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)]; 249c5d03637SKonstantin Belousov }; 2505d8d23c7SJohn Baldwin struct freebsd32_aio_read_args { 2515d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2525d8d23c7SJohn Baldwin }; 2535d8d23c7SJohn Baldwin struct freebsd32_aio_write_args { 2545d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2555d8d23c7SJohn Baldwin }; 2565d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args { 2575d8d23c7SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 2585d8d23c7SJohn Baldwin char acb_list_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * acb_list; char acb_list_r_[PADR_(struct aiocb32 *const *)]; 2595d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 26068044954SKonstantin Belousov char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)]; 2615d8d23c7SJohn Baldwin }; 262cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args { 263cac2fa64SDoug Ambrisko char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 264cac2fa64SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 265cac2fa64SDoug Ambrisko }; 2669f3157a2SJohn Baldwin struct freebsd32_preadv_args { 2679f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2689f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2699f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2704412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2714412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2729f3157a2SJohn Baldwin }; 2739f3157a2SJohn Baldwin struct freebsd32_pwritev_args { 2749f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2759f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2769f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2774412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2784412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2799f3157a2SJohn Baldwin }; 2800e214fadSPaul Saab struct freebsd32_modstat_args { 2810e214fadSPaul Saab char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; 2820e214fadSPaul Saab char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)]; 2830e214fadSPaul Saab }; 284eea5c618SKonstantin Belousov struct freebsd32_kldstat_args { 285eea5c618SKonstantin Belousov char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)]; 286eea5c618SKonstantin Belousov char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)]; 287eea5c618SKonstantin Belousov }; 2885d8d23c7SJohn Baldwin struct freebsd32_aio_return_args { 2895d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2905d8d23c7SJohn Baldwin }; 2915d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args { 2925d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *const *)]; 2935d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2945d8d23c7SJohn Baldwin char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 2955d8d23c7SJohn Baldwin }; 2965d8d23c7SJohn Baldwin struct freebsd32_aio_error_args { 2975d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2985d8d23c7SJohn Baldwin }; 299759e7c0bSBjoern A. Zeeb struct freebsd32_jail_args { 300759e7c0bSBjoern A. Zeeb char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)]; 301759e7c0bSBjoern A. Zeeb }; 302312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args { 303312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 304312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 305312a0e5fSDavid Xu char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; 306312a0e5fSDavid Xu }; 307312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args { 308312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 309312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 310312a0e5fSDavid Xu }; 3115d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args { 3125d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)]; 3135d8d23c7SJohn Baldwin char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)]; 3145d8d23c7SJohn Baldwin }; 31594e75644SPeter Wemm struct freebsd32_kevent_args { 316e14528b3SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 317a95e8cd3SPaul Saab char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)]; 318e14528b3SPeter Wemm char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 319a95e8cd3SPaul Saab char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)]; 320e14528b3SPeter Wemm char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 321a95e8cd3SPaul Saab char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 3229105d26bSPeter Wemm }; 323f1287854SDavid E. O'Brien struct freebsd32_nmount_args { 324f1287854SDavid E. O'Brien char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 325f1287854SDavid E. O'Brien char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 326f1287854SDavid E. O'Brien char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 327f1287854SDavid E. O'Brien }; 32894e75644SPeter Wemm struct freebsd32_sendfile_args { 3295eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 3305eb29d9bSDoug Rabson char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 3314412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 3324412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 3335eb29d9bSDoug Rabson char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 33426e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 3355eb29d9bSDoug Rabson char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 3365eb29d9bSDoug Rabson char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 3375eb29d9bSDoug Rabson }; 33828ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args { 33928ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 34028ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 34128ad01d2SKonstantin Belousov }; 34228ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args { 34328ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 34428ad01d2SKonstantin Belousov char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; 34528ad01d2SKonstantin Belousov char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)]; 34628ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 34728ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 34828ad01d2SKonstantin Belousov }; 34994e75644SPeter Wemm struct freebsd32_sigaction_args { 350e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 351e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 352e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 353e14528b3SPeter Wemm }; 35494e75644SPeter Wemm struct freebsd32_sigreturn_args { 35594e75644SPeter Wemm char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)]; 35682914097SPeter Wemm }; 357a11ea6e3SPeter Wemm struct freebsd32_getcontext_args { 358a11ea6e3SPeter Wemm char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)]; 359a11ea6e3SPeter Wemm }; 360a11ea6e3SPeter Wemm struct freebsd32_setcontext_args { 361a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 362a11ea6e3SPeter Wemm }; 363a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args { 364a11ea6e3SPeter Wemm char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)]; 365a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 366a11ea6e3SPeter Wemm }; 36728ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args { 36828ad01d2SKonstantin Belousov char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)]; 36928ad01d2SKonstantin Belousov char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)]; 37028ad01d2SKonstantin Belousov }; 371ac3674aaSDavid Xu struct freebsd32_thr_suspend_args { 372ac3674aaSDavid Xu char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 373ac3674aaSDavid Xu }; 37427bbb2e7SDavid Xu struct freebsd32_umtx_op_args { 37527bbb2e7SDavid Xu char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)]; 37627bbb2e7SDavid Xu char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 377034b26fcSDavid Xu char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)]; 37827bbb2e7SDavid Xu char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)]; 37927bbb2e7SDavid Xu char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)]; 38027bbb2e7SDavid Xu }; 381ac3674aaSDavid Xu struct freebsd32_thr_new_args { 382ac3674aaSDavid Xu char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)]; 383ac3674aaSDavid Xu char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)]; 384ac3674aaSDavid Xu }; 385*e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args { 386*e9f32d1dSBrooks Davis char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 387*e9f32d1dSBrooks Davis char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 388*e9f32d1dSBrooks Davis char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)]; 389*e9f32d1dSBrooks Davis }; 39028ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args { 39128ad01d2SKonstantin Belousov char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 39228ad01d2SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 39328ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 39428ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 39528ad01d2SKonstantin Belousov }; 39628ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args { 39728ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 39828ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 39928ad01d2SKonstantin Belousov char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)]; 40028ad01d2SKonstantin Belousov }; 40128ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args { 40228ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 40328ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)]; 40428ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 40528ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)]; 40628ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 40728ad01d2SKonstantin Belousov }; 40828ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args { 40928ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 41028ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)]; 41128ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 41228ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)]; 41328ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 41428ad01d2SKonstantin Belousov }; 41568044954SKonstantin Belousov struct freebsd32_kmq_notify_args { 41668044954SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 41768044954SKonstantin Belousov char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)]; 41868044954SKonstantin Belousov }; 4195d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args { 4205d8d23c7SJohn Baldwin char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 4215d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 4225d8d23c7SJohn Baldwin }; 423841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 424486abf93SPeter Wemm struct freebsd32_pread_args { 425486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 426486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 427486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 428841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4294412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4304412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 431486abf93SPeter Wemm }; 432486abf93SPeter Wemm struct freebsd32_pwrite_args { 433486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 434486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 435486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 436841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4374412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4384412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 439486abf93SPeter Wemm }; 440486abf93SPeter Wemm struct freebsd32_mmap_args { 441486abf93SPeter Wemm char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 442486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 443486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 444486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 445486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 446841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4474412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4484412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 449486abf93SPeter Wemm }; 450486abf93SPeter Wemm struct freebsd32_lseek_args { 451486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 452841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 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)]; 455486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 456486abf93SPeter Wemm }; 457486abf93SPeter Wemm struct freebsd32_truncate_args { 458486abf93SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 459841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4604412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4614412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 462486abf93SPeter Wemm }; 463486abf93SPeter Wemm struct freebsd32_ftruncate_args { 464486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 465841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4664412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4674412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 468486abf93SPeter Wemm }; 469841c0c7eSNathan Whitehorn #else 470841c0c7eSNathan Whitehorn struct freebsd32_pread_args { 471841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 472841c0c7eSNathan Whitehorn char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 473841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 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 }; 477841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args { 478841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 479841c0c7eSNathan Whitehorn char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 480841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 4814412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4824412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 483841c0c7eSNathan Whitehorn }; 484841c0c7eSNathan Whitehorn struct freebsd32_mmap_args { 485841c0c7eSNathan Whitehorn char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 486841c0c7eSNathan Whitehorn char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 487841c0c7eSNathan Whitehorn char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 488841c0c7eSNathan Whitehorn char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 489841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4904412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4914412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 492841c0c7eSNathan Whitehorn }; 493841c0c7eSNathan Whitehorn struct freebsd32_lseek_args { 494841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4954412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4964412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 497841c0c7eSNathan Whitehorn char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 498841c0c7eSNathan Whitehorn }; 499841c0c7eSNathan Whitehorn struct freebsd32_truncate_args { 500841c0c7eSNathan Whitehorn char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 5014412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 5024412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 503841c0c7eSNathan Whitehorn }; 504841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args { 505841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5064412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 5074412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 508841c0c7eSNathan Whitehorn }; 509841c0c7eSNathan Whitehorn #endif 510841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 511774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args { 512774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 513841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 5144412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5154412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 516774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 517774b72e1SBrooks Davis }; 518841c0c7eSNathan Whitehorn #else 519841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args { 520841c0c7eSNathan Whitehorn char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5214412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5224412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 523841c0c7eSNathan Whitehorn char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 524841c0c7eSNathan Whitehorn }; 525841c0c7eSNathan Whitehorn #endif 526774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args { 527774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 528774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5294412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5304412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 531774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)]; 532774b72e1SBrooks Davis }; 533774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args { 534774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 535774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5364412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5374412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 538774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 539774b72e1SBrooks Davis char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)]; 540774b72e1SBrooks Davis }; 541774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args { 542774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 543774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5444412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5454412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 546774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 547774b72e1SBrooks Davis char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)]; 548774b72e1SBrooks Davis }; 549f2296b58SKonstantin Belousov struct freebsd32_fexecve_args { 550f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5514412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 5524412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 553f2296b58SKonstantin Belousov }; 554f2296b58SKonstantin Belousov struct freebsd32_fstatat_args { 555f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 556f2296b58SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 557f2296b58SKonstantin Belousov char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)]; 558f2296b58SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 559f2296b58SKonstantin Belousov }; 560f2296b58SKonstantin Belousov struct freebsd32_futimesat_args { 561f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 562f2296b58SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 563f2296b58SKonstantin Belousov char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)]; 564f2296b58SKonstantin Belousov }; 565fe2f3c65SJamie Gritton struct freebsd32_jail_get_args { 566fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 567fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 568fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 569fe2f3c65SJamie Gritton }; 570fe2f3c65SJamie Gritton struct freebsd32_jail_set_args { 571fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 572fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 573fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 574fe2f3c65SJamie Gritton }; 5753899e0dfSJohn Baldwin struct freebsd32_semctl_args { 5763899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 5773899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 5783899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5793899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 5803899e0dfSJohn Baldwin }; 5813899e0dfSJohn Baldwin struct freebsd32_msgctl_args { 5823899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 5833899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5843899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)]; 5853899e0dfSJohn Baldwin }; 5863899e0dfSJohn Baldwin struct freebsd32_shmctl_args { 5873899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 5883899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5893899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)]; 5903899e0dfSJohn Baldwin }; 591063e9958SKonstantin Belousov struct freebsd32_pselect_args { 592063e9958SKonstantin Belousov char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 593063e9958SKonstantin Belousov char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 594063e9958SKonstantin Belousov char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 595063e9958SKonstantin Belousov char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 596063e9958SKonstantin Belousov char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 597063e9958SKonstantin Belousov char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)]; 598063e9958SKonstantin Belousov }; 599f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 600f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args { 601f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 602f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 603f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 604f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 605f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 606f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 607f85769ebSKonstantin Belousov }; 608f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args { 609f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 610f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 611f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 612f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 613f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 614f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 615f85769ebSKonstantin Belousov char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 616f85769ebSKonstantin Belousov }; 617f85769ebSKonstantin Belousov struct freebsd32_wait6_args { 618f85769ebSKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 619f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 620f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 621f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 622f85769ebSKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 623f85769ebSKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 624f85769ebSKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 625f85769ebSKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 626f85769ebSKonstantin Belousov }; 627f85769ebSKonstantin Belousov #else 6287323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args { 6297323776bSMatthew D Fleming char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 630660d55fbSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 631660d55fbSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 632660d55fbSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 633660d55fbSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 6347323776bSMatthew D Fleming }; 635cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args { 636cd06ae5cSJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 637cd06ae5cSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 638cd06ae5cSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 639cd06ae5cSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 640cd06ae5cSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 641cd06ae5cSJohn Baldwin char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 642cd06ae5cSJohn Baldwin }; 643552e9935SKonstantin Belousov struct freebsd32_wait6_args { 644552e9935SKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 645f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 646f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 647552e9935SKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 648552e9935SKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 649552e9935SKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 650552e9935SKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 651552e9935SKonstantin Belousov }; 652f85769ebSKonstantin Belousov #endif 653e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args { 654e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 655e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)]; 656e11dc435SPawel Jakub Dawidek char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)]; 657e11dc435SPawel Jakub Dawidek }; 658e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args { 659e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 660e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)]; 661e11dc435SPawel Jakub Dawidek char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)]; 662e11dc435SPawel Jakub Dawidek }; 6638d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args { 6648d1aa3c6SGleb Smirnoff char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 6658d1aa3c6SGleb Smirnoff }; 666a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 667a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 668a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 669a566e8e3SJohn Baldwin char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 670a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 671a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 672a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 673a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 674a566e8e3SJohn Baldwin }; 675a566e8e3SJohn Baldwin #else 676a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 677a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 678a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 679a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 680a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 681a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 682a566e8e3SJohn Baldwin }; 683a566e8e3SJohn Baldwin #endif 684c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args { 685c28d9d0fSDmitry Chagin char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)]; 686c28d9d0fSDmitry Chagin char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)]; 687c28d9d0fSDmitry Chagin char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 688c28d9d0fSDmitry Chagin char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 689c28d9d0fSDmitry Chagin }; 6902b35e6a9SJilles Tjoelker struct freebsd32_futimens_args { 6912b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6922b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6932b35e6a9SJilles Tjoelker }; 6942b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args { 6952b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6962b35e6a9SJilles Tjoelker char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 6972b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6982b35e6a9SJilles Tjoelker char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 6992b35e6a9SJilles Tjoelker }; 7009624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 701841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 702841c0c7eSNathan Whitehorn #endif 70394e75644SPeter Wemm int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); 70415857ef5SPaul Saab int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *); 70515857ef5SPaul Saab int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *); 70615857ef5SPaul Saab int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *); 70794e75644SPeter Wemm int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); 708663c5800SDavid E. O'Brien int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *); 70994e75644SPeter Wemm int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); 710f8244106SMarcel Moolenaar int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *); 71194e75644SPeter Wemm int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); 712996a568eSPeter Wemm int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *); 7135aec07c7SKonstantin Belousov int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *); 71494e75644SPeter Wemm int freebsd32_select(struct thread *, struct freebsd32_select_args *); 71594e75644SPeter Wemm int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *); 71694e75644SPeter Wemm int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *); 71794e75644SPeter Wemm int freebsd32_readv(struct thread *, struct freebsd32_readv_args *); 71894e75644SPeter Wemm int freebsd32_writev(struct thread *, struct freebsd32_writev_args *); 71994e75644SPeter Wemm int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *); 72094e75644SPeter Wemm int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *); 72194e75644SPeter Wemm int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *); 7229da68040SKonstantin Belousov int freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *); 72394e75644SPeter Wemm int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *); 72494e75644SPeter Wemm int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *); 72594e75644SPeter Wemm int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *); 72694e75644SPeter Wemm int freebsd32_stat(struct thread *, struct freebsd32_stat_args *); 72794e75644SPeter Wemm int freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *); 72894e75644SPeter Wemm int freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *); 72923aa8eeaSJohn Baldwin int freebsd32_getdirentries(struct thread *, struct freebsd32_getdirentries_args *); 73094e75644SPeter Wemm int freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *); 731f06b8643SDoug Ambrisko int freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *); 7325e868cbbSJung-uk Kim int freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *); 7335e868cbbSJung-uk Kim int freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *); 734fd151bb9SPaul Saab int freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *); 735fd151bb9SPaul Saab int freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *); 736fd151bb9SPaul Saab int freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *); 73768044954SKonstantin Belousov int freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *); 73868044954SKonstantin Belousov int freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *); 73968044954SKonstantin Belousov int freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *); 7407fdf2c85SPaul Saab int freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *); 74126f86ab7SEric van Gyzen int freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *); 742c5d03637SKonstantin Belousov int freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *); 7435d8d23c7SJohn Baldwin int freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *); 7445d8d23c7SJohn Baldwin int freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *); 7455d8d23c7SJohn Baldwin int freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *); 746cac2fa64SDoug Ambrisko int freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *); 7479f3157a2SJohn Baldwin int freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *); 7489f3157a2SJohn Baldwin int freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *); 7490e214fadSPaul Saab int freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *); 750eea5c618SKonstantin Belousov int freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *); 7515d8d23c7SJohn Baldwin int freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *); 7525d8d23c7SJohn Baldwin int freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *); 7535d8d23c7SJohn Baldwin int freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *); 754759e7c0bSBjoern A. Zeeb int freebsd32_jail(struct thread *, struct freebsd32_jail_args *); 755312a0e5fSDavid Xu int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *); 756312a0e5fSDavid Xu int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *); 7575d8d23c7SJohn Baldwin int freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *); 75894e75644SPeter Wemm int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *); 759f1287854SDavid E. O'Brien int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *); 76094e75644SPeter Wemm int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *); 76128ad01d2SKonstantin Belousov int freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *); 76228ad01d2SKonstantin Belousov int freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *); 76394e75644SPeter Wemm int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *); 76494e75644SPeter Wemm int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *); 765a11ea6e3SPeter Wemm int freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *); 766a11ea6e3SPeter Wemm int freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *); 767a11ea6e3SPeter Wemm int freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *); 76828ad01d2SKonstantin Belousov int freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *); 769ac3674aaSDavid Xu int freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *); 77027bbb2e7SDavid Xu int freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *); 771ac3674aaSDavid Xu int freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *); 772*e9f32d1dSBrooks Davis int freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *); 77328ad01d2SKonstantin Belousov int freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *); 77428ad01d2SKonstantin Belousov int freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *); 77528ad01d2SKonstantin Belousov int freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *); 77628ad01d2SKonstantin Belousov int freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *); 77768044954SKonstantin Belousov int freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *); 7785d8d23c7SJohn Baldwin int freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *); 779841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 780486abf93SPeter Wemm int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 781486abf93SPeter Wemm int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 782486abf93SPeter Wemm int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 783486abf93SPeter Wemm int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 784486abf93SPeter Wemm int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 785486abf93SPeter Wemm int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 786841c0c7eSNathan Whitehorn #else 787841c0c7eSNathan Whitehorn int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 788841c0c7eSNathan Whitehorn int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 789841c0c7eSNathan Whitehorn int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 790841c0c7eSNathan Whitehorn int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 791841c0c7eSNathan Whitehorn int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 792841c0c7eSNathan Whitehorn int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 793841c0c7eSNathan Whitehorn #endif 794841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 795774b72e1SBrooks Davis int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 796841c0c7eSNathan Whitehorn #else 797841c0c7eSNathan Whitehorn int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 798841c0c7eSNathan Whitehorn #endif 799774b72e1SBrooks Davis int freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *); 800774b72e1SBrooks Davis int freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *); 801774b72e1SBrooks Davis int freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *); 802f2296b58SKonstantin Belousov int freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *); 803f2296b58SKonstantin Belousov int freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *); 804f2296b58SKonstantin Belousov int freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *); 805fe2f3c65SJamie Gritton int freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *); 806fe2f3c65SJamie Gritton int freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *); 8073899e0dfSJohn Baldwin int freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *); 8083899e0dfSJohn Baldwin int freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *); 8093899e0dfSJohn Baldwin int freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *); 810063e9958SKonstantin Belousov int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *); 811f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 8127323776bSMatthew D Fleming int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 813cd06ae5cSJohn Baldwin int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 814552e9935SKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 815f85769ebSKonstantin Belousov #else 816f85769ebSKonstantin Belousov int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 817f85769ebSKonstantin Belousov int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 818f85769ebSKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 819f85769ebSKonstantin Belousov #endif 820e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *); 821e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *); 8228d1aa3c6SGleb Smirnoff int freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *); 823a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 824a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 825a566e8e3SJohn Baldwin #else 826a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 827a566e8e3SJohn Baldwin #endif 828c28d9d0fSDmitry Chagin int freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *); 8292b35e6a9SJilles Tjoelker int freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *); 8302b35e6a9SJilles Tjoelker int freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *); 8315eb29d9bSDoug Rabson 8325eb29d9bSDoug Rabson #ifdef COMPAT_43 8335eb29d9bSDoug Rabson 8349624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 835841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 836841c0c7eSNathan Whitehorn #endif 837160e5953SKonstantin Belousov struct ofreebsd32_lseek_args { 838160e5953SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 839160e5953SKonstantin Belousov char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)]; 840160e5953SKonstantin Belousov char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 841160e5953SKonstantin Belousov }; 842c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args { 843c3b2c052SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 844c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 845c3b2c052SKonstantin Belousov }; 846c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args { 847c3b2c052SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 848c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)]; 849c3b2c052SKonstantin Belousov }; 850946bca4fSPeter Wemm struct ofreebsd32_sigaction_args { 851946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 852946bca4fSPeter Wemm char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)]; 853946bca4fSPeter Wemm char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)]; 854946bca4fSPeter Wemm }; 855946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args { 856946bca4fSPeter Wemm char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)]; 857946bca4fSPeter Wemm char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)]; 858946bca4fSPeter Wemm }; 859c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args { 860c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 861c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 862c3b2c052SKonstantin Belousov }; 863c3b2c052SKonstantin Belousov struct ofreebsd32_getpagesize_args { 864c3b2c052SKonstantin Belousov char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)]; 865c3b2c052SKonstantin Belousov }; 866c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args { 867c3b2c052SKonstantin Belousov char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)]; 868c3b2c052SKonstantin Belousov }; 869946bca4fSPeter Wemm struct ofreebsd32_sigvec_args { 870946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 871946bca4fSPeter Wemm char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)]; 872946bca4fSPeter Wemm char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)]; 873946bca4fSPeter Wemm }; 874946bca4fSPeter Wemm struct ofreebsd32_sigblock_args { 875946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 876946bca4fSPeter Wemm }; 877946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args { 878946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 879946bca4fSPeter Wemm }; 880946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args { 881946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 882946bca4fSPeter Wemm }; 883946bca4fSPeter Wemm struct ofreebsd32_sigstack_args { 884946bca4fSPeter Wemm char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)]; 885946bca4fSPeter Wemm char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)]; 886946bca4fSPeter Wemm }; 887c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args { 888c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 889c3b2c052SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 890c3b2c052SKonstantin Belousov char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 891c3b2c052SKonstantin Belousov char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)]; 892c3b2c052SKonstantin Belousov }; 893841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 894841c0c7eSNathan Whitehorn #else 895841c0c7eSNathan Whitehorn #endif 896841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 897841c0c7eSNathan Whitehorn #else 898841c0c7eSNathan Whitehorn #endif 899f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 900f85769ebSKonstantin Belousov #else 901f85769ebSKonstantin Belousov #endif 902a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 903a566e8e3SJohn Baldwin #else 904a566e8e3SJohn Baldwin #endif 905160e5953SKonstantin Belousov int ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *); 906c3b2c052SKonstantin Belousov int ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *); 907c3b2c052SKonstantin Belousov int ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *); 908946bca4fSPeter Wemm int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *); 909946bca4fSPeter Wemm int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *); 910946bca4fSPeter Wemm int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *); 911c3b2c052SKonstantin Belousov int ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *); 912c3b2c052SKonstantin Belousov int ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *); 913c3b2c052SKonstantin Belousov int ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *); 914946bca4fSPeter Wemm int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *); 915946bca4fSPeter Wemm int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *); 916946bca4fSPeter Wemm int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *); 917946bca4fSPeter Wemm int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *); 918946bca4fSPeter Wemm int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *); 919c3b2c052SKonstantin Belousov int ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *); 9205eb29d9bSDoug Rabson 9215eb29d9bSDoug Rabson #endif /* COMPAT_43 */ 9225eb29d9bSDoug Rabson 923db27052eSPeter Wemm 924db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4 925db27052eSPeter Wemm 9269624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 927841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 928841c0c7eSNathan Whitehorn #endif 9295b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args { 9305b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9315b3283b0SPeter Wemm char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; 9321fabda45SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 9335b3283b0SPeter Wemm }; 9345b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args { 9355b3283b0SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 9365b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9375b3283b0SPeter Wemm }; 9385b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args { 9395b3283b0SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 9405b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9415b3283b0SPeter Wemm }; 9425b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args { 9435b3283b0SPeter Wemm char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 9445b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9455b3283b0SPeter Wemm }; 94694e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args { 9479105d26bSPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 9489105d26bSPeter Wemm char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 9494412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 9504412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 9519105d26bSPeter Wemm char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 95226e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 9539105d26bSPeter Wemm char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 9549105d26bSPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 9559105d26bSPeter Wemm }; 95694e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args { 957e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 958e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 959e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 960e14528b3SPeter Wemm }; 96194e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args { 962fffaaed4SPeter 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 *)]; 963e14528b3SPeter Wemm }; 964841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 965841c0c7eSNathan Whitehorn #else 966841c0c7eSNathan Whitehorn #endif 967841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 968841c0c7eSNathan Whitehorn #else 969841c0c7eSNathan Whitehorn #endif 970f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 971f85769ebSKonstantin Belousov #else 972f85769ebSKonstantin Belousov #endif 973a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 974a566e8e3SJohn Baldwin #else 975a566e8e3SJohn Baldwin #endif 9765b3283b0SPeter Wemm int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *); 9775b3283b0SPeter Wemm int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *); 9785b3283b0SPeter Wemm int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *); 9795b3283b0SPeter Wemm int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *); 98094e75644SPeter Wemm int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *); 98194e75644SPeter Wemm int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *); 98294e75644SPeter Wemm int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *); 983db27052eSPeter Wemm 984db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */ 985db27052eSPeter Wemm 986486abf93SPeter Wemm 987718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6 988486abf93SPeter Wemm 9899624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 990841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 991841c0c7eSNathan Whitehorn #endif 992486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args { 993486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 994486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 995486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 996486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 9974412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 9984412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 999486abf93SPeter Wemm }; 1000486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args { 1001486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1002486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 1003486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 1004486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10054412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10064412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1007486abf93SPeter Wemm }; 1008486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args { 1009486abf93SPeter Wemm char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 1010486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 1011486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 1012486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 1013486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1014486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10154412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 10164412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 1017486abf93SPeter Wemm }; 1018486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args { 1019486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1020486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10214412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10224412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1023486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 1024486abf93SPeter Wemm }; 1025486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args { 1026486abf93SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 1027486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10284412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 10294412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1030486abf93SPeter Wemm }; 1031486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args { 1032486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1033486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10344412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 10354412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1036486abf93SPeter Wemm }; 10378d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args { 10388d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 10398d91acedSJohn Baldwin }; 10408d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args { 10418d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 10428d91acedSJohn Baldwin }; 10438d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args { 10448d91acedSJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 10458d91acedSJohn Baldwin char acb_list_l_[PADL_(struct oaiocb32 *const *)]; struct oaiocb32 *const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 *const *)]; 10468d91acedSJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 10478d91acedSJohn Baldwin char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)]; 10488d91acedSJohn Baldwin }; 1049841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1050841c0c7eSNathan Whitehorn #else 1051841c0c7eSNathan Whitehorn #endif 1052841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1053841c0c7eSNathan Whitehorn #else 1054841c0c7eSNathan Whitehorn #endif 1055f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1056f85769ebSKonstantin Belousov #else 1057f85769ebSKonstantin Belousov #endif 1058a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1059a566e8e3SJohn Baldwin #else 1060a566e8e3SJohn Baldwin #endif 1061486abf93SPeter Wemm int freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *); 1062486abf93SPeter Wemm int freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *); 1063486abf93SPeter Wemm int freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *); 1064486abf93SPeter Wemm int freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *); 1065486abf93SPeter Wemm int freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *); 1066486abf93SPeter Wemm int freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *); 10678d91acedSJohn Baldwin int freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *); 10688d91acedSJohn Baldwin int freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *); 10698d91acedSJohn Baldwin int freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *); 1070486abf93SPeter Wemm 1071718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */ 1072486abf93SPeter Wemm 10733899e0dfSJohn Baldwin 10748ffab864SWarner Losh #ifdef COMPAT_FREEBSD7 10753899e0dfSJohn Baldwin 10769624d947SJuli Mallett #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1077841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 1078841c0c7eSNathan Whitehorn #endif 10793899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args { 10803899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 10813899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 10823899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 10833899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 10843899e0dfSJohn Baldwin }; 10853899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args { 10863899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 10873899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 10883899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)]; 10893899e0dfSJohn Baldwin }; 10903899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args { 10913899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 10923899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 10933899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)]; 10943899e0dfSJohn Baldwin }; 1095841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1096841c0c7eSNathan Whitehorn #else 1097841c0c7eSNathan Whitehorn #endif 1098841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1099841c0c7eSNathan Whitehorn #else 1100841c0c7eSNathan Whitehorn #endif 1101f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1102f85769ebSKonstantin Belousov #else 1103f85769ebSKonstantin Belousov #endif 1104a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1105a566e8e3SJohn Baldwin #else 1106a566e8e3SJohn Baldwin #endif 11073899e0dfSJohn Baldwin int freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *); 11083899e0dfSJohn Baldwin int freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *); 11093899e0dfSJohn Baldwin int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *); 11103899e0dfSJohn Baldwin 11118ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */ 11123899e0dfSJohn Baldwin 1113a72c64b0SBrooks Davis 1114a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10 1115a72c64b0SBrooks Davis 1116a72c64b0SBrooks Davis #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__)) 1117a72c64b0SBrooks Davis #define PAD64_REQUIRED 1118a72c64b0SBrooks Davis #endif 1119a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1120a72c64b0SBrooks Davis #else 1121a72c64b0SBrooks Davis #endif 1122a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1123a72c64b0SBrooks Davis #else 1124a72c64b0SBrooks Davis #endif 1125a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1126a72c64b0SBrooks Davis #else 1127a72c64b0SBrooks Davis #endif 1128a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1129a72c64b0SBrooks Davis #else 1130a72c64b0SBrooks Davis #endif 1131a72c64b0SBrooks Davis int freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_args *); 1132a72c64b0SBrooks Davis 1133a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */ 1134a72c64b0SBrooks Davis 1135f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_wait4 AUE_WAIT4 1136e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat AUE_GETFSSTAT 1137160e5953SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lseek AUE_LSEEK 1138f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG 1139f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG 1140f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM 1141c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_stat AUE_STAT 1142c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lstat AUE_LSTAT 1143a72c64b0SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_pipe AUE_PIPE 1144e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION 1145e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK 1146e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING 1147da7cbdc2SRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK 1148d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_IOCTL 1149f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE 1150c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_fstat AUE_FSTAT 1151c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getpagesize AUE_NULL 1152f8244106SMarcel Moolenaar #define FREEBSD32_SYS_AUE_freebsd32_mprotect AUE_MPROTECT 1153f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER 1154f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER 11555aec07c7SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fcntl AUE_FCNTL 1156f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT 1157d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_SIGRETURN 1158e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC 1159e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK 1160e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK 1161e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND 1162e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack AUE_O_SIGSTACK 1163f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday AUE_GETTIMEOFDAY 1164f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getrusage AUE_GETRUSAGE 1165f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_readv AUE_READV 1166f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_writev AUE_WRITEV 1167f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY 1168f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES 1169f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME 1170c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries AUE_GETDIRENTRIES 1171e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS 1172e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS 11739da68040SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH 1174f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semsys AUE_SEMSYS 1175f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgsys AUE_MSGSYS 1176f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmsys AUE_SHMSYS 1177e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread AUE_PREAD 1178e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite AUE_PWRITE 1179f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_stat AUE_STAT 1180f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_fstat AUE_FSTAT 1181f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lstat AUE_LSTAT 118223aa8eeaSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getdirentries AUE_GETDIRENTRIES 1183e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap AUE_MMAP 1184e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek AUE_LSEEK 1185e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate AUE_TRUNCATE 1186e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate AUE_FTRUNCATE 1187f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sysctl AUE_SYSCTL 1188f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_futimes AUE_FUTIMES 11893899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl AUE_SEMCTL 11903899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl AUE_MSGCTL 11915e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgsnd AUE_MSGSND 11925e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgrcv AUE_MSGRCV 11933899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl AUE_SHMCTL 1194f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime AUE_NULL 1195f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_settime AUE_CLOCK_SETTIME 1196f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_getres AUE_NULL 119768044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_create AUE_NULL 119868044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_settime AUE_NULL 119968044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime AUE_NULL 1200f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_nanosleep AUE_NULL 120126f86ab7SEric van Gyzen #define FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep AUE_NULL 1202c5d03637SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2 AUE_NULL 1203d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_read AUE_AIO_READ 1204d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_write AUE_AIO_WRITE 1205d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_lio_listio AUE_LIO_LISTIO 1206f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lutimes AUE_LUTIMES 1207f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_preadv AUE_PREADV 1208f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_pwritev AUE_PWRITEV 1209e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs AUE_FHSTATFS 1210f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_modstat AUE_NULL 1211eea5c618SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_kldstat AUE_NULL 1212d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_return AUE_AIO_RETURN 1213d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_AIO_SUSPEND 1214d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_error AUE_AIO_ERROR 1215d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read AUE_AIO_READ 1216d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write AUE_AIO_WRITE 1217d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio AUE_LIO_LISTIO 1218e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile AUE_SENDFILE 1219759e7c0bSBjoern A. Zeeb #define FREEBSD32_SYS_AUE_freebsd32_jail AUE_JAIL 1220e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction AUE_SIGACTION 1221e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn AUE_SIGRETURN 1222312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT 1223312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL 1224d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete AUE_AIO_WAITCOMPLETE 1225d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_KEVENT 1226f1287854SDavid E. O'Brien #define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT 1227e482025eSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE 1228d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_init AUE_SEMINIT 1229d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_open AUE_SEMOPEN 1230f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION 1231f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN 1232f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getcontext AUE_NULL 1233f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setcontext AUE_NULL 1234f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL 1235d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait AUE_SEMWAIT 1236ac3674aaSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL 123727bbb2e7SDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_umtx_op AUE_NULL 1238d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_thr_new AUE_THR_NEW 1239*e9f32d1dSBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_sigqueue AUE_NULL 1240d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_open AUE_MQ_OPEN 1241d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_MQ_SETATTR 1242d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive AUE_MQ_TIMEDRECEIVE 1243d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend AUE_MQ_TIMEDSEND 1244d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_notify AUE_MQ_NOTIFY 1245d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync AUE_AIO_FSYNC 1246486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1247486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1248486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1249486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1250486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1251486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1252841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1253841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1254841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1255841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1256841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1257841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1258841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1259774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1260774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid AUE_NULL 1261774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity AUE_NULL 1262774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity AUE_NULL 1263f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fexecve AUE_FEXECVE 1264f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstatat AUE_FSTATAT 1265f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_futimesat AUE_FUTIMESAT 1266d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_get AUE_JAIL_GET 1267d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_set AUE_JAIL_SET 12683899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semctl AUE_SEMCTL 12693899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgctl AUE_MSGCTL 12703899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmctl AUE_SHMCTL 1271063e9958SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_pselect AUE_SELECT 1272d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1273d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1274552e9935SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1275d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1276d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1277f85769ebSKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1278e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit AUE_CAP_IOCTLS_LIMIT 1279e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get AUE_CAP_IOCTLS_GET 1280d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_mlock AUE_AIO_MLOCK 1281d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1282d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1283c28d9d0fSDmitry Chagin #define FREEBSD32_SYS_AUE_freebsd32_ppoll AUE_POLL 12842b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_futimens AUE_FUTIMES 12852b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_utimensat AUE_FUTIMESAT 1286f8f1f7fbSJohn Baldwin 12875eb29d9bSDoug Rabson #undef PAD_ 12885eb29d9bSDoug Rabson #undef PADL_ 12895eb29d9bSDoug Rabson #undef PADR_ 12905eb29d9bSDoug Rabson 129194e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */ 1292