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