15eb29d9bSDoug Rabson /* 25eb29d9bSDoug Rabson * System call prototypes. 35eb29d9bSDoug Rabson * 45eb29d9bSDoug Rabson * DO NOT EDIT-- this file is automatically generated. 55eb29d9bSDoug Rabson * $FreeBSD$ 69afcc998SKonstantin Belousov * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 200111 2009-12-04 21:52:31Z kib 75eb29d9bSDoug Rabson */ 85eb29d9bSDoug Rabson 994e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_ 1094e75644SPeter Wemm #define _FREEBSD32_SYSPROTO_H_ 115eb29d9bSDoug Rabson 125eb29d9bSDoug Rabson #include <sys/signal.h> 135eb29d9bSDoug Rabson #include <sys/acl.h> 145c63b21aSJohn Baldwin #include <sys/cpuset.h> 159f706204SRuslan Ermilov #include <sys/_semaphore.h> 169bc65d35SJohn Baldwin #include <sys/ucontext.h> 179bc65d35SJohn Baldwin 18f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h> 19f8f1f7fbSJohn Baldwin 205eb29d9bSDoug Rabson struct proc; 215eb29d9bSDoug Rabson 225eb29d9bSDoug Rabson struct thread; 235eb29d9bSDoug Rabson 245eb29d9bSDoug Rabson #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 255eb29d9bSDoug Rabson 0 : sizeof(register_t) - sizeof(t)) 265eb29d9bSDoug Rabson 275eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN 285eb29d9bSDoug Rabson #define PADL_(t) 0 295eb29d9bSDoug Rabson #define PADR_(t) PAD_(t) 305eb29d9bSDoug Rabson #else 315eb29d9bSDoug Rabson #define PADL_(t) PAD_(t) 325eb29d9bSDoug Rabson #define PADR_(t) 0 335eb29d9bSDoug Rabson #endif 345eb29d9bSDoug Rabson 3594e75644SPeter Wemm struct freebsd32_wait4_args { 365eb29d9bSDoug Rabson char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; 375eb29d9bSDoug Rabson char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 385eb29d9bSDoug Rabson char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 39db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 405eb29d9bSDoug Rabson }; 4115857ef5SPaul Saab struct freebsd32_recvmsg_args { 4215857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 4315857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 4415857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 4515857ef5SPaul Saab }; 4615857ef5SPaul Saab struct freebsd32_sendmsg_args { 4715857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 4815857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 4915857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 5015857ef5SPaul Saab }; 5115857ef5SPaul Saab struct freebsd32_recvfrom_args { 5215857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 5315857ef5SPaul Saab char buf_l_[PADL_(u_int32_t)]; u_int32_t buf; char buf_r_[PADR_(u_int32_t)]; 5415857ef5SPaul Saab char len_l_[PADL_(u_int32_t)]; u_int32_t len; char len_r_[PADR_(u_int32_t)]; 5515857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 5615857ef5SPaul Saab char from_l_[PADL_(u_int32_t)]; u_int32_t from; char from_r_[PADR_(u_int32_t)]; 5715857ef5SPaul Saab char fromlenaddr_l_[PADL_(u_int32_t)]; u_int32_t fromlenaddr; char fromlenaddr_r_[PADR_(u_int32_t)]; 5815857ef5SPaul Saab }; 59946bca4fSPeter Wemm struct ofreebsd32_sigpending_args { 6090168b92SPaul Saab register_t dummy; 6190168b92SPaul Saab }; 6294e75644SPeter Wemm struct freebsd32_sigaltstack_args { 63db27052eSPeter Wemm char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; 64db27052eSPeter Wemm char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; 655eb29d9bSDoug Rabson }; 66663c5800SDavid E. O'Brien struct freebsd32_ioctl_args { 67663c5800SDavid E. O'Brien char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 68663c5800SDavid E. O'Brien char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)]; 69663c5800SDavid E. O'Brien char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)]; 70663c5800SDavid E. O'Brien }; 7194e75644SPeter Wemm struct freebsd32_execve_args { 725eb29d9bSDoug Rabson char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)]; 73db27052eSPeter Wemm char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)]; 74db27052eSPeter Wemm char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)]; 755eb29d9bSDoug Rabson }; 7694e75644SPeter Wemm struct freebsd32_setitimer_args { 775eb29d9bSDoug Rabson char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 78db27052eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 79db27052eSPeter Wemm char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; 805eb29d9bSDoug Rabson }; 81996a568eSPeter Wemm struct freebsd32_getitimer_args { 82996a568eSPeter Wemm char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 83996a568eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 84996a568eSPeter Wemm }; 8594e75644SPeter Wemm struct freebsd32_select_args { 865eb29d9bSDoug Rabson char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 875eb29d9bSDoug Rabson char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 885eb29d9bSDoug Rabson char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 895eb29d9bSDoug Rabson char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 90db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 915eb29d9bSDoug Rabson }; 9294e75644SPeter Wemm struct freebsd32_gettimeofday_args { 93db27052eSPeter Wemm char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; 945eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 955eb29d9bSDoug Rabson }; 9694e75644SPeter Wemm struct freebsd32_getrusage_args { 975eb29d9bSDoug Rabson char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; 98db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 995eb29d9bSDoug Rabson }; 10094e75644SPeter Wemm struct freebsd32_readv_args { 1015eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 102db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1035eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1045eb29d9bSDoug Rabson }; 10594e75644SPeter Wemm struct freebsd32_writev_args { 1065eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 107db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1085eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1095eb29d9bSDoug Rabson }; 11094e75644SPeter Wemm struct freebsd32_settimeofday_args { 111db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1125eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1135eb29d9bSDoug Rabson }; 11494e75644SPeter Wemm struct freebsd32_utimes_args { 115db27052eSPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 116db27052eSPeter Wemm char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 117db27052eSPeter Wemm }; 11894e75644SPeter Wemm struct freebsd32_adjtime_args { 119db27052eSPeter Wemm char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; 120db27052eSPeter Wemm char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; 121db27052eSPeter Wemm }; 1229da68040SKonstantin Belousov struct freebsd32_sysarch_args { 1239da68040SKonstantin Belousov char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 1249da68040SKonstantin Belousov char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)]; 1259da68040SKonstantin Belousov }; 12694e75644SPeter Wemm struct freebsd32_semsys_args { 1275eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1285eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1295eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1305eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1315eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1325eb29d9bSDoug Rabson }; 13394e75644SPeter Wemm struct freebsd32_msgsys_args { 1345eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1355eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1365eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1375eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1385eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1395eb29d9bSDoug Rabson char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; 1405eb29d9bSDoug Rabson }; 14194e75644SPeter Wemm struct freebsd32_shmsys_args { 14274f7258fSPaul Saab char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)]; 14374f7258fSPaul Saab char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)]; 14474f7258fSPaul Saab char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)]; 14574f7258fSPaul Saab char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)]; 1465eb29d9bSDoug Rabson }; 14794e75644SPeter Wemm struct freebsd32_stat_args { 1485eb29d9bSDoug Rabson char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 149db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1505eb29d9bSDoug Rabson }; 15194e75644SPeter Wemm struct freebsd32_fstat_args { 1525eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 153db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1545eb29d9bSDoug Rabson }; 15594e75644SPeter Wemm struct freebsd32_lstat_args { 1565eb29d9bSDoug Rabson char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 157db27052eSPeter Wemm char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 1585eb29d9bSDoug Rabson }; 15923aa8eeaSJohn Baldwin struct freebsd32_getdirentries_args { 16023aa8eeaSJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 16123aa8eeaSJohn Baldwin char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 16223aa8eeaSJohn Baldwin char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 16323aa8eeaSJohn Baldwin char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)]; 16423aa8eeaSJohn Baldwin }; 16594e75644SPeter Wemm struct freebsd32_sysctl_args { 1665eb29d9bSDoug Rabson char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; 1675eb29d9bSDoug Rabson char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; 1685eb29d9bSDoug Rabson char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; 169db27052eSPeter Wemm char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)]; 1705eb29d9bSDoug Rabson char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; 171db27052eSPeter Wemm char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)]; 1725eb29d9bSDoug Rabson }; 173f06b8643SDoug Ambrisko struct freebsd32_futimes_args { 174f06b8643SDoug Ambrisko char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 175f06b8643SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 176f06b8643SDoug Ambrisko }; 1775e868cbbSJung-uk Kim struct freebsd32_msgsnd_args { 1785e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1795e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1805e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1815e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1825e868cbbSJung-uk Kim }; 1835e868cbbSJung-uk Kim struct freebsd32_msgrcv_args { 1845e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1855e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1865e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1875e868cbbSJung-uk Kim char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)]; 1885e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1895e868cbbSJung-uk Kim }; 190fd151bb9SPaul Saab struct freebsd32_clock_gettime_args { 191fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 192fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 193fd151bb9SPaul Saab }; 194fd151bb9SPaul Saab struct freebsd32_clock_settime_args { 195fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 196fd151bb9SPaul Saab char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)]; 197fd151bb9SPaul Saab }; 198fd151bb9SPaul Saab struct freebsd32_clock_getres_args { 199fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 200fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 201fd151bb9SPaul Saab }; 2027fdf2c85SPaul Saab struct freebsd32_nanosleep_args { 203145f7e60SPaul Saab char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 204145f7e60SPaul Saab char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 2057fdf2c85SPaul Saab }; 2065d8d23c7SJohn Baldwin struct freebsd32_aio_read_args { 2075d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2085d8d23c7SJohn Baldwin }; 2095d8d23c7SJohn Baldwin struct freebsd32_aio_write_args { 2105d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2115d8d23c7SJohn Baldwin }; 2125d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args { 2135d8d23c7SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 2145d8d23c7SJohn Baldwin char acb_list_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * acb_list; char acb_list_r_[PADR_(struct aiocb32 *const *)]; 2155d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2165d8d23c7SJohn Baldwin char sig_l_[PADL_(struct sigevent *)]; struct sigevent * sig; char sig_r_[PADR_(struct sigevent *)]; 2175d8d23c7SJohn Baldwin }; 218cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args { 219cac2fa64SDoug Ambrisko char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 220cac2fa64SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 221cac2fa64SDoug Ambrisko }; 2229f3157a2SJohn Baldwin struct freebsd32_preadv_args { 2239f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2249f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2259f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2269f3157a2SJohn Baldwin char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)]; 2279f3157a2SJohn Baldwin }; 2289f3157a2SJohn Baldwin struct freebsd32_pwritev_args { 2299f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2309f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2319f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2329f3157a2SJohn Baldwin char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)]; 2339f3157a2SJohn Baldwin }; 2340e214fadSPaul Saab struct freebsd32_modstat_args { 2350e214fadSPaul Saab char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; 2360e214fadSPaul Saab char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)]; 2370e214fadSPaul Saab }; 2385d8d23c7SJohn Baldwin struct freebsd32_aio_return_args { 2395d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2405d8d23c7SJohn Baldwin }; 2415d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args { 2425d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *const *)]; 2435d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2445d8d23c7SJohn Baldwin char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 2455d8d23c7SJohn Baldwin }; 2465d8d23c7SJohn Baldwin struct freebsd32_aio_cancel_args { 2475d8d23c7SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2485d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2495d8d23c7SJohn Baldwin }; 2505d8d23c7SJohn Baldwin struct freebsd32_aio_error_args { 2515d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2525d8d23c7SJohn Baldwin }; 2535d8d23c7SJohn Baldwin struct freebsd32_oaio_read_args { 2545d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 2555d8d23c7SJohn Baldwin }; 2565d8d23c7SJohn Baldwin struct freebsd32_oaio_write_args { 2575d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 2585d8d23c7SJohn Baldwin }; 2595d8d23c7SJohn Baldwin struct freebsd32_olio_listio_args { 2605d8d23c7SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 2615d8d23c7SJohn Baldwin char acb_list_l_[PADL_(struct oaiocb32 *const *)]; struct oaiocb32 *const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 *const *)]; 2625d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2635d8d23c7SJohn Baldwin char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)]; 2645d8d23c7SJohn Baldwin }; 265759e7c0bSBjoern A. Zeeb struct freebsd32_jail_args { 266759e7c0bSBjoern A. Zeeb char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)]; 267759e7c0bSBjoern A. Zeeb }; 268312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args { 269312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 270312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 271312a0e5fSDavid Xu char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; 272312a0e5fSDavid Xu }; 273312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args { 274312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 275312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 276312a0e5fSDavid Xu }; 2775d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args { 2785d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)]; 2795d8d23c7SJohn Baldwin char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)]; 2805d8d23c7SJohn Baldwin }; 28194e75644SPeter Wemm struct freebsd32_kevent_args { 282e14528b3SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 283a95e8cd3SPaul Saab char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)]; 284e14528b3SPeter Wemm char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 285a95e8cd3SPaul Saab char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)]; 286e14528b3SPeter Wemm char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 287a95e8cd3SPaul Saab char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 2889105d26bSPeter Wemm }; 289f1287854SDavid E. O'Brien struct freebsd32_nmount_args { 290f1287854SDavid E. O'Brien char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 291f1287854SDavid E. O'Brien char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 292f1287854SDavid E. O'Brien char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 293f1287854SDavid E. O'Brien }; 29494e75644SPeter Wemm struct freebsd32_sendfile_args { 2955eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2965eb29d9bSDoug Rabson char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 297db27052eSPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 298db27052eSPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 2995eb29d9bSDoug Rabson char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 30026e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 3015eb29d9bSDoug Rabson char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 3025eb29d9bSDoug Rabson char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 3035eb29d9bSDoug Rabson }; 30494e75644SPeter Wemm struct freebsd32_sigaction_args { 305e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 306e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 307e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 308e14528b3SPeter Wemm }; 30994e75644SPeter Wemm struct freebsd32_sigreturn_args { 31094e75644SPeter Wemm char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)]; 31182914097SPeter Wemm }; 312a11ea6e3SPeter Wemm struct freebsd32_getcontext_args { 313a11ea6e3SPeter Wemm char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)]; 314a11ea6e3SPeter Wemm }; 315a11ea6e3SPeter Wemm struct freebsd32_setcontext_args { 316a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 317a11ea6e3SPeter Wemm }; 318a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args { 319a11ea6e3SPeter Wemm char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)]; 320a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 321a11ea6e3SPeter Wemm }; 322295426f4SDavid Xu struct freebsd32_umtx_lock_args { 323295426f4SDavid Xu char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)]; 324295426f4SDavid Xu }; 325295426f4SDavid Xu struct freebsd32_umtx_unlock_args { 326295426f4SDavid Xu char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)]; 327295426f4SDavid Xu }; 328ac3674aaSDavid Xu struct freebsd32_thr_suspend_args { 329ac3674aaSDavid Xu char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 330ac3674aaSDavid Xu }; 33127bbb2e7SDavid Xu struct freebsd32_umtx_op_args { 33227bbb2e7SDavid Xu char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)]; 33327bbb2e7SDavid Xu char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 334034b26fcSDavid Xu char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)]; 33527bbb2e7SDavid Xu char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)]; 33627bbb2e7SDavid Xu char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)]; 33727bbb2e7SDavid Xu }; 338ac3674aaSDavid Xu struct freebsd32_thr_new_args { 339ac3674aaSDavid Xu char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)]; 340ac3674aaSDavid Xu char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)]; 341ac3674aaSDavid Xu }; 3425d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args { 3435d8d23c7SJohn Baldwin char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 3445d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 3455d8d23c7SJohn Baldwin }; 346486abf93SPeter Wemm struct freebsd32_pread_args { 347486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 348486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 349486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 350486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 351486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 352486abf93SPeter Wemm }; 353486abf93SPeter Wemm struct freebsd32_pwrite_args { 354486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 355486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 356486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 357486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 358486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 359486abf93SPeter Wemm }; 360486abf93SPeter Wemm struct freebsd32_mmap_args { 361486abf93SPeter Wemm char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 362486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 363486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 364486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 365486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 366486abf93SPeter Wemm char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)]; 367486abf93SPeter Wemm char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)]; 368486abf93SPeter Wemm }; 369486abf93SPeter Wemm struct freebsd32_lseek_args { 370486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 371486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 372486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 373486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 374486abf93SPeter Wemm }; 375486abf93SPeter Wemm struct freebsd32_truncate_args { 376486abf93SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 377486abf93SPeter Wemm char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; 378486abf93SPeter Wemm char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; 379486abf93SPeter Wemm }; 380486abf93SPeter Wemm struct freebsd32_ftruncate_args { 381486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 382486abf93SPeter Wemm char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; 383486abf93SPeter Wemm char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; 384486abf93SPeter Wemm }; 385774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args { 386774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 387774b72e1SBrooks Davis char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)]; 388774b72e1SBrooks Davis char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)]; 389774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 390774b72e1SBrooks Davis }; 391774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args { 392774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 393774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 394774b72e1SBrooks Davis char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)]; 395774b72e1SBrooks Davis char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)]; 396774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)]; 397774b72e1SBrooks Davis }; 398774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args { 399774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 400774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 401774b72e1SBrooks Davis char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)]; 402774b72e1SBrooks Davis char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)]; 403774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 404774b72e1SBrooks Davis char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)]; 405774b72e1SBrooks Davis }; 406774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args { 407774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 408774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 409774b72e1SBrooks Davis char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)]; 410774b72e1SBrooks Davis char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)]; 411774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 412774b72e1SBrooks Davis char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)]; 413774b72e1SBrooks Davis }; 414f2296b58SKonstantin Belousov struct freebsd32_fexecve_args { 415f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 416f2296b58SKonstantin Belousov char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)]; 417f2296b58SKonstantin Belousov char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)]; 418f2296b58SKonstantin Belousov }; 419f2296b58SKonstantin Belousov struct freebsd32_fstatat_args { 420f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 421f2296b58SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 422f2296b58SKonstantin Belousov char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)]; 423f2296b58SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 424f2296b58SKonstantin Belousov }; 425f2296b58SKonstantin Belousov struct freebsd32_futimesat_args { 426f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 427f2296b58SKonstantin Belousov char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 428f2296b58SKonstantin Belousov char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)]; 429f2296b58SKonstantin Belousov }; 430fe2f3c65SJamie Gritton struct freebsd32_jail_get_args { 431fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 432fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 433fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 434fe2f3c65SJamie Gritton }; 435fe2f3c65SJamie Gritton struct freebsd32_jail_set_args { 436fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 437fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 438fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 439fe2f3c65SJamie Gritton }; 4403899e0dfSJohn Baldwin struct freebsd32_semctl_args { 4413899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 4423899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 4433899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 4443899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 4453899e0dfSJohn Baldwin }; 4463899e0dfSJohn Baldwin struct freebsd32_msgctl_args { 4473899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 4483899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 4493899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)]; 4503899e0dfSJohn Baldwin }; 4513899e0dfSJohn Baldwin struct freebsd32_shmctl_args { 4523899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 4533899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 4543899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)]; 4553899e0dfSJohn Baldwin }; 456063e9958SKonstantin Belousov struct freebsd32_pselect_args { 457063e9958SKonstantin Belousov char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 458063e9958SKonstantin Belousov char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 459063e9958SKonstantin Belousov char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 460063e9958SKonstantin Belousov char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 461063e9958SKonstantin Belousov char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 462063e9958SKonstantin Belousov char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)]; 463063e9958SKonstantin Belousov }; 46494e75644SPeter Wemm int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); 46515857ef5SPaul Saab int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *); 46615857ef5SPaul Saab int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *); 46715857ef5SPaul Saab int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *); 46894e75644SPeter Wemm int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); 469663c5800SDavid E. O'Brien int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *); 47094e75644SPeter Wemm int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); 47194e75644SPeter Wemm int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); 472996a568eSPeter Wemm int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *); 47394e75644SPeter Wemm int freebsd32_select(struct thread *, struct freebsd32_select_args *); 47494e75644SPeter Wemm int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *); 47594e75644SPeter Wemm int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *); 47694e75644SPeter Wemm int freebsd32_readv(struct thread *, struct freebsd32_readv_args *); 47794e75644SPeter Wemm int freebsd32_writev(struct thread *, struct freebsd32_writev_args *); 47894e75644SPeter Wemm int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *); 47994e75644SPeter Wemm int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *); 48094e75644SPeter Wemm int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *); 4819da68040SKonstantin Belousov int freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *); 48294e75644SPeter Wemm int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *); 48394e75644SPeter Wemm int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *); 48494e75644SPeter Wemm int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *); 48594e75644SPeter Wemm int freebsd32_stat(struct thread *, struct freebsd32_stat_args *); 48694e75644SPeter Wemm int freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *); 48794e75644SPeter Wemm int freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *); 48823aa8eeaSJohn Baldwin int freebsd32_getdirentries(struct thread *, struct freebsd32_getdirentries_args *); 48994e75644SPeter Wemm int freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *); 490f06b8643SDoug Ambrisko int freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *); 4915e868cbbSJung-uk Kim int freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *); 4925e868cbbSJung-uk Kim int freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *); 493fd151bb9SPaul Saab int freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *); 494fd151bb9SPaul Saab int freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *); 495fd151bb9SPaul Saab int freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *); 4967fdf2c85SPaul Saab int freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *); 4975d8d23c7SJohn Baldwin int freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *); 4985d8d23c7SJohn Baldwin int freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *); 4995d8d23c7SJohn Baldwin int freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *); 500cac2fa64SDoug Ambrisko int freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *); 5019f3157a2SJohn Baldwin int freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *); 5029f3157a2SJohn Baldwin int freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *); 5030e214fadSPaul Saab int freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *); 5045d8d23c7SJohn Baldwin int freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *); 5055d8d23c7SJohn Baldwin int freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *); 5065d8d23c7SJohn Baldwin int freebsd32_aio_cancel(struct thread *, struct freebsd32_aio_cancel_args *); 5075d8d23c7SJohn Baldwin int freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *); 5085d8d23c7SJohn Baldwin int freebsd32_oaio_read(struct thread *, struct freebsd32_oaio_read_args *); 5095d8d23c7SJohn Baldwin int freebsd32_oaio_write(struct thread *, struct freebsd32_oaio_write_args *); 5105d8d23c7SJohn Baldwin int freebsd32_olio_listio(struct thread *, struct freebsd32_olio_listio_args *); 511759e7c0bSBjoern A. Zeeb int freebsd32_jail(struct thread *, struct freebsd32_jail_args *); 512312a0e5fSDavid Xu int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *); 513312a0e5fSDavid Xu int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *); 5145d8d23c7SJohn Baldwin int freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *); 51594e75644SPeter Wemm int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *); 516f1287854SDavid E. O'Brien int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *); 51794e75644SPeter Wemm int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *); 51894e75644SPeter Wemm int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *); 51994e75644SPeter Wemm int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *); 520a11ea6e3SPeter Wemm int freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *); 521a11ea6e3SPeter Wemm int freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *); 522a11ea6e3SPeter Wemm int freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *); 523295426f4SDavid Xu int freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *); 524295426f4SDavid Xu int freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *); 525ac3674aaSDavid Xu int freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *); 52627bbb2e7SDavid Xu int freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *); 527ac3674aaSDavid Xu int freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *); 5285d8d23c7SJohn Baldwin int freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *); 529486abf93SPeter Wemm int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 530486abf93SPeter Wemm int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 531486abf93SPeter Wemm int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 532486abf93SPeter Wemm int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 533486abf93SPeter Wemm int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 534486abf93SPeter Wemm int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 535774b72e1SBrooks Davis int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 536774b72e1SBrooks Davis int freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *); 537774b72e1SBrooks Davis int freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *); 538774b72e1SBrooks Davis int freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *); 539f2296b58SKonstantin Belousov int freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *); 540f2296b58SKonstantin Belousov int freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *); 541f2296b58SKonstantin Belousov int freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *); 542fe2f3c65SJamie Gritton int freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *); 543fe2f3c65SJamie Gritton int freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *); 5443899e0dfSJohn Baldwin int freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *); 5453899e0dfSJohn Baldwin int freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *); 5463899e0dfSJohn Baldwin int freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *); 547063e9958SKonstantin Belousov int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *); 5485eb29d9bSDoug Rabson 5495eb29d9bSDoug Rabson #ifdef COMPAT_43 5505eb29d9bSDoug Rabson 551946bca4fSPeter Wemm struct ofreebsd32_sigaction_args { 552946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 553946bca4fSPeter Wemm char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)]; 554946bca4fSPeter Wemm char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)]; 555946bca4fSPeter Wemm }; 556946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args { 557946bca4fSPeter Wemm char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)]; 558946bca4fSPeter Wemm char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)]; 559946bca4fSPeter Wemm }; 560946bca4fSPeter Wemm struct ofreebsd32_sigvec_args { 561946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 562946bca4fSPeter Wemm char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)]; 563946bca4fSPeter Wemm char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)]; 564946bca4fSPeter Wemm }; 565946bca4fSPeter Wemm struct ofreebsd32_sigblock_args { 566946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 567946bca4fSPeter Wemm }; 568946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args { 569946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 570946bca4fSPeter Wemm }; 571946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args { 572946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 573946bca4fSPeter Wemm }; 574946bca4fSPeter Wemm struct ofreebsd32_sigstack_args { 575946bca4fSPeter Wemm char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)]; 576946bca4fSPeter Wemm char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)]; 577946bca4fSPeter Wemm }; 578946bca4fSPeter Wemm int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *); 579946bca4fSPeter Wemm int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *); 580946bca4fSPeter Wemm int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *); 581946bca4fSPeter Wemm int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *); 582946bca4fSPeter Wemm int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *); 583946bca4fSPeter Wemm int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *); 584946bca4fSPeter Wemm int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *); 585946bca4fSPeter Wemm int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *); 5865eb29d9bSDoug Rabson 5875eb29d9bSDoug Rabson #endif /* COMPAT_43 */ 5885eb29d9bSDoug Rabson 589db27052eSPeter Wemm 590db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4 591db27052eSPeter Wemm 5925b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args { 5935b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 5945b3283b0SPeter Wemm char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; 5955b3283b0SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 5965b3283b0SPeter Wemm }; 5975b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args { 5985b3283b0SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 5995b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 6005b3283b0SPeter Wemm }; 6015b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args { 6025b3283b0SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6035b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 6045b3283b0SPeter Wemm }; 6055b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args { 6065b3283b0SPeter Wemm char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 6075b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 6085b3283b0SPeter Wemm }; 60994e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args { 6109105d26bSPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6119105d26bSPeter Wemm char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 6129105d26bSPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 6139105d26bSPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 6149105d26bSPeter Wemm char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 61526e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 6169105d26bSPeter Wemm char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 6179105d26bSPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 6189105d26bSPeter Wemm }; 61994e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args { 620e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 621e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 622e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 623e14528b3SPeter Wemm }; 62494e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args { 625fffaaed4SPeter 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 *)]; 626e14528b3SPeter Wemm }; 6275b3283b0SPeter Wemm int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *); 6285b3283b0SPeter Wemm int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *); 6295b3283b0SPeter Wemm int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *); 6305b3283b0SPeter Wemm int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *); 63194e75644SPeter Wemm int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *); 63294e75644SPeter Wemm int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *); 63394e75644SPeter Wemm int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *); 634db27052eSPeter Wemm 635db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */ 636db27052eSPeter Wemm 637486abf93SPeter Wemm 638718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6 639486abf93SPeter Wemm 640486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args { 641486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 642486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 643486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 644486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 645486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 646486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 647486abf93SPeter Wemm }; 648486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args { 649486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 650486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 651486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 652486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 653486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 654486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 655486abf93SPeter Wemm }; 656486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args { 657486abf93SPeter Wemm char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 658486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 659486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 660486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 661486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 662486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 663486abf93SPeter Wemm char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)]; 664486abf93SPeter Wemm char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)]; 665486abf93SPeter Wemm }; 666486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args { 667486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 668486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 669486abf93SPeter Wemm char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; 670486abf93SPeter Wemm char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; 671486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 672486abf93SPeter Wemm }; 673486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args { 674486abf93SPeter Wemm char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; 675486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 676486abf93SPeter Wemm char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; 677486abf93SPeter Wemm char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; 678486abf93SPeter Wemm }; 679486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args { 680486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 681486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 682486abf93SPeter Wemm char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; 683486abf93SPeter Wemm char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; 684486abf93SPeter Wemm }; 685486abf93SPeter Wemm int freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *); 686486abf93SPeter Wemm int freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *); 687486abf93SPeter Wemm int freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *); 688486abf93SPeter Wemm int freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *); 689486abf93SPeter Wemm int freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *); 690486abf93SPeter Wemm int freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *); 691486abf93SPeter Wemm 692718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */ 693486abf93SPeter Wemm 6943899e0dfSJohn Baldwin 6958ffab864SWarner Losh #ifdef COMPAT_FREEBSD7 6963899e0dfSJohn Baldwin 6973899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args { 6983899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 6993899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 7003899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 7013899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 7023899e0dfSJohn Baldwin }; 7033899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args { 7043899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 7053899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 7063899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)]; 7073899e0dfSJohn Baldwin }; 7083899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args { 7093899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 7103899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 7113899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)]; 7123899e0dfSJohn Baldwin }; 7133899e0dfSJohn Baldwin int freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *); 7143899e0dfSJohn Baldwin int freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *); 7153899e0dfSJohn Baldwin int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *); 7163899e0dfSJohn Baldwin 7178ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */ 7183899e0dfSJohn Baldwin 719f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_wait4 AUE_WAIT4 720e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat AUE_GETFSSTAT 721f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG 722f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG 723f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM 724e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION 725e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK 726e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING 727da7cbdc2SRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK 728663c5800SDavid E. O'Brien #define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_NULL 729f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE 730f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER 731f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER 732f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT 733e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC 734e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK 735e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK 736e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND 737e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack AUE_O_SIGSTACK 738f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday AUE_GETTIMEOFDAY 739f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getrusage AUE_GETRUSAGE 740f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_readv AUE_READV 741f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_writev AUE_WRITEV 742f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY 743f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES 744f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME 745e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS 746e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS 7479da68040SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH 748f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semsys AUE_SEMSYS 749f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgsys AUE_MSGSYS 750f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmsys AUE_SHMSYS 751e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread AUE_PREAD 752e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite AUE_PWRITE 753f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_stat AUE_STAT 754f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_fstat AUE_FSTAT 755f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lstat AUE_LSTAT 75623aa8eeaSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getdirentries AUE_GETDIRENTRIES 757e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap AUE_MMAP 758e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek AUE_LSEEK 759e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate AUE_TRUNCATE 760e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate AUE_FTRUNCATE 761f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sysctl AUE_SYSCTL 762f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_futimes AUE_FUTIMES 7633899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl AUE_SEMCTL 7643899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl AUE_MSGCTL 7655e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgsnd AUE_MSGSND 7665e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgrcv AUE_MSGRCV 7673899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl AUE_SHMCTL 768f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime AUE_NULL 769f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_settime AUE_CLOCK_SETTIME 770f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_getres AUE_NULL 771f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_nanosleep AUE_NULL 7725d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_read AUE_NULL 7735d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_write AUE_NULL 7745d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lio_listio AUE_NULL 775f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lutimes AUE_LUTIMES 776f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_preadv AUE_PREADV 777f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_pwritev AUE_PWRITEV 778e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs AUE_FHSTATFS 779f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_modstat AUE_NULL 7805d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_return AUE_NULL 7815d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_NULL 7825d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_cancel AUE_NULL 7835d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_error AUE_NULL 7845d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_oaio_read AUE_NULL 7855d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_oaio_write AUE_NULL 7865d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_olio_listio AUE_NULL 787e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile AUE_SENDFILE 788759e7c0bSBjoern A. Zeeb #define FREEBSD32_SYS_AUE_freebsd32_jail AUE_JAIL 789e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction AUE_SIGACTION 790e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn AUE_SIGRETURN 791312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT 792312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL 7935d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete AUE_NULL 794f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_NULL 795f1287854SDavid E. O'Brien #define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT 796e482025eSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE 797f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION 798f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN 799f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getcontext AUE_NULL 800f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setcontext AUE_NULL 801f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL 802295426f4SDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_umtx_lock AUE_NULL 803295426f4SDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_umtx_unlock AUE_NULL 804ac3674aaSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL 80527bbb2e7SDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_umtx_op AUE_NULL 806ac3674aaSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_thr_new AUE_NULL 8075d8d23c7SJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync AUE_NULL 808486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 809486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 810486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 811486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 812486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 813486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 814774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 815774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid AUE_NULL 816774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity AUE_NULL 817774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity AUE_NULL 818f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fexecve AUE_FEXECVE 819f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstatat AUE_FSTATAT 820f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_futimesat AUE_FUTIMESAT 821fe2f3c65SJamie Gritton #define FREEBSD32_SYS_AUE_freebsd32_jail_get AUE_NULL 822fe2f3c65SJamie Gritton #define FREEBSD32_SYS_AUE_freebsd32_jail_set AUE_NULL 8233899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semctl AUE_SEMCTL 8243899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgctl AUE_MSGCTL 8253899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmctl AUE_SHMCTL 826063e9958SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_pselect AUE_SELECT 827f8f1f7fbSJohn Baldwin 8285eb29d9bSDoug Rabson #undef PAD_ 8295eb29d9bSDoug Rabson #undef PADL_ 8305eb29d9bSDoug Rabson #undef PADR_ 8315eb29d9bSDoug Rabson 83294e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */ 833