15eb29d9bSDoug Rabson /* 25eb29d9bSDoug Rabson * System call prototypes. 35eb29d9bSDoug Rabson * 40e26cd44SEd Maste * DO NOT EDIT-- this file is automatically @generated. 55eb29d9bSDoug Rabson * $FreeBSD$ 65eb29d9bSDoug Rabson */ 75eb29d9bSDoug Rabson 894e75644SPeter Wemm #ifndef _FREEBSD32_SYSPROTO_H_ 994e75644SPeter Wemm #define _FREEBSD32_SYSPROTO_H_ 105eb29d9bSDoug Rabson 115eb29d9bSDoug Rabson #include <sys/signal.h> 125eb29d9bSDoug Rabson #include <sys/acl.h> 135c63b21aSJohn Baldwin #include <sys/cpuset.h> 14af80820aSJeff Roberson #include <sys/domainset.h> 15cf13a585SLawrence Stewart #include <sys/_ffcounter.h> 169f706204SRuslan Ermilov #include <sys/_semaphore.h> 179bc65d35SJohn Baldwin #include <sys/ucontext.h> 189fdb497cSJilles Tjoelker #include <sys/wait.h> 199bc65d35SJohn Baldwin 20f8f1f7fbSJohn Baldwin #include <bsm/audit_kevents.h> 21f8f1f7fbSJohn Baldwin 225eb29d9bSDoug Rabson struct proc; 235eb29d9bSDoug Rabson 245eb29d9bSDoug Rabson struct thread; 255eb29d9bSDoug Rabson 265eb29d9bSDoug Rabson #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 275eb29d9bSDoug Rabson 0 : sizeof(register_t) - sizeof(t)) 285eb29d9bSDoug Rabson 295eb29d9bSDoug Rabson #if BYTE_ORDER == LITTLE_ENDIAN 305eb29d9bSDoug Rabson #define PADL_(t) 0 315eb29d9bSDoug Rabson #define PADR_(t) PAD_(t) 325eb29d9bSDoug Rabson #else 335eb29d9bSDoug Rabson #define PADL_(t) PAD_(t) 345eb29d9bSDoug Rabson #define PADR_(t) 0 355eb29d9bSDoug Rabson #endif 365eb29d9bSDoug Rabson 3721fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 38841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 39841c0c7eSNathan Whitehorn #endif 4094e75644SPeter Wemm struct freebsd32_wait4_args { 415eb29d9bSDoug Rabson char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; 425eb29d9bSDoug Rabson char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 435eb29d9bSDoug Rabson char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 44db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 455eb29d9bSDoug Rabson }; 4658b552dcSJohn Baldwin struct freebsd32_ptrace_args { 4758b552dcSJohn Baldwin char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)]; 4858b552dcSJohn Baldwin char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 4958b552dcSJohn Baldwin char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; 5058b552dcSJohn Baldwin char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)]; 5158b552dcSJohn Baldwin }; 5215857ef5SPaul Saab struct freebsd32_recvmsg_args { 5315857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 5415857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 5515857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 5615857ef5SPaul Saab }; 5715857ef5SPaul Saab struct freebsd32_sendmsg_args { 5815857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 5915857ef5SPaul Saab char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)]; 6015857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 6115857ef5SPaul Saab }; 6215857ef5SPaul Saab struct freebsd32_recvfrom_args { 6315857ef5SPaul Saab char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 64938e8dcfSBrooks Davis char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 654412ad48SEd Schouten char len_l_[PADL_(uint32_t)]; uint32_t len; char len_r_[PADR_(uint32_t)]; 6615857ef5SPaul Saab char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 67938e8dcfSBrooks Davis char from_l_[PADL_(struct sockaddr *)]; struct sockaddr * from; char from_r_[PADR_(struct sockaddr *)]; 684412ad48SEd Schouten char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)]; 6915857ef5SPaul Saab }; 70a72c64b0SBrooks Davis struct freebsd10_freebsd32_pipe_args { 71a72c64b0SBrooks Davis register_t dummy; 72a72c64b0SBrooks Davis }; 73946bca4fSPeter Wemm struct ofreebsd32_sigpending_args { 7490168b92SPaul Saab register_t dummy; 7590168b92SPaul Saab }; 7694e75644SPeter Wemm struct freebsd32_sigaltstack_args { 77db27052eSPeter Wemm char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; 78db27052eSPeter Wemm char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; 795eb29d9bSDoug Rabson }; 80663c5800SDavid E. O'Brien struct freebsd32_ioctl_args { 81663c5800SDavid E. O'Brien char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 82663c5800SDavid E. O'Brien char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)]; 83663c5800SDavid E. O'Brien char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)]; 84663c5800SDavid E. O'Brien }; 8594e75644SPeter Wemm struct freebsd32_execve_args { 864e8c73ebSBrooks Davis char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)]; 874412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 884412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 895eb29d9bSDoug Rabson }; 90f8244106SMarcel Moolenaar struct freebsd32_mprotect_args { 91e938ebbcSEd Schouten char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 92f8244106SMarcel Moolenaar char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 93f8244106SMarcel Moolenaar char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 94f8244106SMarcel Moolenaar }; 9594e75644SPeter Wemm struct freebsd32_setitimer_args { 965eb29d9bSDoug Rabson char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 97db27052eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 98db27052eSPeter Wemm char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; 995eb29d9bSDoug Rabson }; 100996a568eSPeter Wemm struct freebsd32_getitimer_args { 101996a568eSPeter Wemm char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; 102996a568eSPeter Wemm char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; 103996a568eSPeter Wemm }; 1045aec07c7SKonstantin Belousov struct freebsd32_fcntl_args { 1055aec07c7SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1065aec07c7SKonstantin Belousov char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 1075aec07c7SKonstantin Belousov char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)]; 1085aec07c7SKonstantin Belousov }; 10994e75644SPeter Wemm struct freebsd32_select_args { 1105eb29d9bSDoug Rabson char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 1115eb29d9bSDoug Rabson char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 1125eb29d9bSDoug Rabson char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 1135eb29d9bSDoug Rabson char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 114db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1155eb29d9bSDoug Rabson }; 11694e75644SPeter Wemm struct freebsd32_gettimeofday_args { 117db27052eSPeter Wemm char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; 1185eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1195eb29d9bSDoug Rabson }; 12094e75644SPeter Wemm struct freebsd32_getrusage_args { 1215eb29d9bSDoug Rabson char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; 122db27052eSPeter Wemm char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; 1235eb29d9bSDoug Rabson }; 12494e75644SPeter Wemm struct freebsd32_readv_args { 1255eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 126db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1275eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1285eb29d9bSDoug Rabson }; 12994e75644SPeter Wemm struct freebsd32_writev_args { 1305eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 131db27052eSPeter Wemm char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 1325eb29d9bSDoug Rabson char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 1335eb29d9bSDoug Rabson }; 13494e75644SPeter Wemm struct freebsd32_settimeofday_args { 135db27052eSPeter Wemm char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; 1365eb29d9bSDoug Rabson char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; 1375eb29d9bSDoug Rabson }; 13894e75644SPeter Wemm struct freebsd32_utimes_args { 1394e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 140db27052eSPeter Wemm char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 141db27052eSPeter Wemm }; 14294e75644SPeter Wemm struct freebsd32_adjtime_args { 143db27052eSPeter Wemm char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; 144db27052eSPeter Wemm char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; 145db27052eSPeter Wemm }; 1469da68040SKonstantin Belousov struct freebsd32_sysarch_args { 1479da68040SKonstantin Belousov char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 1489da68040SKonstantin Belousov char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)]; 1499da68040SKonstantin Belousov }; 15094e75644SPeter Wemm struct freebsd32_semsys_args { 1515eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1525eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1535eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1545eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1555eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1565eb29d9bSDoug Rabson }; 15794e75644SPeter Wemm struct freebsd32_msgsys_args { 1585eb29d9bSDoug Rabson char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 1595eb29d9bSDoug Rabson char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; 1605eb29d9bSDoug Rabson char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; 1615eb29d9bSDoug Rabson char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; 1625eb29d9bSDoug Rabson char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; 1635eb29d9bSDoug Rabson char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; 1645eb29d9bSDoug Rabson }; 16594e75644SPeter Wemm struct freebsd32_shmsys_args { 16674f7258fSPaul Saab char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)]; 16774f7258fSPaul Saab char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)]; 16874f7258fSPaul Saab char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)]; 16974f7258fSPaul Saab char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)]; 1705eb29d9bSDoug Rabson }; 171d7d95c3fSKonstantin Belousov struct freebsd32_ntp_adjtime_args { 172d7d95c3fSKonstantin Belousov char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)]; 173d7d95c3fSKonstantin Belousov }; 17486e06fa5SBrooks Davis struct freebsd32___sysctl_args { 1755eb29d9bSDoug Rabson char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; 1765eb29d9bSDoug Rabson char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; 1775eb29d9bSDoug Rabson char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; 1784412ad48SEd Schouten char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)]; 17921fb6624SOlivier Houchard char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)]; 1804412ad48SEd Schouten char newlen_l_[PADL_(uint32_t)]; uint32_t newlen; char newlen_r_[PADR_(uint32_t)]; 1815eb29d9bSDoug Rabson }; 182f06b8643SDoug Ambrisko struct freebsd32_futimes_args { 183f06b8643SDoug Ambrisko char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 184f06b8643SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 185f06b8643SDoug Ambrisko }; 1865e868cbbSJung-uk Kim struct freebsd32_msgsnd_args { 1875e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1885e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1895e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1905e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1915e868cbbSJung-uk Kim }; 1925e868cbbSJung-uk Kim struct freebsd32_msgrcv_args { 1935e868cbbSJung-uk Kim char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 1945e868cbbSJung-uk Kim char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; 1955e868cbbSJung-uk Kim char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)]; 1965e868cbbSJung-uk Kim char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)]; 1975e868cbbSJung-uk Kim char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)]; 1985e868cbbSJung-uk Kim }; 199fd151bb9SPaul Saab struct freebsd32_clock_gettime_args { 200fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 201fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 202fd151bb9SPaul Saab }; 203fd151bb9SPaul Saab struct freebsd32_clock_settime_args { 204fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 205fd151bb9SPaul Saab char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)]; 206fd151bb9SPaul Saab }; 207fd151bb9SPaul Saab struct freebsd32_clock_getres_args { 208fd151bb9SPaul Saab char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 209fd151bb9SPaul Saab char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)]; 210fd151bb9SPaul Saab }; 21168044954SKonstantin Belousov struct freebsd32_ktimer_create_args { 21268044954SKonstantin Belousov char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 21368044954SKonstantin Belousov char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)]; 21468044954SKonstantin Belousov char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)]; 21568044954SKonstantin Belousov }; 21668044954SKonstantin Belousov struct freebsd32_ktimer_settime_args { 21768044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 21868044954SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 21968044954SKonstantin Belousov char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)]; 22068044954SKonstantin Belousov char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)]; 22168044954SKonstantin Belousov }; 22268044954SKonstantin Belousov struct freebsd32_ktimer_gettime_args { 22368044954SKonstantin Belousov char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)]; 22468044954SKonstantin Belousov char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)]; 22568044954SKonstantin Belousov }; 2267fdf2c85SPaul Saab struct freebsd32_nanosleep_args { 227145f7e60SPaul Saab char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 228145f7e60SPaul Saab char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 2297fdf2c85SPaul Saab }; 23026f86ab7SEric van Gyzen struct freebsd32_clock_nanosleep_args { 23126f86ab7SEric van Gyzen char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)]; 23226f86ab7SEric van Gyzen char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 23326f86ab7SEric van Gyzen char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)]; 23426f86ab7SEric van Gyzen char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)]; 23526f86ab7SEric van Gyzen }; 236c5d03637SKonstantin Belousov struct freebsd32_clock_getcpuclockid2_args { 237c5d03637SKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 238c5d03637SKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 239c5d03637SKonstantin Belousov char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; 240c5d03637SKonstantin Belousov char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)]; 241c5d03637SKonstantin Belousov }; 2425d8d23c7SJohn Baldwin struct freebsd32_aio_read_args { 2435d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2445d8d23c7SJohn Baldwin }; 2455d8d23c7SJohn Baldwin struct freebsd32_aio_write_args { 2465d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2475d8d23c7SJohn Baldwin }; 2485d8d23c7SJohn Baldwin struct freebsd32_lio_listio_args { 2495d8d23c7SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 2505d8d23c7SJohn Baldwin char acb_list_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * acb_list; char acb_list_r_[PADR_(struct aiocb32 * const *)]; 2515d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 25268044954SKonstantin Belousov char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)]; 2535d8d23c7SJohn Baldwin }; 254cac2fa64SDoug Ambrisko struct freebsd32_lutimes_args { 2554e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 256cac2fa64SDoug Ambrisko char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; 257cac2fa64SDoug Ambrisko }; 2589f3157a2SJohn Baldwin struct freebsd32_preadv_args { 2599f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2609f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2619f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2624412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2634412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2649f3157a2SJohn Baldwin }; 2659f3157a2SJohn Baldwin struct freebsd32_pwritev_args { 2669f3157a2SJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 2679f3157a2SJohn Baldwin char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 2689f3157a2SJohn Baldwin char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; 2694412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 2704412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 2719f3157a2SJohn Baldwin }; 2720e214fadSPaul Saab struct freebsd32_modstat_args { 2730e214fadSPaul Saab char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)]; 2740e214fadSPaul Saab char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)]; 2750e214fadSPaul Saab }; 276eea5c618SKonstantin Belousov struct freebsd32_kldstat_args { 277eea5c618SKonstantin Belousov char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)]; 278eea5c618SKonstantin Belousov char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)]; 279eea5c618SKonstantin Belousov }; 2805d8d23c7SJohn Baldwin struct freebsd32_aio_return_args { 2815d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2825d8d23c7SJohn Baldwin }; 2835d8d23c7SJohn Baldwin struct freebsd32_aio_suspend_args { 2845d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 * const *)]; 2855d8d23c7SJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 2865d8d23c7SJohn Baldwin char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 2875d8d23c7SJohn Baldwin }; 2885d8d23c7SJohn Baldwin struct freebsd32_aio_error_args { 2895d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 2905d8d23c7SJohn Baldwin }; 291f2f5c215SKonstantin Belousov struct freebsd32_sched_rr_get_interval_args { 292f2f5c215SKonstantin Belousov char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 293f2f5c215SKonstantin Belousov char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)]; 294f2f5c215SKonstantin Belousov }; 295c542c43eSJamie Gritton struct freebsd32_jail_args { 296c542c43eSJamie Gritton char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)]; 297c542c43eSJamie Gritton }; 298312a0e5fSDavid Xu struct freebsd32_sigtimedwait_args { 299312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 300312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 301312a0e5fSDavid Xu char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; 302312a0e5fSDavid Xu }; 303312a0e5fSDavid Xu struct freebsd32_sigwaitinfo_args { 304312a0e5fSDavid Xu char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 305312a0e5fSDavid Xu char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 306312a0e5fSDavid Xu }; 3075d8d23c7SJohn Baldwin struct freebsd32_aio_waitcomplete_args { 3085d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)]; 3095d8d23c7SJohn Baldwin char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)]; 3105d8d23c7SJohn Baldwin }; 311f1287854SDavid E. O'Brien struct freebsd32_nmount_args { 312f1287854SDavid E. O'Brien char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 313f1287854SDavid E. O'Brien char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 314f1287854SDavid E. O'Brien char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 315f1287854SDavid E. O'Brien }; 31694e75644SPeter Wemm struct freebsd32_sendfile_args { 3175eb29d9bSDoug Rabson char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 3185eb29d9bSDoug Rabson char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 3194412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 3204412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 3215eb29d9bSDoug Rabson char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 32226e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 3235eb29d9bSDoug Rabson char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 3245eb29d9bSDoug Rabson char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 3255eb29d9bSDoug Rabson }; 32628ad01d2SKonstantin Belousov struct freebsd32_ksem_init_args { 32728ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 32828ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 32928ad01d2SKonstantin Belousov }; 33028ad01d2SKonstantin Belousov struct freebsd32_ksem_open_args { 33128ad01d2SKonstantin Belousov char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)]; 33228ad01d2SKonstantin Belousov char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; 33328ad01d2SKonstantin Belousov char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)]; 33428ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 33528ad01d2SKonstantin Belousov char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)]; 33628ad01d2SKonstantin Belousov }; 33794e75644SPeter Wemm struct freebsd32_sigaction_args { 338e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 339e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 340e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 341e14528b3SPeter Wemm }; 34294e75644SPeter Wemm struct freebsd32_sigreturn_args { 34394e75644SPeter Wemm char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)]; 34482914097SPeter Wemm }; 345a11ea6e3SPeter Wemm struct freebsd32_getcontext_args { 346a11ea6e3SPeter Wemm char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)]; 347a11ea6e3SPeter Wemm }; 348a11ea6e3SPeter Wemm struct freebsd32_setcontext_args { 349a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 350a11ea6e3SPeter Wemm }; 351a11ea6e3SPeter Wemm struct freebsd32_swapcontext_args { 352a11ea6e3SPeter Wemm char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)]; 353a11ea6e3SPeter Wemm char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)]; 354a11ea6e3SPeter Wemm }; 35528ad01d2SKonstantin Belousov struct freebsd32_ksem_timedwait_args { 35628ad01d2SKonstantin Belousov char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)]; 35728ad01d2SKonstantin Belousov char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)]; 35828ad01d2SKonstantin Belousov }; 359ac3674aaSDavid Xu struct freebsd32_thr_suspend_args { 360ac3674aaSDavid Xu char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 361ac3674aaSDavid Xu }; 362e1e300b6SBrooks Davis struct freebsd32__umtx_op_args { 36327bbb2e7SDavid Xu char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)]; 36427bbb2e7SDavid Xu char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 365034b26fcSDavid Xu char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)]; 36627bbb2e7SDavid Xu char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)]; 36727bbb2e7SDavid Xu char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)]; 36827bbb2e7SDavid Xu }; 369ac3674aaSDavid Xu struct freebsd32_thr_new_args { 370ac3674aaSDavid Xu char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)]; 371ac3674aaSDavid Xu char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)]; 372ac3674aaSDavid Xu }; 373e9f32d1dSBrooks Davis struct freebsd32_sigqueue_args { 374e9f32d1dSBrooks Davis char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)]; 375e9f32d1dSBrooks Davis char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 376e9f32d1dSBrooks Davis char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)]; 377e9f32d1dSBrooks Davis }; 37828ad01d2SKonstantin Belousov struct freebsd32_kmq_open_args { 37928ad01d2SKonstantin Belousov char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 38028ad01d2SKonstantin Belousov char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 38128ad01d2SKonstantin Belousov char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 38228ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 38328ad01d2SKonstantin Belousov }; 38428ad01d2SKonstantin Belousov struct freebsd32_kmq_setattr_args { 38528ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 38628ad01d2SKonstantin Belousov char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)]; 38728ad01d2SKonstantin Belousov char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)]; 38828ad01d2SKonstantin Belousov }; 38928ad01d2SKonstantin Belousov struct freebsd32_kmq_timedreceive_args { 39028ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 39128ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)]; 39228ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 39328ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)]; 39428ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 39528ad01d2SKonstantin Belousov }; 39628ad01d2SKonstantin Belousov struct freebsd32_kmq_timedsend_args { 39728ad01d2SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 39828ad01d2SKonstantin Belousov char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)]; 39928ad01d2SKonstantin Belousov char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)]; 40028ad01d2SKonstantin Belousov char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)]; 40128ad01d2SKonstantin Belousov char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)]; 40228ad01d2SKonstantin Belousov }; 40368044954SKonstantin Belousov struct freebsd32_kmq_notify_args { 40468044954SKonstantin Belousov char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)]; 40568044954SKonstantin Belousov char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)]; 40668044954SKonstantin Belousov }; 4075d8d23c7SJohn Baldwin struct freebsd32_aio_fsync_args { 4085d8d23c7SJohn Baldwin char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)]; 4095d8d23c7SJohn Baldwin char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 4105d8d23c7SJohn Baldwin }; 411841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 412486abf93SPeter Wemm struct freebsd32_pread_args { 413486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 414486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 415486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 416841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4174412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4184412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 419486abf93SPeter Wemm }; 420486abf93SPeter Wemm struct freebsd32_pwrite_args { 421486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 422486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 423486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 424841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4254412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4264412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 427486abf93SPeter Wemm }; 428486abf93SPeter Wemm struct freebsd32_mmap_args { 429938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 430486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 431486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 432486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 433486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 434841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4354412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4364412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 437486abf93SPeter Wemm }; 438486abf93SPeter Wemm struct freebsd32_lseek_args { 439486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 440841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4414412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4424412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 443486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 444486abf93SPeter Wemm }; 445486abf93SPeter Wemm struct freebsd32_truncate_args { 4464e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 447841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4484412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4494412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 450486abf93SPeter Wemm }; 451486abf93SPeter Wemm struct freebsd32_ftruncate_args { 452486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 453841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 4544412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4554412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 456486abf93SPeter Wemm }; 457841c0c7eSNathan Whitehorn #else 458841c0c7eSNathan Whitehorn struct freebsd32_pread_args { 459841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 460841c0c7eSNathan Whitehorn char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 461841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 4624412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4634412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 464841c0c7eSNathan Whitehorn }; 465841c0c7eSNathan Whitehorn struct freebsd32_pwrite_args { 466841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 467841c0c7eSNathan Whitehorn char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 468841c0c7eSNathan Whitehorn char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 4694412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4704412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 471841c0c7eSNathan Whitehorn }; 472841c0c7eSNathan Whitehorn struct freebsd32_mmap_args { 473938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 474841c0c7eSNathan Whitehorn char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 475841c0c7eSNathan Whitehorn char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 476841c0c7eSNathan Whitehorn char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 477841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4784412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 4794412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 480841c0c7eSNathan Whitehorn }; 481841c0c7eSNathan Whitehorn struct freebsd32_lseek_args { 482841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4834412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 4844412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 485841c0c7eSNathan Whitehorn char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 486841c0c7eSNathan Whitehorn }; 487841c0c7eSNathan Whitehorn struct freebsd32_truncate_args { 4884e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 4894412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4904412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 491841c0c7eSNathan Whitehorn }; 492841c0c7eSNathan Whitehorn struct freebsd32_ftruncate_args { 493841c0c7eSNathan Whitehorn char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 4944412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 4954412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 496841c0c7eSNathan Whitehorn }; 497841c0c7eSNathan Whitehorn #endif 498841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 499774b72e1SBrooks Davis struct freebsd32_cpuset_setid_args { 500774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 501841c0c7eSNathan Whitehorn char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 5024412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5034412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 504774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 505774b72e1SBrooks Davis }; 506841c0c7eSNathan Whitehorn #else 507841c0c7eSNathan Whitehorn struct freebsd32_cpuset_setid_args { 508841c0c7eSNathan Whitehorn char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5094412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5104412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 511841c0c7eSNathan Whitehorn char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)]; 512841c0c7eSNathan Whitehorn }; 513841c0c7eSNathan Whitehorn #endif 514774b72e1SBrooks Davis struct freebsd32_cpuset_getid_args { 515774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 516774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5174412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5184412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 519774b72e1SBrooks Davis char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)]; 520774b72e1SBrooks Davis }; 521774b72e1SBrooks Davis struct freebsd32_cpuset_getaffinity_args { 522774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 523774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5244412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5254412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 526774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 527774b72e1SBrooks Davis char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)]; 528774b72e1SBrooks Davis }; 529774b72e1SBrooks Davis struct freebsd32_cpuset_setaffinity_args { 530774b72e1SBrooks Davis char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 531774b72e1SBrooks Davis char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 5324412ad48SEd Schouten char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 5334412ad48SEd Schouten char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 534774b72e1SBrooks Davis char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)]; 535774b72e1SBrooks Davis char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)]; 536774b72e1SBrooks Davis }; 537f2296b58SKonstantin Belousov struct freebsd32_fexecve_args { 538f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5394412ad48SEd Schouten char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)]; 5404412ad48SEd Schouten char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)]; 541f2296b58SKonstantin Belousov }; 542f2296b58SKonstantin Belousov struct freebsd32_futimesat_args { 543f2296b58SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 5444e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 545f2296b58SKonstantin Belousov char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)]; 546f2296b58SKonstantin Belousov }; 547fe2f3c65SJamie Gritton struct freebsd32_jail_get_args { 548fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 549fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 550fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 551fe2f3c65SJamie Gritton }; 552fe2f3c65SJamie Gritton struct freebsd32_jail_set_args { 553fe2f3c65SJamie Gritton char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; 554fe2f3c65SJamie Gritton char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; 555fe2f3c65SJamie Gritton char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 556fe2f3c65SJamie Gritton }; 5573899e0dfSJohn Baldwin struct freebsd32_semctl_args { 5583899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 5593899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 5603899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5613899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 5623899e0dfSJohn Baldwin }; 5633899e0dfSJohn Baldwin struct freebsd32_msgctl_args { 5643899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 5653899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5663899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)]; 5673899e0dfSJohn Baldwin }; 5683899e0dfSJohn Baldwin struct freebsd32_shmctl_args { 5693899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 5703899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 5713899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)]; 5723899e0dfSJohn Baldwin }; 573063e9958SKonstantin Belousov struct freebsd32_pselect_args { 574063e9958SKonstantin Belousov char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; 575063e9958SKonstantin Belousov char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; 576063e9958SKonstantin Belousov char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; 577063e9958SKonstantin Belousov char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; 578063e9958SKonstantin Belousov char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 579063e9958SKonstantin Belousov char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)]; 580063e9958SKonstantin Belousov }; 581f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 582f85769ebSKonstantin Belousov struct freebsd32_posix_fallocate_args { 583f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 584f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 585f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 586f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 587f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 588f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 589f85769ebSKonstantin Belousov }; 590f85769ebSKonstantin Belousov struct freebsd32_posix_fadvise_args { 591f85769ebSKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 592f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 593f85769ebSKonstantin Belousov char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 594f85769ebSKonstantin Belousov char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 595f85769ebSKonstantin Belousov char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 596f85769ebSKonstantin Belousov char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 597f85769ebSKonstantin Belousov char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 598f85769ebSKonstantin Belousov }; 599f85769ebSKonstantin Belousov struct freebsd32_wait6_args { 600f85769ebSKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 601f85769ebSKonstantin Belousov char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 602f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 603f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 604f85769ebSKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 605f85769ebSKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 606f85769ebSKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 607f85769ebSKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 608f85769ebSKonstantin Belousov }; 609f85769ebSKonstantin Belousov #else 6107323776bSMatthew D Fleming struct freebsd32_posix_fallocate_args { 6117323776bSMatthew D Fleming char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 612660d55fbSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 613660d55fbSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 614660d55fbSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 615660d55fbSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 6167323776bSMatthew D Fleming }; 617cd06ae5cSJohn Baldwin struct freebsd32_posix_fadvise_args { 618cd06ae5cSJohn Baldwin char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 619cd06ae5cSJohn Baldwin char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 620cd06ae5cSJohn Baldwin char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 621cd06ae5cSJohn Baldwin char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)]; 622cd06ae5cSJohn Baldwin char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)]; 623cd06ae5cSJohn Baldwin char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; 624cd06ae5cSJohn Baldwin }; 625552e9935SKonstantin Belousov struct freebsd32_wait6_args { 626552e9935SKonstantin Belousov char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 627f85769ebSKonstantin Belousov char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 628f85769ebSKonstantin Belousov char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 629552e9935SKonstantin Belousov char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; 630552e9935SKonstantin Belousov char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; 631552e9935SKonstantin Belousov char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)]; 632552e9935SKonstantin Belousov char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)]; 633552e9935SKonstantin Belousov }; 634f85769ebSKonstantin Belousov #endif 635e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_limit_args { 636e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 637e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)]; 638e11dc435SPawel Jakub Dawidek char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)]; 639e11dc435SPawel Jakub Dawidek }; 640e11dc435SPawel Jakub Dawidek struct freebsd32_cap_ioctls_get_args { 641e11dc435SPawel Jakub Dawidek char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 642e11dc435SPawel Jakub Dawidek char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)]; 643e11dc435SPawel Jakub Dawidek char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)]; 644e11dc435SPawel Jakub Dawidek }; 6458d1aa3c6SGleb Smirnoff struct freebsd32_aio_mlock_args { 6468d1aa3c6SGleb Smirnoff char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 6478d1aa3c6SGleb Smirnoff }; 648a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 649a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 650a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 651a566e8e3SJohn Baldwin char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 652a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 653a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 654a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 655a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 656a566e8e3SJohn Baldwin }; 657a566e8e3SJohn Baldwin #else 658a566e8e3SJohn Baldwin struct freebsd32_procctl_args { 659a566e8e3SJohn Baldwin char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)]; 660a566e8e3SJohn Baldwin char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 661a566e8e3SJohn Baldwin char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 662a566e8e3SJohn Baldwin char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)]; 663a566e8e3SJohn Baldwin char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; 664a566e8e3SJohn Baldwin }; 665a566e8e3SJohn Baldwin #endif 666c28d9d0fSDmitry Chagin struct freebsd32_ppoll_args { 667c28d9d0fSDmitry Chagin char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)]; 668c28d9d0fSDmitry Chagin char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)]; 669c28d9d0fSDmitry Chagin char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)]; 670c28d9d0fSDmitry Chagin char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)]; 671c28d9d0fSDmitry Chagin }; 6722b35e6a9SJilles Tjoelker struct freebsd32_futimens_args { 6732b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6742b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6752b35e6a9SJilles Tjoelker }; 6762b35e6a9SJilles Tjoelker struct freebsd32_utimensat_args { 6772b35e6a9SJilles Tjoelker char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6784e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 6792b35e6a9SJilles Tjoelker char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; 6802b35e6a9SJilles Tjoelker char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 6812b35e6a9SJilles Tjoelker }; 682ec95c622SKonstantin Belousov struct freebsd32_fstat_args { 683ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 684ec95c622SKonstantin Belousov char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; 685ec95c622SKonstantin Belousov }; 686ec95c622SKonstantin Belousov struct freebsd32_fstatat_args { 687ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6884e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 689ec95c622SKonstantin Belousov char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)]; 690ec95c622SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 691ec95c622SKonstantin Belousov }; 692ec95c622SKonstantin Belousov struct freebsd32_fhstat_args { 693ec95c622SKonstantin Belousov char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 694ec95c622SKonstantin Belousov char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)]; 695ec95c622SKonstantin Belousov }; 6964b499c75SBrooks Davis #ifdef PAD64_REQUIRED 6974b499c75SBrooks Davis struct freebsd32_mknodat_args { 6984b499c75SBrooks Davis char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 6994b499c75SBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 7004b499c75SBrooks Davis char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 7014b499c75SBrooks Davis char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 7024b499c75SBrooks Davis char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)]; 7034b499c75SBrooks Davis char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)]; 7044b499c75SBrooks Davis }; 7054b499c75SBrooks Davis #else 7064b499c75SBrooks Davis struct freebsd32_mknodat_args { 7074b499c75SBrooks Davis char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 7084b499c75SBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 7094b499c75SBrooks Davis char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; 7104b499c75SBrooks Davis char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)]; 7114b499c75SBrooks Davis char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)]; 7124b499c75SBrooks Davis }; 7134b499c75SBrooks Davis #endif 714eb84ca64SKonstantin Belousov struct freebsd32_kevent_args { 715eb84ca64SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 716eb84ca64SKonstantin Belousov char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)]; 717eb84ca64SKonstantin Belousov char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 718eb84ca64SKonstantin Belousov char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)]; 719eb84ca64SKonstantin Belousov char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 720eb84ca64SKonstantin Belousov char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 721eb84ca64SKonstantin Belousov }; 722af80820aSJeff Roberson struct freebsd32_cpuset_getdomain_args { 723af80820aSJeff Roberson char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 724af80820aSJeff Roberson char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 725af80820aSJeff Roberson char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 726af80820aSJeff Roberson char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 727af80820aSJeff Roberson char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)]; 728af80820aSJeff Roberson char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; 729af80820aSJeff Roberson char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)]; 730af80820aSJeff Roberson }; 731af80820aSJeff Roberson struct freebsd32_cpuset_setdomain_args { 732af80820aSJeff Roberson char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)]; 733af80820aSJeff Roberson char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; 734af80820aSJeff Roberson char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)]; 735af80820aSJeff Roberson char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)]; 736af80820aSJeff Roberson char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)]; 737af80820aSJeff Roberson char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; 738af80820aSJeff Roberson char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)]; 739af80820aSJeff Roberson }; 740d05b53e0SMateusz Guzik struct freebsd32___sysctlbyname_args { 741d05b53e0SMateusz Guzik char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; 742d05b53e0SMateusz Guzik char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)]; 743d05b53e0SMateusz Guzik char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; 744d05b53e0SMateusz Guzik char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)]; 745d05b53e0SMateusz Guzik char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; 746d05b53e0SMateusz Guzik char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)]; 747d05b53e0SMateusz Guzik }; 748*20321e62SAlan Somers struct freebsd32_aio_writev_args { 749*20321e62SAlan Somers char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 750*20321e62SAlan Somers }; 751*20321e62SAlan Somers struct freebsd32_aio_readv_args { 752*20321e62SAlan Somers char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)]; 753*20321e62SAlan Somers }; 75421fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 755841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 756841c0c7eSNathan Whitehorn #endif 75794e75644SPeter Wemm int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); 75858b552dcSJohn Baldwin int freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *); 75915857ef5SPaul Saab int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *); 76015857ef5SPaul Saab int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *); 76115857ef5SPaul Saab int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *); 76294e75644SPeter Wemm int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); 763663c5800SDavid E. O'Brien int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *); 76494e75644SPeter Wemm int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); 765f8244106SMarcel Moolenaar int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *); 76694e75644SPeter Wemm int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); 767996a568eSPeter Wemm int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *); 7685aec07c7SKonstantin Belousov int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *); 76994e75644SPeter Wemm int freebsd32_select(struct thread *, struct freebsd32_select_args *); 77094e75644SPeter Wemm int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *); 77194e75644SPeter Wemm int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *); 77294e75644SPeter Wemm int freebsd32_readv(struct thread *, struct freebsd32_readv_args *); 77394e75644SPeter Wemm int freebsd32_writev(struct thread *, struct freebsd32_writev_args *); 77494e75644SPeter Wemm int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *); 77594e75644SPeter Wemm int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *); 77694e75644SPeter Wemm int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *); 7779da68040SKonstantin Belousov int freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *); 77894e75644SPeter Wemm int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *); 77994e75644SPeter Wemm int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *); 78094e75644SPeter Wemm int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *); 781d7d95c3fSKonstantin Belousov int freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *); 78286e06fa5SBrooks Davis int freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *); 783f06b8643SDoug Ambrisko int freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *); 7845e868cbbSJung-uk Kim int freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *); 7855e868cbbSJung-uk Kim int freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *); 786fd151bb9SPaul Saab int freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *); 787fd151bb9SPaul Saab int freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *); 788fd151bb9SPaul Saab int freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *); 78968044954SKonstantin Belousov int freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *); 79068044954SKonstantin Belousov int freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *); 79168044954SKonstantin Belousov int freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *); 7927fdf2c85SPaul Saab int freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *); 79326f86ab7SEric van Gyzen int freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *); 794c5d03637SKonstantin Belousov int freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *); 7955d8d23c7SJohn Baldwin int freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *); 7965d8d23c7SJohn Baldwin int freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *); 7975d8d23c7SJohn Baldwin int freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *); 798cac2fa64SDoug Ambrisko int freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *); 7999f3157a2SJohn Baldwin int freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *); 8009f3157a2SJohn Baldwin int freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *); 8010e214fadSPaul Saab int freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *); 802eea5c618SKonstantin Belousov int freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *); 8035d8d23c7SJohn Baldwin int freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *); 8045d8d23c7SJohn Baldwin int freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *); 8055d8d23c7SJohn Baldwin int freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *); 806f2f5c215SKonstantin Belousov int freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *); 807c542c43eSJamie Gritton int freebsd32_jail(struct thread *, struct freebsd32_jail_args *); 808312a0e5fSDavid Xu int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *); 809312a0e5fSDavid Xu int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *); 8105d8d23c7SJohn Baldwin int freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *); 811f1287854SDavid E. O'Brien int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *); 81294e75644SPeter Wemm int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *); 81328ad01d2SKonstantin Belousov int freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *); 81428ad01d2SKonstantin Belousov int freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *); 81594e75644SPeter Wemm int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *); 81694e75644SPeter Wemm int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *); 817a11ea6e3SPeter Wemm int freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *); 818a11ea6e3SPeter Wemm int freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *); 819a11ea6e3SPeter Wemm int freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *); 82028ad01d2SKonstantin Belousov int freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *); 821ac3674aaSDavid Xu int freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *); 822e1e300b6SBrooks Davis int freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *); 823ac3674aaSDavid Xu int freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *); 824e9f32d1dSBrooks Davis int freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *); 82528ad01d2SKonstantin Belousov int freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *); 82628ad01d2SKonstantin Belousov int freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *); 82728ad01d2SKonstantin Belousov int freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *); 82828ad01d2SKonstantin Belousov int freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *); 82968044954SKonstantin Belousov int freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *); 8305d8d23c7SJohn Baldwin int freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *); 831841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 832486abf93SPeter Wemm int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 833486abf93SPeter Wemm int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 834486abf93SPeter Wemm int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 835486abf93SPeter Wemm int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 836486abf93SPeter Wemm int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 837486abf93SPeter Wemm int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 838841c0c7eSNathan Whitehorn #else 839841c0c7eSNathan Whitehorn int freebsd32_pread(struct thread *, struct freebsd32_pread_args *); 840841c0c7eSNathan Whitehorn int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *); 841841c0c7eSNathan Whitehorn int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *); 842841c0c7eSNathan Whitehorn int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *); 843841c0c7eSNathan Whitehorn int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *); 844841c0c7eSNathan Whitehorn int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *); 845841c0c7eSNathan Whitehorn #endif 846841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 847774b72e1SBrooks Davis int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 848841c0c7eSNathan Whitehorn #else 849841c0c7eSNathan Whitehorn int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *); 850841c0c7eSNathan Whitehorn #endif 851774b72e1SBrooks Davis int freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *); 852774b72e1SBrooks Davis int freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *); 853774b72e1SBrooks Davis int freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *); 854f2296b58SKonstantin Belousov int freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *); 855f2296b58SKonstantin Belousov int freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *); 856fe2f3c65SJamie Gritton int freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *); 857fe2f3c65SJamie Gritton int freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *); 8583899e0dfSJohn Baldwin int freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *); 8593899e0dfSJohn Baldwin int freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *); 8603899e0dfSJohn Baldwin int freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *); 861063e9958SKonstantin Belousov int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *); 862f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 8637323776bSMatthew D Fleming int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 864cd06ae5cSJohn Baldwin int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 865552e9935SKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 866f85769ebSKonstantin Belousov #else 867f85769ebSKonstantin Belousov int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *); 868f85769ebSKonstantin Belousov int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *); 869f85769ebSKonstantin Belousov int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *); 870f85769ebSKonstantin Belousov #endif 871e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *); 872e11dc435SPawel Jakub Dawidek int freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *); 8738d1aa3c6SGleb Smirnoff int freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *); 874a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 875a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 876a566e8e3SJohn Baldwin #else 877a566e8e3SJohn Baldwin int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *); 878a566e8e3SJohn Baldwin #endif 879c28d9d0fSDmitry Chagin int freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *); 8802b35e6a9SJilles Tjoelker int freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *); 8812b35e6a9SJilles Tjoelker int freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *); 882ec95c622SKonstantin Belousov int freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *); 883ec95c622SKonstantin Belousov int freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *); 884ec95c622SKonstantin Belousov int freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *); 8854b499c75SBrooks Davis #ifdef PAD64_REQUIRED 8864b499c75SBrooks Davis int freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *); 8874b499c75SBrooks Davis #else 8884b499c75SBrooks Davis int freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *); 8894b499c75SBrooks Davis #endif 890eb84ca64SKonstantin Belousov int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *); 891af80820aSJeff Roberson int freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *); 892af80820aSJeff Roberson int freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *); 893d05b53e0SMateusz Guzik int freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *); 894*20321e62SAlan Somers int freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *); 895*20321e62SAlan Somers int freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *); 8965eb29d9bSDoug Rabson 8975eb29d9bSDoug Rabson #ifdef COMPAT_43 8985eb29d9bSDoug Rabson 89921fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 900841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 901841c0c7eSNathan Whitehorn #endif 902160e5953SKonstantin Belousov struct ofreebsd32_lseek_args { 903160e5953SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 904160e5953SKonstantin Belousov char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)]; 905160e5953SKonstantin Belousov char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 906160e5953SKonstantin Belousov }; 907c3b2c052SKonstantin Belousov struct ofreebsd32_stat_args { 9084e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 909c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 910c3b2c052SKonstantin Belousov }; 911c3b2c052SKonstantin Belousov struct ofreebsd32_lstat_args { 9124e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 913c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)]; 914c3b2c052SKonstantin Belousov }; 915946bca4fSPeter Wemm struct ofreebsd32_sigaction_args { 916946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 917946bca4fSPeter Wemm char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)]; 918946bca4fSPeter Wemm char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)]; 919946bca4fSPeter Wemm }; 920946bca4fSPeter Wemm struct ofreebsd32_sigprocmask_args { 921946bca4fSPeter Wemm char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)]; 922946bca4fSPeter Wemm char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)]; 923946bca4fSPeter Wemm }; 924c3b2c052SKonstantin Belousov struct ofreebsd32_fstat_args { 925c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 926c3b2c052SKonstantin Belousov char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)]; 927c3b2c052SKonstantin Belousov }; 928c3b2c052SKonstantin Belousov struct ofreebsd32_getpagesize_args { 929c3b2c052SKonstantin Belousov char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)]; 930c3b2c052SKonstantin Belousov }; 931c3b2c052SKonstantin Belousov struct ofreebsd32_sigreturn_args { 932c3b2c052SKonstantin Belousov char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)]; 933c3b2c052SKonstantin Belousov }; 934946bca4fSPeter Wemm struct ofreebsd32_sigvec_args { 935946bca4fSPeter Wemm char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)]; 936946bca4fSPeter Wemm char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)]; 937946bca4fSPeter Wemm char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)]; 938946bca4fSPeter Wemm }; 939946bca4fSPeter Wemm struct ofreebsd32_sigblock_args { 940946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 941946bca4fSPeter Wemm }; 942946bca4fSPeter Wemm struct ofreebsd32_sigsetmask_args { 943946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 944946bca4fSPeter Wemm }; 945946bca4fSPeter Wemm struct ofreebsd32_sigsuspend_args { 946946bca4fSPeter Wemm char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)]; 947946bca4fSPeter Wemm }; 948946bca4fSPeter Wemm struct ofreebsd32_sigstack_args { 949946bca4fSPeter Wemm char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)]; 950946bca4fSPeter Wemm char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)]; 951946bca4fSPeter Wemm }; 952c3b2c052SKonstantin Belousov struct ofreebsd32_getdirentries_args { 953c3b2c052SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 954c3b2c052SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 955c3b2c052SKonstantin Belousov char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 956c3b2c052SKonstantin Belousov char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)]; 957c3b2c052SKonstantin Belousov }; 958841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 959841c0c7eSNathan Whitehorn #else 960841c0c7eSNathan Whitehorn #endif 961841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 962841c0c7eSNathan Whitehorn #else 963841c0c7eSNathan Whitehorn #endif 964f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 965f85769ebSKonstantin Belousov #else 966f85769ebSKonstantin Belousov #endif 967a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 968a566e8e3SJohn Baldwin #else 969a566e8e3SJohn Baldwin #endif 9704b499c75SBrooks Davis #ifdef PAD64_REQUIRED 9714b499c75SBrooks Davis #else 9724b499c75SBrooks Davis #endif 973160e5953SKonstantin Belousov int ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *); 974c3b2c052SKonstantin Belousov int ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *); 975c3b2c052SKonstantin Belousov int ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *); 976946bca4fSPeter Wemm int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *); 977946bca4fSPeter Wemm int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *); 978946bca4fSPeter Wemm int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *); 979c3b2c052SKonstantin Belousov int ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *); 980c3b2c052SKonstantin Belousov int ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *); 981c3b2c052SKonstantin Belousov int ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *); 982946bca4fSPeter Wemm int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *); 983946bca4fSPeter Wemm int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *); 984946bca4fSPeter Wemm int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *); 985946bca4fSPeter Wemm int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *); 986946bca4fSPeter Wemm int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *); 987c3b2c052SKonstantin Belousov int ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *); 9885eb29d9bSDoug Rabson 9895eb29d9bSDoug Rabson #endif /* COMPAT_43 */ 9905eb29d9bSDoug Rabson 9910c5bd5f9SEdward Tomasz Napierala 992db27052eSPeter Wemm #ifdef COMPAT_FREEBSD4 993db27052eSPeter Wemm 99421fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 995841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 996841c0c7eSNathan Whitehorn #endif 9975b3283b0SPeter Wemm struct freebsd4_freebsd32_getfsstat_args { 9985b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 9995b3283b0SPeter Wemm char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; 10001fabda45SJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 10015b3283b0SPeter Wemm }; 10025b3283b0SPeter Wemm struct freebsd4_freebsd32_statfs_args { 10034e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 10045b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 10055b3283b0SPeter Wemm }; 10065b3283b0SPeter Wemm struct freebsd4_freebsd32_fstatfs_args { 10075b3283b0SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 10085b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 10095b3283b0SPeter Wemm }; 10105b3283b0SPeter Wemm struct freebsd4_freebsd32_fhstatfs_args { 10115b3283b0SPeter Wemm char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 10125b3283b0SPeter Wemm char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; 10135b3283b0SPeter Wemm }; 101494e75644SPeter Wemm struct freebsd4_freebsd32_sendfile_args { 10159105d26bSPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 10169105d26bSPeter Wemm char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; 10174412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10184412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 10199105d26bSPeter Wemm char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; 102026e4fb05SPaul Saab char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)]; 10219105d26bSPeter Wemm char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; 10229105d26bSPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 10239105d26bSPeter Wemm }; 102494e75644SPeter Wemm struct freebsd4_freebsd32_sigaction_args { 1025e14528b3SPeter Wemm char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; 1026e14528b3SPeter Wemm char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; 1027e14528b3SPeter Wemm char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; 1028e14528b3SPeter Wemm }; 102994e75644SPeter Wemm struct freebsd4_freebsd32_sigreturn_args { 1030fffaaed4SPeter 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 *)]; 1031e14528b3SPeter Wemm }; 1032841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1033841c0c7eSNathan Whitehorn #else 1034841c0c7eSNathan Whitehorn #endif 1035841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1036841c0c7eSNathan Whitehorn #else 1037841c0c7eSNathan Whitehorn #endif 1038f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1039f85769ebSKonstantin Belousov #else 1040f85769ebSKonstantin Belousov #endif 1041a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1042a566e8e3SJohn Baldwin #else 1043a566e8e3SJohn Baldwin #endif 10444b499c75SBrooks Davis #ifdef PAD64_REQUIRED 10454b499c75SBrooks Davis #else 10464b499c75SBrooks Davis #endif 10475b3283b0SPeter Wemm int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *); 10485b3283b0SPeter Wemm int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *); 10495b3283b0SPeter Wemm int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *); 10505b3283b0SPeter Wemm int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *); 105194e75644SPeter Wemm int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *); 105294e75644SPeter Wemm int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *); 105394e75644SPeter Wemm int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *); 1054db27052eSPeter Wemm 1055db27052eSPeter Wemm #endif /* COMPAT_FREEBSD4 */ 1056db27052eSPeter Wemm 10570c5bd5f9SEdward Tomasz Napierala 1058718dbcfeSRobert Watson #ifdef COMPAT_FREEBSD6 1059486abf93SPeter Wemm 106021fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 1061841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 1062841c0c7eSNathan Whitehorn #endif 1063486abf93SPeter Wemm struct freebsd6_freebsd32_pread_args { 1064486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1065486abf93SPeter Wemm char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 1066486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 1067486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10684412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10694412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1070486abf93SPeter Wemm }; 1071486abf93SPeter Wemm struct freebsd6_freebsd32_pwrite_args { 1072486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1073486abf93SPeter Wemm char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; 1074486abf93SPeter Wemm char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; 1075486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10764412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10774412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1078486abf93SPeter Wemm }; 1079486abf93SPeter Wemm struct freebsd6_freebsd32_mmap_args { 1080938e8dcfSBrooks Davis char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 1081486abf93SPeter Wemm char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 1082486abf93SPeter Wemm char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; 1083486abf93SPeter Wemm char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; 1084486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1085486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10864412ad48SEd Schouten char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)]; 10874412ad48SEd Schouten char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)]; 1088486abf93SPeter Wemm }; 1089486abf93SPeter Wemm struct freebsd6_freebsd32_lseek_args { 1090486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1091486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10924412ad48SEd Schouten char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)]; 10934412ad48SEd Schouten char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)]; 1094486abf93SPeter Wemm char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; 1095486abf93SPeter Wemm }; 1096486abf93SPeter Wemm struct freebsd6_freebsd32_truncate_args { 10974e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1098486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 10994412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 11004412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1101486abf93SPeter Wemm }; 1102486abf93SPeter Wemm struct freebsd6_freebsd32_ftruncate_args { 1103486abf93SPeter Wemm char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1104486abf93SPeter Wemm char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; 11054412ad48SEd Schouten char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)]; 11064412ad48SEd Schouten char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)]; 1107486abf93SPeter Wemm }; 11088d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_read_args { 11098d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 11108d91acedSJohn Baldwin }; 11118d91acedSJohn Baldwin struct freebsd6_freebsd32_aio_write_args { 11128d91acedSJohn Baldwin char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)]; 11138d91acedSJohn Baldwin }; 11148d91acedSJohn Baldwin struct freebsd6_freebsd32_lio_listio_args { 11158d91acedSJohn Baldwin char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; 11168d91acedSJohn Baldwin char acb_list_l_[PADL_(struct oaiocb32 * const *)]; struct oaiocb32 * const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 * const *)]; 11178d91acedSJohn Baldwin char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; 11188d91acedSJohn Baldwin char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)]; 11198d91acedSJohn Baldwin }; 1120841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1121841c0c7eSNathan Whitehorn #else 1122841c0c7eSNathan Whitehorn #endif 1123841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1124841c0c7eSNathan Whitehorn #else 1125841c0c7eSNathan Whitehorn #endif 1126f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1127f85769ebSKonstantin Belousov #else 1128f85769ebSKonstantin Belousov #endif 1129a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1130a566e8e3SJohn Baldwin #else 1131a566e8e3SJohn Baldwin #endif 11324b499c75SBrooks Davis #ifdef PAD64_REQUIRED 11334b499c75SBrooks Davis #else 11344b499c75SBrooks Davis #endif 1135486abf93SPeter Wemm int freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *); 1136486abf93SPeter Wemm int freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *); 1137486abf93SPeter Wemm int freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *); 1138486abf93SPeter Wemm int freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *); 1139486abf93SPeter Wemm int freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *); 1140486abf93SPeter Wemm int freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *); 11418d91acedSJohn Baldwin int freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *); 11428d91acedSJohn Baldwin int freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *); 11438d91acedSJohn Baldwin int freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *); 1144486abf93SPeter Wemm 1145718dbcfeSRobert Watson #endif /* COMPAT_FREEBSD6 */ 1146486abf93SPeter Wemm 11470c5bd5f9SEdward Tomasz Napierala 11488ffab864SWarner Losh #ifdef COMPAT_FREEBSD7 11493899e0dfSJohn Baldwin 115021fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 1151841c0c7eSNathan Whitehorn #define PAD64_REQUIRED 1152841c0c7eSNathan Whitehorn #endif 11533899e0dfSJohn Baldwin struct freebsd7_freebsd32_semctl_args { 11543899e0dfSJohn Baldwin char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)]; 11553899e0dfSJohn Baldwin char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)]; 11563899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 11573899e0dfSJohn Baldwin char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)]; 11583899e0dfSJohn Baldwin }; 11593899e0dfSJohn Baldwin struct freebsd7_freebsd32_msgctl_args { 11603899e0dfSJohn Baldwin char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; 11613899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 11623899e0dfSJohn Baldwin char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)]; 11633899e0dfSJohn Baldwin }; 11643899e0dfSJohn Baldwin struct freebsd7_freebsd32_shmctl_args { 11653899e0dfSJohn Baldwin char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; 11663899e0dfSJohn Baldwin char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; 11673899e0dfSJohn Baldwin char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)]; 11683899e0dfSJohn Baldwin }; 1169841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1170841c0c7eSNathan Whitehorn #else 1171841c0c7eSNathan Whitehorn #endif 1172841c0c7eSNathan Whitehorn #ifdef PAD64_REQUIRED 1173841c0c7eSNathan Whitehorn #else 1174841c0c7eSNathan Whitehorn #endif 1175f85769ebSKonstantin Belousov #ifdef PAD64_REQUIRED 1176f85769ebSKonstantin Belousov #else 1177f85769ebSKonstantin Belousov #endif 1178a566e8e3SJohn Baldwin #ifdef PAD64_REQUIRED 1179a566e8e3SJohn Baldwin #else 1180a566e8e3SJohn Baldwin #endif 11814b499c75SBrooks Davis #ifdef PAD64_REQUIRED 11824b499c75SBrooks Davis #else 11834b499c75SBrooks Davis #endif 11843899e0dfSJohn Baldwin int freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *); 11853899e0dfSJohn Baldwin int freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *); 11863899e0dfSJohn Baldwin int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *); 11873899e0dfSJohn Baldwin 11888ffab864SWarner Losh #endif /* COMPAT_FREEBSD7 */ 11893899e0dfSJohn Baldwin 11900c5bd5f9SEdward Tomasz Napierala 1191a72c64b0SBrooks Davis #ifdef COMPAT_FREEBSD10 1192a72c64b0SBrooks Davis 119321fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 1194a72c64b0SBrooks Davis #define PAD64_REQUIRED 1195a72c64b0SBrooks Davis #endif 1196a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1197a72c64b0SBrooks Davis #else 1198a72c64b0SBrooks Davis #endif 1199a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1200a72c64b0SBrooks Davis #else 1201a72c64b0SBrooks Davis #endif 1202a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1203a72c64b0SBrooks Davis #else 1204a72c64b0SBrooks Davis #endif 1205a72c64b0SBrooks Davis #ifdef PAD64_REQUIRED 1206a72c64b0SBrooks Davis #else 1207a72c64b0SBrooks Davis #endif 12084b499c75SBrooks Davis #ifdef PAD64_REQUIRED 12094b499c75SBrooks Davis #else 12104b499c75SBrooks Davis #endif 1211a72c64b0SBrooks Davis int freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_args *); 1212a72c64b0SBrooks Davis 1213a72c64b0SBrooks Davis #endif /* COMPAT_FREEBSD10 */ 1214a72c64b0SBrooks Davis 12150c5bd5f9SEdward Tomasz Napierala 1216ec95c622SKonstantin Belousov #ifdef COMPAT_FREEBSD11 1217ec95c622SKonstantin Belousov 121821fb6624SOlivier Houchard #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 1219ec95c622SKonstantin Belousov #define PAD64_REQUIRED 1220ec95c622SKonstantin Belousov #endif 1221ec95c622SKonstantin Belousov struct freebsd11_freebsd32_stat_args { 12224e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1223ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1224ec95c622SKonstantin Belousov }; 1225ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstat_args { 1226ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1227ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1228ec95c622SKonstantin Belousov }; 1229ec95c622SKonstantin Belousov struct freebsd11_freebsd32_lstat_args { 12304e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1231ec95c622SKonstantin Belousov char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)]; 1232ec95c622SKonstantin Belousov }; 1233ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdirentries_args { 1234ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1235ec95c622SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 1236ec95c622SKonstantin Belousov char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)]; 1237ec95c622SKonstantin Belousov char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)]; 1238ec95c622SKonstantin Belousov }; 1239ec95c622SKonstantin Belousov struct freebsd11_freebsd32_getdents_args { 1240ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1241ec95c622SKonstantin Belousov char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 1242ec95c622SKonstantin Belousov char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)]; 1243ec95c622SKonstantin Belousov }; 1244ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fhstat_args { 1245ec95c622SKonstantin Belousov char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; 1246ec95c622SKonstantin Belousov char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)]; 1247ec95c622SKonstantin Belousov }; 1248eb84ca64SKonstantin Belousov struct freebsd11_freebsd32_kevent_args { 1249eb84ca64SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 1250eb84ca64SKonstantin Belousov char changelist_l_[PADL_(const struct kevent32_freebsd11 *)]; const struct kevent32_freebsd11 * changelist; char changelist_r_[PADR_(const struct kevent32_freebsd11 *)]; 1251eb84ca64SKonstantin Belousov char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; 1252eb84ca64SKonstantin Belousov char eventlist_l_[PADL_(struct kevent32_freebsd11 *)]; struct kevent32_freebsd11 * eventlist; char eventlist_r_[PADR_(struct kevent32_freebsd11 *)]; 1253eb84ca64SKonstantin Belousov char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; 1254eb84ca64SKonstantin Belousov char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)]; 1255eb84ca64SKonstantin Belousov }; 1256ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1257ec95c622SKonstantin Belousov #else 1258ec95c622SKonstantin Belousov #endif 1259ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1260ec95c622SKonstantin Belousov #else 1261ec95c622SKonstantin Belousov #endif 1262ec95c622SKonstantin Belousov struct freebsd11_freebsd32_fstatat_args { 1263ec95c622SKonstantin Belousov char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; 12644e8c73ebSBrooks Davis char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 1265ec95c622SKonstantin Belousov char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)]; 1266ec95c622SKonstantin Belousov char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; 1267ec95c622SKonstantin Belousov }; 1268ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1269ec95c622SKonstantin Belousov #else 1270ec95c622SKonstantin Belousov #endif 1271ec95c622SKonstantin Belousov #ifdef PAD64_REQUIRED 1272ec95c622SKonstantin Belousov #else 1273ec95c622SKonstantin Belousov #endif 12744b499c75SBrooks Davis #ifdef PAD64_REQUIRED 12754b499c75SBrooks Davis #else 12764b499c75SBrooks Davis #endif 1277ec95c622SKonstantin Belousov int freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *); 1278ec95c622SKonstantin Belousov int freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *); 1279ec95c622SKonstantin Belousov int freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *); 1280ec95c622SKonstantin Belousov int freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *); 1281ec95c622SKonstantin Belousov int freebsd11_freebsd32_getdents(struct thread *, struct freebsd11_freebsd32_getdents_args *); 1282ec95c622SKonstantin Belousov int freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *); 1283eb84ca64SKonstantin Belousov int freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *); 1284ec95c622SKonstantin Belousov int freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *); 1285ec95c622SKonstantin Belousov 1286ec95c622SKonstantin Belousov #endif /* COMPAT_FREEBSD11 */ 1287ec95c622SKonstantin Belousov 12880c5bd5f9SEdward Tomasz Napierala 1289d19f028eSKyle Evans #ifdef COMPAT_FREEBSD12 1290d19f028eSKyle Evans 1291d19f028eSKyle Evans #if !defined(PAD64_REQUIRED) && !defined(__amd64__) 1292d19f028eSKyle Evans #define PAD64_REQUIRED 1293d19f028eSKyle Evans #endif 1294d19f028eSKyle Evans #ifdef PAD64_REQUIRED 1295d19f028eSKyle Evans #else 1296d19f028eSKyle Evans #endif 1297d19f028eSKyle Evans #ifdef PAD64_REQUIRED 1298d19f028eSKyle Evans #else 1299d19f028eSKyle Evans #endif 1300d19f028eSKyle Evans #ifdef PAD64_REQUIRED 1301d19f028eSKyle Evans #else 1302d19f028eSKyle Evans #endif 1303d19f028eSKyle Evans #ifdef PAD64_REQUIRED 1304d19f028eSKyle Evans #else 1305d19f028eSKyle Evans #endif 1306d19f028eSKyle Evans #ifdef PAD64_REQUIRED 1307d19f028eSKyle Evans #else 1308d19f028eSKyle Evans #endif 1309d19f028eSKyle Evans 1310d19f028eSKyle Evans #endif /* COMPAT_FREEBSD12 */ 1311d19f028eSKyle Evans 1312f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_wait4 AUE_WAIT4 1313e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat AUE_GETFSSTAT 1314160e5953SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lseek AUE_LSEEK 131558b552dcSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_ptrace AUE_PTRACE 1316f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG 1317f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG 1318f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM 1319c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_stat AUE_STAT 1320c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_lstat AUE_LSTAT 1321a72c64b0SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_pipe AUE_PIPE 1322e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION 1323e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK 1324e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING 1325da7cbdc2SRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK 1326d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_IOCTL 1327f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE 1328c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_fstat AUE_FSTAT 1329c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getpagesize AUE_NULL 1330f8244106SMarcel Moolenaar #define FREEBSD32_SYS_AUE_freebsd32_mprotect AUE_MPROTECT 1331f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER 1332f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER 13335aec07c7SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fcntl AUE_FCNTL 1334f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT 1335d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_SIGRETURN 1336e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC 1337e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK 1338e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK 1339e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND 1340e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack AUE_O_SIGSTACK 1341f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday AUE_GETTIMEOFDAY 1342f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getrusage AUE_GETRUSAGE 1343f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_readv AUE_READV 1344f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_writev AUE_WRITEV 1345f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY 1346f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES 1347f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME 1348c3b2c052SKonstantin Belousov #define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries AUE_GETDIRENTRIES 1349e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS 1350e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS 13519da68040SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH 1352f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semsys AUE_SEMSYS 1353f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgsys AUE_MSGSYS 1354f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmsys AUE_SHMSYS 1355e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread AUE_PREAD 1356e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite AUE_PWRITE 1357d7d95c3fSKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime AUE_NTP_ADJTIME 1358ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat AUE_STAT 1359ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat AUE_FSTAT 1360ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat AUE_LSTAT 1361ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries AUE_GETDIRENTRIES 1362e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap AUE_MMAP 1363e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek AUE_LSEEK 1364e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate AUE_TRUNCATE 1365e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate AUE_FTRUNCATE 136686e06fa5SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32___sysctl AUE_SYSCTL 1367f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_futimes AUE_FUTIMES 13683899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl AUE_SEMCTL 13693899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl AUE_MSGCTL 13705e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgsnd AUE_MSGSND 13715e868cbbSJung-uk Kim #define FREEBSD32_SYS_AUE_freebsd32_msgrcv AUE_MSGRCV 13723899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl AUE_SHMCTL 1373f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime AUE_NULL 1374f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_settime AUE_CLOCK_SETTIME 1375f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_clock_getres AUE_NULL 137668044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_create AUE_NULL 137768044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_settime AUE_NULL 137868044954SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime AUE_NULL 1379f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_nanosleep AUE_NULL 138026f86ab7SEric van Gyzen #define FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep AUE_NULL 1381c5d03637SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2 AUE_NULL 1382d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_read AUE_AIO_READ 1383d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_write AUE_AIO_WRITE 1384d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_lio_listio AUE_LIO_LISTIO 1385ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdents AUE_O_GETDENTS 1386f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_lutimes AUE_LUTIMES 1387f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_preadv AUE_PREADV 1388f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_pwritev AUE_PWRITEV 1389e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs AUE_FHSTATFS 1390ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat AUE_FHSTAT 1391f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_modstat AUE_NULL 1392eea5c618SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_kldstat AUE_NULL 1393d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_return AUE_AIO_RETURN 1394d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_AIO_SUSPEND 1395d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_error AUE_AIO_ERROR 1396d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read AUE_AIO_READ 1397d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write AUE_AIO_WRITE 1398d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio AUE_LIO_LISTIO 1399f2f5c215SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval AUE_NULL 1400e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile AUE_SENDFILE 1401c542c43eSJamie Gritton #define FREEBSD32_SYS_AUE_freebsd32_jail AUE_JAIL 1402e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction AUE_SIGACTION 1403e47a833fSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn AUE_SIGRETURN 1404312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT 1405312a0e5fSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL 1406d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete AUE_AIO_WAITCOMPLETE 1407eb84ca64SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent AUE_KEVENT 1408f1287854SDavid E. O'Brien #define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT 1409e482025eSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE 1410d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_init AUE_SEMINIT 1411d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_open AUE_SEMOPEN 1412f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION 1413f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN 1414f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_getcontext AUE_NULL 1415f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_setcontext AUE_NULL 1416f8f1f7fbSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL 1417d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait AUE_SEMWAIT 1418ac3674aaSDavid Xu #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL 1419e1e300b6SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32__umtx_op AUE_NULL 1420d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_thr_new AUE_THR_NEW 1421e9f32d1dSBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_sigqueue AUE_NULL 1422d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_open AUE_MQ_OPEN 1423d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_MQ_SETATTR 1424d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive AUE_MQ_TIMEDRECEIVE 1425d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend AUE_MQ_TIMEDSEND 1426d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_kmq_notify AUE_MQ_NOTIFY 1427d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync AUE_AIO_FSYNC 1428486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1429486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1430486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1431486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1432486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1433486abf93SPeter Wemm #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1434841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD 1435841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE 1436841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP 1437841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK 1438841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE 1439841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE 1440841c0c7eSNathan Whitehorn #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1441774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL 1442774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid AUE_NULL 1443774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity AUE_NULL 1444774b72e1SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity AUE_NULL 1445f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fexecve AUE_FEXECVE 1446ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat AUE_FSTATAT 1447f2296b58SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_futimesat AUE_FUTIMESAT 1448d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_get AUE_JAIL_GET 1449d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_jail_set AUE_JAIL_SET 14503899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_semctl AUE_SEMCTL 14513899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_msgctl AUE_MSGCTL 14523899e0dfSJohn Baldwin #define FREEBSD32_SYS_AUE_freebsd32_shmctl AUE_SHMCTL 1453063e9958SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_pselect AUE_SELECT 1454d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1455d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1456552e9935SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1457d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE 1458d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE 1459f85769ebSKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6 1460e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit AUE_CAP_IOCTLS_LIMIT 1461e11dc435SPawel Jakub Dawidek #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get AUE_CAP_IOCTLS_GET 1462d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_aio_mlock AUE_AIO_MLOCK 1463d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1464d8ca0a2bSRobert Watson #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL 1465c28d9d0fSDmitry Chagin #define FREEBSD32_SYS_AUE_freebsd32_ppoll AUE_POLL 14662b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_futimens AUE_FUTIMES 14672b35e6a9SJilles Tjoelker #define FREEBSD32_SYS_AUE_freebsd32_utimensat AUE_FUTIMESAT 1468ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstat AUE_FSTAT 1469ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fstatat AUE_FSTATAT 1470ec95c622SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_fhstat AUE_FHSTAT 14714b499c75SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_mknodat AUE_MKNODAT 14724b499c75SBrooks Davis #define FREEBSD32_SYS_AUE_freebsd32_mknodat AUE_MKNODAT 1473eb84ca64SKonstantin Belousov #define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_KEVENT 1474af80820aSJeff Roberson #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain AUE_NULL 1475af80820aSJeff Roberson #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain AUE_NULL 1476d05b53e0SMateusz Guzik #define FREEBSD32_SYS_AUE_freebsd32___sysctlbyname AUE_SYSCTL 1477*20321e62SAlan Somers #define FREEBSD32_SYS_AUE_freebsd32_aio_writev AUE_AIO_WRITEV 1478*20321e62SAlan Somers #define FREEBSD32_SYS_AUE_freebsd32_aio_readv AUE_AIO_READV 1479f8f1f7fbSJohn Baldwin 14805eb29d9bSDoug Rabson #undef PAD_ 14815eb29d9bSDoug Rabson #undef PADL_ 14825eb29d9bSDoug Rabson #undef PADR_ 14835eb29d9bSDoug Rabson 148494e75644SPeter Wemm #endif /* !_FREEBSD32_SYSPROTO_H_ */ 1485