xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision 74d9b5a551b7dc6f354bf8295c71e62eaad62814)
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 183361 2008-09-25 20:07:42Z jhb
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 struct freebsd32_wait4_args {
36 	char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
37 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
38 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
39 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
40 };
41 struct freebsd32_recvmsg_args {
42 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
43 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
44 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
45 };
46 struct freebsd32_sendmsg_args {
47 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
48 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
49 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
50 };
51 struct freebsd32_recvfrom_args {
52 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
53 	char buf_l_[PADL_(u_int32_t)]; u_int32_t buf; char buf_r_[PADR_(u_int32_t)];
54 	char len_l_[PADL_(u_int32_t)]; u_int32_t len; char len_r_[PADR_(u_int32_t)];
55 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
56 	char from_l_[PADL_(u_int32_t)]; u_int32_t from; char from_r_[PADR_(u_int32_t)];
57 	char fromlenaddr_l_[PADL_(u_int32_t)]; u_int32_t fromlenaddr; char fromlenaddr_r_[PADR_(u_int32_t)];
58 };
59 struct ofreebsd32_sigpending_args {
60 	register_t dummy;
61 };
62 struct freebsd32_sigaltstack_args {
63 	char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
64 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
65 };
66 struct freebsd32_ioctl_args {
67 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
68 	char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)];
69 	char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)];
70 };
71 struct freebsd32_execve_args {
72 	char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
73 	char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
74 	char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
75 };
76 struct freebsd32_setitimer_args {
77 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
78 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
79 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
80 };
81 struct freebsd32_getitimer_args {
82 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
83 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
84 };
85 struct freebsd32_select_args {
86 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
87 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
88 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
89 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
90 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
91 };
92 struct freebsd32_gettimeofday_args {
93 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
94 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
95 };
96 struct freebsd32_getrusage_args {
97 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
98 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
99 };
100 struct freebsd32_readv_args {
101 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
102 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
103 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
104 };
105 struct freebsd32_writev_args {
106 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
107 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
108 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
109 };
110 struct freebsd32_settimeofday_args {
111 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
112 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
113 };
114 struct freebsd32_utimes_args {
115 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
116 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
117 };
118 struct freebsd32_adjtime_args {
119 	char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
120 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
121 };
122 struct freebsd32_semsys_args {
123 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
124 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
125 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
126 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
127 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
128 };
129 struct freebsd32_msgsys_args {
130 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
131 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
132 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
133 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
134 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
135 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
136 };
137 struct freebsd32_shmsys_args {
138 	char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
139 	char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
140 	char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
141 	char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
142 };
143 struct freebsd32_stat_args {
144 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
145 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
146 };
147 struct freebsd32_fstat_args {
148 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
149 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
150 };
151 struct freebsd32_lstat_args {
152 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
153 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
154 };
155 struct freebsd32_sysctl_args {
156 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
157 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
158 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
159 	char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)];
160 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
161 	char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)];
162 };
163 struct freebsd32_futimes_args {
164 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
165 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
166 };
167 struct freebsd32_semctl_args {
168 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
169 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
170 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
171 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
172 };
173 struct freebsd32_msgctl_args {
174 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
175 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
176 	char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
177 };
178 struct freebsd32_msgsnd_args {
179 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
180 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
181 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
182 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
183 };
184 struct freebsd32_msgrcv_args {
185 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
186 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
187 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
188 	char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
189 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
190 };
191 struct freebsd32_shmctl_args {
192 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
193 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
194 	char buf_l_[PADL_(struct shmid_ds *)]; struct shmid_ds * buf; char buf_r_[PADR_(struct shmid_ds *)];
195 };
196 struct freebsd32_clock_gettime_args {
197 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
198 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
199 };
200 struct freebsd32_clock_settime_args {
201 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
202 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
203 };
204 struct freebsd32_clock_getres_args {
205 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
206 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
207 };
208 struct freebsd32_nanosleep_args {
209 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
210 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
211 };
212 struct freebsd32_lutimes_args {
213 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
214 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
215 };
216 struct freebsd32_preadv_args {
217 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
218 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
219 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
220 	char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
221 };
222 struct freebsd32_pwritev_args {
223 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
224 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
225 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
226 	char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
227 };
228 struct freebsd32_modstat_args {
229 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
230 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
231 };
232 struct freebsd32_sigtimedwait_args {
233 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
234 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
235 	char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)];
236 };
237 struct freebsd32_sigwaitinfo_args {
238 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
239 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
240 };
241 struct freebsd32_kevent_args {
242 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
243 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
244 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
245 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
246 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
247 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
248 };
249 struct freebsd32_nmount_args {
250 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
251 	char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
252 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
253 };
254 struct freebsd32_sendfile_args {
255 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
256 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
257 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
258 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
259 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
260 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
261 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
262 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
263 };
264 struct freebsd32_sigaction_args {
265 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
266 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
267 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
268 };
269 struct freebsd32_sigreturn_args {
270 	char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)];
271 };
272 struct freebsd32_getcontext_args {
273 	char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)];
274 };
275 struct freebsd32_setcontext_args {
276 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
277 };
278 struct freebsd32_swapcontext_args {
279 	char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)];
280 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
281 };
282 struct freebsd32_umtx_lock_args {
283 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
284 };
285 struct freebsd32_umtx_unlock_args {
286 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
287 };
288 struct freebsd32_thr_suspend_args {
289 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
290 };
291 struct freebsd32_umtx_op_args {
292 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
293 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
294 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
295 	char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
296 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
297 };
298 struct freebsd32_thr_new_args {
299 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
300 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
301 };
302 struct freebsd32_pread_args {
303 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
304 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
305 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
306 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
307 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
308 };
309 struct freebsd32_pwrite_args {
310 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
311 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
312 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
313 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
314 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
315 };
316 struct freebsd32_mmap_args {
317 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
318 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
319 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
320 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
321 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
322 	char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)];
323 	char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)];
324 };
325 struct freebsd32_lseek_args {
326 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
327 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
328 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
329 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
330 };
331 struct freebsd32_truncate_args {
332 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
333 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
334 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
335 };
336 struct freebsd32_ftruncate_args {
337 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
338 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
339 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
340 };
341 struct freebsd32_cpuset_setid_args {
342 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
343 	char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)];
344 	char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)];
345 	char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
346 };
347 struct freebsd32_cpuset_getid_args {
348 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
349 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
350 	char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)];
351 	char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)];
352 	char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
353 };
354 struct freebsd32_cpuset_getaffinity_args {
355 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
356 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
357 	char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)];
358 	char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)];
359 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
360 	char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
361 };
362 struct freebsd32_cpuset_setaffinity_args {
363 	char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
364 	char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
365 	char idlo_l_[PADL_(uint32_t)]; uint32_t idlo; char idlo_r_[PADR_(uint32_t)];
366 	char idhi_l_[PADL_(uint32_t)]; uint32_t idhi; char idhi_r_[PADR_(uint32_t)];
367 	char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
368 	char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
369 };
370 struct freebsd32_fexecve_args {
371 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
372 	char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
373 	char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
374 };
375 struct freebsd32_fstatat_args {
376 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
377 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
378 	char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)];
379 	char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
380 };
381 struct freebsd32_futimesat_args {
382 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
383 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
384 	char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
385 };
386 int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
387 int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
388 int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
389 int	freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
390 int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
391 int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
392 int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
393 int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
394 int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
395 int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
396 int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
397 int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
398 int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
399 int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
400 int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
401 int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
402 int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
403 int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
404 int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
405 int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
406 int	freebsd32_stat(struct thread *, struct freebsd32_stat_args *);
407 int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
408 int	freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *);
409 int	freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *);
410 int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
411 int	freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
412 int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
413 int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
414 int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
415 int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
416 int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
417 int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
418 int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
419 int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
420 int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
421 int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
422 int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
423 int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
424 int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
425 int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
426 int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
427 int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
428 int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
429 int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
430 int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
431 int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
432 int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
433 int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
434 int	freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *);
435 int	freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *);
436 int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
437 int	freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *);
438 int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
439 int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
440 int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
441 int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
442 int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
443 int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
444 int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
445 int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
446 int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
447 int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
448 int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
449 int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
450 int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
451 int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
452 
453 #ifdef COMPAT_43
454 
455 struct ofreebsd32_sigaction_args {
456 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
457 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
458 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
459 };
460 struct ofreebsd32_sigprocmask_args {
461 	char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
462 	char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
463 };
464 struct ofreebsd32_sigvec_args {
465 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
466 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
467 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
468 };
469 struct ofreebsd32_sigblock_args {
470 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
471 };
472 struct ofreebsd32_sigsetmask_args {
473 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
474 };
475 struct ofreebsd32_sigsuspend_args {
476 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
477 };
478 struct ofreebsd32_sigstack_args {
479 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
480 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
481 };
482 int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
483 int	ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
484 int	ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
485 int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
486 int	ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
487 int	ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
488 int	ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
489 int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
490 
491 #endif /* COMPAT_43 */
492 
493 
494 #ifdef COMPAT_FREEBSD4
495 
496 struct freebsd4_freebsd32_getfsstat_args {
497 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
498 	char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
499 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
500 };
501 struct freebsd4_freebsd32_statfs_args {
502 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
503 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
504 };
505 struct freebsd4_freebsd32_fstatfs_args {
506 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
507 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
508 };
509 struct freebsd4_freebsd32_fhstatfs_args {
510 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
511 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
512 };
513 struct freebsd4_freebsd32_sendfile_args {
514 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
515 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
516 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
517 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
518 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
519 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
520 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
521 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
522 };
523 struct freebsd4_freebsd32_sigaction_args {
524 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
525 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
526 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
527 };
528 struct freebsd4_freebsd32_sigreturn_args {
529 	char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
530 };
531 int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
532 int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
533 int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
534 int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
535 int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
536 int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
537 int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
538 
539 #endif /* COMPAT_FREEBSD4 */
540 
541 
542 #ifdef COMPAT_FREEBSD6
543 
544 struct freebsd6_freebsd32_pread_args {
545 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
546 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
547 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
548 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
549 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
550 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
551 };
552 struct freebsd6_freebsd32_pwrite_args {
553 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
554 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
555 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
556 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
557 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
558 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
559 };
560 struct freebsd6_freebsd32_mmap_args {
561 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
562 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
563 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
564 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
565 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
566 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
567 	char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)];
568 	char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)];
569 };
570 struct freebsd6_freebsd32_lseek_args {
571 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
572 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
573 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
574 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
575 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
576 };
577 struct freebsd6_freebsd32_truncate_args {
578 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
579 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
580 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
581 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
582 };
583 struct freebsd6_freebsd32_ftruncate_args {
584 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
585 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
586 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
587 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
588 };
589 int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
590 int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
591 int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
592 int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
593 int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
594 int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
595 
596 #endif /* COMPAT_FREEBSD6 */
597 
598 #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
599 #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
600 #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
601 #define	FREEBSD32_SYS_AUE_freebsd32_recvfrom	AUE_RECVFROM
602 #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
603 #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_NULL
604 #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
605 #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
606 #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
607 #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
608 #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
609 #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
610 #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
611 #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
612 #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
613 #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
614 #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
615 #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
616 #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
617 #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
618 #define	FREEBSD32_SYS_AUE_freebsd32_stat	AUE_STAT
619 #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
620 #define	FREEBSD32_SYS_AUE_freebsd32_lstat	AUE_LSTAT
621 #define	FREEBSD32_SYS_AUE_freebsd32_sysctl	AUE_SYSCTL
622 #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
623 #define	FREEBSD32_SYS_AUE_freebsd32_semctl	AUE_SEMCTL
624 #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
625 #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
626 #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
627 #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
628 #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
629 #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
630 #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
631 #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
632 #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
633 #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
634 #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
635 #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
636 #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
637 #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
638 #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_NULL
639 #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
640 #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
641 #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
642 #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
643 #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
644 #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
645 #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
646 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_lock	AUE_NULL
647 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_unlock	AUE_NULL
648 #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
649 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_op	AUE_NULL
650 #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_NULL
651 #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
652 #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
653 #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
654 #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
655 #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
656 #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
657 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
658 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
659 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
660 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
661 #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
662 #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
663 #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
664 
665 #undef PAD_
666 #undef PADL_
667 #undef PADR_
668 
669 #endif /* !_FREEBSD32_SYSPROTO_H_ */
670