xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision 69e6d7b75e96c406d072cb83ffc9b26fbf1a86fb)
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $FreeBSD$
6  * created from FreeBSD
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 struct freebsd32_wait6_args {
593 	char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
594 	char id_l_[PADL_(int)]; int id; char id_r_[PADR_(int)];
595 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
596 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
597 	char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
598 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
599 };
600 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
601 #define PAD64_REQUIRED
602 #endif
603 int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
604 int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
605 int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
606 int	freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
607 int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
608 int	freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
609 int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
610 int	freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
611 int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
612 int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
613 int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
614 int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
615 int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
616 int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
617 int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
618 int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
619 int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
620 int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
621 int	freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
622 int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
623 int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
624 int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
625 int	freebsd32_stat(struct thread *, struct freebsd32_stat_args *);
626 int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
627 int	freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *);
628 int	freebsd32_getdirentries(struct thread *, struct freebsd32_getdirentries_args *);
629 int	freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *);
630 int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
631 int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
632 int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
633 int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
634 int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
635 int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
636 int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
637 int	freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
638 int	freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
639 int	freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
640 int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
641 int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
642 int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
643 int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
644 int	freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
645 int	freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
646 int	freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
647 int	freebsd32_aio_cancel(struct thread *, struct freebsd32_aio_cancel_args *);
648 int	freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
649 int	freebsd32_oaio_read(struct thread *, struct freebsd32_oaio_read_args *);
650 int	freebsd32_oaio_write(struct thread *, struct freebsd32_oaio_write_args *);
651 int	freebsd32_olio_listio(struct thread *, struct freebsd32_olio_listio_args *);
652 int	freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
653 int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
654 int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
655 int	freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
656 int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
657 int	freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
658 int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
659 int	freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
660 int	freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
661 int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
662 int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
663 int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
664 int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
665 int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
666 int	freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *);
667 int	freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *);
668 int	freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
669 int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
670 int	freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *);
671 int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
672 int	freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
673 int	freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
674 int	freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
675 int	freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
676 int	freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
677 #ifdef PAD64_REQUIRED
678 int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
679 int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
680 int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
681 int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
682 int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
683 int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
684 #else
685 int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
686 int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
687 int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
688 int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
689 int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
690 int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
691 #endif
692 #ifdef PAD64_REQUIRED
693 int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
694 #else
695 int	freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
696 #endif
697 int	freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
698 int	freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
699 int	freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
700 int	freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
701 int	freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
702 int	freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
703 int	freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
704 int	freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
705 int	freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
706 int	freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
707 int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
708 int	freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
709 int	freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
710 int	freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
711 int	freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
712 
713 #ifdef COMPAT_43
714 
715 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
716 #define PAD64_REQUIRED
717 #endif
718 struct ofreebsd32_lseek_args {
719 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
720 	char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)];
721 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
722 };
723 struct ofreebsd32_stat_args {
724 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
725 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
726 };
727 struct ofreebsd32_lstat_args {
728 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
729 	char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
730 };
731 struct ofreebsd32_sigaction_args {
732 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
733 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
734 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
735 };
736 struct ofreebsd32_sigprocmask_args {
737 	char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
738 	char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
739 };
740 struct ofreebsd32_fstat_args {
741 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
742 	char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
743 };
744 struct ofreebsd32_getpagesize_args {
745 	char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)];
746 };
747 struct ofreebsd32_sigreturn_args {
748 	char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
749 };
750 struct ofreebsd32_sigvec_args {
751 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
752 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
753 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
754 };
755 struct ofreebsd32_sigblock_args {
756 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
757 };
758 struct ofreebsd32_sigsetmask_args {
759 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
760 };
761 struct ofreebsd32_sigsuspend_args {
762 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
763 };
764 struct ofreebsd32_sigstack_args {
765 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
766 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
767 };
768 struct ofreebsd32_getdirentries_args {
769 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
770 	char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
771 	char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
772 	char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)];
773 };
774 #ifdef PAD64_REQUIRED
775 #else
776 #endif
777 #ifdef PAD64_REQUIRED
778 #else
779 #endif
780 int	ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
781 int	ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
782 int	ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
783 int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
784 int	ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
785 int	ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
786 int	ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
787 int	ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *);
788 int	ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
789 int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
790 int	ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
791 int	ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
792 int	ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
793 int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
794 int	ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
795 
796 #endif /* COMPAT_43 */
797 
798 
799 #ifdef COMPAT_FREEBSD4
800 
801 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
802 #define PAD64_REQUIRED
803 #endif
804 struct freebsd4_freebsd32_getfsstat_args {
805 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
806 	char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
807 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
808 };
809 struct freebsd4_freebsd32_statfs_args {
810 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
811 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
812 };
813 struct freebsd4_freebsd32_fstatfs_args {
814 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
815 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
816 };
817 struct freebsd4_freebsd32_fhstatfs_args {
818 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
819 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
820 };
821 struct freebsd4_freebsd32_sendfile_args {
822 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
823 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
824 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
825 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
826 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
827 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
828 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
829 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
830 };
831 struct freebsd4_freebsd32_sigaction_args {
832 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
833 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
834 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
835 };
836 struct freebsd4_freebsd32_sigreturn_args {
837 	char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
838 };
839 #ifdef PAD64_REQUIRED
840 #else
841 #endif
842 #ifdef PAD64_REQUIRED
843 #else
844 #endif
845 int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
846 int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
847 int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
848 int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
849 int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
850 int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
851 int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
852 
853 #endif /* COMPAT_FREEBSD4 */
854 
855 
856 #ifdef COMPAT_FREEBSD6
857 
858 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
859 #define PAD64_REQUIRED
860 #endif
861 struct freebsd6_freebsd32_pread_args {
862 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
863 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
864 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
865 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
866 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
867 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
868 };
869 struct freebsd6_freebsd32_pwrite_args {
870 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
871 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
872 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
873 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
874 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
875 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
876 };
877 struct freebsd6_freebsd32_mmap_args {
878 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
879 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
880 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
881 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
882 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
883 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
884 	char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
885 	char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
886 };
887 struct freebsd6_freebsd32_lseek_args {
888 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
889 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
890 	char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
891 	char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
892 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
893 };
894 struct freebsd6_freebsd32_truncate_args {
895 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
896 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
897 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
898 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
899 };
900 struct freebsd6_freebsd32_ftruncate_args {
901 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
902 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
903 	char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
904 	char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
905 };
906 #ifdef PAD64_REQUIRED
907 #else
908 #endif
909 #ifdef PAD64_REQUIRED
910 #else
911 #endif
912 int	freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
913 int	freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
914 int	freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
915 int	freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
916 int	freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
917 int	freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
918 
919 #endif /* COMPAT_FREEBSD6 */
920 
921 
922 #ifdef COMPAT_FREEBSD7
923 
924 #if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
925 #define PAD64_REQUIRED
926 #endif
927 struct freebsd7_freebsd32_semctl_args {
928 	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
929 	char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
930 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
931 	char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
932 };
933 struct freebsd7_freebsd32_msgctl_args {
934 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
935 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
936 	char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)];
937 };
938 struct freebsd7_freebsd32_shmctl_args {
939 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
940 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
941 	char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)];
942 };
943 #ifdef PAD64_REQUIRED
944 #else
945 #endif
946 #ifdef PAD64_REQUIRED
947 #else
948 #endif
949 int	freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *);
950 int	freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
951 int	freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
952 
953 #endif /* COMPAT_FREEBSD7 */
954 
955 #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
956 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat	AUE_GETFSSTAT
957 #define	FREEBSD32_SYS_AUE_ofreebsd32_lseek	AUE_LSEEK
958 #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
959 #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
960 #define	FREEBSD32_SYS_AUE_freebsd32_recvfrom	AUE_RECVFROM
961 #define	FREEBSD32_SYS_AUE_ofreebsd32_stat	AUE_STAT
962 #define	FREEBSD32_SYS_AUE_ofreebsd32_lstat	AUE_LSTAT
963 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigaction	AUE_SIGACTION
964 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask	AUE_SIGPROCMASK
965 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigpending	AUE_SIGPENDING
966 #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
967 #define	FREEBSD32_SYS_AUE_freebsd32_ioctl	AUE_NULL
968 #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
969 #define	FREEBSD32_SYS_AUE_ofreebsd32_fstat	AUE_FSTAT
970 #define	FREEBSD32_SYS_AUE_ofreebsd32_getpagesize	AUE_NULL
971 #define	FREEBSD32_SYS_AUE_freebsd32_mprotect	AUE_MPROTECT
972 #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
973 #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
974 #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
975 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigreturn	AUE_NULL
976 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigvec	AUE_O_SIGVEC
977 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigblock	AUE_O_SIGBLOCK
978 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask	AUE_O_SIGSETMASK
979 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend	AUE_SIGSUSPEND
980 #define	FREEBSD32_SYS_AUE_ofreebsd32_sigstack	AUE_O_SIGSTACK
981 #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
982 #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
983 #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
984 #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
985 #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
986 #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
987 #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
988 #define	FREEBSD32_SYS_AUE_ofreebsd32_getdirentries	AUE_GETDIRENTRIES
989 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs	AUE_STATFS
990 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs	AUE_FSTATFS
991 #define	FREEBSD32_SYS_AUE_freebsd32_sysarch	AUE_SYSARCH
992 #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
993 #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
994 #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
995 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread	AUE_PREAD
996 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite	AUE_PWRITE
997 #define	FREEBSD32_SYS_AUE_freebsd32_stat	AUE_STAT
998 #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
999 #define	FREEBSD32_SYS_AUE_freebsd32_lstat	AUE_LSTAT
1000 #define	FREEBSD32_SYS_AUE_freebsd32_getdirentries	AUE_GETDIRENTRIES
1001 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap	AUE_MMAP
1002 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek	AUE_LSEEK
1003 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate	AUE_TRUNCATE
1004 #define	FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate	AUE_FTRUNCATE
1005 #define	FREEBSD32_SYS_AUE_freebsd32_sysctl	AUE_SYSCTL
1006 #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
1007 #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl	AUE_SEMCTL
1008 #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl	AUE_MSGCTL
1009 #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
1010 #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
1011 #define	FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl	AUE_SHMCTL
1012 #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
1013 #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
1014 #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
1015 #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
1016 #define	FREEBSD32_SYS_AUE_freebsd32_aio_read	AUE_NULL
1017 #define	FREEBSD32_SYS_AUE_freebsd32_aio_write	AUE_NULL
1018 #define	FREEBSD32_SYS_AUE_freebsd32_lio_listio	AUE_NULL
1019 #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
1020 #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
1021 #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
1022 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs	AUE_FHSTATFS
1023 #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
1024 #define	FREEBSD32_SYS_AUE_freebsd32_kldstat	AUE_NULL
1025 #define	FREEBSD32_SYS_AUE_freebsd32_aio_return	AUE_NULL
1026 #define	FREEBSD32_SYS_AUE_freebsd32_aio_suspend	AUE_NULL
1027 #define	FREEBSD32_SYS_AUE_freebsd32_aio_cancel	AUE_NULL
1028 #define	FREEBSD32_SYS_AUE_freebsd32_aio_error	AUE_NULL
1029 #define	FREEBSD32_SYS_AUE_freebsd32_oaio_read	AUE_NULL
1030 #define	FREEBSD32_SYS_AUE_freebsd32_oaio_write	AUE_NULL
1031 #define	FREEBSD32_SYS_AUE_freebsd32_olio_listio	AUE_NULL
1032 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile	AUE_SENDFILE
1033 #define	FREEBSD32_SYS_AUE_freebsd32_jail	AUE_JAIL
1034 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction	AUE_SIGACTION
1035 #define	FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn	AUE_SIGRETURN
1036 #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
1037 #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
1038 #define	FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete	AUE_NULL
1039 #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_NULL
1040 #define	FREEBSD32_SYS_AUE_freebsd32_nmount	AUE_NMOUNT
1041 #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
1042 #define	FREEBSD32_SYS_AUE_freebsd32_ksem_init	AUE_NULL
1043 #define	FREEBSD32_SYS_AUE_freebsd32_ksem_open	AUE_NULL
1044 #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
1045 #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
1046 #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
1047 #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
1048 #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
1049 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_lock	AUE_NULL
1050 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_unlock	AUE_NULL
1051 #define	FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait	AUE_NULL
1052 #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
1053 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_op	AUE_NULL
1054 #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_NULL
1055 #define	FREEBSD32_SYS_AUE_freebsd32_kmq_open	AUE_NULL
1056 #define	FREEBSD32_SYS_AUE_freebsd32_kmq_setattr	AUE_NULL
1057 #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive	AUE_NULL
1058 #define	FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend	AUE_NULL
1059 #define	FREEBSD32_SYS_AUE_freebsd32_aio_fsync	AUE_NULL
1060 #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1061 #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1062 #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1063 #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1064 #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1065 #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1066 #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
1067 #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
1068 #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
1069 #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
1070 #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
1071 #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
1072 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1073 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setid	AUE_NULL
1074 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getid	AUE_NULL
1075 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity	AUE_NULL
1076 #define	FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity	AUE_NULL
1077 #define	FREEBSD32_SYS_AUE_freebsd32_fexecve	AUE_FEXECVE
1078 #define	FREEBSD32_SYS_AUE_freebsd32_fstatat	AUE_FSTATAT
1079 #define	FREEBSD32_SYS_AUE_freebsd32_futimesat	AUE_FUTIMESAT
1080 #define	FREEBSD32_SYS_AUE_freebsd32_jail_get	AUE_NULL
1081 #define	FREEBSD32_SYS_AUE_freebsd32_jail_set	AUE_NULL
1082 #define	FREEBSD32_SYS_AUE_freebsd32_semctl	AUE_SEMCTL
1083 #define	FREEBSD32_SYS_AUE_freebsd32_msgctl	AUE_MSGCTL
1084 #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
1085 #define	FREEBSD32_SYS_AUE_freebsd32_pselect	AUE_SELECT
1086 #define	FREEBSD32_SYS_AUE_freebsd32_posix_fallocate	AUE_NULL
1087 #define	FREEBSD32_SYS_AUE_freebsd32_posix_fadvise	AUE_NULL
1088 #define	FREEBSD32_SYS_AUE_freebsd32_wait6	AUE_WAIT6
1089 
1090 #undef PAD_
1091 #undef PADL_
1092 #undef PADR_
1093 
1094 #endif /* !_FREEBSD32_SYSPROTO_H_ */
1095