The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/freebsd32/freebsd32_proto.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * System call prototypes.
    3  *
    4  * DO NOT EDIT-- this file is automatically generated.
    5  * $FreeBSD$
    6  * created from FreeBSD: stable/8/sys/compat/freebsd32/syscalls.master 239342 2012-08-16 23:52:08Z obrien 
    7  */
    8 
    9 #ifndef _FREEBSD32_SYSPROTO_H_
   10 #define _FREEBSD32_SYSPROTO_H_
   11 
   12 #include <sys/signal.h>
   13 #include <sys/acl.h>
   14 #include <sys/cpuset.h>
   15 #include <sys/_semaphore.h>
   16 #include <sys/ucontext.h>
   17 
   18 #include <bsm/audit_kevents.h>
   19 
   20 struct proc;
   21 
   22 struct thread;
   23 
   24 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
   25                 0 : sizeof(register_t) - sizeof(t))
   26 
   27 #if BYTE_ORDER == LITTLE_ENDIAN
   28 #define PADL_(t)        0
   29 #define PADR_(t)        PAD_(t)
   30 #else
   31 #define PADL_(t)        PAD_(t)
   32 #define PADR_(t)        0
   33 #endif
   34 
   35 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
   36 #define PAD64_REQUIRED
   37 #endif
   38 struct freebsd32_wait4_args {
   39         char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
   40         char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
   41         char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
   42         char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
   43 };
   44 struct freebsd32_recvmsg_args {
   45         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
   46         char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
   47         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
   48 };
   49 struct freebsd32_sendmsg_args {
   50         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
   51         char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
   52         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
   53 };
   54 struct freebsd32_recvfrom_args {
   55         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
   56         char buf_l_[PADL_(u_int32_t)]; u_int32_t buf; char buf_r_[PADR_(u_int32_t)];
   57         char len_l_[PADL_(u_int32_t)]; u_int32_t len; char len_r_[PADR_(u_int32_t)];
   58         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
   59         char from_l_[PADL_(u_int32_t)]; u_int32_t from; char from_r_[PADR_(u_int32_t)];
   60         char fromlenaddr_l_[PADL_(u_int32_t)]; u_int32_t fromlenaddr; char fromlenaddr_r_[PADR_(u_int32_t)];
   61 };
   62 struct ofreebsd32_sigpending_args {
   63         register_t dummy;
   64 };
   65 struct freebsd32_sigaltstack_args {
   66         char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
   67         char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
   68 };
   69 struct freebsd32_ioctl_args {
   70         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
   71         char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)];
   72         char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)];
   73 };
   74 struct freebsd32_execve_args {
   75         char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
   76         char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
   77         char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
   78 };
   79 struct freebsd32_mprotect_args {
   80         char addr_l_[PADL_(const void *)]; const void * addr; char addr_r_[PADR_(const void *)];
   81         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
   82         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
   83 };
   84 struct freebsd32_setitimer_args {
   85         char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
   86         char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
   87         char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
   88 };
   89 struct freebsd32_getitimer_args {
   90         char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
   91         char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
   92 };
   93 struct freebsd32_select_args {
   94         char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
   95         char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
   96         char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
   97         char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
   98         char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
   99 };
  100 struct freebsd32_gettimeofday_args {
  101         char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
  102         char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
  103 };
  104 struct freebsd32_getrusage_args {
  105         char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
  106         char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
  107 };
  108 struct freebsd32_readv_args {
  109         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  110         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  111         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
  112 };
  113 struct freebsd32_writev_args {
  114         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  115         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  116         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
  117 };
  118 struct freebsd32_settimeofday_args {
  119         char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
  120         char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
  121 };
  122 struct freebsd32_utimes_args {
  123         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  124         char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
  125 };
  126 struct freebsd32_adjtime_args {
  127         char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
  128         char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
  129 };
  130 struct freebsd32_sysarch_args {
  131         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
  132         char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
  133 };
  134 struct freebsd32_semsys_args {
  135         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
  136         char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
  137         char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
  138         char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
  139         char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
  140 };
  141 struct freebsd32_msgsys_args {
  142         char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
  143         char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
  144         char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
  145         char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
  146         char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
  147         char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
  148 };
  149 struct freebsd32_shmsys_args {
  150         char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
  151         char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
  152         char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
  153         char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
  154 };
  155 struct freebsd32_stat_args {
  156         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  157         char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
  158 };
  159 struct freebsd32_fstat_args {
  160         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  161         char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
  162 };
  163 struct freebsd32_lstat_args {
  164         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  165         char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
  166 };
  167 struct freebsd32_getdirentries_args {
  168         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  169         char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
  170         char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
  171         char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
  172 };
  173 struct freebsd32_sysctl_args {
  174         char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
  175         char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
  176         char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
  177         char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)];
  178         char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
  179         char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)];
  180 };
  181 struct freebsd32_futimes_args {
  182         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  183         char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
  184 };
  185 struct freebsd32_msgsnd_args {
  186         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
  187         char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
  188         char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
  189         char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
  190 };
  191 struct freebsd32_msgrcv_args {
  192         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
  193         char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
  194         char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
  195         char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
  196         char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
  197 };
  198 struct freebsd32_clock_gettime_args {
  199         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
  200         char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
  201 };
  202 struct freebsd32_clock_settime_args {
  203         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
  204         char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
  205 };
  206 struct freebsd32_clock_getres_args {
  207         char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
  208         char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
  209 };
  210 struct freebsd32_nanosleep_args {
  211         char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
  212         char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
  213 };
  214 struct freebsd32_aio_read_args {
  215         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  216 };
  217 struct freebsd32_aio_write_args {
  218         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  219 };
  220 struct freebsd32_lio_listio_args {
  221         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
  222         char acb_list_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * acb_list; char acb_list_r_[PADR_(struct aiocb32 *const *)];
  223         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
  224         char sig_l_[PADL_(struct sigevent *)]; struct sigevent * sig; char sig_r_[PADR_(struct sigevent *)];
  225 };
  226 struct freebsd32_lutimes_args {
  227         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  228         char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
  229 };
  230 struct freebsd32_preadv_args {
  231         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  232         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  233         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
  234         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  235         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  236 };
  237 struct freebsd32_pwritev_args {
  238         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  239         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  240         char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
  241         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  242         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  243 };
  244 struct freebsd32_modstat_args {
  245         char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
  246         char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
  247 };
  248 struct freebsd32_kldstat_args {
  249         char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
  250         char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)];
  251 };
  252 struct freebsd32_aio_return_args {
  253         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  254 };
  255 struct freebsd32_aio_suspend_args {
  256         char aiocbp_l_[PADL_(struct aiocb32 *const *)]; struct aiocb32 *const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *const *)];
  257         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
  258         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
  259 };
  260 struct freebsd32_aio_cancel_args {
  261         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  262         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  263 };
  264 struct freebsd32_aio_error_args {
  265         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  266 };
  267 struct freebsd32_oaio_read_args {
  268         char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
  269 };
  270 struct freebsd32_oaio_write_args {
  271         char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
  272 };
  273 struct freebsd32_olio_listio_args {
  274         char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
  275         char acb_list_l_[PADL_(struct oaiocb32 *const *)]; struct oaiocb32 *const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 *const *)];
  276         char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
  277         char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
  278 };
  279 struct freebsd32_jail_args {
  280         char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
  281 };
  282 struct freebsd32_sigtimedwait_args {
  283         char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
  284         char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
  285         char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)];
  286 };
  287 struct freebsd32_sigwaitinfo_args {
  288         char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
  289         char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
  290 };
  291 struct freebsd32_aio_waitcomplete_args {
  292         char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)];
  293         char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
  294 };
  295 struct freebsd32_kevent_args {
  296         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  297         char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
  298         char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
  299         char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
  300         char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
  301         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
  302 };
  303 struct freebsd32_nmount_args {
  304         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  305         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
  306         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  307 };
  308 struct freebsd32_sendfile_args {
  309         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  310         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
  311         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  312         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  313         char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
  314         char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
  315         char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
  316         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  317 };
  318 struct freebsd32_ksem_init_args {
  319         char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
  320         char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
  321 };
  322 struct freebsd32_ksem_open_args {
  323         char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
  324         char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
  325         char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
  326         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
  327         char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
  328 };
  329 struct freebsd32_sigaction_args {
  330         char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
  331         char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
  332         char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
  333 };
  334 struct freebsd32_sigreturn_args {
  335         char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)];
  336 };
  337 struct freebsd32_getcontext_args {
  338         char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)];
  339 };
  340 struct freebsd32_setcontext_args {
  341         char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
  342 };
  343 struct freebsd32_swapcontext_args {
  344         char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)];
  345         char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
  346 };
  347 struct freebsd32_umtx_lock_args {
  348         char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
  349 };
  350 struct freebsd32_umtx_unlock_args {
  351         char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
  352 };
  353 struct freebsd32_ksem_timedwait_args {
  354         char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)];
  355         char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
  356 };
  357 struct freebsd32_thr_suspend_args {
  358         char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
  359 };
  360 struct freebsd32_umtx_op_args {
  361         char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
  362         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
  363         char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
  364         char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
  365         char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
  366 };
  367 struct freebsd32_thr_new_args {
  368         char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
  369         char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
  370 };
  371 struct freebsd32_kmq_open_args {
  372         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
  373         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  374         char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
  375         char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
  376 };
  377 struct freebsd32_kmq_setattr_args {
  378         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
  379         char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
  380         char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
  381 };
  382 struct freebsd32_kmq_timedreceive_args {
  383         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
  384         char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
  385         char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
  386         char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
  387         char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
  388 };
  389 struct freebsd32_kmq_timedsend_args {
  390         char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
  391         char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
  392         char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
  393         char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
  394         char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
  395 };
  396 struct freebsd32_aio_fsync_args {
  397         char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
  398         char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
  399 };
  400 #ifdef PAD64_REQUIRED
  401 struct freebsd32_pread_args {
  402         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  403         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
  404         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  405         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  406         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  407         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  408 };
  409 struct freebsd32_pwrite_args {
  410         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  411         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
  412         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  413         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  414         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  415         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  416 };
  417 struct freebsd32_mmap_args {
  418         char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
  419         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
  420         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
  421         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  422         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  423         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  424         char pos1_l_[PADL_(u_int32_t)]; u_int32_t pos1; char pos1_r_[PADR_(u_int32_t)];
  425         char pos2_l_[PADL_(u_int32_t)]; u_int32_t pos2; char pos2_r_[PADR_(u_int32_t)];
  426 };
  427 struct freebsd32_lseek_args {
  428         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  429         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  430         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  431         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  432         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
  433 };
  434 struct freebsd32_truncate_args {
  435         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  436         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  437         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  438         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  439 };
  440 struct freebsd32_ftruncate_args {
  441         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  442         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  443         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  444         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  445 };
  446 #else
  447 struct freebsd32_pread_args {
  448         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  449         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
  450         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  451         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  452         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  453 };
  454 struct freebsd32_pwrite_args {
  455         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  456         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
  457         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  458         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  459         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  460 };
  461 struct freebsd32_mmap_args {
  462         char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
  463         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
  464         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
  465         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  466         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  467         char pos1_l_[PADL_(u_int32_t)]; u_int32_t pos1; char pos1_r_[PADR_(u_int32_t)];
  468         char pos2_l_[PADL_(u_int32_t)]; u_int32_t pos2; char pos2_r_[PADR_(u_int32_t)];
  469 };
  470 struct freebsd32_lseek_args {
  471         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  472         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  473         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  474         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
  475 };
  476 struct freebsd32_truncate_args {
  477         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  478         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  479         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  480 };
  481 struct freebsd32_ftruncate_args {
  482         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  483         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  484         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  485 };
  486 #endif
  487 #ifdef PAD64_REQUIRED
  488 struct freebsd32_cpuset_setid_args {
  489         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
  490         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  491         char id1_l_[PADL_(u_int32_t)]; u_int32_t id1; char id1_r_[PADR_(u_int32_t)];
  492         char id2_l_[PADL_(u_int32_t)]; u_int32_t id2; char id2_r_[PADR_(u_int32_t)];
  493         char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
  494 };
  495 #else
  496 struct freebsd32_cpuset_setid_args {
  497         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
  498         char id1_l_[PADL_(u_int32_t)]; u_int32_t id1; char id1_r_[PADR_(u_int32_t)];
  499         char id2_l_[PADL_(u_int32_t)]; u_int32_t id2; char id2_r_[PADR_(u_int32_t)];
  500         char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
  501 };
  502 #endif
  503 struct freebsd32_cpuset_getid_args {
  504         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
  505         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
  506         char id1_l_[PADL_(u_int32_t)]; u_int32_t id1; char id1_r_[PADR_(u_int32_t)];
  507         char id2_l_[PADL_(u_int32_t)]; u_int32_t id2; char id2_r_[PADR_(u_int32_t)];
  508         char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
  509 };
  510 struct freebsd32_cpuset_getaffinity_args {
  511         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
  512         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
  513         char id1_l_[PADL_(u_int32_t)]; u_int32_t id1; char id1_r_[PADR_(u_int32_t)];
  514         char id2_l_[PADL_(u_int32_t)]; u_int32_t id2; char id2_r_[PADR_(u_int32_t)];
  515         char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
  516         char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
  517 };
  518 struct freebsd32_cpuset_setaffinity_args {
  519         char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
  520         char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
  521         char id1_l_[PADL_(u_int32_t)]; u_int32_t id1; char id1_r_[PADR_(u_int32_t)];
  522         char id2_l_[PADL_(u_int32_t)]; u_int32_t id2; char id2_r_[PADR_(u_int32_t)];
  523         char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
  524         char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
  525 };
  526 struct freebsd32_fexecve_args {
  527         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  528         char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
  529         char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
  530 };
  531 struct freebsd32_fstatat_args {
  532         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  533         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  534         char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)];
  535         char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
  536 };
  537 struct freebsd32_futimesat_args {
  538         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  539         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  540         char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
  541 };
  542 struct freebsd32_jail_get_args {
  543         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  544         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
  545         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  546 };
  547 struct freebsd32_jail_set_args {
  548         char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
  549         char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
  550         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  551 };
  552 struct freebsd32_semctl_args {
  553         char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
  554         char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
  555         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  556         char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
  557 };
  558 struct freebsd32_msgctl_args {
  559         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
  560         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  561         char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
  562 };
  563 struct freebsd32_shmctl_args {
  564         char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
  565         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  566         char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
  567 };
  568 struct freebsd32_pselect_args {
  569         char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
  570         char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
  571         char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
  572         char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
  573         char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
  574         char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
  575 };
  576 struct freebsd32_posix_fallocate_args {
  577         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  578         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
  579         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
  580         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
  581         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
  582 };
  583 struct freebsd32_posix_fadvise_args {
  584         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  585         char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
  586         char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
  587         char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
  588         char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
  589         char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
  590 };
  591 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
  592 #define PAD64_REQUIRED
  593 #endif
  594 int     freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
  595 int     freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
  596 int     freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
  597 int     freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
  598 int     freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
  599 int     freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
  600 int     freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
  601 int     freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
  602 int     freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
  603 int     freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
  604 int     freebsd32_select(struct thread *, struct freebsd32_select_args *);
  605 int     freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
  606 int     freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
  607 int     freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
  608 int     freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
  609 int     freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
  610 int     freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
  611 int     freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
  612 int     freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
  613 int     freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
  614 int     freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
  615 int     freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
  616 int     freebsd32_stat(struct thread *, struct freebsd32_stat_args *);
  617 int     freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
  618 int     freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *);
  619 int     freebsd32_getdirentries(struct thread *, struct freebsd32_getdirentries_args *);
  620 int     freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *);
  621 int     freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
  622 int     freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
  623 int     freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
  624 int     freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
  625 int     freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
  626 int     freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
  627 int     freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
  628 int     freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
  629 int     freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
  630 int     freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
  631 int     freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
  632 int     freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
  633 int     freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
  634 int     freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
  635 int     freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
  636 int     freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
  637 int     freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
  638 int     freebsd32_aio_cancel(struct thread *, struct freebsd32_aio_cancel_args *);
  639 int     freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
  640 int     freebsd32_oaio_read(struct thread *, struct freebsd32_oaio_read_args *);
  641 int     freebsd32_oaio_write(struct thread *, struct freebsd32_oaio_write_args *);
  642 int     freebsd32_olio_listio(struct thread *, struct freebsd32_olio_listio_args *);
  643 int     freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
  644 int     freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
  645 int     freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
  646 int     freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
  647 int     freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
  648 int     freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
  649 int     freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
  650 int     freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
  651 int     freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
  652 int     freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
  653 int     freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
  654 int     freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
  655 int     freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
  656 int     freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
  657 int     freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *);
  658 int     freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *);
  659 int     freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
  660 int     freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
  661 int     freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *);
  662 int     freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
  663 int     freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
  664 int     freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
  665 int     freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
  666 int     freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
  667 int     freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
  668 #ifdef PAD64_REQUIRED
  669 int     freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
  670 int     freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
  671 int     freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
  672 int     freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
  673 int     freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
  674 int     freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
  675 #else
  676 int     freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
  677 int     freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
  678 int     freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
  679 int     freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
  680 int     freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
  681 int     freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
  682 #endif
  683 #ifdef PAD64_REQUIRED
  684 int     freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
  685 #else
  686 int     freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
  687 #endif
  688 int     freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
  689 int     freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
  690 int     freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
  691 int     freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
  692 int     freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
  693 int     freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
  694 int     freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
  695 int     freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
  696 int     freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
  697 int     freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
  698 int     freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
  699 int     freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
  700 int     freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
  701 int     freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
  702 
  703 #ifdef COMPAT_43
  704 
  705 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
  706 #define PAD64_REQUIRED
  707 #endif
  708 struct ofreebsd32_sigaction_args {
  709         char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
  710         char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
  711         char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
  712 };
  713 struct ofreebsd32_sigprocmask_args {
  714         char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
  715         char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
  716 };
  717 struct ofreebsd32_sigvec_args {
  718         char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
  719         char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
  720         char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
  721 };
  722 struct ofreebsd32_sigblock_args {
  723         char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
  724 };
  725 struct ofreebsd32_sigsetmask_args {
  726         char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
  727 };
  728 struct ofreebsd32_sigsuspend_args {
  729         char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
  730 };
  731 struct ofreebsd32_sigstack_args {
  732         char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
  733         char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
  734 };
  735 #ifdef PAD64_REQUIRED
  736 #else
  737 #endif
  738 #ifdef PAD64_REQUIRED
  739 #else
  740 #endif
  741 int     ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
  742 int     ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
  743 int     ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
  744 int     ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
  745 int     ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
  746 int     ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
  747 int     ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
  748 int     ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
  749 
  750 #endif /* COMPAT_43 */
  751 
  752 
  753 #ifdef COMPAT_FREEBSD4
  754 
  755 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
  756 #define PAD64_REQUIRED
  757 #endif
  758 struct freebsd4_freebsd32_getfsstat_args {
  759         char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
  760         char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
  761         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  762 };
  763 struct freebsd4_freebsd32_statfs_args {
  764         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  765         char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
  766 };
  767 struct freebsd4_freebsd32_fstatfs_args {
  768         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  769         char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
  770 };
  771 struct freebsd4_freebsd32_fhstatfs_args {
  772         char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
  773         char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
  774 };
  775 struct freebsd4_freebsd32_sendfile_args {
  776         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  777         char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
  778         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  779         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  780         char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
  781         char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
  782         char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
  783         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  784 };
  785 struct freebsd4_freebsd32_sigaction_args {
  786         char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
  787         char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
  788         char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
  789 };
  790 struct freebsd4_freebsd32_sigreturn_args {
  791         char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
  792 };
  793 #ifdef PAD64_REQUIRED
  794 #else
  795 #endif
  796 #ifdef PAD64_REQUIRED
  797 #else
  798 #endif
  799 int     freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
  800 int     freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
  801 int     freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
  802 int     freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
  803 int     freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
  804 int     freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
  805 int     freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
  806 
  807 #endif /* COMPAT_FREEBSD4 */
  808 
  809 
  810 #ifdef COMPAT_FREEBSD6
  811 
  812 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
  813 #define PAD64_REQUIRED
  814 #endif
  815 struct freebsd6_freebsd32_pread_args {
  816         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  817         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
  818         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  819         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  820         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  821         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  822 };
  823 struct freebsd6_freebsd32_pwrite_args {
  824         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  825         char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
  826         char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
  827         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  828         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  829         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  830 };
  831 struct freebsd6_freebsd32_mmap_args {
  832         char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
  833         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
  834         char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
  835         char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
  836         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  837         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  838         char pos1_l_[PADL_(u_int32_t)]; u_int32_t pos1; char pos1_r_[PADR_(u_int32_t)];
  839         char pos2_l_[PADL_(u_int32_t)]; u_int32_t pos2; char pos2_r_[PADR_(u_int32_t)];
  840 };
  841 struct freebsd6_freebsd32_lseek_args {
  842         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  843         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  844         char offset1_l_[PADL_(u_int32_t)]; u_int32_t offset1; char offset1_r_[PADR_(u_int32_t)];
  845         char offset2_l_[PADL_(u_int32_t)]; u_int32_t offset2; char offset2_r_[PADR_(u_int32_t)];
  846         char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
  847 };
  848 struct freebsd6_freebsd32_truncate_args {
  849         char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
  850         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  851         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  852         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  853 };
  854 struct freebsd6_freebsd32_ftruncate_args {
  855         char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
  856         char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
  857         char length1_l_[PADL_(u_int32_t)]; u_int32_t length1; char length1_r_[PADR_(u_int32_t)];
  858         char length2_l_[PADL_(u_int32_t)]; u_int32_t length2; char length2_r_[PADR_(u_int32_t)];
  859 };
  860 #ifdef PAD64_REQUIRED
  861 #else
  862 #endif
  863 #ifdef PAD64_REQUIRED
  864 #else
  865 #endif
  866 int     freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
  867 int     freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
  868 int     freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
  869 int     freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
  870 int     freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
  871 int     freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
  872 
  873 #endif /* COMPAT_FREEBSD6 */
  874 
  875 
  876 #ifdef COMPAT_FREEBSD7
  877 
  878 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
  879 #define PAD64_REQUIRED
  880 #endif
  881 struct freebsd7_freebsd32_semctl_args {
  882         char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
  883         char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
  884         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  885         char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
  886 };
  887 struct freebsd7_freebsd32_msgctl_args {
  888         char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
  889         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  890         char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)];
  891 };
  892 struct freebsd7_freebsd32_shmctl_args {
  893         char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
  894         char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
  895         char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)];
  896 };
  897 #ifdef PAD64_REQUIRED
  898 #else
  899 #endif
  900 #ifdef PAD64_REQUIRED
  901 #else
  902 #endif
  903 int     freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *);
  904 int     freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
  905 int     freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
  906 
  907 #endif /* COMPAT_FREEBSD7 */
  908 
  909 #define FREEBSD32_SYS_AUE_freebsd32_wait4       AUE_WAIT4
  910 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat  AUE_GETFSSTAT
  911 #define FREEBSD32_SYS_AUE_freebsd32_recvmsg     AUE_RECVMSG
  912 #define FREEBSD32_SYS_AUE_freebsd32_sendmsg     AUE_SENDMSG
  913 #define FREEBSD32_SYS_AUE_freebsd32_recvfrom    AUE_RECVFROM
  914 #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction  AUE_SIGACTION
  915 #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask        AUE_SIGPROCMASK
  916 #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING
  917 #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK
  918 #define FREEBSD32_SYS_AUE_freebsd32_ioctl       AUE_NULL
  919 #define FREEBSD32_SYS_AUE_freebsd32_execve      AUE_EXECVE
  920 #define FREEBSD32_SYS_AUE_freebsd32_mprotect    AUE_MPROTECT
  921 #define FREEBSD32_SYS_AUE_freebsd32_setitimer   AUE_SETITIMER
  922 #define FREEBSD32_SYS_AUE_freebsd32_getitimer   AUE_GETITIMER
  923 #define FREEBSD32_SYS_AUE_freebsd32_select      AUE_SELECT
  924 #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec     AUE_O_SIGVEC
  925 #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock   AUE_O_SIGBLOCK
  926 #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK
  927 #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND
  928 #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack   AUE_O_SIGSTACK
  929 #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday        AUE_GETTIMEOFDAY
  930 #define FREEBSD32_SYS_AUE_freebsd32_getrusage   AUE_GETRUSAGE
  931 #define FREEBSD32_SYS_AUE_freebsd32_readv       AUE_READV
  932 #define FREEBSD32_SYS_AUE_freebsd32_writev      AUE_WRITEV
  933 #define FREEBSD32_SYS_AUE_freebsd32_settimeofday        AUE_SETTIMEOFDAY
  934 #define FREEBSD32_SYS_AUE_freebsd32_utimes      AUE_UTIMES
  935 #define FREEBSD32_SYS_AUE_freebsd32_adjtime     AUE_ADJTIME
  936 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs     AUE_STATFS
  937 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs    AUE_FSTATFS
  938 #define FREEBSD32_SYS_AUE_freebsd32_sysarch     AUE_SYSARCH
  939 #define FREEBSD32_SYS_AUE_freebsd32_semsys      AUE_SEMSYS
  940 #define FREEBSD32_SYS_AUE_freebsd32_msgsys      AUE_MSGSYS
  941 #define FREEBSD32_SYS_AUE_freebsd32_shmsys      AUE_SHMSYS
  942 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread      AUE_PREAD
  943 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite     AUE_PWRITE
  944 #define FREEBSD32_SYS_AUE_freebsd32_stat        AUE_STAT
  945 #define FREEBSD32_SYS_AUE_freebsd32_fstat       AUE_FSTAT
  946 #define FREEBSD32_SYS_AUE_freebsd32_lstat       AUE_LSTAT
  947 #define FREEBSD32_SYS_AUE_freebsd32_getdirentries       AUE_GETDIRENTRIES
  948 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap       AUE_MMAP
  949 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek      AUE_LSEEK
  950 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate   AUE_TRUNCATE
  951 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate  AUE_FTRUNCATE
  952 #define FREEBSD32_SYS_AUE_freebsd32_sysctl      AUE_SYSCTL
  953 #define FREEBSD32_SYS_AUE_freebsd32_futimes     AUE_FUTIMES
  954 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl     AUE_SEMCTL
  955 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl     AUE_MSGCTL
  956 #define FREEBSD32_SYS_AUE_freebsd32_msgsnd      AUE_MSGSND
  957 #define FREEBSD32_SYS_AUE_freebsd32_msgrcv      AUE_MSGRCV
  958 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl     AUE_SHMCTL
  959 #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime       AUE_NULL
  960 #define FREEBSD32_SYS_AUE_freebsd32_clock_settime       AUE_CLOCK_SETTIME
  961 #define FREEBSD32_SYS_AUE_freebsd32_clock_getres        AUE_NULL
  962 #define FREEBSD32_SYS_AUE_freebsd32_nanosleep   AUE_NULL
  963 #define FREEBSD32_SYS_AUE_freebsd32_aio_read    AUE_NULL
  964 #define FREEBSD32_SYS_AUE_freebsd32_aio_write   AUE_NULL
  965 #define FREEBSD32_SYS_AUE_freebsd32_lio_listio  AUE_NULL
  966 #define FREEBSD32_SYS_AUE_freebsd32_lutimes     AUE_LUTIMES
  967 #define FREEBSD32_SYS_AUE_freebsd32_preadv      AUE_PREADV
  968 #define FREEBSD32_SYS_AUE_freebsd32_pwritev     AUE_PWRITEV
  969 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs   AUE_FHSTATFS
  970 #define FREEBSD32_SYS_AUE_freebsd32_modstat     AUE_NULL
  971 #define FREEBSD32_SYS_AUE_freebsd32_kldstat     AUE_NULL
  972 #define FREEBSD32_SYS_AUE_freebsd32_aio_return  AUE_NULL
  973 #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_NULL
  974 #define FREEBSD32_SYS_AUE_freebsd32_aio_cancel  AUE_NULL
  975 #define FREEBSD32_SYS_AUE_freebsd32_aio_error   AUE_NULL
  976 #define FREEBSD32_SYS_AUE_freebsd32_oaio_read   AUE_NULL
  977 #define FREEBSD32_SYS_AUE_freebsd32_oaio_write  AUE_NULL
  978 #define FREEBSD32_SYS_AUE_freebsd32_olio_listio AUE_NULL
  979 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile   AUE_SENDFILE
  980 #define FREEBSD32_SYS_AUE_freebsd32_jail        AUE_JAIL
  981 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction  AUE_SIGACTION
  982 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn  AUE_SIGRETURN
  983 #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait        AUE_SIGWAIT
  984 #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL
  985 #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete    AUE_NULL
  986 #define FREEBSD32_SYS_AUE_freebsd32_kevent      AUE_NULL
  987 #define FREEBSD32_SYS_AUE_freebsd32_nmount      AUE_NMOUNT
  988 #define FREEBSD32_SYS_AUE_freebsd32_sendfile    AUE_SENDFILE
  989 #define FREEBSD32_SYS_AUE_freebsd32_ksem_init   AUE_NULL
  990 #define FREEBSD32_SYS_AUE_freebsd32_ksem_open   AUE_NULL
  991 #define FREEBSD32_SYS_AUE_freebsd32_sigaction   AUE_SIGACTION
  992 #define FREEBSD32_SYS_AUE_freebsd32_sigreturn   AUE_SIGRETURN
  993 #define FREEBSD32_SYS_AUE_freebsd32_getcontext  AUE_NULL
  994 #define FREEBSD32_SYS_AUE_freebsd32_setcontext  AUE_NULL
  995 #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL
  996 #define FREEBSD32_SYS_AUE_freebsd32_umtx_lock   AUE_NULL
  997 #define FREEBSD32_SYS_AUE_freebsd32_umtx_unlock AUE_NULL
  998 #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait      AUE_NULL
  999 #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL
 1000 #define FREEBSD32_SYS_AUE_freebsd32_umtx_op     AUE_NULL
 1001 #define FREEBSD32_SYS_AUE_freebsd32_thr_new     AUE_NULL
 1002 #define FREEBSD32_SYS_AUE_freebsd32_kmq_open    AUE_NULL
 1003 #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_NULL
 1004 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive    AUE_NULL
 1005 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend       AUE_NULL
 1006 #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync   AUE_NULL
 1007 #define FREEBSD32_SYS_AUE_freebsd32_pread       AUE_PREAD
 1008 #define FREEBSD32_SYS_AUE_freebsd32_pwrite      AUE_PWRITE
 1009 #define FREEBSD32_SYS_AUE_freebsd32_mmap        AUE_MMAP
 1010 #define FREEBSD32_SYS_AUE_freebsd32_lseek       AUE_LSEEK
 1011 #define FREEBSD32_SYS_AUE_freebsd32_truncate    AUE_TRUNCATE
 1012 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate   AUE_FTRUNCATE
 1013 #define FREEBSD32_SYS_AUE_freebsd32_pread       AUE_PREAD
 1014 #define FREEBSD32_SYS_AUE_freebsd32_pwrite      AUE_PWRITE
 1015 #define FREEBSD32_SYS_AUE_freebsd32_mmap        AUE_MMAP
 1016 #define FREEBSD32_SYS_AUE_freebsd32_lseek       AUE_LSEEK
 1017 #define FREEBSD32_SYS_AUE_freebsd32_truncate    AUE_TRUNCATE
 1018 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate   AUE_FTRUNCATE
 1019 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid        AUE_NULL
 1020 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid        AUE_NULL
 1021 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid        AUE_NULL
 1022 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity  AUE_NULL
 1023 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity  AUE_NULL
 1024 #define FREEBSD32_SYS_AUE_freebsd32_fexecve     AUE_FEXECVE
 1025 #define FREEBSD32_SYS_AUE_freebsd32_fstatat     AUE_FSTATAT
 1026 #define FREEBSD32_SYS_AUE_freebsd32_futimesat   AUE_FUTIMESAT
 1027 #define FREEBSD32_SYS_AUE_freebsd32_jail_get    AUE_NULL
 1028 #define FREEBSD32_SYS_AUE_freebsd32_jail_set    AUE_NULL
 1029 #define FREEBSD32_SYS_AUE_freebsd32_semctl      AUE_SEMCTL
 1030 #define FREEBSD32_SYS_AUE_freebsd32_msgctl      AUE_MSGCTL
 1031 #define FREEBSD32_SYS_AUE_freebsd32_shmctl      AUE_SHMCTL
 1032 #define FREEBSD32_SYS_AUE_freebsd32_pselect     AUE_SELECT
 1033 #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate     AUE_NULL
 1034 #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise       AUE_NULL
 1035 
 1036 #undef PAD_
 1037 #undef PADL_
 1038 #undef PADR_
 1039 
 1040 #endif /* !_FREEBSD32_SYSPROTO_H_ */

Cache object: afe721082d41658cb9ad2d5680c1ea6d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.