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