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