1 /*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically @generated.
5 * $FreeBSD$
6 */
7
8 #ifndef _FREEBSD32_SYSPROTO_H_
9 #define _FREEBSD32_SYSPROTO_H_
10
11 #include <sys/signal.h>
12 #include <sys/acl.h>
13 #include <sys/cpuset.h>
14 #include <sys/domainset.h>
15 #include <sys/_ffcounter.h>
16 #include <sys/_semaphore.h>
17 #include <sys/ucontext.h>
18 #include <sys/wait.h>
19
20 #include <bsm/audit_kevents.h>
21
22 struct proc;
23
24 struct thread;
25
26 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
27 0 : sizeof(register_t) - sizeof(t))
28
29 #if BYTE_ORDER == LITTLE_ENDIAN
30 #define PADL_(t) 0
31 #define PADR_(t) PAD_(t)
32 #else
33 #define PADL_(t) PAD_(t)
34 #define PADR_(t) 0
35 #endif
36
37 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
38 #define PAD64_REQUIRED
39 #endif
40 struct freebsd32_wait4_args {
41 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
42 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
43 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
44 char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
45 };
46 struct freebsd32_ptrace_args {
47 char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
48 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
49 char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
50 char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
51 };
52 struct freebsd32_recvmsg_args {
53 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
54 char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
55 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
56 };
57 struct freebsd32_sendmsg_args {
58 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
59 char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
60 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
61 };
62 struct freebsd32_recvfrom_args {
63 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
64 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
65 char len_l_[PADL_(uint32_t)]; uint32_t len; char len_r_[PADR_(uint32_t)];
66 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
67 char from_l_[PADL_(struct sockaddr *)]; struct sockaddr * from; char from_r_[PADR_(struct sockaddr *)];
68 char fromlenaddr_l_[PADL_(uint32_t)]; uint32_t fromlenaddr; char fromlenaddr_r_[PADR_(uint32_t)];
69 };
70 struct freebsd10_freebsd32_pipe_args {
71 register_t dummy;
72 };
73 struct ofreebsd32_sigpending_args {
74 register_t dummy;
75 };
76 struct freebsd32_sigaltstack_args {
77 char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
78 char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
79 };
80 struct freebsd32_ioctl_args {
81 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
82 char com_l_[PADL_(uint32_t)]; uint32_t com; char com_r_[PADR_(uint32_t)];
83 char data_l_[PADL_(struct md_ioctl32 *)]; struct md_ioctl32 * data; char data_r_[PADR_(struct md_ioctl32 *)];
84 };
85 struct freebsd32_execve_args {
86 char fname_l_[PADL_(const char *)]; const char * fname; char fname_r_[PADR_(const char *)];
87 char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
88 char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
89 };
90 struct freebsd32_mprotect_args {
91 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
92 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
93 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
94 };
95 struct freebsd32_setitimer_args {
96 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
97 char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
98 char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
99 };
100 struct freebsd32_getitimer_args {
101 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
102 char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
103 };
104 struct freebsd32_fcntl_args {
105 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
106 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
107 char arg_l_[PADL_(int)]; int arg; char arg_r_[PADR_(int)];
108 };
109 struct freebsd32_select_args {
110 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
111 char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
112 char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
113 char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
114 char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
115 };
116 struct freebsd32_gettimeofday_args {
117 char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
118 char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
119 };
120 struct freebsd32_getrusage_args {
121 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
122 char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
123 };
124 struct freebsd32_readv_args {
125 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
126 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
127 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
128 };
129 struct freebsd32_writev_args {
130 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
131 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
132 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
133 };
134 struct freebsd32_settimeofday_args {
135 char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
136 char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
137 };
138 struct freebsd32_utimes_args {
139 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
140 char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
141 };
142 struct freebsd32_adjtime_args {
143 char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
144 char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
145 };
146 struct freebsd32_sysarch_args {
147 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
148 char parms_l_[PADL_(char *)]; char * parms; char parms_r_[PADR_(char *)];
149 };
150 struct freebsd32_semsys_args {
151 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
152 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
153 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
154 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
155 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
156 };
157 struct freebsd32_msgsys_args {
158 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
159 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
160 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
161 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
162 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
163 char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
164 };
165 struct freebsd32_shmsys_args {
166 char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
167 char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
168 char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
169 char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
170 };
171 struct freebsd32_ntp_adjtime_args {
172 char tp_l_[PADL_(struct timex32 *)]; struct timex32 * tp; char tp_r_[PADR_(struct timex32 *)];
173 };
174 struct freebsd32___sysctl_args {
175 char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
176 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
177 char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
178 char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
179 char new_l_[PADL_(const void *)]; const void * new; char new_r_[PADR_(const void *)];
180 char newlen_l_[PADL_(uint32_t)]; uint32_t newlen; char newlen_r_[PADR_(uint32_t)];
181 };
182 struct freebsd32_futimes_args {
183 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
184 char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
185 };
186 struct freebsd32_msgsnd_args {
187 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
188 char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
189 char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
190 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
191 };
192 struct freebsd32_msgrcv_args {
193 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
194 char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
195 char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
196 char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
197 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
198 };
199 struct freebsd32_clock_gettime_args {
200 char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
201 char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
202 };
203 struct freebsd32_clock_settime_args {
204 char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
205 char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
206 };
207 struct freebsd32_clock_getres_args {
208 char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
209 char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
210 };
211 struct freebsd32_ktimer_create_args {
212 char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
213 char evp_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * evp; char evp_r_[PADR_(struct sigevent32 *)];
214 char timerid_l_[PADL_(int *)]; int * timerid; char timerid_r_[PADR_(int *)];
215 };
216 struct freebsd32_ktimer_settime_args {
217 char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
218 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
219 char value_l_[PADL_(const struct itimerspec32 *)]; const struct itimerspec32 * value; char value_r_[PADR_(const struct itimerspec32 *)];
220 char ovalue_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * ovalue; char ovalue_r_[PADR_(struct itimerspec32 *)];
221 };
222 struct freebsd32_ktimer_gettime_args {
223 char timerid_l_[PADL_(int)]; int timerid; char timerid_r_[PADR_(int)];
224 char value_l_[PADL_(struct itimerspec32 *)]; struct itimerspec32 * value; char value_r_[PADR_(struct itimerspec32 *)];
225 };
226 struct freebsd32_nanosleep_args {
227 char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
228 char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
229 };
230 struct freebsd32_clock_nanosleep_args {
231 char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
232 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
233 char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
234 char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
235 };
236 struct freebsd32_clock_getcpuclockid2_args {
237 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
238 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
239 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
240 char clock_id_l_[PADL_(clockid_t *)]; clockid_t * clock_id; char clock_id_r_[PADR_(clockid_t *)];
241 };
242 struct freebsd32_aio_read_args {
243 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
244 };
245 struct freebsd32_aio_write_args {
246 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
247 };
248 struct freebsd32_lio_listio_args {
249 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
250 char acb_list_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * acb_list; char acb_list_r_[PADR_(struct aiocb32 * const *)];
251 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
252 char sig_l_[PADL_(struct sigevent32 *)]; struct sigevent32 * sig; char sig_r_[PADR_(struct sigevent32 *)];
253 };
254 struct freebsd32_lutimes_args {
255 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
256 char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
257 };
258 struct freebsd32_preadv_args {
259 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
260 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
261 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
262 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
263 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
264 };
265 struct freebsd32_pwritev_args {
266 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
267 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
268 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
269 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
270 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
271 };
272 struct freebsd32_modstat_args {
273 char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
274 char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
275 };
276 struct freebsd32_kldstat_args {
277 char fileid_l_[PADL_(int)]; int fileid; char fileid_r_[PADR_(int)];
278 char stat_l_[PADL_(struct kld32_file_stat *)]; struct kld32_file_stat * stat; char stat_r_[PADR_(struct kld32_file_stat *)];
279 };
280 struct freebsd32_aio_return_args {
281 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
282 };
283 struct freebsd32_aio_suspend_args {
284 char aiocbp_l_[PADL_(struct aiocb32 * const *)]; struct aiocb32 * const * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 * const *)];
285 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
286 char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
287 };
288 struct freebsd32_aio_error_args {
289 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
290 };
291 struct freebsd32_sched_rr_get_interval_args {
292 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
293 char interval_l_[PADL_(struct timespec32 *)]; struct timespec32 * interval; char interval_r_[PADR_(struct timespec32 *)];
294 };
295 struct freebsd32_jail_args {
296 char jail_l_[PADL_(struct jail32 *)]; struct jail32 * jail; char jail_r_[PADR_(struct jail32 *)];
297 };
298 struct freebsd32_sigtimedwait_args {
299 char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
300 char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
301 char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)];
302 };
303 struct freebsd32_sigwaitinfo_args {
304 char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
305 char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
306 };
307 struct freebsd32_aio_waitcomplete_args {
308 char aiocbp_l_[PADL_(struct aiocb32 **)]; struct aiocb32 ** aiocbp; char aiocbp_r_[PADR_(struct aiocb32 **)];
309 char timeout_l_[PADL_(struct timespec32 *)]; struct timespec32 * timeout; char timeout_r_[PADR_(struct timespec32 *)];
310 };
311 struct freebsd32_nmount_args {
312 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
313 char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
314 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
315 };
316 struct freebsd32_sendfile_args {
317 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
318 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
319 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
320 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
321 char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
322 char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
323 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
324 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
325 };
326 struct freebsd32_ksem_init_args {
327 char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
328 char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
329 };
330 struct freebsd32_ksem_open_args {
331 char idp_l_[PADL_(semid_t *)]; semid_t * idp; char idp_r_[PADR_(semid_t *)];
332 char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
333 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
334 char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
335 char value_l_[PADL_(unsigned int)]; unsigned int value; char value_r_[PADR_(unsigned int)];
336 };
337 struct freebsd32_sigaction_args {
338 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
339 char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
340 char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
341 };
342 struct freebsd32_sigreturn_args {
343 char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)];
344 };
345 struct freebsd32_getcontext_args {
346 char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)];
347 };
348 struct freebsd32_setcontext_args {
349 char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
350 };
351 struct freebsd32_swapcontext_args {
352 char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)];
353 char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
354 };
355 struct freebsd32_ksem_timedwait_args {
356 char id_l_[PADL_(semid_t)]; semid_t id; char id_r_[PADR_(semid_t)];
357 char abstime_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abstime; char abstime_r_[PADR_(const struct timespec32 *)];
358 };
359 struct freebsd32_thr_suspend_args {
360 char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
361 };
362 struct freebsd32__umtx_op_args {
363 char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
364 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
365 char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
366 char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
367 char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
368 };
369 struct freebsd32_thr_new_args {
370 char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
371 char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
372 };
373 struct freebsd32_sigqueue_args {
374 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
375 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
376 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
377 };
378 struct freebsd32_kmq_open_args {
379 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
380 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
381 char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
382 char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
383 };
384 struct freebsd32_kmq_setattr_args {
385 char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
386 char attr_l_[PADL_(const struct mq_attr32 *)]; const struct mq_attr32 * attr; char attr_r_[PADR_(const struct mq_attr32 *)];
387 char oattr_l_[PADL_(struct mq_attr32 *)]; struct mq_attr32 * oattr; char oattr_r_[PADR_(struct mq_attr32 *)];
388 };
389 struct freebsd32_kmq_timedreceive_args {
390 char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
391 char msg_ptr_l_[PADL_(char *)]; char * msg_ptr; char msg_ptr_r_[PADR_(char *)];
392 char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
393 char msg_prio_l_[PADL_(unsigned *)]; unsigned * msg_prio; char msg_prio_r_[PADR_(unsigned *)];
394 char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
395 };
396 struct freebsd32_kmq_timedsend_args {
397 char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
398 char msg_ptr_l_[PADL_(const char *)]; const char * msg_ptr; char msg_ptr_r_[PADR_(const char *)];
399 char msg_len_l_[PADL_(size_t)]; size_t msg_len; char msg_len_r_[PADR_(size_t)];
400 char msg_prio_l_[PADL_(unsigned)]; unsigned msg_prio; char msg_prio_r_[PADR_(unsigned)];
401 char abs_timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * abs_timeout; char abs_timeout_r_[PADR_(const struct timespec32 *)];
402 };
403 struct freebsd32_kmq_notify_args {
404 char mqd_l_[PADL_(int)]; int mqd; char mqd_r_[PADR_(int)];
405 char sigev_l_[PADL_(const struct sigevent32 *)]; const struct sigevent32 * sigev; char sigev_r_[PADR_(const struct sigevent32 *)];
406 };
407 struct freebsd32_aio_fsync_args {
408 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
409 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
410 };
411 #ifdef PAD64_REQUIRED
412 struct freebsd32_pread_args {
413 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
414 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
415 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
416 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
417 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
418 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
419 };
420 struct freebsd32_pwrite_args {
421 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
422 char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
423 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
424 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
425 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
426 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
427 };
428 struct freebsd32_mmap_args {
429 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
430 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
431 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
432 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
433 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
434 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
435 char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
436 char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
437 };
438 struct freebsd32_lseek_args {
439 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
440 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
441 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
442 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
443 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
444 };
445 struct freebsd32_truncate_args {
446 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
447 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
448 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
449 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
450 };
451 struct freebsd32_ftruncate_args {
452 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
453 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
454 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
455 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
456 };
457 #else
458 struct freebsd32_pread_args {
459 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
460 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
461 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
462 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
463 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
464 };
465 struct freebsd32_pwrite_args {
466 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
467 char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
468 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
469 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
470 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
471 };
472 struct freebsd32_mmap_args {
473 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
474 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
475 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
476 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
477 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
478 char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
479 char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
480 };
481 struct freebsd32_lseek_args {
482 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
483 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
484 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
485 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
486 };
487 struct freebsd32_truncate_args {
488 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
489 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
490 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
491 };
492 struct freebsd32_ftruncate_args {
493 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
494 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
495 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
496 };
497 #endif
498 #ifdef PAD64_REQUIRED
499 struct freebsd32_cpuset_setid_args {
500 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
501 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
502 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
503 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
504 char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
505 };
506 #else
507 struct freebsd32_cpuset_setid_args {
508 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
509 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
510 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
511 char setid_l_[PADL_(cpusetid_t)]; cpusetid_t setid; char setid_r_[PADR_(cpusetid_t)];
512 };
513 #endif
514 struct freebsd32_cpuset_getid_args {
515 char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
516 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
517 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
518 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
519 char setid_l_[PADL_(cpusetid_t *)]; cpusetid_t * setid; char setid_r_[PADR_(cpusetid_t *)];
520 };
521 struct freebsd32_cpuset_getaffinity_args {
522 char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
523 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
524 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
525 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
526 char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
527 char mask_l_[PADL_(cpuset_t *)]; cpuset_t * mask; char mask_r_[PADR_(cpuset_t *)];
528 };
529 struct freebsd32_cpuset_setaffinity_args {
530 char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
531 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
532 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
533 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
534 char cpusetsize_l_[PADL_(size_t)]; size_t cpusetsize; char cpusetsize_r_[PADR_(size_t)];
535 char mask_l_[PADL_(const cpuset_t *)]; const cpuset_t * mask; char mask_r_[PADR_(const cpuset_t *)];
536 };
537 struct freebsd32_fexecve_args {
538 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
539 char argv_l_[PADL_(uint32_t *)]; uint32_t * argv; char argv_r_[PADR_(uint32_t *)];
540 char envv_l_[PADL_(uint32_t *)]; uint32_t * envv; char envv_r_[PADR_(uint32_t *)];
541 };
542 struct freebsd32_futimesat_args {
543 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
544 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
545 char times_l_[PADL_(struct timeval *)]; struct timeval * times; char times_r_[PADR_(struct timeval *)];
546 };
547 struct freebsd32_jail_get_args {
548 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
549 char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
550 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
551 };
552 struct freebsd32_jail_set_args {
553 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
554 char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
555 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
556 };
557 struct freebsd32_semctl_args {
558 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
559 char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
560 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
561 char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
562 };
563 struct freebsd32_msgctl_args {
564 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
565 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
566 char buf_l_[PADL_(struct msqid_ds32 *)]; struct msqid_ds32 * buf; char buf_r_[PADR_(struct msqid_ds32 *)];
567 };
568 struct freebsd32_shmctl_args {
569 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
570 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
571 char buf_l_[PADL_(struct shmid_ds32 *)]; struct shmid_ds32 * buf; char buf_r_[PADR_(struct shmid_ds32 *)];
572 };
573 struct freebsd32_pselect_args {
574 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
575 char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
576 char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
577 char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
578 char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
579 char sm_l_[PADL_(const sigset_t *)]; const sigset_t * sm; char sm_r_[PADR_(const sigset_t *)];
580 };
581 #ifdef PAD64_REQUIRED
582 struct freebsd32_posix_fallocate_args {
583 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
584 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
585 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
586 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
587 char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
588 char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
589 };
590 struct freebsd32_posix_fadvise_args {
591 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
592 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
593 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
594 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
595 char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
596 char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
597 char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
598 };
599 struct freebsd32_wait6_args {
600 char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
601 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
602 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
603 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
604 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
605 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
606 char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
607 char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
608 };
609 #else
610 struct freebsd32_posix_fallocate_args {
611 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
612 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
613 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
614 char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
615 char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
616 };
617 struct freebsd32_posix_fadvise_args {
618 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
619 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
620 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
621 char len1_l_[PADL_(uint32_t)]; uint32_t len1; char len1_r_[PADR_(uint32_t)];
622 char len2_l_[PADL_(uint32_t)]; uint32_t len2; char len2_r_[PADR_(uint32_t)];
623 char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)];
624 };
625 struct freebsd32_wait6_args {
626 char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
627 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
628 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
629 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
630 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
631 char wrusage_l_[PADL_(struct wrusage32 *)]; struct wrusage32 * wrusage; char wrusage_r_[PADR_(struct wrusage32 *)];
632 char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
633 };
634 #endif
635 struct freebsd32_cap_ioctls_limit_args {
636 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
637 char cmds_l_[PADL_(const uint32_t *)]; const uint32_t * cmds; char cmds_r_[PADR_(const uint32_t *)];
638 char ncmds_l_[PADL_(size_t)]; size_t ncmds; char ncmds_r_[PADR_(size_t)];
639 };
640 struct freebsd32_cap_ioctls_get_args {
641 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
642 char cmds_l_[PADL_(uint32_t *)]; uint32_t * cmds; char cmds_r_[PADR_(uint32_t *)];
643 char maxcmds_l_[PADL_(size_t)]; size_t maxcmds; char maxcmds_r_[PADR_(size_t)];
644 };
645 struct freebsd32_aio_mlock_args {
646 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
647 };
648 #ifdef PAD64_REQUIRED
649 struct freebsd32_procctl_args {
650 char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
651 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
652 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
653 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
654 char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
655 char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
656 };
657 #else
658 struct freebsd32_procctl_args {
659 char idtype_l_[PADL_(int)]; int idtype; char idtype_r_[PADR_(int)];
660 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
661 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
662 char com_l_[PADL_(int)]; int com; char com_r_[PADR_(int)];
663 char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)];
664 };
665 #endif
666 struct freebsd32_ppoll_args {
667 char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
668 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
669 char ts_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * ts; char ts_r_[PADR_(const struct timespec32 *)];
670 char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
671 };
672 struct freebsd32_futimens_args {
673 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
674 char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)];
675 };
676 struct freebsd32_utimensat_args {
677 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
678 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
679 char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)];
680 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
681 };
682 struct freebsd32_fstat_args {
683 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
684 char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
685 };
686 struct freebsd32_fstatat_args {
687 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
688 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
689 char buf_l_[PADL_(struct stat32 *)]; struct stat32 * buf; char buf_r_[PADR_(struct stat32 *)];
690 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
691 };
692 struct freebsd32_fhstat_args {
693 char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
694 char sb_l_[PADL_(struct stat32 *)]; struct stat32 * sb; char sb_r_[PADR_(struct stat32 *)];
695 };
696 #ifdef PAD64_REQUIRED
697 struct freebsd32_mknodat_args {
698 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
699 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
700 char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
701 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
702 char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
703 char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
704 };
705 #else
706 struct freebsd32_mknodat_args {
707 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
708 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
709 char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)];
710 char dev1_l_[PADL_(uint32_t)]; uint32_t dev1; char dev1_r_[PADR_(uint32_t)];
711 char dev2_l_[PADL_(uint32_t)]; uint32_t dev2; char dev2_r_[PADR_(uint32_t)];
712 };
713 #endif
714 struct freebsd32_kevent_args {
715 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
716 char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
717 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
718 char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
719 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
720 char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
721 };
722 struct freebsd32_cpuset_getdomain_args {
723 char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
724 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
725 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
726 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
727 char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
728 char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
729 char policy_l_[PADL_(int *)]; int * policy; char policy_r_[PADR_(int *)];
730 };
731 struct freebsd32_cpuset_setdomain_args {
732 char level_l_[PADL_(cpulevel_t)]; cpulevel_t level; char level_r_[PADR_(cpulevel_t)];
733 char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)];
734 char id1_l_[PADL_(uint32_t)]; uint32_t id1; char id1_r_[PADR_(uint32_t)];
735 char id2_l_[PADL_(uint32_t)]; uint32_t id2; char id2_r_[PADR_(uint32_t)];
736 char domainsetsize_l_[PADL_(size_t)]; size_t domainsetsize; char domainsetsize_r_[PADR_(size_t)];
737 char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)];
738 char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
739 };
740 struct freebsd32___sysctlbyname_args {
741 char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)];
742 char namelen_l_[PADL_(size_t)]; size_t namelen; char namelen_r_[PADR_(size_t)];
743 char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
744 char oldlenp_l_[PADL_(uint32_t *)]; uint32_t * oldlenp; char oldlenp_r_[PADR_(uint32_t *)];
745 char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
746 char newlen_l_[PADL_(size_t)]; size_t newlen; char newlen_r_[PADR_(size_t)];
747 };
748 struct freebsd32_aio_writev_args {
749 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
750 };
751 struct freebsd32_aio_readv_args {
752 char aiocbp_l_[PADL_(struct aiocb32 *)]; struct aiocb32 * aiocbp; char aiocbp_r_[PADR_(struct aiocb32 *)];
753 };
754 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
755 #define PAD64_REQUIRED
756 #endif
757 int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
758 int freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *);
759 int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
760 int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
761 int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
762 int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
763 int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
764 int freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
765 int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
766 int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
767 int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
768 int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
769 int freebsd32_select(struct thread *, struct freebsd32_select_args *);
770 int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
771 int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
772 int freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
773 int freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
774 int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
775 int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
776 int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
777 int freebsd32_sysarch(struct thread *, struct freebsd32_sysarch_args *);
778 int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
779 int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
780 int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
781 int freebsd32_ntp_adjtime(struct thread *, struct freebsd32_ntp_adjtime_args *);
782 int freebsd32___sysctl(struct thread *, struct freebsd32___sysctl_args *);
783 int freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
784 int freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
785 int freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
786 int freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
787 int freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
788 int freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
789 int freebsd32_ktimer_create(struct thread *, struct freebsd32_ktimer_create_args *);
790 int freebsd32_ktimer_settime(struct thread *, struct freebsd32_ktimer_settime_args *);
791 int freebsd32_ktimer_gettime(struct thread *, struct freebsd32_ktimer_gettime_args *);
792 int freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
793 int freebsd32_clock_nanosleep(struct thread *, struct freebsd32_clock_nanosleep_args *);
794 int freebsd32_clock_getcpuclockid2(struct thread *, struct freebsd32_clock_getcpuclockid2_args *);
795 int freebsd32_aio_read(struct thread *, struct freebsd32_aio_read_args *);
796 int freebsd32_aio_write(struct thread *, struct freebsd32_aio_write_args *);
797 int freebsd32_lio_listio(struct thread *, struct freebsd32_lio_listio_args *);
798 int freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
799 int freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
800 int freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
801 int freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
802 int freebsd32_kldstat(struct thread *, struct freebsd32_kldstat_args *);
803 int freebsd32_aio_return(struct thread *, struct freebsd32_aio_return_args *);
804 int freebsd32_aio_suspend(struct thread *, struct freebsd32_aio_suspend_args *);
805 int freebsd32_aio_error(struct thread *, struct freebsd32_aio_error_args *);
806 int freebsd32_sched_rr_get_interval(struct thread *, struct freebsd32_sched_rr_get_interval_args *);
807 int freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
808 int freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
809 int freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
810 int freebsd32_aio_waitcomplete(struct thread *, struct freebsd32_aio_waitcomplete_args *);
811 int freebsd32_nmount(struct thread *, struct freebsd32_nmount_args *);
812 int freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
813 int freebsd32_ksem_init(struct thread *, struct freebsd32_ksem_init_args *);
814 int freebsd32_ksem_open(struct thread *, struct freebsd32_ksem_open_args *);
815 int freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
816 int freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
817 int freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
818 int freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
819 int freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
820 int freebsd32_ksem_timedwait(struct thread *, struct freebsd32_ksem_timedwait_args *);
821 int freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
822 int freebsd32__umtx_op(struct thread *, struct freebsd32__umtx_op_args *);
823 int freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
824 int freebsd32_sigqueue(struct thread *, struct freebsd32_sigqueue_args *);
825 int freebsd32_kmq_open(struct thread *, struct freebsd32_kmq_open_args *);
826 int freebsd32_kmq_setattr(struct thread *, struct freebsd32_kmq_setattr_args *);
827 int freebsd32_kmq_timedreceive(struct thread *, struct freebsd32_kmq_timedreceive_args *);
828 int freebsd32_kmq_timedsend(struct thread *, struct freebsd32_kmq_timedsend_args *);
829 int freebsd32_kmq_notify(struct thread *, struct freebsd32_kmq_notify_args *);
830 int freebsd32_aio_fsync(struct thread *, struct freebsd32_aio_fsync_args *);
831 #ifdef PAD64_REQUIRED
832 int freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
833 int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
834 int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
835 int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
836 int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
837 int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
838 #else
839 int freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
840 int freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
841 int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
842 int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
843 int freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
844 int freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
845 #endif
846 #ifdef PAD64_REQUIRED
847 int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
848 #else
849 int freebsd32_cpuset_setid(struct thread *, struct freebsd32_cpuset_setid_args *);
850 #endif
851 int freebsd32_cpuset_getid(struct thread *, struct freebsd32_cpuset_getid_args *);
852 int freebsd32_cpuset_getaffinity(struct thread *, struct freebsd32_cpuset_getaffinity_args *);
853 int freebsd32_cpuset_setaffinity(struct thread *, struct freebsd32_cpuset_setaffinity_args *);
854 int freebsd32_fexecve(struct thread *, struct freebsd32_fexecve_args *);
855 int freebsd32_futimesat(struct thread *, struct freebsd32_futimesat_args *);
856 int freebsd32_jail_get(struct thread *, struct freebsd32_jail_get_args *);
857 int freebsd32_jail_set(struct thread *, struct freebsd32_jail_set_args *);
858 int freebsd32_semctl(struct thread *, struct freebsd32_semctl_args *);
859 int freebsd32_msgctl(struct thread *, struct freebsd32_msgctl_args *);
860 int freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
861 int freebsd32_pselect(struct thread *, struct freebsd32_pselect_args *);
862 #ifdef PAD64_REQUIRED
863 int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
864 int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
865 int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
866 #else
867 int freebsd32_posix_fallocate(struct thread *, struct freebsd32_posix_fallocate_args *);
868 int freebsd32_posix_fadvise(struct thread *, struct freebsd32_posix_fadvise_args *);
869 int freebsd32_wait6(struct thread *, struct freebsd32_wait6_args *);
870 #endif
871 int freebsd32_cap_ioctls_limit(struct thread *, struct freebsd32_cap_ioctls_limit_args *);
872 int freebsd32_cap_ioctls_get(struct thread *, struct freebsd32_cap_ioctls_get_args *);
873 int freebsd32_aio_mlock(struct thread *, struct freebsd32_aio_mlock_args *);
874 #ifdef PAD64_REQUIRED
875 int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
876 #else
877 int freebsd32_procctl(struct thread *, struct freebsd32_procctl_args *);
878 #endif
879 int freebsd32_ppoll(struct thread *, struct freebsd32_ppoll_args *);
880 int freebsd32_futimens(struct thread *, struct freebsd32_futimens_args *);
881 int freebsd32_utimensat(struct thread *, struct freebsd32_utimensat_args *);
882 int freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
883 int freebsd32_fstatat(struct thread *, struct freebsd32_fstatat_args *);
884 int freebsd32_fhstat(struct thread *, struct freebsd32_fhstat_args *);
885 #ifdef PAD64_REQUIRED
886 int freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
887 #else
888 int freebsd32_mknodat(struct thread *, struct freebsd32_mknodat_args *);
889 #endif
890 int freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
891 int freebsd32_cpuset_getdomain(struct thread *, struct freebsd32_cpuset_getdomain_args *);
892 int freebsd32_cpuset_setdomain(struct thread *, struct freebsd32_cpuset_setdomain_args *);
893 int freebsd32___sysctlbyname(struct thread *, struct freebsd32___sysctlbyname_args *);
894 int freebsd32_aio_writev(struct thread *, struct freebsd32_aio_writev_args *);
895 int freebsd32_aio_readv(struct thread *, struct freebsd32_aio_readv_args *);
896
897 #ifdef COMPAT_43
898
899 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
900 #define PAD64_REQUIRED
901 #endif
902 struct ofreebsd32_lseek_args {
903 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
904 char offset_l_[PADL_(int)]; int offset; char offset_r_[PADR_(int)];
905 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
906 };
907 struct ofreebsd32_stat_args {
908 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
909 char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
910 };
911 struct ofreebsd32_lstat_args {
912 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
913 char ub_l_[PADL_(struct ostat *)]; struct ostat * ub; char ub_r_[PADR_(struct ostat *)];
914 };
915 struct ofreebsd32_sigaction_args {
916 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
917 char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
918 char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
919 };
920 struct ofreebsd32_sigprocmask_args {
921 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
922 char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
923 };
924 struct ofreebsd32_fstat_args {
925 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
926 char ub_l_[PADL_(struct ostat32 *)]; struct ostat32 * ub; char ub_r_[PADR_(struct ostat32 *)];
927 };
928 struct ofreebsd32_getpagesize_args {
929 char dummy_l_[PADL_(int32_t)]; int32_t dummy; char dummy_r_[PADR_(int32_t)];
930 };
931 struct ofreebsd32_sigreturn_args {
932 char sigcntxp_l_[PADL_(struct ia32_sigcontext3 *)]; struct ia32_sigcontext3 * sigcntxp; char sigcntxp_r_[PADR_(struct ia32_sigcontext3 *)];
933 };
934 struct ofreebsd32_sigvec_args {
935 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
936 char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
937 char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
938 };
939 struct ofreebsd32_sigblock_args {
940 char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
941 };
942 struct ofreebsd32_sigsetmask_args {
943 char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
944 };
945 struct ofreebsd32_sigsuspend_args {
946 char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
947 };
948 struct ofreebsd32_sigstack_args {
949 char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
950 char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
951 };
952 struct ofreebsd32_getdirentries_args {
953 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
954 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
955 char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
956 char basep_l_[PADL_(uint32_t *)]; uint32_t * basep; char basep_r_[PADR_(uint32_t *)];
957 };
958 #ifdef PAD64_REQUIRED
959 #else
960 #endif
961 #ifdef PAD64_REQUIRED
962 #else
963 #endif
964 #ifdef PAD64_REQUIRED
965 #else
966 #endif
967 #ifdef PAD64_REQUIRED
968 #else
969 #endif
970 #ifdef PAD64_REQUIRED
971 #else
972 #endif
973 int ofreebsd32_lseek(struct thread *, struct ofreebsd32_lseek_args *);
974 int ofreebsd32_stat(struct thread *, struct ofreebsd32_stat_args *);
975 int ofreebsd32_lstat(struct thread *, struct ofreebsd32_lstat_args *);
976 int ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
977 int ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
978 int ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
979 int ofreebsd32_fstat(struct thread *, struct ofreebsd32_fstat_args *);
980 int ofreebsd32_getpagesize(struct thread *, struct ofreebsd32_getpagesize_args *);
981 int ofreebsd32_sigreturn(struct thread *, struct ofreebsd32_sigreturn_args *);
982 int ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
983 int ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
984 int ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
985 int ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
986 int ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
987 int ofreebsd32_getdirentries(struct thread *, struct ofreebsd32_getdirentries_args *);
988
989 #endif /* COMPAT_43 */
990
991
992 #ifdef COMPAT_FREEBSD4
993
994 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
995 #define PAD64_REQUIRED
996 #endif
997 struct freebsd4_freebsd32_getfsstat_args {
998 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
999 char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
1000 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1001 };
1002 struct freebsd4_freebsd32_statfs_args {
1003 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1004 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
1005 };
1006 struct freebsd4_freebsd32_fstatfs_args {
1007 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1008 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
1009 };
1010 struct freebsd4_freebsd32_fhstatfs_args {
1011 char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1012 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
1013 };
1014 struct freebsd4_freebsd32_sendfile_args {
1015 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1016 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1017 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1018 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1019 char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
1020 char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
1021 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
1022 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1023 };
1024 struct freebsd4_freebsd32_sigaction_args {
1025 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1026 char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
1027 char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
1028 };
1029 struct freebsd4_freebsd32_sigreturn_args {
1030 char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
1031 };
1032 #ifdef PAD64_REQUIRED
1033 #else
1034 #endif
1035 #ifdef PAD64_REQUIRED
1036 #else
1037 #endif
1038 #ifdef PAD64_REQUIRED
1039 #else
1040 #endif
1041 #ifdef PAD64_REQUIRED
1042 #else
1043 #endif
1044 #ifdef PAD64_REQUIRED
1045 #else
1046 #endif
1047 int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
1048 int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
1049 int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
1050 int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
1051 int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
1052 int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
1053 int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
1054
1055 #endif /* COMPAT_FREEBSD4 */
1056
1057
1058 #ifdef COMPAT_FREEBSD6
1059
1060 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1061 #define PAD64_REQUIRED
1062 #endif
1063 struct freebsd6_freebsd32_pread_args {
1064 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1065 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
1066 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1067 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1068 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1069 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1070 };
1071 struct freebsd6_freebsd32_pwrite_args {
1072 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1073 char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
1074 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
1075 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1076 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1077 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1078 };
1079 struct freebsd6_freebsd32_mmap_args {
1080 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
1081 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
1082 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
1083 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1084 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1085 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1086 char pos1_l_[PADL_(uint32_t)]; uint32_t pos1; char pos1_r_[PADR_(uint32_t)];
1087 char pos2_l_[PADL_(uint32_t)]; uint32_t pos2; char pos2_r_[PADR_(uint32_t)];
1088 };
1089 struct freebsd6_freebsd32_lseek_args {
1090 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1091 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1092 char offset1_l_[PADL_(uint32_t)]; uint32_t offset1; char offset1_r_[PADR_(uint32_t)];
1093 char offset2_l_[PADL_(uint32_t)]; uint32_t offset2; char offset2_r_[PADR_(uint32_t)];
1094 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
1095 };
1096 struct freebsd6_freebsd32_truncate_args {
1097 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1098 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1099 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
1100 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1101 };
1102 struct freebsd6_freebsd32_ftruncate_args {
1103 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1104 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
1105 char length1_l_[PADL_(uint32_t)]; uint32_t length1; char length1_r_[PADR_(uint32_t)];
1106 char length2_l_[PADL_(uint32_t)]; uint32_t length2; char length2_r_[PADR_(uint32_t)];
1107 };
1108 struct freebsd6_freebsd32_aio_read_args {
1109 char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
1110 };
1111 struct freebsd6_freebsd32_aio_write_args {
1112 char aiocbp_l_[PADL_(struct oaiocb32 *)]; struct oaiocb32 * aiocbp; char aiocbp_r_[PADR_(struct oaiocb32 *)];
1113 };
1114 struct freebsd6_freebsd32_lio_listio_args {
1115 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1116 char acb_list_l_[PADL_(struct oaiocb32 * const *)]; struct oaiocb32 * const * acb_list; char acb_list_r_[PADR_(struct oaiocb32 * const *)];
1117 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1118 char sig_l_[PADL_(struct osigevent32 *)]; struct osigevent32 * sig; char sig_r_[PADR_(struct osigevent32 *)];
1119 };
1120 #ifdef PAD64_REQUIRED
1121 #else
1122 #endif
1123 #ifdef PAD64_REQUIRED
1124 #else
1125 #endif
1126 #ifdef PAD64_REQUIRED
1127 #else
1128 #endif
1129 #ifdef PAD64_REQUIRED
1130 #else
1131 #endif
1132 #ifdef PAD64_REQUIRED
1133 #else
1134 #endif
1135 int freebsd6_freebsd32_pread(struct thread *, struct freebsd6_freebsd32_pread_args *);
1136 int freebsd6_freebsd32_pwrite(struct thread *, struct freebsd6_freebsd32_pwrite_args *);
1137 int freebsd6_freebsd32_mmap(struct thread *, struct freebsd6_freebsd32_mmap_args *);
1138 int freebsd6_freebsd32_lseek(struct thread *, struct freebsd6_freebsd32_lseek_args *);
1139 int freebsd6_freebsd32_truncate(struct thread *, struct freebsd6_freebsd32_truncate_args *);
1140 int freebsd6_freebsd32_ftruncate(struct thread *, struct freebsd6_freebsd32_ftruncate_args *);
1141 int freebsd6_freebsd32_aio_read(struct thread *, struct freebsd6_freebsd32_aio_read_args *);
1142 int freebsd6_freebsd32_aio_write(struct thread *, struct freebsd6_freebsd32_aio_write_args *);
1143 int freebsd6_freebsd32_lio_listio(struct thread *, struct freebsd6_freebsd32_lio_listio_args *);
1144
1145 #endif /* COMPAT_FREEBSD6 */
1146
1147
1148 #ifdef COMPAT_FREEBSD7
1149
1150 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1151 #define PAD64_REQUIRED
1152 #endif
1153 struct freebsd7_freebsd32_semctl_args {
1154 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
1155 char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
1156 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1157 char arg_l_[PADL_(union semun32 *)]; union semun32 * arg; char arg_r_[PADR_(union semun32 *)];
1158 };
1159 struct freebsd7_freebsd32_msgctl_args {
1160 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1161 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1162 char buf_l_[PADL_(struct msqid_ds32_old *)]; struct msqid_ds32_old * buf; char buf_r_[PADR_(struct msqid_ds32_old *)];
1163 };
1164 struct freebsd7_freebsd32_shmctl_args {
1165 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
1166 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1167 char buf_l_[PADL_(struct shmid_ds32_old *)]; struct shmid_ds32_old * buf; char buf_r_[PADR_(struct shmid_ds32_old *)];
1168 };
1169 #ifdef PAD64_REQUIRED
1170 #else
1171 #endif
1172 #ifdef PAD64_REQUIRED
1173 #else
1174 #endif
1175 #ifdef PAD64_REQUIRED
1176 #else
1177 #endif
1178 #ifdef PAD64_REQUIRED
1179 #else
1180 #endif
1181 #ifdef PAD64_REQUIRED
1182 #else
1183 #endif
1184 int freebsd7_freebsd32_semctl(struct thread *, struct freebsd7_freebsd32_semctl_args *);
1185 int freebsd7_freebsd32_msgctl(struct thread *, struct freebsd7_freebsd32_msgctl_args *);
1186 int freebsd7_freebsd32_shmctl(struct thread *, struct freebsd7_freebsd32_shmctl_args *);
1187
1188 #endif /* COMPAT_FREEBSD7 */
1189
1190
1191 #ifdef COMPAT_FREEBSD10
1192
1193 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1194 #define PAD64_REQUIRED
1195 #endif
1196 struct freebsd10_freebsd32_umtx_lock_args {
1197 char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1198 };
1199 struct freebsd10_freebsd32_umtx_unlock_args {
1200 char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
1201 };
1202 #ifdef PAD64_REQUIRED
1203 #else
1204 #endif
1205 #ifdef PAD64_REQUIRED
1206 #else
1207 #endif
1208 #ifdef PAD64_REQUIRED
1209 #else
1210 #endif
1211 #ifdef PAD64_REQUIRED
1212 #else
1213 #endif
1214 #ifdef PAD64_REQUIRED
1215 #else
1216 #endif
1217 int freebsd10_freebsd32_pipe(struct thread *, struct freebsd10_freebsd32_pipe_args *);
1218 int freebsd10_freebsd32_umtx_lock(struct thread *, struct freebsd10_freebsd32_umtx_lock_args *);
1219 int freebsd10_freebsd32_umtx_unlock(struct thread *, struct freebsd10_freebsd32_umtx_unlock_args *);
1220
1221 #endif /* COMPAT_FREEBSD10 */
1222
1223
1224 #ifdef COMPAT_FREEBSD11
1225
1226 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1227 #define PAD64_REQUIRED
1228 #endif
1229 struct freebsd11_freebsd32_stat_args {
1230 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1231 char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1232 };
1233 struct freebsd11_freebsd32_fstat_args {
1234 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1235 char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1236 };
1237 struct freebsd11_freebsd32_lstat_args {
1238 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1239 char ub_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * ub; char ub_r_[PADR_(struct freebsd11_stat32 *)];
1240 };
1241 struct freebsd11_freebsd32_getdirentries_args {
1242 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1243 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1244 char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
1245 char basep_l_[PADL_(int32_t *)]; int32_t * basep; char basep_r_[PADR_(int32_t *)];
1246 };
1247 struct freebsd11_freebsd32_getdents_args {
1248 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1249 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
1250 char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
1251 };
1252 struct freebsd11_freebsd32_fhstat_args {
1253 char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
1254 char sb_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * sb; char sb_r_[PADR_(struct freebsd11_stat32 *)];
1255 };
1256 struct freebsd11_freebsd32_kevent_args {
1257 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1258 char changelist_l_[PADL_(const struct kevent32_freebsd11 *)]; const struct kevent32_freebsd11 * changelist; char changelist_r_[PADR_(const struct kevent32_freebsd11 *)];
1259 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1260 char eventlist_l_[PADL_(struct kevent32_freebsd11 *)]; struct kevent32_freebsd11 * eventlist; char eventlist_r_[PADR_(struct kevent32_freebsd11 *)];
1261 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1262 char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
1263 };
1264 #ifdef PAD64_REQUIRED
1265 #else
1266 #endif
1267 #ifdef PAD64_REQUIRED
1268 #else
1269 #endif
1270 struct freebsd11_freebsd32_fstatat_args {
1271 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1272 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
1273 char buf_l_[PADL_(struct freebsd11_stat32 *)]; struct freebsd11_stat32 * buf; char buf_r_[PADR_(struct freebsd11_stat32 *)];
1274 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1275 };
1276 #ifdef PAD64_REQUIRED
1277 #else
1278 #endif
1279 #ifdef PAD64_REQUIRED
1280 #else
1281 #endif
1282 #ifdef PAD64_REQUIRED
1283 #else
1284 #endif
1285 int freebsd11_freebsd32_stat(struct thread *, struct freebsd11_freebsd32_stat_args *);
1286 int freebsd11_freebsd32_fstat(struct thread *, struct freebsd11_freebsd32_fstat_args *);
1287 int freebsd11_freebsd32_lstat(struct thread *, struct freebsd11_freebsd32_lstat_args *);
1288 int freebsd11_freebsd32_getdirentries(struct thread *, struct freebsd11_freebsd32_getdirentries_args *);
1289 int freebsd11_freebsd32_getdents(struct thread *, struct freebsd11_freebsd32_getdents_args *);
1290 int freebsd11_freebsd32_fhstat(struct thread *, struct freebsd11_freebsd32_fhstat_args *);
1291 int freebsd11_freebsd32_kevent(struct thread *, struct freebsd11_freebsd32_kevent_args *);
1292 int freebsd11_freebsd32_fstatat(struct thread *, struct freebsd11_freebsd32_fstatat_args *);
1293
1294 #endif /* COMPAT_FREEBSD11 */
1295
1296
1297 #ifdef COMPAT_FREEBSD12
1298
1299 #if !defined(PAD64_REQUIRED) && !defined(__amd64__)
1300 #define PAD64_REQUIRED
1301 #endif
1302 #ifdef PAD64_REQUIRED
1303 #else
1304 #endif
1305 #ifdef PAD64_REQUIRED
1306 #else
1307 #endif
1308 #ifdef PAD64_REQUIRED
1309 #else
1310 #endif
1311 #ifdef PAD64_REQUIRED
1312 #else
1313 #endif
1314 #ifdef PAD64_REQUIRED
1315 #else
1316 #endif
1317
1318 #endif /* COMPAT_FREEBSD12 */
1319
1320 #define FREEBSD32_SYS_AUE_freebsd32_wait4 AUE_WAIT4
1321 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_getfsstat AUE_GETFSSTAT
1322 #define FREEBSD32_SYS_AUE_ofreebsd32_lseek AUE_LSEEK
1323 #define FREEBSD32_SYS_AUE_freebsd32_ptrace AUE_PTRACE
1324 #define FREEBSD32_SYS_AUE_freebsd32_recvmsg AUE_RECVMSG
1325 #define FREEBSD32_SYS_AUE_freebsd32_sendmsg AUE_SENDMSG
1326 #define FREEBSD32_SYS_AUE_freebsd32_recvfrom AUE_RECVFROM
1327 #define FREEBSD32_SYS_AUE_ofreebsd32_stat AUE_STAT
1328 #define FREEBSD32_SYS_AUE_ofreebsd32_lstat AUE_LSTAT
1329 #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_pipe AUE_PIPE
1330 #define FREEBSD32_SYS_AUE_ofreebsd32_sigaction AUE_SIGACTION
1331 #define FREEBSD32_SYS_AUE_ofreebsd32_sigprocmask AUE_SIGPROCMASK
1332 #define FREEBSD32_SYS_AUE_ofreebsd32_sigpending AUE_SIGPENDING
1333 #define FREEBSD32_SYS_AUE_freebsd32_sigaltstack AUE_SIGALTSTACK
1334 #define FREEBSD32_SYS_AUE_freebsd32_ioctl AUE_IOCTL
1335 #define FREEBSD32_SYS_AUE_freebsd32_execve AUE_EXECVE
1336 #define FREEBSD32_SYS_AUE_ofreebsd32_fstat AUE_FSTAT
1337 #define FREEBSD32_SYS_AUE_ofreebsd32_getpagesize AUE_NULL
1338 #define FREEBSD32_SYS_AUE_freebsd32_mprotect AUE_MPROTECT
1339 #define FREEBSD32_SYS_AUE_freebsd32_setitimer AUE_SETITIMER
1340 #define FREEBSD32_SYS_AUE_freebsd32_getitimer AUE_GETITIMER
1341 #define FREEBSD32_SYS_AUE_freebsd32_fcntl AUE_FCNTL
1342 #define FREEBSD32_SYS_AUE_freebsd32_select AUE_SELECT
1343 #define FREEBSD32_SYS_AUE_ofreebsd32_sigreturn AUE_SIGRETURN
1344 #define FREEBSD32_SYS_AUE_ofreebsd32_sigvec AUE_O_SIGVEC
1345 #define FREEBSD32_SYS_AUE_ofreebsd32_sigblock AUE_O_SIGBLOCK
1346 #define FREEBSD32_SYS_AUE_ofreebsd32_sigsetmask AUE_O_SIGSETMASK
1347 #define FREEBSD32_SYS_AUE_ofreebsd32_sigsuspend AUE_SIGSUSPEND
1348 #define FREEBSD32_SYS_AUE_ofreebsd32_sigstack AUE_O_SIGSTACK
1349 #define FREEBSD32_SYS_AUE_freebsd32_gettimeofday AUE_GETTIMEOFDAY
1350 #define FREEBSD32_SYS_AUE_freebsd32_getrusage AUE_GETRUSAGE
1351 #define FREEBSD32_SYS_AUE_freebsd32_readv AUE_READV
1352 #define FREEBSD32_SYS_AUE_freebsd32_writev AUE_WRITEV
1353 #define FREEBSD32_SYS_AUE_freebsd32_settimeofday AUE_SETTIMEOFDAY
1354 #define FREEBSD32_SYS_AUE_freebsd32_utimes AUE_UTIMES
1355 #define FREEBSD32_SYS_AUE_freebsd32_adjtime AUE_ADJTIME
1356 #define FREEBSD32_SYS_AUE_ofreebsd32_getdirentries AUE_GETDIRENTRIES
1357 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_statfs AUE_STATFS
1358 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fstatfs AUE_FSTATFS
1359 #define FREEBSD32_SYS_AUE_freebsd32_sysarch AUE_SYSARCH
1360 #define FREEBSD32_SYS_AUE_freebsd32_semsys AUE_SEMSYS
1361 #define FREEBSD32_SYS_AUE_freebsd32_msgsys AUE_MSGSYS
1362 #define FREEBSD32_SYS_AUE_freebsd32_shmsys AUE_SHMSYS
1363 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pread AUE_PREAD
1364 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_pwrite AUE_PWRITE
1365 #define FREEBSD32_SYS_AUE_freebsd32_ntp_adjtime AUE_NTP_ADJTIME
1366 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_stat AUE_STAT
1367 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstat AUE_FSTAT
1368 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_lstat AUE_LSTAT
1369 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdirentries AUE_GETDIRENTRIES
1370 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_mmap AUE_MMAP
1371 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lseek AUE_LSEEK
1372 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_truncate AUE_TRUNCATE
1373 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_ftruncate AUE_FTRUNCATE
1374 #define FREEBSD32_SYS_AUE_freebsd32___sysctl AUE_SYSCTL
1375 #define FREEBSD32_SYS_AUE_freebsd32_futimes AUE_FUTIMES
1376 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_semctl AUE_SEMCTL
1377 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_msgctl AUE_MSGCTL
1378 #define FREEBSD32_SYS_AUE_freebsd32_msgsnd AUE_MSGSND
1379 #define FREEBSD32_SYS_AUE_freebsd32_msgrcv AUE_MSGRCV
1380 #define FREEBSD32_SYS_AUE_freebsd7_freebsd32_shmctl AUE_SHMCTL
1381 #define FREEBSD32_SYS_AUE_freebsd32_clock_gettime AUE_NULL
1382 #define FREEBSD32_SYS_AUE_freebsd32_clock_settime AUE_CLOCK_SETTIME
1383 #define FREEBSD32_SYS_AUE_freebsd32_clock_getres AUE_NULL
1384 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_create AUE_NULL
1385 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_settime AUE_NULL
1386 #define FREEBSD32_SYS_AUE_freebsd32_ktimer_gettime AUE_NULL
1387 #define FREEBSD32_SYS_AUE_freebsd32_nanosleep AUE_NULL
1388 #define FREEBSD32_SYS_AUE_freebsd32_clock_nanosleep AUE_NULL
1389 #define FREEBSD32_SYS_AUE_freebsd32_clock_getcpuclockid2 AUE_NULL
1390 #define FREEBSD32_SYS_AUE_freebsd32_aio_read AUE_AIO_READ
1391 #define FREEBSD32_SYS_AUE_freebsd32_aio_write AUE_AIO_WRITE
1392 #define FREEBSD32_SYS_AUE_freebsd32_lio_listio AUE_LIO_LISTIO
1393 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_getdents AUE_O_GETDENTS
1394 #define FREEBSD32_SYS_AUE_freebsd32_lutimes AUE_LUTIMES
1395 #define FREEBSD32_SYS_AUE_freebsd32_preadv AUE_PREADV
1396 #define FREEBSD32_SYS_AUE_freebsd32_pwritev AUE_PWRITEV
1397 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_fhstatfs AUE_FHSTATFS
1398 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fhstat AUE_FHSTAT
1399 #define FREEBSD32_SYS_AUE_freebsd32_modstat AUE_NULL
1400 #define FREEBSD32_SYS_AUE_freebsd32_kldstat AUE_NULL
1401 #define FREEBSD32_SYS_AUE_freebsd32_aio_return AUE_AIO_RETURN
1402 #define FREEBSD32_SYS_AUE_freebsd32_aio_suspend AUE_AIO_SUSPEND
1403 #define FREEBSD32_SYS_AUE_freebsd32_aio_error AUE_AIO_ERROR
1404 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_read AUE_AIO_READ
1405 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_aio_write AUE_AIO_WRITE
1406 #define FREEBSD32_SYS_AUE_freebsd6_freebsd32_lio_listio AUE_LIO_LISTIO
1407 #define FREEBSD32_SYS_AUE_freebsd32_sched_rr_get_interval AUE_NULL
1408 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sendfile AUE_SENDFILE
1409 #define FREEBSD32_SYS_AUE_freebsd32_jail AUE_JAIL
1410 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigaction AUE_SIGACTION
1411 #define FREEBSD32_SYS_AUE_freebsd4_freebsd32_sigreturn AUE_SIGRETURN
1412 #define FREEBSD32_SYS_AUE_freebsd32_sigtimedwait AUE_SIGWAIT
1413 #define FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo AUE_NULL
1414 #define FREEBSD32_SYS_AUE_freebsd32_aio_waitcomplete AUE_AIO_WAITCOMPLETE
1415 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_kevent AUE_KEVENT
1416 #define FREEBSD32_SYS_AUE_freebsd32_nmount AUE_NMOUNT
1417 #define FREEBSD32_SYS_AUE_freebsd32_sendfile AUE_SENDFILE
1418 #define FREEBSD32_SYS_AUE_freebsd32_ksem_init AUE_SEMINIT
1419 #define FREEBSD32_SYS_AUE_freebsd32_ksem_open AUE_SEMOPEN
1420 #define FREEBSD32_SYS_AUE_freebsd32_sigaction AUE_SIGACTION
1421 #define FREEBSD32_SYS_AUE_freebsd32_sigreturn AUE_SIGRETURN
1422 #define FREEBSD32_SYS_AUE_freebsd32_getcontext AUE_NULL
1423 #define FREEBSD32_SYS_AUE_freebsd32_setcontext AUE_NULL
1424 #define FREEBSD32_SYS_AUE_freebsd32_swapcontext AUE_NULL
1425 #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_lock AUE_NULL
1426 #define FREEBSD32_SYS_AUE_freebsd10_freebsd32_umtx_unlock AUE_NULL
1427 #define FREEBSD32_SYS_AUE_freebsd32_ksem_timedwait AUE_SEMWAIT
1428 #define FREEBSD32_SYS_AUE_freebsd32_thr_suspend AUE_NULL
1429 #define FREEBSD32_SYS_AUE_freebsd32__umtx_op AUE_NULL
1430 #define FREEBSD32_SYS_AUE_freebsd32_thr_new AUE_THR_NEW
1431 #define FREEBSD32_SYS_AUE_freebsd32_sigqueue AUE_NULL
1432 #define FREEBSD32_SYS_AUE_freebsd32_kmq_open AUE_MQ_OPEN
1433 #define FREEBSD32_SYS_AUE_freebsd32_kmq_setattr AUE_MQ_SETATTR
1434 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedreceive AUE_MQ_TIMEDRECEIVE
1435 #define FREEBSD32_SYS_AUE_freebsd32_kmq_timedsend AUE_MQ_TIMEDSEND
1436 #define FREEBSD32_SYS_AUE_freebsd32_kmq_notify AUE_MQ_NOTIFY
1437 #define FREEBSD32_SYS_AUE_freebsd32_aio_fsync AUE_AIO_FSYNC
1438 #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD
1439 #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE
1440 #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP
1441 #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK
1442 #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE
1443 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE
1444 #define FREEBSD32_SYS_AUE_freebsd32_pread AUE_PREAD
1445 #define FREEBSD32_SYS_AUE_freebsd32_pwrite AUE_PWRITE
1446 #define FREEBSD32_SYS_AUE_freebsd32_mmap AUE_MMAP
1447 #define FREEBSD32_SYS_AUE_freebsd32_lseek AUE_LSEEK
1448 #define FREEBSD32_SYS_AUE_freebsd32_truncate AUE_TRUNCATE
1449 #define FREEBSD32_SYS_AUE_freebsd32_ftruncate AUE_FTRUNCATE
1450 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL
1451 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setid AUE_NULL
1452 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getid AUE_NULL
1453 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getaffinity AUE_NULL
1454 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setaffinity AUE_NULL
1455 #define FREEBSD32_SYS_AUE_freebsd32_fexecve AUE_FEXECVE
1456 #define FREEBSD32_SYS_AUE_freebsd11_freebsd32_fstatat AUE_FSTATAT
1457 #define FREEBSD32_SYS_AUE_freebsd32_futimesat AUE_FUTIMESAT
1458 #define FREEBSD32_SYS_AUE_freebsd32_jail_get AUE_JAIL_GET
1459 #define FREEBSD32_SYS_AUE_freebsd32_jail_set AUE_JAIL_SET
1460 #define FREEBSD32_SYS_AUE_freebsd32_semctl AUE_SEMCTL
1461 #define FREEBSD32_SYS_AUE_freebsd32_msgctl AUE_MSGCTL
1462 #define FREEBSD32_SYS_AUE_freebsd32_shmctl AUE_SHMCTL
1463 #define FREEBSD32_SYS_AUE_freebsd32_pselect AUE_SELECT
1464 #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE
1465 #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE
1466 #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6
1467 #define FREEBSD32_SYS_AUE_freebsd32_posix_fallocate AUE_POSIX_FALLOCATE
1468 #define FREEBSD32_SYS_AUE_freebsd32_posix_fadvise AUE_POSIX_FADVISE
1469 #define FREEBSD32_SYS_AUE_freebsd32_wait6 AUE_WAIT6
1470 #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_limit AUE_CAP_IOCTLS_LIMIT
1471 #define FREEBSD32_SYS_AUE_freebsd32_cap_ioctls_get AUE_CAP_IOCTLS_GET
1472 #define FREEBSD32_SYS_AUE_freebsd32_aio_mlock AUE_AIO_MLOCK
1473 #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL
1474 #define FREEBSD32_SYS_AUE_freebsd32_procctl AUE_PROCCTL
1475 #define FREEBSD32_SYS_AUE_freebsd32_ppoll AUE_POLL
1476 #define FREEBSD32_SYS_AUE_freebsd32_futimens AUE_FUTIMES
1477 #define FREEBSD32_SYS_AUE_freebsd32_utimensat AUE_FUTIMESAT
1478 #define FREEBSD32_SYS_AUE_freebsd32_fstat AUE_FSTAT
1479 #define FREEBSD32_SYS_AUE_freebsd32_fstatat AUE_FSTATAT
1480 #define FREEBSD32_SYS_AUE_freebsd32_fhstat AUE_FHSTAT
1481 #define FREEBSD32_SYS_AUE_freebsd32_mknodat AUE_MKNODAT
1482 #define FREEBSD32_SYS_AUE_freebsd32_mknodat AUE_MKNODAT
1483 #define FREEBSD32_SYS_AUE_freebsd32_kevent AUE_KEVENT
1484 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_getdomain AUE_NULL
1485 #define FREEBSD32_SYS_AUE_freebsd32_cpuset_setdomain AUE_NULL
1486 #define FREEBSD32_SYS_AUE_freebsd32___sysctlbyname AUE_SYSCTL
1487 #define FREEBSD32_SYS_AUE_freebsd32_aio_writev AUE_AIO_WRITEV
1488 #define FREEBSD32_SYS_AUE_freebsd32_aio_readv AUE_AIO_READV
1489
1490 #undef PAD_
1491 #undef PADL_
1492 #undef PADR_
1493
1494 #endif /* !_FREEBSD32_SYSPROTO_H_ */
Cache object: 40db5aab212a6a3a79e02dd2f6cf1ea8
|