xref: /freebsd/sys/compat/freebsd32/freebsd32_proto.h (revision f856af0466c076beef4ea9b15d088e1119a945b8)
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $FreeBSD$
6  * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.88 2006/12/20 19:36:03 jkim Exp
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/_semaphore.h>
15 #include <sys/ucontext.h>
16 
17 #include <bsm/audit_kevents.h>
18 
19 struct proc;
20 
21 struct thread;
22 
23 #define	PAD_(t)	(sizeof(register_t) <= sizeof(t) ? \
24 		0 : sizeof(register_t) - sizeof(t))
25 
26 #if BYTE_ORDER == LITTLE_ENDIAN
27 #define	PADL_(t)	0
28 #define	PADR_(t)	PAD_(t)
29 #else
30 #define	PADL_(t)	PAD_(t)
31 #define	PADR_(t)	0
32 #endif
33 
34 struct freebsd32_wait4_args {
35 	char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
36 	char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
37 	char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
38 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
39 };
40 struct freebsd32_recvmsg_args {
41 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
42 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
43 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
44 };
45 struct freebsd32_sendmsg_args {
46 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
47 	char msg_l_[PADL_(struct msghdr32 *)]; struct msghdr32 * msg; char msg_r_[PADR_(struct msghdr32 *)];
48 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
49 };
50 struct freebsd32_recvfrom_args {
51 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
52 	char buf_l_[PADL_(u_int32_t)]; u_int32_t buf; char buf_r_[PADR_(u_int32_t)];
53 	char len_l_[PADL_(u_int32_t)]; u_int32_t len; char len_r_[PADR_(u_int32_t)];
54 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
55 	char from_l_[PADL_(u_int32_t)]; u_int32_t from; char from_r_[PADR_(u_int32_t)];
56 	char fromlenaddr_l_[PADL_(u_int32_t)]; u_int32_t fromlenaddr; char fromlenaddr_r_[PADR_(u_int32_t)];
57 };
58 struct ofreebsd32_sigpending_args {
59 	register_t dummy;
60 };
61 struct freebsd32_sigaltstack_args {
62 	char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
63 	char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
64 };
65 struct freebsd32_execve_args {
66 	char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
67 	char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
68 	char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
69 };
70 struct freebsd32_setitimer_args {
71 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
72 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
73 	char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
74 };
75 struct freebsd32_getitimer_args {
76 	char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
77 	char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
78 };
79 struct freebsd32_select_args {
80 	char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
81 	char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
82 	char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
83 	char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
84 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
85 };
86 struct freebsd32_gettimeofday_args {
87 	char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
88 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
89 };
90 struct freebsd32_getrusage_args {
91 	char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
92 	char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
93 };
94 struct freebsd32_readv_args {
95 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
96 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
97 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
98 };
99 struct freebsd32_writev_args {
100 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
101 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
102 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
103 };
104 struct freebsd32_settimeofday_args {
105 	char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
106 	char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
107 };
108 struct freebsd32_utimes_args {
109 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
110 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
111 };
112 struct freebsd32_adjtime_args {
113 	char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
114 	char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
115 };
116 struct freebsd32_semsys_args {
117 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
118 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
119 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
120 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
121 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
122 };
123 struct freebsd32_msgsys_args {
124 	char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
125 	char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
126 	char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
127 	char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
128 	char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
129 	char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
130 };
131 struct freebsd32_shmsys_args {
132 	char which_l_[PADL_(uint32_t)]; uint32_t which; char which_r_[PADR_(uint32_t)];
133 	char a2_l_[PADL_(uint32_t)]; uint32_t a2; char a2_r_[PADR_(uint32_t)];
134 	char a3_l_[PADL_(uint32_t)]; uint32_t a3; char a3_r_[PADR_(uint32_t)];
135 	char a4_l_[PADL_(uint32_t)]; uint32_t a4; char a4_r_[PADR_(uint32_t)];
136 };
137 struct freebsd32_pread_args {
138 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
139 	char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
140 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
141 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
142 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
143 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
144 };
145 struct freebsd32_pwrite_args {
146 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
147 	char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
148 	char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
149 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
150 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
151 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
152 };
153 struct freebsd32_stat_args {
154 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
155 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
156 };
157 struct freebsd32_fstat_args {
158 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
159 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
160 };
161 struct freebsd32_lstat_args {
162 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
163 	char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
164 };
165 struct freebsd32_mmap_args {
166 	char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
167 	char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
168 	char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
169 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
170 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
171 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
172 	char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)];
173 	char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)];
174 };
175 struct freebsd32_lseek_args {
176 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
177 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
178 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
179 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
180 	char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
181 };
182 struct freebsd32_truncate_args {
183 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
184 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
185 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
186 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
187 };
188 struct freebsd32_ftruncate_args {
189 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
190 	char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
191 	char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
192 	char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
193 };
194 struct freebsd32_sysctl_args {
195 	char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
196 	char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
197 	char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
198 	char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)];
199 	char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
200 	char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)];
201 };
202 struct freebsd32_futimes_args {
203 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
204 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
205 };
206 struct freebsd32_msgsnd_args {
207 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
208 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
209 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
210 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
211 };
212 struct freebsd32_msgrcv_args {
213 	char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
214 	char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)];
215 	char msgsz_l_[PADL_(size_t)]; size_t msgsz; char msgsz_r_[PADR_(size_t)];
216 	char msgtyp_l_[PADL_(long)]; long msgtyp; char msgtyp_r_[PADR_(long)];
217 	char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
218 };
219 struct freebsd32_shmctl_args {
220 	char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
221 	char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
222 	char buf_l_[PADL_(struct shmid_ds *)]; struct shmid_ds * buf; char buf_r_[PADR_(struct shmid_ds *)];
223 };
224 struct freebsd32_clock_gettime_args {
225 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
226 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
227 };
228 struct freebsd32_clock_settime_args {
229 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
230 	char tp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * tp; char tp_r_[PADR_(const struct timespec32 *)];
231 };
232 struct freebsd32_clock_getres_args {
233 	char clock_id_l_[PADL_(clockid_t)]; clockid_t clock_id; char clock_id_r_[PADR_(clockid_t)];
234 	char tp_l_[PADL_(struct timespec32 *)]; struct timespec32 * tp; char tp_r_[PADR_(struct timespec32 *)];
235 };
236 struct freebsd32_nanosleep_args {
237 	char rqtp_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * rqtp; char rqtp_r_[PADR_(const struct timespec32 *)];
238 	char rmtp_l_[PADL_(struct timespec32 *)]; struct timespec32 * rmtp; char rmtp_r_[PADR_(struct timespec32 *)];
239 };
240 struct freebsd32_lutimes_args {
241 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
242 	char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
243 };
244 struct freebsd32_preadv_args {
245 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
246 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
247 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
248 	char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
249 };
250 struct freebsd32_pwritev_args {
251 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
252 	char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
253 	char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
254 	char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
255 };
256 struct freebsd32_modstat_args {
257 	char modid_l_[PADL_(int)]; int modid; char modid_r_[PADR_(int)];
258 	char stat_l_[PADL_(struct module_stat32 *)]; struct module_stat32 * stat; char stat_r_[PADR_(struct module_stat32 *)];
259 };
260 struct freebsd32_sigtimedwait_args {
261 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
262 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
263 	char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)];
264 };
265 struct freebsd32_sigwaitinfo_args {
266 	char set_l_[PADL_(const sigset_t *)]; const sigset_t * set; char set_r_[PADR_(const sigset_t *)];
267 	char info_l_[PADL_(siginfo_t *)]; siginfo_t * info; char info_r_[PADR_(siginfo_t *)];
268 };
269 struct freebsd32_kevent_args {
270 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
271 	char changelist_l_[PADL_(const struct kevent32 *)]; const struct kevent32 * changelist; char changelist_r_[PADR_(const struct kevent32 *)];
272 	char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
273 	char eventlist_l_[PADL_(struct kevent32 *)]; struct kevent32 * eventlist; char eventlist_r_[PADR_(struct kevent32 *)];
274 	char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
275 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
276 };
277 struct freebsd32_sendfile_args {
278 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
279 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
280 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
281 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
282 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
283 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
284 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
285 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
286 };
287 struct freebsd32_sigaction_args {
288 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
289 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
290 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
291 };
292 struct freebsd32_sigreturn_args {
293 	char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)];
294 };
295 struct freebsd32_getcontext_args {
296 	char ucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(struct freebsd32_ucontext *)];
297 };
298 struct freebsd32_setcontext_args {
299 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
300 };
301 struct freebsd32_swapcontext_args {
302 	char oucp_l_[PADL_(struct freebsd32_ucontext *)]; struct freebsd32_ucontext * oucp; char oucp_r_[PADR_(struct freebsd32_ucontext *)];
303 	char ucp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * ucp; char ucp_r_[PADR_(const struct freebsd32_ucontext *)];
304 };
305 struct freebsd32_umtx_lock_args {
306 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
307 };
308 struct freebsd32_umtx_unlock_args {
309 	char umtx_l_[PADL_(struct umtx *)]; struct umtx * umtx; char umtx_r_[PADR_(struct umtx *)];
310 };
311 struct freebsd32_thr_suspend_args {
312 	char timeout_l_[PADL_(const struct timespec32 *)]; const struct timespec32 * timeout; char timeout_r_[PADR_(const struct timespec32 *)];
313 };
314 struct freebsd32_umtx_op_args {
315 	char obj_l_[PADL_(void *)]; void * obj; char obj_r_[PADR_(void *)];
316 	char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
317 	char val_l_[PADL_(u_long)]; u_long val; char val_r_[PADR_(u_long)];
318 	char uaddr_l_[PADL_(void *)]; void * uaddr; char uaddr_r_[PADR_(void *)];
319 	char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)];
320 };
321 struct freebsd32_thr_new_args {
322 	char param_l_[PADL_(struct thr_param32 *)]; struct thr_param32 * param; char param_r_[PADR_(struct thr_param32 *)];
323 	char param_size_l_[PADL_(int)]; int param_size; char param_size_r_[PADR_(int)];
324 };
325 int	freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
326 int	freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
327 int	freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
328 int	freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
329 int	freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
330 int	freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
331 int	freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
332 int	freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *);
333 int	freebsd32_select(struct thread *, struct freebsd32_select_args *);
334 int	freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *);
335 int	freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *);
336 int	freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
337 int	freebsd32_writev(struct thread *, struct freebsd32_writev_args *);
338 int	freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *);
339 int	freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *);
340 int	freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *);
341 int	freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *);
342 int	freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *);
343 int	freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *);
344 int	freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
345 int	freebsd32_pwrite(struct thread *, struct freebsd32_pwrite_args *);
346 int	freebsd32_stat(struct thread *, struct freebsd32_stat_args *);
347 int	freebsd32_fstat(struct thread *, struct freebsd32_fstat_args *);
348 int	freebsd32_lstat(struct thread *, struct freebsd32_lstat_args *);
349 int	freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
350 int	freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
351 int	freebsd32_truncate(struct thread *, struct freebsd32_truncate_args *);
352 int	freebsd32_ftruncate(struct thread *, struct freebsd32_ftruncate_args *);
353 int	freebsd32_sysctl(struct thread *, struct freebsd32_sysctl_args *);
354 int	freebsd32_futimes(struct thread *, struct freebsd32_futimes_args *);
355 int	freebsd32_msgsnd(struct thread *, struct freebsd32_msgsnd_args *);
356 int	freebsd32_msgrcv(struct thread *, struct freebsd32_msgrcv_args *);
357 int	freebsd32_shmctl(struct thread *, struct freebsd32_shmctl_args *);
358 int	freebsd32_clock_gettime(struct thread *, struct freebsd32_clock_gettime_args *);
359 int	freebsd32_clock_settime(struct thread *, struct freebsd32_clock_settime_args *);
360 int	freebsd32_clock_getres(struct thread *, struct freebsd32_clock_getres_args *);
361 int	freebsd32_nanosleep(struct thread *, struct freebsd32_nanosleep_args *);
362 int	freebsd32_lutimes(struct thread *, struct freebsd32_lutimes_args *);
363 int	freebsd32_preadv(struct thread *, struct freebsd32_preadv_args *);
364 int	freebsd32_pwritev(struct thread *, struct freebsd32_pwritev_args *);
365 int	freebsd32_modstat(struct thread *, struct freebsd32_modstat_args *);
366 int	freebsd32_sigtimedwait(struct thread *, struct freebsd32_sigtimedwait_args *);
367 int	freebsd32_sigwaitinfo(struct thread *, struct freebsd32_sigwaitinfo_args *);
368 int	freebsd32_kevent(struct thread *, struct freebsd32_kevent_args *);
369 int	freebsd32_sendfile(struct thread *, struct freebsd32_sendfile_args *);
370 int	freebsd32_sigaction(struct thread *, struct freebsd32_sigaction_args *);
371 int	freebsd32_sigreturn(struct thread *, struct freebsd32_sigreturn_args *);
372 int	freebsd32_getcontext(struct thread *, struct freebsd32_getcontext_args *);
373 int	freebsd32_setcontext(struct thread *, struct freebsd32_setcontext_args *);
374 int	freebsd32_swapcontext(struct thread *, struct freebsd32_swapcontext_args *);
375 int	freebsd32_umtx_lock(struct thread *, struct freebsd32_umtx_lock_args *);
376 int	freebsd32_umtx_unlock(struct thread *, struct freebsd32_umtx_unlock_args *);
377 int	freebsd32_thr_suspend(struct thread *, struct freebsd32_thr_suspend_args *);
378 int	freebsd32_umtx_op(struct thread *, struct freebsd32_umtx_op_args *);
379 int	freebsd32_thr_new(struct thread *, struct freebsd32_thr_new_args *);
380 
381 #ifdef COMPAT_43
382 
383 struct ofreebsd32_sigaction_args {
384 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
385 	char nsa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * nsa; char nsa_r_[PADR_(struct osigaction32 *)];
386 	char osa_l_[PADL_(struct osigaction32 *)]; struct osigaction32 * osa; char osa_r_[PADR_(struct osigaction32 *)];
387 };
388 struct ofreebsd32_sigprocmask_args {
389 	char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
390 	char mask_l_[PADL_(osigset_t)]; osigset_t mask; char mask_r_[PADR_(osigset_t)];
391 };
392 struct ofreebsd32_sigvec_args {
393 	char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
394 	char nsv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * nsv; char nsv_r_[PADR_(struct sigvec32 *)];
395 	char osv_l_[PADL_(struct sigvec32 *)]; struct sigvec32 * osv; char osv_r_[PADR_(struct sigvec32 *)];
396 };
397 struct ofreebsd32_sigblock_args {
398 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
399 };
400 struct ofreebsd32_sigsetmask_args {
401 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
402 };
403 struct ofreebsd32_sigsuspend_args {
404 	char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
405 };
406 struct ofreebsd32_sigstack_args {
407 	char nss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * nss; char nss_r_[PADR_(struct sigstack32 *)];
408 	char oss_l_[PADL_(struct sigstack32 *)]; struct sigstack32 * oss; char oss_r_[PADR_(struct sigstack32 *)];
409 };
410 int	ofreebsd32_sigaction(struct thread *, struct ofreebsd32_sigaction_args *);
411 int	ofreebsd32_sigprocmask(struct thread *, struct ofreebsd32_sigprocmask_args *);
412 int	ofreebsd32_sigpending(struct thread *, struct ofreebsd32_sigpending_args *);
413 int	ofreebsd32_sigvec(struct thread *, struct ofreebsd32_sigvec_args *);
414 int	ofreebsd32_sigblock(struct thread *, struct ofreebsd32_sigblock_args *);
415 int	ofreebsd32_sigsetmask(struct thread *, struct ofreebsd32_sigsetmask_args *);
416 int	ofreebsd32_sigsuspend(struct thread *, struct ofreebsd32_sigsuspend_args *);
417 int	ofreebsd32_sigstack(struct thread *, struct ofreebsd32_sigstack_args *);
418 
419 #endif /* COMPAT_43 */
420 
421 
422 #ifdef COMPAT_FREEBSD4
423 
424 struct freebsd4_freebsd32_getfsstat_args {
425 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
426 	char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
427 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
428 };
429 struct freebsd4_freebsd32_statfs_args {
430 	char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
431 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
432 };
433 struct freebsd4_freebsd32_fstatfs_args {
434 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
435 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
436 };
437 struct freebsd4_freebsd32_fhstatfs_args {
438 	char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)];
439 	char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
440 };
441 struct freebsd4_freebsd32_sendfile_args {
442 	char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
443 	char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
444 	char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
445 	char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
446 	char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
447 	char hdtr_l_[PADL_(struct sf_hdtr32 *)]; struct sf_hdtr32 * hdtr; char hdtr_r_[PADR_(struct sf_hdtr32 *)];
448 	char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
449 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
450 };
451 struct freebsd4_freebsd32_sigaction_args {
452 	char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
453 	char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
454 	char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
455 };
456 struct freebsd4_freebsd32_sigreturn_args {
457 	char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)];
458 };
459 int	freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *);
460 int	freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *);
461 int	freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *);
462 int	freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *);
463 int	freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *);
464 int	freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *);
465 int	freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *);
466 
467 #endif /* COMPAT_FREEBSD4 */
468 
469 #define	FREEBSD32_SYS_AUE_freebsd32_wait4	AUE_WAIT4
470 #define	FREEBSD32_SYS_AUE_freebsd32_recvmsg	AUE_RECVMSG
471 #define	FREEBSD32_SYS_AUE_freebsd32_sendmsg	AUE_SENDMSG
472 #define	FREEBSD32_SYS_AUE_freebsd32_recvfrom	AUE_RECVFROM
473 #define	FREEBSD32_SYS_AUE_freebsd32_sigaltstack	AUE_SIGALTSTACK
474 #define	FREEBSD32_SYS_AUE_freebsd32_execve	AUE_EXECVE
475 #define	FREEBSD32_SYS_AUE_freebsd32_setitimer	AUE_SETITIMER
476 #define	FREEBSD32_SYS_AUE_freebsd32_getitimer	AUE_GETITIMER
477 #define	FREEBSD32_SYS_AUE_freebsd32_select	AUE_SELECT
478 #define	FREEBSD32_SYS_AUE_freebsd32_gettimeofday	AUE_GETTIMEOFDAY
479 #define	FREEBSD32_SYS_AUE_freebsd32_getrusage	AUE_GETRUSAGE
480 #define	FREEBSD32_SYS_AUE_freebsd32_readv	AUE_READV
481 #define	FREEBSD32_SYS_AUE_freebsd32_writev	AUE_WRITEV
482 #define	FREEBSD32_SYS_AUE_freebsd32_settimeofday	AUE_SETTIMEOFDAY
483 #define	FREEBSD32_SYS_AUE_freebsd32_utimes	AUE_UTIMES
484 #define	FREEBSD32_SYS_AUE_freebsd32_adjtime	AUE_ADJTIME
485 #define	FREEBSD32_SYS_AUE_freebsd32_semsys	AUE_SEMSYS
486 #define	FREEBSD32_SYS_AUE_freebsd32_msgsys	AUE_MSGSYS
487 #define	FREEBSD32_SYS_AUE_freebsd32_shmsys	AUE_SHMSYS
488 #define	FREEBSD32_SYS_AUE_freebsd32_pread	AUE_PREAD
489 #define	FREEBSD32_SYS_AUE_freebsd32_pwrite	AUE_PWRITE
490 #define	FREEBSD32_SYS_AUE_freebsd32_stat	AUE_STAT
491 #define	FREEBSD32_SYS_AUE_freebsd32_fstat	AUE_FSTAT
492 #define	FREEBSD32_SYS_AUE_freebsd32_lstat	AUE_LSTAT
493 #define	FREEBSD32_SYS_AUE_freebsd32_mmap	AUE_MMAP
494 #define	FREEBSD32_SYS_AUE_freebsd32_lseek	AUE_LSEEK
495 #define	FREEBSD32_SYS_AUE_freebsd32_truncate	AUE_TRUNCATE
496 #define	FREEBSD32_SYS_AUE_freebsd32_ftruncate	AUE_FTRUNCATE
497 #define	FREEBSD32_SYS_AUE_freebsd32_sysctl	AUE_SYSCTL
498 #define	FREEBSD32_SYS_AUE_freebsd32_futimes	AUE_FUTIMES
499 #define	FREEBSD32_SYS_AUE_freebsd32_msgsnd	AUE_MSGSND
500 #define	FREEBSD32_SYS_AUE_freebsd32_msgrcv	AUE_MSGRCV
501 #define	FREEBSD32_SYS_AUE_freebsd32_shmctl	AUE_SHMCTL
502 #define	FREEBSD32_SYS_AUE_freebsd32_clock_gettime	AUE_NULL
503 #define	FREEBSD32_SYS_AUE_freebsd32_clock_settime	AUE_CLOCK_SETTIME
504 #define	FREEBSD32_SYS_AUE_freebsd32_clock_getres	AUE_NULL
505 #define	FREEBSD32_SYS_AUE_freebsd32_nanosleep	AUE_NULL
506 #define	FREEBSD32_SYS_AUE_freebsd32_lutimes	AUE_LUTIMES
507 #define	FREEBSD32_SYS_AUE_freebsd32_preadv	AUE_PREADV
508 #define	FREEBSD32_SYS_AUE_freebsd32_pwritev	AUE_PWRITEV
509 #define	FREEBSD32_SYS_AUE_freebsd32_modstat	AUE_NULL
510 #define	FREEBSD32_SYS_AUE_freebsd32_sigtimedwait	AUE_SIGWAIT
511 #define	FREEBSD32_SYS_AUE_freebsd32_sigwaitinfo	AUE_NULL
512 #define	FREEBSD32_SYS_AUE_freebsd32_kevent	AUE_NULL
513 #define	FREEBSD32_SYS_AUE_freebsd32_sendfile	AUE_SENDFILE
514 #define	FREEBSD32_SYS_AUE_freebsd32_sigaction	AUE_SIGACTION
515 #define	FREEBSD32_SYS_AUE_freebsd32_sigreturn	AUE_SIGRETURN
516 #define	FREEBSD32_SYS_AUE_freebsd32_getcontext	AUE_NULL
517 #define	FREEBSD32_SYS_AUE_freebsd32_setcontext	AUE_NULL
518 #define	FREEBSD32_SYS_AUE_freebsd32_swapcontext	AUE_NULL
519 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_lock	AUE_NULL
520 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_unlock	AUE_NULL
521 #define	FREEBSD32_SYS_AUE_freebsd32_thr_suspend	AUE_NULL
522 #define	FREEBSD32_SYS_AUE_freebsd32_umtx_op	AUE_NULL
523 #define	FREEBSD32_SYS_AUE_freebsd32_thr_new	AUE_NULL
524 
525 #undef PAD_
526 #undef PADL_
527 #undef PADR_
528 
529 #endif /* !_FREEBSD32_SYSPROTO_H_ */
530