netbsd32_syscallargs.h revision 1.30 1 1.17 cgd /* $NetBSD: netbsd32_syscallargs.h,v 1.30 2003/10/13 18:54:57 fvdl Exp $ */
2 1.1 mrg
3 1.1 mrg /*
4 1.1 mrg * System call argument lists.
5 1.1 mrg *
6 1.1 mrg * DO NOT EDIT-- this file is automatically generated.
7 1.30 fvdl * created from NetBSD: syscalls.master,v 1.24 2003/10/13 18:53:35 fvdl Exp
8 1.1 mrg */
9 1.1 mrg
10 1.8 mrg #ifndef _netbsd32_SYS__SYSCALLARGS_H_
11 1.24 mrg #define _netbsd32_SYS__SYSCALLARGS_H_
12 1.7 mrg
13 1.4 eeh #ifdef syscallarg
14 1.4 eeh #undef syscallarg
15 1.4 eeh #endif
16 1.4 eeh
17 1.11 eeh #define syscallarg(x) \
18 1.11 eeh union { \
19 1.11 eeh register32_t pad; \
20 1.11 eeh struct { x datum; } le; \
21 1.25 lukem struct { /* LINTED zero array dimension */ \
22 1.25 lukem int8_t pad[ /* CONSTCOND */ \
23 1.25 lukem (sizeof (register32_t) < sizeof (x)) \
24 1.11 eeh ? 0 \
25 1.11 eeh : sizeof (register32_t) - sizeof (x)]; \
26 1.11 eeh x datum; \
27 1.11 eeh } be; \
28 1.11 eeh }
29 1.4 eeh
30 1.11 eeh struct netbsd32_exit_args {
31 1.4 eeh syscallarg(int) rval;
32 1.4 eeh };
33 1.1 mrg
34 1.11 eeh struct netbsd32_read_args {
35 1.1 mrg syscallarg(int) fd;
36 1.8 mrg syscallarg(netbsd32_voidp) buf;
37 1.8 mrg syscallarg(netbsd32_size_t) nbyte;
38 1.1 mrg };
39 1.1 mrg
40 1.11 eeh struct netbsd32_write_args {
41 1.1 mrg syscallarg(int) fd;
42 1.8 mrg syscallarg(const netbsd32_voidp) buf;
43 1.8 mrg syscallarg(netbsd32_size_t) nbyte;
44 1.1 mrg };
45 1.1 mrg
46 1.11 eeh struct netbsd32_open_args {
47 1.8 mrg syscallarg(const netbsd32_charp) path;
48 1.1 mrg syscallarg(int) flags;
49 1.1 mrg syscallarg(mode_t) mode;
50 1.1 mrg };
51 1.1 mrg
52 1.11 eeh struct netbsd32_close_args {
53 1.4 eeh syscallarg(int) fd;
54 1.4 eeh };
55 1.4 eeh
56 1.11 eeh struct netbsd32_wait4_args {
57 1.1 mrg syscallarg(int) pid;
58 1.8 mrg syscallarg(netbsd32_intp) status;
59 1.1 mrg syscallarg(int) options;
60 1.8 mrg syscallarg(netbsd32_rusagep_t) rusage;
61 1.1 mrg };
62 1.1 mrg
63 1.11 eeh struct compat_43_netbsd32_ocreat_args {
64 1.8 mrg syscallarg(const netbsd32_charp) path;
65 1.1 mrg syscallarg(mode_t) mode;
66 1.1 mrg };
67 1.1 mrg
68 1.11 eeh struct netbsd32_link_args {
69 1.8 mrg syscallarg(const netbsd32_charp) path;
70 1.8 mrg syscallarg(const netbsd32_charp) link;
71 1.1 mrg };
72 1.1 mrg
73 1.11 eeh struct netbsd32_unlink_args {
74 1.8 mrg syscallarg(const netbsd32_charp) path;
75 1.1 mrg };
76 1.1 mrg
77 1.11 eeh struct netbsd32_chdir_args {
78 1.8 mrg syscallarg(const netbsd32_charp) path;
79 1.1 mrg };
80 1.1 mrg
81 1.11 eeh struct netbsd32_fchdir_args {
82 1.4 eeh syscallarg(int) fd;
83 1.4 eeh };
84 1.4 eeh
85 1.11 eeh struct netbsd32_mknod_args {
86 1.8 mrg syscallarg(const netbsd32_charp) path;
87 1.1 mrg syscallarg(mode_t) mode;
88 1.1 mrg syscallarg(dev_t) dev;
89 1.1 mrg };
90 1.1 mrg
91 1.11 eeh struct netbsd32_chmod_args {
92 1.8 mrg syscallarg(const netbsd32_charp) path;
93 1.1 mrg syscallarg(mode_t) mode;
94 1.1 mrg };
95 1.1 mrg
96 1.11 eeh struct netbsd32_chown_args {
97 1.8 mrg syscallarg(const netbsd32_charp) path;
98 1.1 mrg syscallarg(uid_t) uid;
99 1.1 mrg syscallarg(gid_t) gid;
100 1.1 mrg };
101 1.1 mrg
102 1.11 eeh struct netbsd32_break_args {
103 1.8 mrg syscallarg(netbsd32_charp) nsize;
104 1.1 mrg };
105 1.1 mrg
106 1.11 eeh struct netbsd32_getfsstat_args {
107 1.8 mrg syscallarg(netbsd32_statfsp_t) buf;
108 1.8 mrg syscallarg(netbsd32_long) bufsize;
109 1.1 mrg syscallarg(int) flags;
110 1.1 mrg };
111 1.1 mrg
112 1.11 eeh struct compat_43_netbsd32_olseek_args {
113 1.1 mrg syscallarg(int) fd;
114 1.8 mrg syscallarg(netbsd32_long) offset;
115 1.1 mrg syscallarg(int) whence;
116 1.1 mrg };
117 1.1 mrg
118 1.11 eeh struct netbsd32_mount_args {
119 1.8 mrg syscallarg(const netbsd32_charp) type;
120 1.8 mrg syscallarg(const netbsd32_charp) path;
121 1.1 mrg syscallarg(int) flags;
122 1.8 mrg syscallarg(netbsd32_voidp) data;
123 1.1 mrg };
124 1.1 mrg
125 1.11 eeh struct netbsd32_unmount_args {
126 1.8 mrg syscallarg(const netbsd32_charp) path;
127 1.1 mrg syscallarg(int) flags;
128 1.1 mrg };
129 1.1 mrg
130 1.11 eeh struct netbsd32_setuid_args {
131 1.4 eeh syscallarg(uid_t) uid;
132 1.4 eeh };
133 1.4 eeh
134 1.11 eeh struct netbsd32_ptrace_args {
135 1.1 mrg syscallarg(int) req;
136 1.1 mrg syscallarg(pid_t) pid;
137 1.8 mrg syscallarg(netbsd32_caddr_t) addr;
138 1.1 mrg syscallarg(int) data;
139 1.1 mrg };
140 1.1 mrg
141 1.11 eeh struct netbsd32_recvmsg_args {
142 1.1 mrg syscallarg(int) s;
143 1.8 mrg syscallarg(netbsd32_msghdrp_t) msg;
144 1.1 mrg syscallarg(int) flags;
145 1.1 mrg };
146 1.1 mrg
147 1.11 eeh struct netbsd32_sendmsg_args {
148 1.1 mrg syscallarg(int) s;
149 1.8 mrg syscallarg(const netbsd32_msghdrp_t) msg;
150 1.1 mrg syscallarg(int) flags;
151 1.1 mrg };
152 1.1 mrg
153 1.11 eeh struct netbsd32_recvfrom_args {
154 1.1 mrg syscallarg(int) s;
155 1.8 mrg syscallarg(netbsd32_voidp) buf;
156 1.8 mrg syscallarg(netbsd32_size_t) len;
157 1.1 mrg syscallarg(int) flags;
158 1.8 mrg syscallarg(netbsd32_sockaddrp_t) from;
159 1.8 mrg syscallarg(netbsd32_intp) fromlenaddr;
160 1.1 mrg };
161 1.1 mrg
162 1.11 eeh struct netbsd32_accept_args {
163 1.1 mrg syscallarg(int) s;
164 1.8 mrg syscallarg(netbsd32_sockaddrp_t) name;
165 1.8 mrg syscallarg(netbsd32_intp) anamelen;
166 1.1 mrg };
167 1.1 mrg
168 1.11 eeh struct netbsd32_getpeername_args {
169 1.1 mrg syscallarg(int) fdes;
170 1.8 mrg syscallarg(netbsd32_sockaddrp_t) asa;
171 1.8 mrg syscallarg(netbsd32_intp) alen;
172 1.1 mrg };
173 1.1 mrg
174 1.11 eeh struct netbsd32_getsockname_args {
175 1.1 mrg syscallarg(int) fdes;
176 1.8 mrg syscallarg(netbsd32_sockaddrp_t) asa;
177 1.8 mrg syscallarg(netbsd32_intp) alen;
178 1.1 mrg };
179 1.1 mrg
180 1.11 eeh struct netbsd32_access_args {
181 1.8 mrg syscallarg(const netbsd32_charp) path;
182 1.1 mrg syscallarg(int) flags;
183 1.1 mrg };
184 1.1 mrg
185 1.11 eeh struct netbsd32_chflags_args {
186 1.8 mrg syscallarg(const netbsd32_charp) path;
187 1.8 mrg syscallarg(netbsd32_u_long) flags;
188 1.1 mrg };
189 1.1 mrg
190 1.11 eeh struct netbsd32_fchflags_args {
191 1.1 mrg syscallarg(int) fd;
192 1.8 mrg syscallarg(netbsd32_u_long) flags;
193 1.1 mrg };
194 1.1 mrg
195 1.11 eeh struct netbsd32_kill_args {
196 1.4 eeh syscallarg(int) pid;
197 1.4 eeh syscallarg(int) signum;
198 1.4 eeh };
199 1.4 eeh
200 1.11 eeh struct compat_43_netbsd32_stat43_args {
201 1.8 mrg syscallarg(const netbsd32_charp) path;
202 1.8 mrg syscallarg(netbsd32_stat43p_t) ub;
203 1.1 mrg };
204 1.1 mrg
205 1.11 eeh struct compat_43_netbsd32_lstat43_args {
206 1.8 mrg syscallarg(const netbsd32_charp) path;
207 1.8 mrg syscallarg(netbsd32_stat43p_t) ub;
208 1.1 mrg };
209 1.1 mrg
210 1.11 eeh struct netbsd32_dup_args {
211 1.4 eeh syscallarg(int) fd;
212 1.4 eeh };
213 1.4 eeh
214 1.11 eeh struct netbsd32_profil_args {
215 1.8 mrg syscallarg(netbsd32_caddr_t) samples;
216 1.8 mrg syscallarg(netbsd32_size_t) size;
217 1.8 mrg syscallarg(netbsd32_u_long) offset;
218 1.1 mrg syscallarg(u_int) scale;
219 1.1 mrg };
220 1.30 fvdl #if defined(KTRACE) || !defined(_KERNEL)
221 1.1 mrg
222 1.11 eeh struct netbsd32_ktrace_args {
223 1.8 mrg syscallarg(const netbsd32_charp) fname;
224 1.1 mrg syscallarg(int) ops;
225 1.1 mrg syscallarg(int) facs;
226 1.1 mrg syscallarg(int) pid;
227 1.1 mrg };
228 1.30 fvdl #else
229 1.30 fvdl #endif
230 1.1 mrg
231 1.11 eeh struct netbsd32_sigaction_args {
232 1.1 mrg syscallarg(int) signum;
233 1.8 mrg syscallarg(const netbsd32_sigactionp_t) nsa;
234 1.8 mrg syscallarg(netbsd32_sigactionp_t) osa;
235 1.1 mrg };
236 1.1 mrg
237 1.11 eeh struct compat_13_netbsd32_sigprocmask_args {
238 1.4 eeh syscallarg(int) how;
239 1.4 eeh syscallarg(int) mask;
240 1.4 eeh };
241 1.4 eeh
242 1.11 eeh struct netbsd32___getlogin_args {
243 1.8 mrg syscallarg(netbsd32_charp) namebuf;
244 1.1 mrg syscallarg(u_int) namelen;
245 1.1 mrg };
246 1.1 mrg
247 1.11 eeh struct netbsd32_setlogin_args {
248 1.8 mrg syscallarg(const netbsd32_charp) namebuf;
249 1.1 mrg };
250 1.1 mrg
251 1.11 eeh struct netbsd32_acct_args {
252 1.8 mrg syscallarg(const netbsd32_charp) path;
253 1.1 mrg };
254 1.1 mrg
255 1.11 eeh struct compat_13_netbsd32_sigaltstack13_args {
256 1.8 mrg syscallarg(const netbsd32_sigaltstack13p_t) nss;
257 1.8 mrg syscallarg(netbsd32_sigaltstack13p_t) oss;
258 1.1 mrg };
259 1.1 mrg
260 1.11 eeh struct netbsd32_ioctl_args {
261 1.1 mrg syscallarg(int) fd;
262 1.8 mrg syscallarg(netbsd32_u_long) com;
263 1.8 mrg syscallarg(netbsd32_voidp) data;
264 1.1 mrg };
265 1.1 mrg
266 1.11 eeh struct compat_12_netbsd32_reboot_args {
267 1.4 eeh syscallarg(int) opt;
268 1.4 eeh };
269 1.4 eeh
270 1.11 eeh struct netbsd32_revoke_args {
271 1.8 mrg syscallarg(const netbsd32_charp) path;
272 1.1 mrg };
273 1.1 mrg
274 1.11 eeh struct netbsd32_symlink_args {
275 1.8 mrg syscallarg(const netbsd32_charp) path;
276 1.8 mrg syscallarg(const netbsd32_charp) link;
277 1.1 mrg };
278 1.1 mrg
279 1.11 eeh struct netbsd32_readlink_args {
280 1.8 mrg syscallarg(const netbsd32_charp) path;
281 1.8 mrg syscallarg(netbsd32_charp) buf;
282 1.8 mrg syscallarg(netbsd32_size_t) count;
283 1.1 mrg };
284 1.1 mrg
285 1.11 eeh struct netbsd32_execve_args {
286 1.8 mrg syscallarg(const netbsd32_charp) path;
287 1.8 mrg syscallarg(netbsd32_charpp) argp;
288 1.8 mrg syscallarg(netbsd32_charpp) envp;
289 1.1 mrg };
290 1.1 mrg
291 1.11 eeh struct netbsd32_umask_args {
292 1.4 eeh syscallarg(mode_t) newmask;
293 1.4 eeh };
294 1.4 eeh
295 1.11 eeh struct netbsd32_chroot_args {
296 1.8 mrg syscallarg(const netbsd32_charp) path;
297 1.1 mrg };
298 1.1 mrg
299 1.11 eeh struct compat_43_netbsd32_fstat43_args {
300 1.1 mrg syscallarg(int) fd;
301 1.8 mrg syscallarg(netbsd32_stat43p_t) sb;
302 1.1 mrg };
303 1.1 mrg
304 1.11 eeh struct compat_43_netbsd32_ogetkerninfo_args {
305 1.1 mrg syscallarg(int) op;
306 1.8 mrg syscallarg(netbsd32_charp) where;
307 1.8 mrg syscallarg(netbsd32_intp) size;
308 1.1 mrg syscallarg(int) arg;
309 1.1 mrg };
310 1.1 mrg
311 1.11 eeh struct compat_12_netbsd32_msync_args {
312 1.8 mrg syscallarg(netbsd32_caddr_t) addr;
313 1.8 mrg syscallarg(netbsd32_size_t) len;
314 1.1 mrg };
315 1.1 mrg
316 1.11 eeh struct netbsd32_sbrk_args {
317 1.11 eeh syscallarg(netbsd32_intptr_t) incr;
318 1.4 eeh };
319 1.4 eeh
320 1.11 eeh struct netbsd32_sstk_args {
321 1.4 eeh syscallarg(int) incr;
322 1.4 eeh };
323 1.4 eeh
324 1.11 eeh struct compat_43_netbsd32_ommap_args {
325 1.8 mrg syscallarg(netbsd32_caddr_t) addr;
326 1.8 mrg syscallarg(netbsd32_size_t) len;
327 1.1 mrg syscallarg(int) prot;
328 1.1 mrg syscallarg(int) flags;
329 1.1 mrg syscallarg(int) fd;
330 1.8 mrg syscallarg(netbsd32_long) pos;
331 1.1 mrg };
332 1.1 mrg
333 1.11 eeh struct netbsd32_ovadvise_args {
334 1.4 eeh syscallarg(int) anom;
335 1.4 eeh };
336 1.4 eeh
337 1.11 eeh struct netbsd32_munmap_args {
338 1.8 mrg syscallarg(netbsd32_voidp) addr;
339 1.8 mrg syscallarg(netbsd32_size_t) len;
340 1.1 mrg };
341 1.1 mrg
342 1.11 eeh struct netbsd32_mprotect_args {
343 1.8 mrg syscallarg(netbsd32_voidp) addr;
344 1.8 mrg syscallarg(netbsd32_size_t) len;
345 1.1 mrg syscallarg(int) prot;
346 1.1 mrg };
347 1.1 mrg
348 1.11 eeh struct netbsd32_madvise_args {
349 1.8 mrg syscallarg(netbsd32_voidp) addr;
350 1.8 mrg syscallarg(netbsd32_size_t) len;
351 1.1 mrg syscallarg(int) behav;
352 1.1 mrg };
353 1.1 mrg
354 1.11 eeh struct netbsd32_mincore_args {
355 1.8 mrg syscallarg(netbsd32_caddr_t) addr;
356 1.8 mrg syscallarg(netbsd32_size_t) len;
357 1.8 mrg syscallarg(netbsd32_charp) vec;
358 1.1 mrg };
359 1.1 mrg
360 1.11 eeh struct netbsd32_getgroups_args {
361 1.1 mrg syscallarg(int) gidsetsize;
362 1.8 mrg syscallarg(netbsd32_gid_tp) gidset;
363 1.1 mrg };
364 1.1 mrg
365 1.11 eeh struct netbsd32_setgroups_args {
366 1.1 mrg syscallarg(int) gidsetsize;
367 1.8 mrg syscallarg(const netbsd32_gid_tp) gidset;
368 1.1 mrg };
369 1.1 mrg
370 1.11 eeh struct netbsd32_setpgid_args {
371 1.4 eeh syscallarg(int) pid;
372 1.4 eeh syscallarg(int) pgid;
373 1.4 eeh };
374 1.4 eeh
375 1.11 eeh struct netbsd32_setitimer_args {
376 1.1 mrg syscallarg(int) which;
377 1.8 mrg syscallarg(const netbsd32_itimervalp_t) itv;
378 1.8 mrg syscallarg(netbsd32_itimervalp_t) oitv;
379 1.1 mrg };
380 1.1 mrg
381 1.11 eeh struct compat_12_netbsd32_oswapon_args {
382 1.8 mrg syscallarg(const netbsd32_charp) name;
383 1.1 mrg };
384 1.1 mrg
385 1.11 eeh struct netbsd32_getitimer_args {
386 1.1 mrg syscallarg(int) which;
387 1.8 mrg syscallarg(netbsd32_itimervalp_t) itv;
388 1.1 mrg };
389 1.1 mrg
390 1.11 eeh struct compat_43_netbsd32_ogethostname_args {
391 1.8 mrg syscallarg(netbsd32_charp) hostname;
392 1.1 mrg syscallarg(u_int) len;
393 1.1 mrg };
394 1.1 mrg
395 1.11 eeh struct compat_43_netbsd32_osethostname_args {
396 1.8 mrg syscallarg(netbsd32_charp) hostname;
397 1.1 mrg syscallarg(u_int) len;
398 1.1 mrg };
399 1.1 mrg
400 1.11 eeh struct netbsd32_dup2_args {
401 1.4 eeh syscallarg(int) from;
402 1.4 eeh syscallarg(int) to;
403 1.4 eeh };
404 1.4 eeh
405 1.11 eeh struct netbsd32_fcntl_args {
406 1.1 mrg syscallarg(int) fd;
407 1.1 mrg syscallarg(int) cmd;
408 1.8 mrg syscallarg(netbsd32_voidp) arg;
409 1.1 mrg };
410 1.1 mrg
411 1.11 eeh struct netbsd32_select_args {
412 1.1 mrg syscallarg(int) nd;
413 1.8 mrg syscallarg(netbsd32_fd_setp_t) in;
414 1.8 mrg syscallarg(netbsd32_fd_setp_t) ou;
415 1.8 mrg syscallarg(netbsd32_fd_setp_t) ex;
416 1.8 mrg syscallarg(netbsd32_timevalp_t) tv;
417 1.1 mrg };
418 1.1 mrg
419 1.11 eeh struct netbsd32_fsync_args {
420 1.4 eeh syscallarg(int) fd;
421 1.4 eeh };
422 1.4 eeh
423 1.11 eeh struct netbsd32_setpriority_args {
424 1.4 eeh syscallarg(int) which;
425 1.4 eeh syscallarg(int) who;
426 1.4 eeh syscallarg(int) prio;
427 1.4 eeh };
428 1.4 eeh
429 1.11 eeh struct netbsd32_socket_args {
430 1.4 eeh syscallarg(int) domain;
431 1.4 eeh syscallarg(int) type;
432 1.4 eeh syscallarg(int) protocol;
433 1.4 eeh };
434 1.4 eeh
435 1.11 eeh struct netbsd32_connect_args {
436 1.1 mrg syscallarg(int) s;
437 1.8 mrg syscallarg(const netbsd32_sockaddrp_t) name;
438 1.1 mrg syscallarg(int) namelen;
439 1.1 mrg };
440 1.1 mrg
441 1.11 eeh struct compat_43_netbsd32_oaccept_args {
442 1.1 mrg syscallarg(int) s;
443 1.8 mrg syscallarg(netbsd32_caddr_t) name;
444 1.8 mrg syscallarg(netbsd32_intp) anamelen;
445 1.1 mrg };
446 1.1 mrg
447 1.11 eeh struct netbsd32_getpriority_args {
448 1.4 eeh syscallarg(int) which;
449 1.4 eeh syscallarg(int) who;
450 1.4 eeh };
451 1.4 eeh
452 1.11 eeh struct compat_43_netbsd32_osend_args {
453 1.1 mrg syscallarg(int) s;
454 1.8 mrg syscallarg(netbsd32_caddr_t) buf;
455 1.1 mrg syscallarg(int) len;
456 1.1 mrg syscallarg(int) flags;
457 1.1 mrg };
458 1.1 mrg
459 1.11 eeh struct compat_43_netbsd32_orecv_args {
460 1.1 mrg syscallarg(int) s;
461 1.8 mrg syscallarg(netbsd32_caddr_t) buf;
462 1.1 mrg syscallarg(int) len;
463 1.1 mrg syscallarg(int) flags;
464 1.1 mrg };
465 1.1 mrg
466 1.12 eeh struct compat_13_netbsd32_sigreturn_args {
467 1.8 mrg syscallarg(netbsd32_sigcontextp_t) sigcntxp;
468 1.1 mrg };
469 1.1 mrg
470 1.11 eeh struct netbsd32_bind_args {
471 1.1 mrg syscallarg(int) s;
472 1.8 mrg syscallarg(const netbsd32_sockaddrp_t) name;
473 1.1 mrg syscallarg(int) namelen;
474 1.1 mrg };
475 1.1 mrg
476 1.11 eeh struct netbsd32_setsockopt_args {
477 1.1 mrg syscallarg(int) s;
478 1.1 mrg syscallarg(int) level;
479 1.1 mrg syscallarg(int) name;
480 1.8 mrg syscallarg(const netbsd32_voidp) val;
481 1.1 mrg syscallarg(int) valsize;
482 1.1 mrg };
483 1.1 mrg
484 1.11 eeh struct netbsd32_listen_args {
485 1.4 eeh syscallarg(int) s;
486 1.4 eeh syscallarg(int) backlog;
487 1.4 eeh };
488 1.4 eeh
489 1.11 eeh struct compat_43_netbsd32_osigvec_args {
490 1.1 mrg syscallarg(int) signum;
491 1.8 mrg syscallarg(netbsd32_sigvecp_t) nsv;
492 1.8 mrg syscallarg(netbsd32_sigvecp_t) osv;
493 1.1 mrg };
494 1.30 fvdl #ifdef COMPAT_43
495 1.1 mrg
496 1.11 eeh struct compat_43_netbsd32_sigblock_args {
497 1.4 eeh syscallarg(int) mask;
498 1.4 eeh };
499 1.4 eeh
500 1.11 eeh struct compat_43_netbsd32_sigsetmask_args {
501 1.4 eeh syscallarg(int) mask;
502 1.4 eeh };
503 1.30 fvdl #else
504 1.30 fvdl #endif
505 1.4 eeh
506 1.11 eeh struct compat_13_netbsd32_sigsuspend_args {
507 1.4 eeh syscallarg(int) mask;
508 1.4 eeh };
509 1.4 eeh
510 1.11 eeh struct compat_43_netbsd32_osigstack_args {
511 1.8 mrg syscallarg(netbsd32_sigstackp_t) nss;
512 1.8 mrg syscallarg(netbsd32_sigstackp_t) oss;
513 1.1 mrg };
514 1.1 mrg
515 1.11 eeh struct compat_43_netbsd32_orecvmsg_args {
516 1.1 mrg syscallarg(int) s;
517 1.8 mrg syscallarg(netbsd32_omsghdrp_t) msg;
518 1.1 mrg syscallarg(int) flags;
519 1.1 mrg };
520 1.1 mrg
521 1.11 eeh struct compat_43_netbsd32_osendmsg_args {
522 1.1 mrg syscallarg(int) s;
523 1.8 mrg syscallarg(netbsd32_caddr_t) msg;
524 1.1 mrg syscallarg(int) flags;
525 1.1 mrg };
526 1.1 mrg
527 1.11 eeh struct netbsd32_gettimeofday_args {
528 1.8 mrg syscallarg(netbsd32_timevalp_t) tp;
529 1.8 mrg syscallarg(netbsd32_timezonep_t) tzp;
530 1.1 mrg };
531 1.1 mrg
532 1.11 eeh struct netbsd32_getrusage_args {
533 1.1 mrg syscallarg(int) who;
534 1.8 mrg syscallarg(netbsd32_rusagep_t) rusage;
535 1.1 mrg };
536 1.1 mrg
537 1.11 eeh struct netbsd32_getsockopt_args {
538 1.1 mrg syscallarg(int) s;
539 1.1 mrg syscallarg(int) level;
540 1.1 mrg syscallarg(int) name;
541 1.8 mrg syscallarg(netbsd32_voidp) val;
542 1.8 mrg syscallarg(netbsd32_intp) avalsize;
543 1.1 mrg };
544 1.1 mrg
545 1.11 eeh struct netbsd32_readv_args {
546 1.1 mrg syscallarg(int) fd;
547 1.8 mrg syscallarg(const netbsd32_iovecp_t) iovp;
548 1.1 mrg syscallarg(int) iovcnt;
549 1.1 mrg };
550 1.1 mrg
551 1.11 eeh struct netbsd32_writev_args {
552 1.1 mrg syscallarg(int) fd;
553 1.8 mrg syscallarg(const netbsd32_iovecp_t) iovp;
554 1.1 mrg syscallarg(int) iovcnt;
555 1.1 mrg };
556 1.1 mrg
557 1.11 eeh struct netbsd32_settimeofday_args {
558 1.8 mrg syscallarg(const netbsd32_timevalp_t) tv;
559 1.8 mrg syscallarg(const netbsd32_timezonep_t) tzp;
560 1.1 mrg };
561 1.1 mrg
562 1.11 eeh struct netbsd32_fchown_args {
563 1.4 eeh syscallarg(int) fd;
564 1.4 eeh syscallarg(uid_t) uid;
565 1.4 eeh syscallarg(gid_t) gid;
566 1.4 eeh };
567 1.4 eeh
568 1.11 eeh struct netbsd32_fchmod_args {
569 1.4 eeh syscallarg(int) fd;
570 1.4 eeh syscallarg(mode_t) mode;
571 1.4 eeh };
572 1.4 eeh
573 1.11 eeh struct compat_43_netbsd32_orecvfrom_args {
574 1.1 mrg syscallarg(int) s;
575 1.8 mrg syscallarg(netbsd32_caddr_t) buf;
576 1.8 mrg syscallarg(netbsd32_size_t) len;
577 1.1 mrg syscallarg(int) flags;
578 1.8 mrg syscallarg(netbsd32_caddr_t) from;
579 1.8 mrg syscallarg(netbsd32_intp) fromlenaddr;
580 1.1 mrg };
581 1.1 mrg
582 1.11 eeh struct netbsd32_setreuid_args {
583 1.4 eeh syscallarg(uid_t) ruid;
584 1.4 eeh syscallarg(uid_t) euid;
585 1.4 eeh };
586 1.4 eeh
587 1.11 eeh struct netbsd32_setregid_args {
588 1.4 eeh syscallarg(gid_t) rgid;
589 1.4 eeh syscallarg(gid_t) egid;
590 1.4 eeh };
591 1.4 eeh
592 1.11 eeh struct netbsd32_rename_args {
593 1.8 mrg syscallarg(const netbsd32_charp) from;
594 1.8 mrg syscallarg(const netbsd32_charp) to;
595 1.1 mrg };
596 1.1 mrg
597 1.11 eeh struct compat_43_netbsd32_otruncate_args {
598 1.8 mrg syscallarg(const netbsd32_charp) path;
599 1.8 mrg syscallarg(netbsd32_long) length;
600 1.1 mrg };
601 1.1 mrg
602 1.11 eeh struct compat_43_netbsd32_oftruncate_args {
603 1.1 mrg syscallarg(int) fd;
604 1.8 mrg syscallarg(netbsd32_long) length;
605 1.1 mrg };
606 1.1 mrg
607 1.11 eeh struct netbsd32_flock_args {
608 1.4 eeh syscallarg(int) fd;
609 1.4 eeh syscallarg(int) how;
610 1.4 eeh };
611 1.4 eeh
612 1.11 eeh struct netbsd32_mkfifo_args {
613 1.8 mrg syscallarg(const netbsd32_charp) path;
614 1.1 mrg syscallarg(mode_t) mode;
615 1.1 mrg };
616 1.1 mrg
617 1.11 eeh struct netbsd32_sendto_args {
618 1.1 mrg syscallarg(int) s;
619 1.8 mrg syscallarg(const netbsd32_voidp) buf;
620 1.8 mrg syscallarg(netbsd32_size_t) len;
621 1.1 mrg syscallarg(int) flags;
622 1.8 mrg syscallarg(const netbsd32_sockaddrp_t) to;
623 1.1 mrg syscallarg(int) tolen;
624 1.1 mrg };
625 1.1 mrg
626 1.11 eeh struct netbsd32_shutdown_args {
627 1.4 eeh syscallarg(int) s;
628 1.4 eeh syscallarg(int) how;
629 1.4 eeh };
630 1.4 eeh
631 1.11 eeh struct netbsd32_socketpair_args {
632 1.1 mrg syscallarg(int) domain;
633 1.1 mrg syscallarg(int) type;
634 1.1 mrg syscallarg(int) protocol;
635 1.8 mrg syscallarg(netbsd32_intp) rsv;
636 1.1 mrg };
637 1.1 mrg
638 1.11 eeh struct netbsd32_mkdir_args {
639 1.8 mrg syscallarg(const netbsd32_charp) path;
640 1.1 mrg syscallarg(mode_t) mode;
641 1.1 mrg };
642 1.1 mrg
643 1.11 eeh struct netbsd32_rmdir_args {
644 1.8 mrg syscallarg(const netbsd32_charp) path;
645 1.1 mrg };
646 1.1 mrg
647 1.11 eeh struct netbsd32_utimes_args {
648 1.8 mrg syscallarg(const netbsd32_charp) path;
649 1.8 mrg syscallarg(const netbsd32_timevalp_t) tptr;
650 1.1 mrg };
651 1.1 mrg
652 1.11 eeh struct netbsd32_adjtime_args {
653 1.8 mrg syscallarg(const netbsd32_timevalp_t) delta;
654 1.8 mrg syscallarg(netbsd32_timevalp_t) olddelta;
655 1.1 mrg };
656 1.1 mrg
657 1.11 eeh struct compat_43_netbsd32_ogetpeername_args {
658 1.1 mrg syscallarg(int) fdes;
659 1.8 mrg syscallarg(netbsd32_caddr_t) asa;
660 1.8 mrg syscallarg(netbsd32_intp) alen;
661 1.1 mrg };
662 1.30 fvdl #ifdef COMPAT_43
663 1.1 mrg
664 1.11 eeh struct compat_43_netbsd32_sethostid_args {
665 1.4 eeh syscallarg(int32_t) hostid;
666 1.4 eeh };
667 1.30 fvdl #else
668 1.30 fvdl #endif
669 1.4 eeh
670 1.11 eeh struct compat_43_netbsd32_ogetrlimit_args {
671 1.1 mrg syscallarg(int) which;
672 1.8 mrg syscallarg(netbsd32_orlimitp_t) rlp;
673 1.1 mrg };
674 1.1 mrg
675 1.11 eeh struct compat_43_netbsd32_osetrlimit_args {
676 1.1 mrg syscallarg(int) which;
677 1.8 mrg syscallarg(const netbsd32_orlimitp_t) rlp;
678 1.1 mrg };
679 1.30 fvdl #ifdef COMPAT_43
680 1.1 mrg
681 1.11 eeh struct compat_43_netbsd32_killpg_args {
682 1.4 eeh syscallarg(int) pgid;
683 1.4 eeh syscallarg(int) signum;
684 1.4 eeh };
685 1.30 fvdl #else
686 1.30 fvdl #endif
687 1.4 eeh
688 1.11 eeh struct netbsd32_quotactl_args {
689 1.8 mrg syscallarg(const netbsd32_charp) path;
690 1.1 mrg syscallarg(int) cmd;
691 1.1 mrg syscallarg(int) uid;
692 1.8 mrg syscallarg(netbsd32_caddr_t) arg;
693 1.1 mrg };
694 1.1 mrg
695 1.11 eeh struct compat_43_netbsd32_ogetsockname_args {
696 1.1 mrg syscallarg(int) fdec;
697 1.8 mrg syscallarg(netbsd32_caddr_t) asa;
698 1.8 mrg syscallarg(netbsd32_intp) alen;
699 1.1 mrg };
700 1.30 fvdl #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
701 1.1 mrg
702 1.11 eeh struct netbsd32_nfssvc_args {
703 1.1 mrg syscallarg(int) flag;
704 1.8 mrg syscallarg(netbsd32_voidp) argp;
705 1.1 mrg };
706 1.30 fvdl #else
707 1.30 fvdl #endif
708 1.1 mrg
709 1.11 eeh struct compat_43_netbsd32_ogetdirentries_args {
710 1.1 mrg syscallarg(int) fd;
711 1.8 mrg syscallarg(netbsd32_charp) buf;
712 1.1 mrg syscallarg(u_int) count;
713 1.8 mrg syscallarg(netbsd32_longp) basep;
714 1.1 mrg };
715 1.1 mrg
716 1.11 eeh struct netbsd32_statfs_args {
717 1.8 mrg syscallarg(const netbsd32_charp) path;
718 1.8 mrg syscallarg(netbsd32_statfsp_t) buf;
719 1.1 mrg };
720 1.1 mrg
721 1.11 eeh struct netbsd32_fstatfs_args {
722 1.1 mrg syscallarg(int) fd;
723 1.8 mrg syscallarg(netbsd32_statfsp_t) buf;
724 1.1 mrg };
725 1.30 fvdl #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
726 1.1 mrg
727 1.11 eeh struct netbsd32_getfh_args {
728 1.8 mrg syscallarg(const netbsd32_charp) fname;
729 1.8 mrg syscallarg(netbsd32_fhandlep_t) fhp;
730 1.1 mrg };
731 1.30 fvdl #else
732 1.30 fvdl #endif
733 1.1 mrg
734 1.11 eeh struct compat_09_netbsd32_ogetdomainname_args {
735 1.8 mrg syscallarg(netbsd32_charp) domainname;
736 1.1 mrg syscallarg(int) len;
737 1.1 mrg };
738 1.1 mrg
739 1.11 eeh struct compat_09_netbsd32_osetdomainname_args {
740 1.8 mrg syscallarg(netbsd32_charp) domainname;
741 1.1 mrg syscallarg(int) len;
742 1.1 mrg };
743 1.1 mrg
744 1.11 eeh struct compat_09_netbsd32_uname_args {
745 1.8 mrg syscallarg(netbsd32_outsnamep_t) name;
746 1.1 mrg };
747 1.1 mrg
748 1.11 eeh struct netbsd32_sysarch_args {
749 1.1 mrg syscallarg(int) op;
750 1.8 mrg syscallarg(netbsd32_voidp) parms;
751 1.1 mrg };
752 1.30 fvdl #if defined(SYSVSEM) || !defined(_KERNEL)
753 1.1 mrg
754 1.26 mrg struct compat_10_netbsd32_sys_semsys_args {
755 1.4 eeh syscallarg(int) which;
756 1.4 eeh syscallarg(int) a2;
757 1.4 eeh syscallarg(int) a3;
758 1.4 eeh syscallarg(int) a4;
759 1.4 eeh syscallarg(int) a5;
760 1.4 eeh };
761 1.30 fvdl #else
762 1.30 fvdl #endif
763 1.30 fvdl #if defined(SYSVMSG) || !defined(_KERNEL)
764 1.4 eeh
765 1.26 mrg struct compat_10_netbsd32_sys_msgsys_args {
766 1.4 eeh syscallarg(int) which;
767 1.4 eeh syscallarg(int) a2;
768 1.4 eeh syscallarg(int) a3;
769 1.4 eeh syscallarg(int) a4;
770 1.4 eeh syscallarg(int) a5;
771 1.4 eeh syscallarg(int) a6;
772 1.4 eeh };
773 1.30 fvdl #else
774 1.30 fvdl #endif
775 1.30 fvdl #if defined(SYSVSHM) || !defined(_KERNEL)
776 1.4 eeh
777 1.26 mrg struct compat_10_netbsd32_sys_shmsys_args {
778 1.4 eeh syscallarg(int) which;
779 1.4 eeh syscallarg(int) a2;
780 1.4 eeh syscallarg(int) a3;
781 1.4 eeh syscallarg(int) a4;
782 1.4 eeh };
783 1.30 fvdl #else
784 1.30 fvdl #endif
785 1.4 eeh
786 1.11 eeh struct netbsd32_pread_args {
787 1.1 mrg syscallarg(int) fd;
788 1.8 mrg syscallarg(netbsd32_voidp) buf;
789 1.8 mrg syscallarg(netbsd32_size_t) nbyte;
790 1.1 mrg syscallarg(int) pad;
791 1.1 mrg syscallarg(off_t) offset;
792 1.1 mrg };
793 1.1 mrg
794 1.11 eeh struct netbsd32_pwrite_args {
795 1.1 mrg syscallarg(int) fd;
796 1.8 mrg syscallarg(const netbsd32_voidp) buf;
797 1.8 mrg syscallarg(netbsd32_size_t) nbyte;
798 1.1 mrg syscallarg(int) pad;
799 1.1 mrg syscallarg(off_t) offset;
800 1.1 mrg };
801 1.1 mrg
802 1.11 eeh struct netbsd32_ntp_gettime_args {
803 1.8 mrg syscallarg(netbsd32_ntptimevalp_t) ntvp;
804 1.1 mrg };
805 1.1 mrg
806 1.11 eeh struct netbsd32_ntp_adjtime_args {
807 1.8 mrg syscallarg(netbsd32_timexp_t) tp;
808 1.1 mrg };
809 1.1 mrg
810 1.11 eeh struct netbsd32_setgid_args {
811 1.4 eeh syscallarg(gid_t) gid;
812 1.4 eeh };
813 1.4 eeh
814 1.11 eeh struct netbsd32_setegid_args {
815 1.4 eeh syscallarg(gid_t) egid;
816 1.4 eeh };
817 1.4 eeh
818 1.11 eeh struct netbsd32_seteuid_args {
819 1.4 eeh syscallarg(uid_t) euid;
820 1.4 eeh };
821 1.30 fvdl #if defined(LFS) || !defined(_KERNEL)
822 1.4 eeh
823 1.11 eeh struct netbsd32_sys_lfs_bmapv_args {
824 1.8 mrg syscallarg(netbsd32_fsid_tp_t) fsidp;
825 1.8 mrg syscallarg(netbsd32_block_infop_t) blkiov;
826 1.1 mrg syscallarg(int) blkcnt;
827 1.1 mrg };
828 1.1 mrg
829 1.11 eeh struct netbsd32_sys_lfs_markv_args {
830 1.8 mrg syscallarg(netbsd32_fsid_tp_t) fsidp;
831 1.8 mrg syscallarg(netbsd32_block_infop_t) blkiov;
832 1.1 mrg syscallarg(int) blkcnt;
833 1.1 mrg };
834 1.1 mrg
835 1.11 eeh struct netbsd32_sys_lfs_segclean_args {
836 1.8 mrg syscallarg(netbsd32_fsid_tp_t) fsidp;
837 1.8 mrg syscallarg(netbsd32_u_long) segment;
838 1.1 mrg };
839 1.1 mrg
840 1.11 eeh struct netbsd32_sys_lfs_segwait_args {
841 1.8 mrg syscallarg(netbsd32_fsid_tp_t) fsidp;
842 1.8 mrg syscallarg(netbsd32_timevalp_t) tv;
843 1.1 mrg };
844 1.30 fvdl #else
845 1.30 fvdl #endif
846 1.1 mrg
847 1.11 eeh struct compat_12_netbsd32_stat12_args {
848 1.8 mrg syscallarg(const netbsd32_charp) path;
849 1.8 mrg syscallarg(netbsd32_stat12p_t) ub;
850 1.1 mrg };
851 1.1 mrg
852 1.11 eeh struct compat_12_netbsd32_fstat12_args {
853 1.1 mrg syscallarg(int) fd;
854 1.8 mrg syscallarg(netbsd32_stat12p_t) sb;
855 1.1 mrg };
856 1.1 mrg
857 1.11 eeh struct compat_12_netbsd32_lstat12_args {
858 1.8 mrg syscallarg(const netbsd32_charp) path;
859 1.8 mrg syscallarg(netbsd32_stat12p_t) ub;
860 1.1 mrg };
861 1.1 mrg
862 1.11 eeh struct netbsd32_pathconf_args {
863 1.8 mrg syscallarg(const netbsd32_charp) path;
864 1.1 mrg syscallarg(int) name;
865 1.1 mrg };
866 1.1 mrg
867 1.11 eeh struct netbsd32_fpathconf_args {
868 1.1 mrg syscallarg(int) fd;
869 1.1 mrg syscallarg(int) name;
870 1.1 mrg };
871 1.1 mrg
872 1.11 eeh struct netbsd32_getrlimit_args {
873 1.1 mrg syscallarg(int) which;
874 1.8 mrg syscallarg(netbsd32_rlimitp_t) rlp;
875 1.1 mrg };
876 1.1 mrg
877 1.11 eeh struct netbsd32_setrlimit_args {
878 1.1 mrg syscallarg(int) which;
879 1.8 mrg syscallarg(const netbsd32_rlimitp_t) rlp;
880 1.1 mrg };
881 1.1 mrg
882 1.11 eeh struct compat_12_netbsd32_getdirentries_args {
883 1.1 mrg syscallarg(int) fd;
884 1.8 mrg syscallarg(netbsd32_charp) buf;
885 1.1 mrg syscallarg(u_int) count;
886 1.8 mrg syscallarg(netbsd32_longp) basep;
887 1.1 mrg };
888 1.1 mrg
889 1.11 eeh struct netbsd32_mmap_args {
890 1.8 mrg syscallarg(netbsd32_voidp) addr;
891 1.8 mrg syscallarg(netbsd32_size_t) len;
892 1.1 mrg syscallarg(int) prot;
893 1.1 mrg syscallarg(int) flags;
894 1.1 mrg syscallarg(int) fd;
895 1.8 mrg syscallarg(netbsd32_long) pad;
896 1.1 mrg syscallarg(off_t) pos;
897 1.1 mrg };
898 1.1 mrg
899 1.11 eeh struct netbsd32_lseek_args {
900 1.4 eeh syscallarg(int) fd;
901 1.4 eeh syscallarg(int) pad;
902 1.4 eeh syscallarg(off_t) offset;
903 1.4 eeh syscallarg(int) whence;
904 1.4 eeh };
905 1.4 eeh
906 1.11 eeh struct netbsd32_truncate_args {
907 1.8 mrg syscallarg(const netbsd32_charp) path;
908 1.1 mrg syscallarg(int) pad;
909 1.1 mrg syscallarg(off_t) length;
910 1.1 mrg };
911 1.1 mrg
912 1.11 eeh struct netbsd32_ftruncate_args {
913 1.4 eeh syscallarg(int) fd;
914 1.4 eeh syscallarg(int) pad;
915 1.4 eeh syscallarg(off_t) length;
916 1.4 eeh };
917 1.4 eeh
918 1.11 eeh struct netbsd32___sysctl_args {
919 1.8 mrg syscallarg(netbsd32_intp) name;
920 1.1 mrg syscallarg(u_int) namelen;
921 1.8 mrg syscallarg(netbsd32_voidp) old;
922 1.8 mrg syscallarg(netbsd32_size_tp) oldlenp;
923 1.8 mrg syscallarg(netbsd32_voidp) new;
924 1.8 mrg syscallarg(netbsd32_size_t) newlen;
925 1.1 mrg };
926 1.1 mrg
927 1.11 eeh struct netbsd32_mlock_args {
928 1.8 mrg syscallarg(const netbsd32_voidp) addr;
929 1.8 mrg syscallarg(netbsd32_size_t) len;
930 1.1 mrg };
931 1.1 mrg
932 1.11 eeh struct netbsd32_munlock_args {
933 1.8 mrg syscallarg(const netbsd32_voidp) addr;
934 1.8 mrg syscallarg(netbsd32_size_t) len;
935 1.1 mrg };
936 1.1 mrg
937 1.11 eeh struct netbsd32_undelete_args {
938 1.8 mrg syscallarg(const netbsd32_charp) path;
939 1.1 mrg };
940 1.1 mrg
941 1.11 eeh struct netbsd32_futimes_args {
942 1.1 mrg syscallarg(int) fd;
943 1.8 mrg syscallarg(const netbsd32_timevalp_t) tptr;
944 1.1 mrg };
945 1.1 mrg
946 1.11 eeh struct netbsd32_getpgid_args {
947 1.4 eeh syscallarg(pid_t) pid;
948 1.4 eeh };
949 1.4 eeh
950 1.11 eeh struct netbsd32_reboot_args {
951 1.1 mrg syscallarg(int) opt;
952 1.8 mrg syscallarg(netbsd32_charp) bootstr;
953 1.1 mrg };
954 1.1 mrg
955 1.11 eeh struct netbsd32_poll_args {
956 1.8 mrg syscallarg(netbsd32_pollfdp_t) fds;
957 1.1 mrg syscallarg(u_int) nfds;
958 1.1 mrg syscallarg(int) timeout;
959 1.1 mrg };
960 1.30 fvdl #if defined(LKM) || !defined(_KERNEL)
961 1.30 fvdl #else /* !LKM || !_KERNEL */
962 1.30 fvdl #endif /* !LKM || !_KERNEL */
963 1.30 fvdl #if defined(SYSVSEM) || !defined(_KERNEL)
964 1.1 mrg
965 1.11 eeh struct compat_14_netbsd32___semctl_args {
966 1.1 mrg syscallarg(int) semid;
967 1.1 mrg syscallarg(int) semnum;
968 1.1 mrg syscallarg(int) cmd;
969 1.8 mrg syscallarg(netbsd32_semunu_t) arg;
970 1.1 mrg };
971 1.1 mrg
972 1.11 eeh struct netbsd32_semget_args {
973 1.8 mrg syscallarg(netbsd32_key_t) key;
974 1.1 mrg syscallarg(int) nsems;
975 1.1 mrg syscallarg(int) semflg;
976 1.1 mrg };
977 1.1 mrg
978 1.11 eeh struct netbsd32_semop_args {
979 1.1 mrg syscallarg(int) semid;
980 1.8 mrg syscallarg(netbsd32_sembufp_t) sops;
981 1.8 mrg syscallarg(netbsd32_size_t) nsops;
982 1.1 mrg };
983 1.1 mrg
984 1.11 eeh struct netbsd32_semconfig_args {
985 1.4 eeh syscallarg(int) flag;
986 1.4 eeh };
987 1.30 fvdl #else
988 1.30 fvdl #endif
989 1.30 fvdl #if defined(SYSVMSG) || !defined(_KERNEL)
990 1.4 eeh
991 1.11 eeh struct compat_14_netbsd32_msgctl_args {
992 1.1 mrg syscallarg(int) msqid;
993 1.1 mrg syscallarg(int) cmd;
994 1.8 mrg syscallarg(netbsd32_msqid_dsp_t) buf;
995 1.1 mrg };
996 1.1 mrg
997 1.11 eeh struct netbsd32_msgget_args {
998 1.8 mrg syscallarg(netbsd32_key_t) key;
999 1.1 mrg syscallarg(int) msgflg;
1000 1.1 mrg };
1001 1.1 mrg
1002 1.11 eeh struct netbsd32_msgsnd_args {
1003 1.1 mrg syscallarg(int) msqid;
1004 1.8 mrg syscallarg(const netbsd32_voidp) msgp;
1005 1.8 mrg syscallarg(netbsd32_size_t) msgsz;
1006 1.1 mrg syscallarg(int) msgflg;
1007 1.1 mrg };
1008 1.1 mrg
1009 1.11 eeh struct netbsd32_msgrcv_args {
1010 1.1 mrg syscallarg(int) msqid;
1011 1.8 mrg syscallarg(netbsd32_voidp) msgp;
1012 1.8 mrg syscallarg(netbsd32_size_t) msgsz;
1013 1.8 mrg syscallarg(netbsd32_long) msgtyp;
1014 1.1 mrg syscallarg(int) msgflg;
1015 1.1 mrg };
1016 1.30 fvdl #else
1017 1.30 fvdl #endif
1018 1.30 fvdl #if defined(SYSVSHM) || !defined(_KERNEL)
1019 1.1 mrg
1020 1.11 eeh struct netbsd32_shmat_args {
1021 1.1 mrg syscallarg(int) shmid;
1022 1.8 mrg syscallarg(const netbsd32_voidp) shmaddr;
1023 1.1 mrg syscallarg(int) shmflg;
1024 1.1 mrg };
1025 1.1 mrg
1026 1.11 eeh struct compat_14_netbsd32_shmctl_args {
1027 1.1 mrg syscallarg(int) shmid;
1028 1.1 mrg syscallarg(int) cmd;
1029 1.8 mrg syscallarg(netbsd32_shmid_dsp_t) buf;
1030 1.1 mrg };
1031 1.1 mrg
1032 1.11 eeh struct netbsd32_shmdt_args {
1033 1.8 mrg syscallarg(const netbsd32_voidp) shmaddr;
1034 1.1 mrg };
1035 1.1 mrg
1036 1.11 eeh struct netbsd32_shmget_args {
1037 1.8 mrg syscallarg(netbsd32_key_t) key;
1038 1.8 mrg syscallarg(netbsd32_size_t) size;
1039 1.1 mrg syscallarg(int) shmflg;
1040 1.1 mrg };
1041 1.30 fvdl #else
1042 1.30 fvdl #endif
1043 1.1 mrg
1044 1.11 eeh struct netbsd32_clock_gettime_args {
1045 1.8 mrg syscallarg(netbsd32_clockid_t) clock_id;
1046 1.8 mrg syscallarg(netbsd32_timespecp_t) tp;
1047 1.1 mrg };
1048 1.1 mrg
1049 1.11 eeh struct netbsd32_clock_settime_args {
1050 1.8 mrg syscallarg(netbsd32_clockid_t) clock_id;
1051 1.8 mrg syscallarg(const netbsd32_timespecp_t) tp;
1052 1.1 mrg };
1053 1.1 mrg
1054 1.11 eeh struct netbsd32_clock_getres_args {
1055 1.8 mrg syscallarg(netbsd32_clockid_t) clock_id;
1056 1.8 mrg syscallarg(netbsd32_timespecp_t) tp;
1057 1.1 mrg };
1058 1.1 mrg
1059 1.11 eeh struct netbsd32_nanosleep_args {
1060 1.8 mrg syscallarg(const netbsd32_timespecp_t) rqtp;
1061 1.8 mrg syscallarg(netbsd32_timespecp_t) rmtp;
1062 1.1 mrg };
1063 1.1 mrg
1064 1.11 eeh struct netbsd32_fdatasync_args {
1065 1.4 eeh syscallarg(int) fd;
1066 1.4 eeh };
1067 1.4 eeh
1068 1.11 eeh struct netbsd32___posix_rename_args {
1069 1.8 mrg syscallarg(const netbsd32_charp) from;
1070 1.8 mrg syscallarg(const netbsd32_charp) to;
1071 1.1 mrg };
1072 1.1 mrg
1073 1.11 eeh struct netbsd32_swapctl_args {
1074 1.1 mrg syscallarg(int) cmd;
1075 1.8 mrg syscallarg(const netbsd32_voidp) arg;
1076 1.1 mrg syscallarg(int) misc;
1077 1.1 mrg };
1078 1.1 mrg
1079 1.11 eeh struct netbsd32_getdents_args {
1080 1.1 mrg syscallarg(int) fd;
1081 1.8 mrg syscallarg(netbsd32_charp) buf;
1082 1.8 mrg syscallarg(netbsd32_size_t) count;
1083 1.1 mrg };
1084 1.1 mrg
1085 1.11 eeh struct netbsd32_minherit_args {
1086 1.8 mrg syscallarg(netbsd32_voidp) addr;
1087 1.8 mrg syscallarg(netbsd32_size_t) len;
1088 1.1 mrg syscallarg(int) inherit;
1089 1.1 mrg };
1090 1.1 mrg
1091 1.11 eeh struct netbsd32_lchmod_args {
1092 1.8 mrg syscallarg(const netbsd32_charp) path;
1093 1.1 mrg syscallarg(mode_t) mode;
1094 1.1 mrg };
1095 1.1 mrg
1096 1.11 eeh struct netbsd32_lchown_args {
1097 1.8 mrg syscallarg(const netbsd32_charp) path;
1098 1.1 mrg syscallarg(uid_t) uid;
1099 1.1 mrg syscallarg(gid_t) gid;
1100 1.1 mrg };
1101 1.1 mrg
1102 1.11 eeh struct netbsd32_lutimes_args {
1103 1.8 mrg syscallarg(const netbsd32_charp) path;
1104 1.8 mrg syscallarg(const netbsd32_timevalp_t) tptr;
1105 1.1 mrg };
1106 1.1 mrg
1107 1.11 eeh struct netbsd32___msync13_args {
1108 1.8 mrg syscallarg(netbsd32_voidp) addr;
1109 1.8 mrg syscallarg(netbsd32_size_t) len;
1110 1.1 mrg syscallarg(int) flags;
1111 1.1 mrg };
1112 1.1 mrg
1113 1.11 eeh struct netbsd32___stat13_args {
1114 1.8 mrg syscallarg(const netbsd32_charp) path;
1115 1.8 mrg syscallarg(netbsd32_statp_t) ub;
1116 1.1 mrg };
1117 1.1 mrg
1118 1.11 eeh struct netbsd32___fstat13_args {
1119 1.1 mrg syscallarg(int) fd;
1120 1.8 mrg syscallarg(netbsd32_statp_t) sb;
1121 1.1 mrg };
1122 1.1 mrg
1123 1.11 eeh struct netbsd32___lstat13_args {
1124 1.8 mrg syscallarg(const netbsd32_charp) path;
1125 1.8 mrg syscallarg(netbsd32_statp_t) ub;
1126 1.1 mrg };
1127 1.1 mrg
1128 1.11 eeh struct netbsd32___sigaltstack14_args {
1129 1.8 mrg syscallarg(const netbsd32_sigaltstackp_t) nss;
1130 1.8 mrg syscallarg(netbsd32_sigaltstackp_t) oss;
1131 1.1 mrg };
1132 1.1 mrg
1133 1.11 eeh struct netbsd32___posix_chown_args {
1134 1.8 mrg syscallarg(const netbsd32_charp) path;
1135 1.1 mrg syscallarg(uid_t) uid;
1136 1.1 mrg syscallarg(gid_t) gid;
1137 1.1 mrg };
1138 1.1 mrg
1139 1.11 eeh struct netbsd32___posix_fchown_args {
1140 1.4 eeh syscallarg(int) fd;
1141 1.4 eeh syscallarg(uid_t) uid;
1142 1.4 eeh syscallarg(gid_t) gid;
1143 1.4 eeh };
1144 1.4 eeh
1145 1.11 eeh struct netbsd32___posix_lchown_args {
1146 1.8 mrg syscallarg(const netbsd32_charp) path;
1147 1.1 mrg syscallarg(uid_t) uid;
1148 1.1 mrg syscallarg(gid_t) gid;
1149 1.1 mrg };
1150 1.1 mrg
1151 1.11 eeh struct netbsd32_getsid_args {
1152 1.4 eeh syscallarg(pid_t) pid;
1153 1.4 eeh };
1154 1.30 fvdl #if defined(KTRACE) || !defined(_KERNEL)
1155 1.4 eeh
1156 1.11 eeh struct netbsd32_fktrace_args {
1157 1.4 eeh syscallarg(const int) fd;
1158 1.4 eeh syscallarg(int) ops;
1159 1.4 eeh syscallarg(int) facs;
1160 1.4 eeh syscallarg(int) pid;
1161 1.4 eeh };
1162 1.30 fvdl #else
1163 1.30 fvdl #endif
1164 1.4 eeh
1165 1.11 eeh struct netbsd32_preadv_args {
1166 1.1 mrg syscallarg(int) fd;
1167 1.8 mrg syscallarg(const netbsd32_iovecp_t) iovp;
1168 1.1 mrg syscallarg(int) iovcnt;
1169 1.1 mrg syscallarg(int) pad;
1170 1.1 mrg syscallarg(off_t) offset;
1171 1.1 mrg };
1172 1.1 mrg
1173 1.11 eeh struct netbsd32_pwritev_args {
1174 1.1 mrg syscallarg(int) fd;
1175 1.8 mrg syscallarg(const netbsd32_iovecp_t) iovp;
1176 1.1 mrg syscallarg(int) iovcnt;
1177 1.1 mrg syscallarg(int) pad;
1178 1.1 mrg syscallarg(off_t) offset;
1179 1.1 mrg };
1180 1.1 mrg
1181 1.12 eeh struct netbsd32___sigaction14_args {
1182 1.12 eeh syscallarg(int) signum;
1183 1.12 eeh syscallarg(const netbsd32_sigactionp_t) nsa;
1184 1.12 eeh syscallarg(netbsd32_sigactionp_t) osa;
1185 1.12 eeh };
1186 1.12 eeh
1187 1.12 eeh struct netbsd32___sigpending14_args {
1188 1.12 eeh syscallarg(netbsd32_sigsetp_t) set;
1189 1.12 eeh };
1190 1.12 eeh
1191 1.12 eeh struct netbsd32___sigprocmask14_args {
1192 1.12 eeh syscallarg(int) how;
1193 1.12 eeh syscallarg(const netbsd32_sigsetp_t) set;
1194 1.12 eeh syscallarg(netbsd32_sigsetp_t) oset;
1195 1.12 eeh };
1196 1.12 eeh
1197 1.12 eeh struct netbsd32___sigsuspend14_args {
1198 1.12 eeh syscallarg(const netbsd32_sigsetp_t) set;
1199 1.12 eeh };
1200 1.12 eeh
1201 1.30 fvdl struct compat_16_netbsd32___sigreturn14_args {
1202 1.12 eeh syscallarg(netbsd32_sigcontextp_t) sigcntxp;
1203 1.12 eeh };
1204 1.12 eeh
1205 1.12 eeh struct netbsd32___getcwd_args {
1206 1.12 eeh syscallarg(netbsd32_charp) bufp;
1207 1.12 eeh syscallarg(netbsd32_size_t) length;
1208 1.12 eeh };
1209 1.12 eeh
1210 1.12 eeh struct netbsd32_fchroot_args {
1211 1.12 eeh syscallarg(int) fd;
1212 1.12 eeh };
1213 1.12 eeh
1214 1.12 eeh struct netbsd32_fhopen_args {
1215 1.12 eeh syscallarg(const netbsd32_fhandlep_t) fhp;
1216 1.12 eeh syscallarg(int) flags;
1217 1.12 eeh };
1218 1.12 eeh
1219 1.12 eeh struct netbsd32_fhstat_args {
1220 1.12 eeh syscallarg(const netbsd32_fhandlep_t) fhp;
1221 1.12 eeh syscallarg(netbsd32_statp_t) sb;
1222 1.12 eeh };
1223 1.12 eeh
1224 1.12 eeh struct netbsd32_fhstatfs_args {
1225 1.12 eeh syscallarg(netbsd32_fhandlep_t) fhp;
1226 1.12 eeh syscallarg(netbsd32_statp_t) buf;
1227 1.12 eeh };
1228 1.30 fvdl #if defined(SYSVSEM) || !defined(_KERNEL)
1229 1.12 eeh
1230 1.13 christos struct netbsd32___semctl14_args {
1231 1.12 eeh syscallarg(int) semid;
1232 1.12 eeh syscallarg(int) semnum;
1233 1.12 eeh syscallarg(int) cmd;
1234 1.13 christos syscallarg(union netbsd32_semun3 *) arg;
1235 1.12 eeh };
1236 1.30 fvdl #else
1237 1.30 fvdl #endif
1238 1.30 fvdl #if defined(SYSVMSG) || !defined(_KERNEL)
1239 1.12 eeh
1240 1.12 eeh struct netbsd32___msgctl13_args {
1241 1.12 eeh syscallarg(int) msqid;
1242 1.12 eeh syscallarg(int) cmd;
1243 1.12 eeh syscallarg(netbsd32_msqid_dsp_t) buf;
1244 1.12 eeh };
1245 1.30 fvdl #else
1246 1.30 fvdl #endif
1247 1.30 fvdl #if defined(SYSVSHM) || !defined(_KERNEL)
1248 1.12 eeh
1249 1.12 eeh struct netbsd32___shmctl13_args {
1250 1.12 eeh syscallarg(int) shmid;
1251 1.12 eeh syscallarg(int) cmd;
1252 1.12 eeh syscallarg(netbsd32_shmid_dsp_t) buf;
1253 1.12 eeh };
1254 1.30 fvdl #else
1255 1.30 fvdl #endif
1256 1.12 eeh
1257 1.22 mrg struct netbsd32_lchflags_args {
1258 1.22 mrg syscallarg(const netbsd32_charp) path;
1259 1.22 mrg syscallarg(netbsd32_u_long) flags;
1260 1.22 mrg };
1261 1.22 mrg
1262 1.22 mrg struct netbsd32_utrace_args {
1263 1.22 mrg syscallarg(const netbsd32_charp) label;
1264 1.22 mrg syscallarg(netbsd32_voidp) addr;
1265 1.22 mrg syscallarg(netbsd32_size_t) len;
1266 1.22 mrg };
1267 1.22 mrg
1268 1.30 fvdl struct netbsd32_getcontext_args {
1269 1.30 fvdl syscallarg(netbsd32_ucontextp) ucp;
1270 1.30 fvdl };
1271 1.30 fvdl
1272 1.30 fvdl struct netbsd32_setcontext_args {
1273 1.30 fvdl syscallarg(netbsd32_ucontextp) ucp;
1274 1.30 fvdl syscallarg(uint32_t) flags;
1275 1.30 fvdl syscallarg(netbsd32_lwpidp) new_lwp;
1276 1.30 fvdl };
1277 1.30 fvdl
1278 1.27 scw struct netbsd32___sigaction_sigtramp_args {
1279 1.27 scw syscallarg(int) signum;
1280 1.27 scw syscallarg(const netbsd32_sigactionp_t) nsa;
1281 1.27 scw syscallarg(netbsd32_sigactionp_t) osa;
1282 1.27 scw syscallarg(netbsd32_voidp) tramp;
1283 1.27 scw syscallarg(int) vers;
1284 1.27 scw };
1285 1.27 scw
1286 1.1 mrg /*
1287 1.1 mrg * System call prototypes.
1288 1.1 mrg */
1289 1.1 mrg
1290 1.28 thorpej int netbsd32_exit(struct lwp *, void *, register_t *);
1291 1.30 fvdl
1292 1.28 thorpej int sys_fork(struct lwp *, void *, register_t *);
1293 1.30 fvdl
1294 1.28 thorpej int netbsd32_read(struct lwp *, void *, register_t *);
1295 1.30 fvdl
1296 1.28 thorpej int netbsd32_write(struct lwp *, void *, register_t *);
1297 1.30 fvdl
1298 1.28 thorpej int netbsd32_open(struct lwp *, void *, register_t *);
1299 1.30 fvdl
1300 1.28 thorpej int netbsd32_close(struct lwp *, void *, register_t *);
1301 1.30 fvdl
1302 1.28 thorpej int netbsd32_wait4(struct lwp *, void *, register_t *);
1303 1.30 fvdl
1304 1.28 thorpej int compat_43_netbsd32_ocreat(struct lwp *, void *, register_t *);
1305 1.30 fvdl
1306 1.28 thorpej int netbsd32_link(struct lwp *, void *, register_t *);
1307 1.30 fvdl
1308 1.28 thorpej int netbsd32_unlink(struct lwp *, void *, register_t *);
1309 1.30 fvdl
1310 1.28 thorpej int netbsd32_chdir(struct lwp *, void *, register_t *);
1311 1.30 fvdl
1312 1.28 thorpej int netbsd32_fchdir(struct lwp *, void *, register_t *);
1313 1.30 fvdl
1314 1.28 thorpej int netbsd32_mknod(struct lwp *, void *, register_t *);
1315 1.30 fvdl
1316 1.28 thorpej int netbsd32_chmod(struct lwp *, void *, register_t *);
1317 1.30 fvdl
1318 1.28 thorpej int netbsd32_chown(struct lwp *, void *, register_t *);
1319 1.30 fvdl
1320 1.28 thorpej int netbsd32_break(struct lwp *, void *, register_t *);
1321 1.30 fvdl
1322 1.28 thorpej int netbsd32_getfsstat(struct lwp *, void *, register_t *);
1323 1.30 fvdl
1324 1.28 thorpej int compat_43_netbsd32_olseek(struct lwp *, void *, register_t *);
1325 1.30 fvdl
1326 1.28 thorpej int sys_getpid(struct lwp *, void *, register_t *);
1327 1.30 fvdl
1328 1.28 thorpej int netbsd32_mount(struct lwp *, void *, register_t *);
1329 1.30 fvdl
1330 1.28 thorpej int netbsd32_unmount(struct lwp *, void *, register_t *);
1331 1.30 fvdl
1332 1.28 thorpej int netbsd32_setuid(struct lwp *, void *, register_t *);
1333 1.30 fvdl
1334 1.28 thorpej int sys_getuid(struct lwp *, void *, register_t *);
1335 1.30 fvdl
1336 1.28 thorpej int sys_geteuid(struct lwp *, void *, register_t *);
1337 1.30 fvdl
1338 1.28 thorpej int netbsd32_ptrace(struct lwp *, void *, register_t *);
1339 1.30 fvdl
1340 1.28 thorpej int netbsd32_recvmsg(struct lwp *, void *, register_t *);
1341 1.30 fvdl
1342 1.28 thorpej int netbsd32_sendmsg(struct lwp *, void *, register_t *);
1343 1.30 fvdl
1344 1.28 thorpej int netbsd32_recvfrom(struct lwp *, void *, register_t *);
1345 1.30 fvdl
1346 1.28 thorpej int netbsd32_accept(struct lwp *, void *, register_t *);
1347 1.30 fvdl
1348 1.28 thorpej int netbsd32_getpeername(struct lwp *, void *, register_t *);
1349 1.30 fvdl
1350 1.28 thorpej int netbsd32_getsockname(struct lwp *, void *, register_t *);
1351 1.30 fvdl
1352 1.28 thorpej int netbsd32_access(struct lwp *, void *, register_t *);
1353 1.30 fvdl
1354 1.28 thorpej int netbsd32_chflags(struct lwp *, void *, register_t *);
1355 1.30 fvdl
1356 1.28 thorpej int netbsd32_fchflags(struct lwp *, void *, register_t *);
1357 1.30 fvdl
1358 1.28 thorpej int sys_sync(struct lwp *, void *, register_t *);
1359 1.30 fvdl
1360 1.28 thorpej int netbsd32_kill(struct lwp *, void *, register_t *);
1361 1.30 fvdl
1362 1.28 thorpej int compat_43_netbsd32_stat43(struct lwp *, void *, register_t *);
1363 1.30 fvdl
1364 1.28 thorpej int sys_getppid(struct lwp *, void *, register_t *);
1365 1.30 fvdl
1366 1.28 thorpej int compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *);
1367 1.30 fvdl
1368 1.28 thorpej int netbsd32_dup(struct lwp *, void *, register_t *);
1369 1.30 fvdl
1370 1.28 thorpej int sys_pipe(struct lwp *, void *, register_t *);
1371 1.30 fvdl
1372 1.28 thorpej int sys_getegid(struct lwp *, void *, register_t *);
1373 1.30 fvdl
1374 1.28 thorpej int netbsd32_profil(struct lwp *, void *, register_t *);
1375 1.30 fvdl
1376 1.10 christos #if defined(KTRACE) || !defined(_KERNEL)
1377 1.28 thorpej int netbsd32_ktrace(struct lwp *, void *, register_t *);
1378 1.30 fvdl
1379 1.1 mrg #else
1380 1.1 mrg #endif
1381 1.28 thorpej int netbsd32_sigaction(struct lwp *, void *, register_t *);
1382 1.30 fvdl
1383 1.28 thorpej int sys_getgid(struct lwp *, void *, register_t *);
1384 1.30 fvdl
1385 1.28 thorpej int compat_13_netbsd32_sigprocmask(struct lwp *, void *, register_t *);
1386 1.30 fvdl
1387 1.28 thorpej int netbsd32___getlogin(struct lwp *, void *, register_t *);
1388 1.30 fvdl
1389 1.28 thorpej int netbsd32_setlogin(struct lwp *, void *, register_t *);
1390 1.30 fvdl
1391 1.28 thorpej int netbsd32_acct(struct lwp *, void *, register_t *);
1392 1.30 fvdl
1393 1.28 thorpej int compat_13_sys_sigpending(struct lwp *, void *, register_t *);
1394 1.30 fvdl
1395 1.28 thorpej int compat_13_netbsd32_sigaltstack13(struct lwp *, void *, register_t *);
1396 1.30 fvdl
1397 1.28 thorpej int netbsd32_ioctl(struct lwp *, void *, register_t *);
1398 1.30 fvdl
1399 1.28 thorpej int compat_12_netbsd32_reboot(struct lwp *, void *, register_t *);
1400 1.30 fvdl
1401 1.28 thorpej int netbsd32_revoke(struct lwp *, void *, register_t *);
1402 1.30 fvdl
1403 1.28 thorpej int netbsd32_symlink(struct lwp *, void *, register_t *);
1404 1.30 fvdl
1405 1.28 thorpej int netbsd32_readlink(struct lwp *, void *, register_t *);
1406 1.30 fvdl
1407 1.28 thorpej int netbsd32_execve(struct lwp *, void *, register_t *);
1408 1.30 fvdl
1409 1.28 thorpej int netbsd32_umask(struct lwp *, void *, register_t *);
1410 1.30 fvdl
1411 1.28 thorpej int netbsd32_chroot(struct lwp *, void *, register_t *);
1412 1.30 fvdl
1413 1.28 thorpej int compat_43_netbsd32_fstat43(struct lwp *, void *, register_t *);
1414 1.30 fvdl
1415 1.28 thorpej int compat_43_netbsd32_ogetkerninfo(struct lwp *, void *, register_t *);
1416 1.30 fvdl
1417 1.28 thorpej int compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
1418 1.30 fvdl
1419 1.28 thorpej int compat_12_netbsd32_msync(struct lwp *, void *, register_t *);
1420 1.30 fvdl
1421 1.28 thorpej int sys_vfork(struct lwp *, void *, register_t *);
1422 1.30 fvdl
1423 1.28 thorpej int netbsd32_sbrk(struct lwp *, void *, register_t *);
1424 1.30 fvdl
1425 1.28 thorpej int netbsd32_sstk(struct lwp *, void *, register_t *);
1426 1.30 fvdl
1427 1.28 thorpej int compat_43_netbsd32_ommap(struct lwp *, void *, register_t *);
1428 1.30 fvdl
1429 1.28 thorpej int netbsd32_ovadvise(struct lwp *, void *, register_t *);
1430 1.30 fvdl
1431 1.28 thorpej int netbsd32_munmap(struct lwp *, void *, register_t *);
1432 1.30 fvdl
1433 1.28 thorpej int netbsd32_mprotect(struct lwp *, void *, register_t *);
1434 1.30 fvdl
1435 1.28 thorpej int netbsd32_madvise(struct lwp *, void *, register_t *);
1436 1.30 fvdl
1437 1.28 thorpej int netbsd32_mincore(struct lwp *, void *, register_t *);
1438 1.30 fvdl
1439 1.28 thorpej int netbsd32_getgroups(struct lwp *, void *, register_t *);
1440 1.30 fvdl
1441 1.28 thorpej int netbsd32_setgroups(struct lwp *, void *, register_t *);
1442 1.30 fvdl
1443 1.28 thorpej int sys_getpgrp(struct lwp *, void *, register_t *);
1444 1.30 fvdl
1445 1.28 thorpej int netbsd32_setpgid(struct lwp *, void *, register_t *);
1446 1.30 fvdl
1447 1.28 thorpej int netbsd32_setitimer(struct lwp *, void *, register_t *);
1448 1.30 fvdl
1449 1.28 thorpej int compat_43_sys_wait(struct lwp *, void *, register_t *);
1450 1.30 fvdl
1451 1.28 thorpej int compat_12_netbsd32_oswapon(struct lwp *, void *, register_t *);
1452 1.30 fvdl
1453 1.28 thorpej int netbsd32_getitimer(struct lwp *, void *, register_t *);
1454 1.30 fvdl
1455 1.28 thorpej int compat_43_netbsd32_ogethostname(struct lwp *, void *, register_t *);
1456 1.30 fvdl
1457 1.28 thorpej int compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *);
1458 1.30 fvdl
1459 1.28 thorpej int compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
1460 1.30 fvdl
1461 1.28 thorpej int netbsd32_dup2(struct lwp *, void *, register_t *);
1462 1.30 fvdl
1463 1.28 thorpej int netbsd32_fcntl(struct lwp *, void *, register_t *);
1464 1.30 fvdl
1465 1.28 thorpej int netbsd32_select(struct lwp *, void *, register_t *);
1466 1.30 fvdl
1467 1.28 thorpej int netbsd32_fsync(struct lwp *, void *, register_t *);
1468 1.30 fvdl
1469 1.28 thorpej int netbsd32_setpriority(struct lwp *, void *, register_t *);
1470 1.30 fvdl
1471 1.28 thorpej int netbsd32_socket(struct lwp *, void *, register_t *);
1472 1.30 fvdl
1473 1.28 thorpej int netbsd32_connect(struct lwp *, void *, register_t *);
1474 1.30 fvdl
1475 1.28 thorpej int compat_43_netbsd32_oaccept(struct lwp *, void *, register_t *);
1476 1.30 fvdl
1477 1.28 thorpej int netbsd32_getpriority(struct lwp *, void *, register_t *);
1478 1.30 fvdl
1479 1.28 thorpej int compat_43_netbsd32_osend(struct lwp *, void *, register_t *);
1480 1.30 fvdl
1481 1.28 thorpej int compat_43_netbsd32_orecv(struct lwp *, void *, register_t *);
1482 1.30 fvdl
1483 1.28 thorpej int compat_13_netbsd32_sigreturn(struct lwp *, void *, register_t *);
1484 1.30 fvdl
1485 1.28 thorpej int netbsd32_bind(struct lwp *, void *, register_t *);
1486 1.30 fvdl
1487 1.28 thorpej int netbsd32_setsockopt(struct lwp *, void *, register_t *);
1488 1.30 fvdl
1489 1.28 thorpej int netbsd32_listen(struct lwp *, void *, register_t *);
1490 1.30 fvdl
1491 1.28 thorpej int compat_43_netbsd32_osigvec(struct lwp *, void *, register_t *);
1492 1.30 fvdl
1493 1.1 mrg #ifdef COMPAT_43
1494 1.28 thorpej int compat_43_netbsd32_sigblock(struct lwp *, void *, register_t *);
1495 1.30 fvdl
1496 1.28 thorpej int compat_43_netbsd32_sigsetmask(struct lwp *, void *, register_t *);
1497 1.30 fvdl
1498 1.1 mrg #else
1499 1.1 mrg #endif
1500 1.28 thorpej int compat_13_netbsd32_sigsuspend(struct lwp *, void *, register_t *);
1501 1.30 fvdl
1502 1.28 thorpej int compat_43_netbsd32_osigstack(struct lwp *, void *, register_t *);
1503 1.30 fvdl
1504 1.28 thorpej int compat_43_netbsd32_orecvmsg(struct lwp *, void *, register_t *);
1505 1.30 fvdl
1506 1.28 thorpej int compat_43_netbsd32_osendmsg(struct lwp *, void *, register_t *);
1507 1.30 fvdl
1508 1.28 thorpej int netbsd32_gettimeofday(struct lwp *, void *, register_t *);
1509 1.30 fvdl
1510 1.28 thorpej int netbsd32_getrusage(struct lwp *, void *, register_t *);
1511 1.30 fvdl
1512 1.28 thorpej int netbsd32_getsockopt(struct lwp *, void *, register_t *);
1513 1.30 fvdl
1514 1.28 thorpej int netbsd32_readv(struct lwp *, void *, register_t *);
1515 1.30 fvdl
1516 1.28 thorpej int netbsd32_writev(struct lwp *, void *, register_t *);
1517 1.30 fvdl
1518 1.28 thorpej int netbsd32_settimeofday(struct lwp *, void *, register_t *);
1519 1.30 fvdl
1520 1.28 thorpej int netbsd32_fchown(struct lwp *, void *, register_t *);
1521 1.30 fvdl
1522 1.28 thorpej int netbsd32_fchmod(struct lwp *, void *, register_t *);
1523 1.30 fvdl
1524 1.28 thorpej int compat_43_netbsd32_orecvfrom(struct lwp *, void *, register_t *);
1525 1.30 fvdl
1526 1.28 thorpej int netbsd32_setreuid(struct lwp *, void *, register_t *);
1527 1.30 fvdl
1528 1.28 thorpej int netbsd32_setregid(struct lwp *, void *, register_t *);
1529 1.30 fvdl
1530 1.28 thorpej int netbsd32_rename(struct lwp *, void *, register_t *);
1531 1.30 fvdl
1532 1.28 thorpej int compat_43_netbsd32_otruncate(struct lwp *, void *, register_t *);
1533 1.30 fvdl
1534 1.28 thorpej int compat_43_netbsd32_oftruncate(struct lwp *, void *, register_t *);
1535 1.30 fvdl
1536 1.28 thorpej int netbsd32_flock(struct lwp *, void *, register_t *);
1537 1.30 fvdl
1538 1.28 thorpej int netbsd32_mkfifo(struct lwp *, void *, register_t *);
1539 1.30 fvdl
1540 1.28 thorpej int netbsd32_sendto(struct lwp *, void *, register_t *);
1541 1.30 fvdl
1542 1.28 thorpej int netbsd32_shutdown(struct lwp *, void *, register_t *);
1543 1.30 fvdl
1544 1.28 thorpej int netbsd32_socketpair(struct lwp *, void *, register_t *);
1545 1.30 fvdl
1546 1.28 thorpej int netbsd32_mkdir(struct lwp *, void *, register_t *);
1547 1.30 fvdl
1548 1.28 thorpej int netbsd32_rmdir(struct lwp *, void *, register_t *);
1549 1.30 fvdl
1550 1.28 thorpej int netbsd32_utimes(struct lwp *, void *, register_t *);
1551 1.30 fvdl
1552 1.28 thorpej int netbsd32_adjtime(struct lwp *, void *, register_t *);
1553 1.30 fvdl
1554 1.28 thorpej int compat_43_netbsd32_ogetpeername(struct lwp *, void *, register_t *);
1555 1.30 fvdl
1556 1.28 thorpej int compat_43_sys_gethostid(struct lwp *, void *, register_t *);
1557 1.30 fvdl
1558 1.1 mrg #ifdef COMPAT_43
1559 1.28 thorpej int compat_43_netbsd32_sethostid(struct lwp *, void *, register_t *);
1560 1.30 fvdl
1561 1.1 mrg #else
1562 1.1 mrg #endif
1563 1.28 thorpej int compat_43_netbsd32_ogetrlimit(struct lwp *, void *, register_t *);
1564 1.30 fvdl
1565 1.28 thorpej int compat_43_netbsd32_osetrlimit(struct lwp *, void *, register_t *);
1566 1.30 fvdl
1567 1.1 mrg #ifdef COMPAT_43
1568 1.28 thorpej int compat_43_netbsd32_killpg(struct lwp *, void *, register_t *);
1569 1.30 fvdl
1570 1.1 mrg #else
1571 1.1 mrg #endif
1572 1.28 thorpej int sys_setsid(struct lwp *, void *, register_t *);
1573 1.30 fvdl
1574 1.28 thorpej int netbsd32_quotactl(struct lwp *, void *, register_t *);
1575 1.30 fvdl
1576 1.28 thorpej int compat_43_sys_quota(struct lwp *, void *, register_t *);
1577 1.30 fvdl
1578 1.28 thorpej int compat_43_netbsd32_ogetsockname(struct lwp *, void *, register_t *);
1579 1.30 fvdl
1580 1.10 christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
1581 1.28 thorpej int netbsd32_nfssvc(struct lwp *, void *, register_t *);
1582 1.30 fvdl
1583 1.1 mrg #else
1584 1.1 mrg #endif
1585 1.28 thorpej int compat_43_netbsd32_ogetdirentries(struct lwp *, void *, register_t *);
1586 1.30 fvdl
1587 1.28 thorpej int netbsd32_statfs(struct lwp *, void *, register_t *);
1588 1.30 fvdl
1589 1.28 thorpej int netbsd32_fstatfs(struct lwp *, void *, register_t *);
1590 1.30 fvdl
1591 1.10 christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
1592 1.28 thorpej int netbsd32_getfh(struct lwp *, void *, register_t *);
1593 1.30 fvdl
1594 1.1 mrg #else
1595 1.1 mrg #endif
1596 1.28 thorpej int compat_09_netbsd32_ogetdomainname(struct lwp *, void *, register_t *);
1597 1.30 fvdl
1598 1.28 thorpej int compat_09_netbsd32_osetdomainname(struct lwp *, void *, register_t *);
1599 1.30 fvdl
1600 1.28 thorpej int compat_09_netbsd32_uname(struct lwp *, void *, register_t *);
1601 1.30 fvdl
1602 1.28 thorpej int netbsd32_sysarch(struct lwp *, void *, register_t *);
1603 1.30 fvdl
1604 1.26 mrg #if defined(SYSVSEM) || !defined(_KERNEL)
1605 1.28 thorpej int compat_10_netbsd32_sys_semsys(struct lwp *, void *, register_t *);
1606 1.30 fvdl
1607 1.1 mrg #else
1608 1.1 mrg #endif
1609 1.26 mrg #if defined(SYSVMSG) || !defined(_KERNEL)
1610 1.28 thorpej int compat_10_netbsd32_sys_msgsys(struct lwp *, void *, register_t *);
1611 1.30 fvdl
1612 1.1 mrg #else
1613 1.1 mrg #endif
1614 1.26 mrg #if defined(SYSVSHM) || !defined(_KERNEL)
1615 1.28 thorpej int compat_10_netbsd32_sys_shmsys(struct lwp *, void *, register_t *);
1616 1.30 fvdl
1617 1.1 mrg #else
1618 1.1 mrg #endif
1619 1.28 thorpej int netbsd32_pread(struct lwp *, void *, register_t *);
1620 1.30 fvdl
1621 1.28 thorpej int netbsd32_pwrite(struct lwp *, void *, register_t *);
1622 1.30 fvdl
1623 1.28 thorpej int netbsd32_ntp_gettime(struct lwp *, void *, register_t *);
1624 1.30 fvdl
1625 1.28 thorpej int netbsd32_ntp_adjtime(struct lwp *, void *, register_t *);
1626 1.30 fvdl
1627 1.28 thorpej int netbsd32_setgid(struct lwp *, void *, register_t *);
1628 1.30 fvdl
1629 1.28 thorpej int netbsd32_setegid(struct lwp *, void *, register_t *);
1630 1.30 fvdl
1631 1.28 thorpej int netbsd32_seteuid(struct lwp *, void *, register_t *);
1632 1.30 fvdl
1633 1.10 christos #if defined(LFS) || !defined(_KERNEL)
1634 1.28 thorpej int netbsd32_sys_lfs_bmapv(struct lwp *, void *, register_t *);
1635 1.30 fvdl
1636 1.28 thorpej int netbsd32_sys_lfs_markv(struct lwp *, void *, register_t *);
1637 1.30 fvdl
1638 1.28 thorpej int netbsd32_sys_lfs_segclean(struct lwp *, void *, register_t *);
1639 1.30 fvdl
1640 1.28 thorpej int netbsd32_sys_lfs_segwait(struct lwp *, void *, register_t *);
1641 1.30 fvdl
1642 1.16 cgd #else
1643 1.16 cgd #endif
1644 1.28 thorpej int compat_12_netbsd32_stat12(struct lwp *, void *, register_t *);
1645 1.30 fvdl
1646 1.28 thorpej int compat_12_netbsd32_fstat12(struct lwp *, void *, register_t *);
1647 1.30 fvdl
1648 1.28 thorpej int compat_12_netbsd32_lstat12(struct lwp *, void *, register_t *);
1649 1.30 fvdl
1650 1.28 thorpej int netbsd32_pathconf(struct lwp *, void *, register_t *);
1651 1.30 fvdl
1652 1.28 thorpej int netbsd32_fpathconf(struct lwp *, void *, register_t *);
1653 1.30 fvdl
1654 1.28 thorpej int netbsd32_getrlimit(struct lwp *, void *, register_t *);
1655 1.30 fvdl
1656 1.28 thorpej int netbsd32_setrlimit(struct lwp *, void *, register_t *);
1657 1.30 fvdl
1658 1.28 thorpej int compat_12_netbsd32_getdirentries(struct lwp *, void *, register_t *);
1659 1.30 fvdl
1660 1.28 thorpej int netbsd32_mmap(struct lwp *, void *, register_t *);
1661 1.30 fvdl
1662 1.28 thorpej int netbsd32_lseek(struct lwp *, void *, register_t *);
1663 1.30 fvdl
1664 1.28 thorpej int netbsd32_truncate(struct lwp *, void *, register_t *);
1665 1.30 fvdl
1666 1.28 thorpej int netbsd32_ftruncate(struct lwp *, void *, register_t *);
1667 1.30 fvdl
1668 1.28 thorpej int netbsd32___sysctl(struct lwp *, void *, register_t *);
1669 1.30 fvdl
1670 1.28 thorpej int netbsd32_mlock(struct lwp *, void *, register_t *);
1671 1.30 fvdl
1672 1.28 thorpej int netbsd32_munlock(struct lwp *, void *, register_t *);
1673 1.30 fvdl
1674 1.28 thorpej int netbsd32_undelete(struct lwp *, void *, register_t *);
1675 1.30 fvdl
1676 1.28 thorpej int netbsd32_futimes(struct lwp *, void *, register_t *);
1677 1.30 fvdl
1678 1.28 thorpej int netbsd32_getpgid(struct lwp *, void *, register_t *);
1679 1.30 fvdl
1680 1.28 thorpej int netbsd32_reboot(struct lwp *, void *, register_t *);
1681 1.30 fvdl
1682 1.28 thorpej int netbsd32_poll(struct lwp *, void *, register_t *);
1683 1.30 fvdl
1684 1.10 christos #if defined(LKM) || !defined(_KERNEL)
1685 1.28 thorpej int sys_lkmnosys(struct lwp *, void *, register_t *);
1686 1.30 fvdl
1687 1.10 christos #else /* !LKM || !_KERNEL */
1688 1.10 christos #endif /* !LKM || !_KERNEL */
1689 1.10 christos #if defined(SYSVSEM) || !defined(_KERNEL)
1690 1.28 thorpej int compat_14_netbsd32___semctl(struct lwp *, void *, register_t *);
1691 1.30 fvdl
1692 1.28 thorpej int netbsd32_semget(struct lwp *, void *, register_t *);
1693 1.30 fvdl
1694 1.28 thorpej int netbsd32_semop(struct lwp *, void *, register_t *);
1695 1.30 fvdl
1696 1.28 thorpej int netbsd32_semconfig(struct lwp *, void *, register_t *);
1697 1.30 fvdl
1698 1.1 mrg #else
1699 1.1 mrg #endif
1700 1.10 christos #if defined(SYSVMSG) || !defined(_KERNEL)
1701 1.28 thorpej int compat_14_netbsd32_msgctl(struct lwp *, void *, register_t *);
1702 1.30 fvdl
1703 1.28 thorpej int netbsd32_msgget(struct lwp *, void *, register_t *);
1704 1.30 fvdl
1705 1.28 thorpej int netbsd32_msgsnd(struct lwp *, void *, register_t *);
1706 1.30 fvdl
1707 1.28 thorpej int netbsd32_msgrcv(struct lwp *, void *, register_t *);
1708 1.30 fvdl
1709 1.1 mrg #else
1710 1.1 mrg #endif
1711 1.10 christos #if defined(SYSVSHM) || !defined(_KERNEL)
1712 1.28 thorpej int netbsd32_shmat(struct lwp *, void *, register_t *);
1713 1.30 fvdl
1714 1.28 thorpej int compat_14_netbsd32_shmctl(struct lwp *, void *, register_t *);
1715 1.30 fvdl
1716 1.28 thorpej int netbsd32_shmdt(struct lwp *, void *, register_t *);
1717 1.30 fvdl
1718 1.28 thorpej int netbsd32_shmget(struct lwp *, void *, register_t *);
1719 1.30 fvdl
1720 1.16 cgd #else
1721 1.16 cgd #endif
1722 1.28 thorpej int netbsd32_clock_gettime(struct lwp *, void *, register_t *);
1723 1.30 fvdl
1724 1.28 thorpej int netbsd32_clock_settime(struct lwp *, void *, register_t *);
1725 1.30 fvdl
1726 1.28 thorpej int netbsd32_clock_getres(struct lwp *, void *, register_t *);
1727 1.30 fvdl
1728 1.28 thorpej int netbsd32_nanosleep(struct lwp *, void *, register_t *);
1729 1.30 fvdl
1730 1.28 thorpej int netbsd32_fdatasync(struct lwp *, void *, register_t *);
1731 1.30 fvdl
1732 1.28 thorpej int netbsd32___posix_rename(struct lwp *, void *, register_t *);
1733 1.30 fvdl
1734 1.28 thorpej int netbsd32_swapctl(struct lwp *, void *, register_t *);
1735 1.30 fvdl
1736 1.28 thorpej int netbsd32_getdents(struct lwp *, void *, register_t *);
1737 1.30 fvdl
1738 1.28 thorpej int netbsd32_minherit(struct lwp *, void *, register_t *);
1739 1.30 fvdl
1740 1.28 thorpej int netbsd32_lchmod(struct lwp *, void *, register_t *);
1741 1.30 fvdl
1742 1.28 thorpej int netbsd32_lchown(struct lwp *, void *, register_t *);
1743 1.30 fvdl
1744 1.28 thorpej int netbsd32_lutimes(struct lwp *, void *, register_t *);
1745 1.30 fvdl
1746 1.28 thorpej int netbsd32___msync13(struct lwp *, void *, register_t *);
1747 1.30 fvdl
1748 1.28 thorpej int netbsd32___stat13(struct lwp *, void *, register_t *);
1749 1.30 fvdl
1750 1.28 thorpej int netbsd32___fstat13(struct lwp *, void *, register_t *);
1751 1.30 fvdl
1752 1.28 thorpej int netbsd32___lstat13(struct lwp *, void *, register_t *);
1753 1.30 fvdl
1754 1.28 thorpej int netbsd32___sigaltstack14(struct lwp *, void *, register_t *);
1755 1.30 fvdl
1756 1.28 thorpej int sys___vfork14(struct lwp *, void *, register_t *);
1757 1.30 fvdl
1758 1.28 thorpej int netbsd32___posix_chown(struct lwp *, void *, register_t *);
1759 1.30 fvdl
1760 1.28 thorpej int netbsd32___posix_fchown(struct lwp *, void *, register_t *);
1761 1.30 fvdl
1762 1.28 thorpej int netbsd32___posix_lchown(struct lwp *, void *, register_t *);
1763 1.30 fvdl
1764 1.28 thorpej int netbsd32_getsid(struct lwp *, void *, register_t *);
1765 1.30 fvdl
1766 1.10 christos #if defined(KTRACE) || !defined(_KERNEL)
1767 1.28 thorpej int netbsd32_fktrace(struct lwp *, void *, register_t *);
1768 1.30 fvdl
1769 1.1 mrg #else
1770 1.1 mrg #endif
1771 1.28 thorpej int netbsd32_preadv(struct lwp *, void *, register_t *);
1772 1.30 fvdl
1773 1.28 thorpej int netbsd32_pwritev(struct lwp *, void *, register_t *);
1774 1.30 fvdl
1775 1.28 thorpej int netbsd32___sigaction14(struct lwp *, void *, register_t *);
1776 1.30 fvdl
1777 1.28 thorpej int netbsd32___sigpending14(struct lwp *, void *, register_t *);
1778 1.30 fvdl
1779 1.28 thorpej int netbsd32___sigprocmask14(struct lwp *, void *, register_t *);
1780 1.30 fvdl
1781 1.28 thorpej int netbsd32___sigsuspend14(struct lwp *, void *, register_t *);
1782 1.30 fvdl
1783 1.30 fvdl int compat_16_netbsd32___sigreturn14(struct lwp *, void *, register_t *);
1784 1.30 fvdl
1785 1.28 thorpej int netbsd32___getcwd(struct lwp *, void *, register_t *);
1786 1.30 fvdl
1787 1.28 thorpej int netbsd32_fchroot(struct lwp *, void *, register_t *);
1788 1.30 fvdl
1789 1.28 thorpej int netbsd32_fhopen(struct lwp *, void *, register_t *);
1790 1.30 fvdl
1791 1.28 thorpej int netbsd32_fhstat(struct lwp *, void *, register_t *);
1792 1.30 fvdl
1793 1.28 thorpej int netbsd32_fhstatfs(struct lwp *, void *, register_t *);
1794 1.30 fvdl
1795 1.12 eeh #if defined(SYSVSEM) || !defined(_KERNEL)
1796 1.28 thorpej int netbsd32___semctl14(struct lwp *, void *, register_t *);
1797 1.30 fvdl
1798 1.12 eeh #else
1799 1.12 eeh #endif
1800 1.12 eeh #if defined(SYSVMSG) || !defined(_KERNEL)
1801 1.28 thorpej int netbsd32___msgctl13(struct lwp *, void *, register_t *);
1802 1.30 fvdl
1803 1.12 eeh #else
1804 1.12 eeh #endif
1805 1.12 eeh #if defined(SYSVSHM) || !defined(_KERNEL)
1806 1.28 thorpej int netbsd32___shmctl13(struct lwp *, void *, register_t *);
1807 1.30 fvdl
1808 1.12 eeh #else
1809 1.12 eeh #endif
1810 1.28 thorpej int netbsd32_lchflags(struct lwp *, void *, register_t *);
1811 1.30 fvdl
1812 1.28 thorpej int sys_issetugid(struct lwp *, void *, register_t *);
1813 1.30 fvdl
1814 1.28 thorpej int netbsd32_utrace(struct lwp *, void *, register_t *);
1815 1.30 fvdl
1816 1.30 fvdl int netbsd32_getcontext(struct lwp *, void *, register_t *);
1817 1.30 fvdl
1818 1.30 fvdl int netbsd32_setcontext(struct lwp *, void *, register_t *);
1819 1.30 fvdl
1820 1.28 thorpej int netbsd32___sigaction_sigtramp(struct lwp *, void *, register_t *);
1821 1.30 fvdl
1822 1.8 mrg #endif /* _netbsd32_SYS__SYSCALLARGS_H_ */
1823