linux32_syscallargs.h revision 1.80 1 /* $NetBSD: linux32_syscallargs.h,v 1.80 2019/11/09 23:45:08 jdolecek Exp $ */
2
3 /*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.70 2019/11/09 23:44:31 jdolecek Exp
8 */
9
10 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
11 #define _LINUX32_SYS_SYSCALLARGS_H_
12
13 /* Forward declaration */
14 struct lwp;
15
16 #define LINUX32_SYS_MAXSYSARGS 8
17
18 #undef syscallarg
19 #define syscallarg(x) \
20 union { \
21 register32_t pad; \
22 struct { x datum; } le; \
23 struct { /* LINTED zero array dimension */ \
24 int8_t pad[ /* CONSTCOND */ \
25 (sizeof (register32_t) < sizeof (x)) \
26 ? 0 \
27 : sizeof (register32_t) - sizeof (x)]; \
28 x datum; \
29 } be; \
30 }
31
32 #undef check_syscall_args
33 #define check_syscall_args(call) /*LINTED*/ \
34 typedef char call##_check_args[sizeof (struct call##_args) \
35 <= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1];
36
37 struct linux32_sys_exit_args {
38 syscallarg(int) rval;
39 };
40 check_syscall_args(linux32_sys_exit)
41
42 struct netbsd32_read_args;
43
44 struct netbsd32_write_args;
45
46 struct linux32_sys_open_args {
47 syscallarg(netbsd32_charp) path;
48 syscallarg(int) flags;
49 syscallarg(linux_umode_t) mode;
50 };
51 check_syscall_args(linux32_sys_open)
52
53 struct netbsd32_close_args;
54
55 struct linux32_sys_waitpid_args {
56 syscallarg(int) pid;
57 syscallarg(netbsd32_intp) status;
58 syscallarg(int) options;
59 };
60 check_syscall_args(linux32_sys_waitpid)
61
62 struct linux32_sys_creat_args {
63 syscallarg(netbsd32_charp) path;
64 syscallarg(linux_umode_t) mode;
65 };
66 check_syscall_args(linux32_sys_creat)
67
68 struct netbsd32_link_args;
69
70 struct linux32_sys_unlink_args {
71 syscallarg(netbsd32_charp) path;
72 };
73 check_syscall_args(linux32_sys_unlink)
74
75 struct netbsd32_execve_args;
76
77 struct netbsd32_chdir_args;
78
79 struct linux32_sys_time_args {
80 syscallarg(linux32_timep_t) t;
81 };
82 check_syscall_args(linux32_sys_time)
83
84 struct linux32_sys_mknod_args {
85 syscallarg(netbsd32_charp) path;
86 syscallarg(linux_umode_t) mode;
87 syscallarg(unsigned) dev;
88 };
89 check_syscall_args(linux32_sys_mknod)
90
91 struct netbsd32_chmod_args;
92
93 struct linux32_sys_lchown16_args {
94 syscallarg(netbsd32_charp) path;
95 syscallarg(linux32_uid16_t) uid;
96 syscallarg(linux32_gid16_t) gid;
97 };
98 check_syscall_args(linux32_sys_lchown16)
99
100 struct linux32_sys_break_args {
101 syscallarg(netbsd32_charp) nsize;
102 };
103 check_syscall_args(linux32_sys_break)
104
105 struct compat_43_netbsd32_olseek_args;
106
107 struct netbsd32_setuid_args;
108
109 struct linux32_sys_stime_args {
110 syscallarg(linux32_timep_t) t;
111 };
112 check_syscall_args(linux32_sys_stime)
113
114 struct linux32_sys_ptrace_args {
115 syscallarg(int) request;
116 syscallarg(int) pid;
117 syscallarg(int) addr;
118 syscallarg(int) data;
119 };
120 check_syscall_args(linux32_sys_ptrace)
121
122 struct linux32_sys_alarm_args {
123 syscallarg(unsigned int) secs;
124 };
125 check_syscall_args(linux32_sys_alarm)
126
127 struct linux32_sys_utime_args {
128 syscallarg(netbsd32_charp) path;
129 syscallarg(linux32_utimbufp_t) times;
130 };
131 check_syscall_args(linux32_sys_utime)
132
133 struct netbsd32_access_args;
134
135 struct linux32_sys_nice_args {
136 syscallarg(int) incr;
137 };
138 check_syscall_args(linux32_sys_nice)
139
140 struct linux32_sys_kill_args {
141 syscallarg(int) pid;
142 syscallarg(int) signum;
143 };
144 check_syscall_args(linux32_sys_kill)
145
146 struct netbsd32___posix_rename_args;
147
148 struct netbsd32_mkdir_args;
149
150 struct netbsd32_rmdir_args;
151
152 struct netbsd32_dup_args;
153
154 struct linux32_sys_pipe_args {
155 syscallarg(netbsd32_intp) fd;
156 };
157 check_syscall_args(linux32_sys_pipe)
158
159 struct linux32_sys_times_args {
160 syscallarg(linux32_tmsp_t) tms;
161 };
162 check_syscall_args(linux32_sys_times)
163
164 struct linux32_sys_brk_args {
165 syscallarg(netbsd32_charp) nsize;
166 };
167 check_syscall_args(linux32_sys_brk)
168
169 struct netbsd32_setgid_args;
170
171 struct linux32_sys_signal_args {
172 syscallarg(int) signum;
173 syscallarg(linux32_handlerp_t) handler;
174 };
175 check_syscall_args(linux32_sys_signal)
176
177 struct netbsd32_acct_args;
178
179 struct linux32_sys_ioctl_args {
180 syscallarg(int) fd;
181 syscallarg(netbsd32_u_long) com;
182 syscallarg(netbsd32_charp) data;
183 };
184 check_syscall_args(linux32_sys_ioctl)
185
186 struct linux32_sys_fcntl_args {
187 syscallarg(int) fd;
188 syscallarg(int) cmd;
189 syscallarg(netbsd32_voidp) arg;
190 };
191 check_syscall_args(linux32_sys_fcntl)
192
193 struct netbsd32_setpgid_args;
194
195 struct linux32_sys_oldolduname_args {
196 syscallarg(linux32_oldold_utsnamep_t) up;
197 };
198 check_syscall_args(linux32_sys_oldolduname)
199
200 struct netbsd32_umask_args;
201
202 struct netbsd32_chroot_args;
203
204 struct netbsd32_dup2_args;
205
206 struct linux32_sys_sigsetmask_args {
207 syscallarg(linux32_old_sigset_t) mask;
208 };
209 check_syscall_args(linux32_sys_sigsetmask)
210
211 struct linux32_sys_setreuid16_args {
212 syscallarg(linux32_uid16_t) ruid;
213 syscallarg(linux32_uid16_t) euid;
214 };
215 check_syscall_args(linux32_sys_setreuid16)
216
217 struct linux32_sys_setregid16_args {
218 syscallarg(linux32_gid16_t) rgid;
219 syscallarg(linux32_gid16_t) egid;
220 };
221 check_syscall_args(linux32_sys_setregid16)
222
223 struct compat_43_netbsd32_osethostname_args;
224
225 struct linux32_sys_setrlimit_args {
226 syscallarg(u_int) which;
227 syscallarg(netbsd32_orlimitp_t) rlp;
228 };
229 check_syscall_args(linux32_sys_setrlimit)
230
231 struct linux32_sys_getrlimit_args {
232 syscallarg(u_int) which;
233 syscallarg(netbsd32_orlimitp_t) rlp;
234 };
235 check_syscall_args(linux32_sys_getrlimit)
236
237 struct compat_50_netbsd32_getrusage_args;
238
239 struct linux32_sys_gettimeofday_args {
240 syscallarg(netbsd32_timeval50p_t) tp;
241 syscallarg(netbsd32_timezonep_t) tzp;
242 };
243 check_syscall_args(linux32_sys_gettimeofday)
244
245 struct linux32_sys_settimeofday_args {
246 syscallarg(netbsd32_timeval50p_t) tp;
247 syscallarg(netbsd32_timezonep_t) tzp;
248 };
249 check_syscall_args(linux32_sys_settimeofday)
250
251 struct linux32_sys_getgroups16_args {
252 syscallarg(int) gidsetsize;
253 syscallarg(linux32_gid16p_t) gidset;
254 };
255 check_syscall_args(linux32_sys_getgroups16)
256
257 struct linux32_sys_setgroups16_args {
258 syscallarg(int) gidsetsize;
259 syscallarg(linux32_gid16p_t) gidset;
260 };
261 check_syscall_args(linux32_sys_setgroups16)
262
263 struct linux32_sys_oldselect_args {
264 syscallarg(linux32_oldselectp_t) lsp;
265 };
266 check_syscall_args(linux32_sys_oldselect)
267
268 struct netbsd32_symlink_args;
269
270 struct compat_43_netbsd32_lstat43_args;
271
272 struct netbsd32_readlink_args;
273
274 struct linux32_sys_swapon_args {
275 syscallarg(netbsd32_charp) name;
276 };
277 check_syscall_args(linux32_sys_swapon)
278
279 struct linux32_sys_reboot_args {
280 syscallarg(int) magic1;
281 syscallarg(int) magic2;
282 syscallarg(int) cmd;
283 syscallarg(netbsd32_voidp) arg;
284 };
285 check_syscall_args(linux32_sys_reboot)
286
287 struct linux32_sys_readdir_args {
288 syscallarg(int) fd;
289 syscallarg(netbsd32_voidp) dent;
290 syscallarg(unsigned int) count;
291 };
292 check_syscall_args(linux32_sys_readdir)
293
294 struct linux32_sys_old_mmap_args {
295 syscallarg(linux32_oldmmapp) lmp;
296 };
297 check_syscall_args(linux32_sys_old_mmap)
298
299 struct netbsd32_munmap_args;
300
301 struct compat_43_netbsd32_otruncate_args;
302
303 struct compat_43_netbsd32_oftruncate_args;
304
305 struct netbsd32_fchmod_args;
306
307 struct linux32_sys_fchown16_args {
308 syscallarg(int) fd;
309 syscallarg(linux32_uid16_t) uid;
310 syscallarg(linux32_gid16_t) gid;
311 };
312 check_syscall_args(linux32_sys_fchown16)
313
314 struct linux32_sys_getpriority_args {
315 syscallarg(int) which;
316 syscallarg(int) who;
317 };
318 check_syscall_args(linux32_sys_getpriority)
319
320 struct netbsd32_setpriority_args;
321
322 struct netbsd32_profil_args;
323
324 struct linux32_sys_statfs_args {
325 syscallarg(netbsd32_charp) path;
326 syscallarg(linux32_statfsp) sp;
327 };
328 check_syscall_args(linux32_sys_statfs)
329
330 struct linux32_sys_fstatfs_args {
331 syscallarg(int) fd;
332 syscallarg(linux32_statfsp) sp;
333 };
334 check_syscall_args(linux32_sys_fstatfs)
335
336 struct linux_sys_ioperm_args;
337
338 struct linux32_sys_socketcall_args {
339 syscallarg(int) what;
340 syscallarg(netbsd32_voidp) args;
341 };
342 check_syscall_args(linux32_sys_socketcall)
343
344 struct compat_50_netbsd32_setitimer_args;
345
346 struct compat_50_netbsd32_getitimer_args;
347
348 struct linux32_sys_stat_args {
349 syscallarg(netbsd32_charp) path;
350 syscallarg(linux32_statp) sp;
351 };
352 check_syscall_args(linux32_sys_stat)
353
354 struct linux32_sys_lstat_args {
355 syscallarg(netbsd32_charp) path;
356 syscallarg(linux32_statp) sp;
357 };
358 check_syscall_args(linux32_sys_lstat)
359
360 struct linux32_sys_fstat_args {
361 syscallarg(int) fd;
362 syscallarg(linux32_statp) sp;
363 };
364 check_syscall_args(linux32_sys_fstat)
365
366 struct linux32_sys_olduname_args {
367 syscallarg(linux32_oldutsnamep_t) up;
368 };
369 check_syscall_args(linux32_sys_olduname)
370
371 struct linux_sys_iopl_args;
372
373 struct linux32_sys_wait4_args {
374 syscallarg(int) pid;
375 syscallarg(netbsd32_intp) status;
376 syscallarg(int) options;
377 syscallarg(netbsd32_rusage50p_t) rusage;
378 };
379 check_syscall_args(linux32_sys_wait4)
380
381 struct linux32_sys_swapoff_args {
382 syscallarg(netbsd32_charp) path;
383 };
384 check_syscall_args(linux32_sys_swapoff)
385
386 struct linux32_sys_sysinfo_args {
387 syscallarg(linux32_sysinfop_t) arg;
388 };
389 check_syscall_args(linux32_sys_sysinfo)
390
391 struct linux32_sys_ipc_args {
392 syscallarg(int) what;
393 syscallarg(int) a1;
394 syscallarg(int) a2;
395 syscallarg(int) a3;
396 syscallarg(netbsd32_voidp) ptr;
397 };
398 check_syscall_args(linux32_sys_ipc)
399
400 struct netbsd32_fsync_args;
401
402 struct linux32_sys_sigreturn_args {
403 syscallarg(linux32_sigcontextp_t) scp;
404 };
405 check_syscall_args(linux32_sys_sigreturn)
406
407 struct linux32_sys_clone_args {
408 syscallarg(int) flags;
409 syscallarg(netbsd32_voidp) stack;
410 syscallarg(netbsd32_voidp) parent_tidptr;
411 syscallarg(netbsd32_voidp) tls;
412 syscallarg(netbsd32_voidp) child_tidptr;
413 };
414 check_syscall_args(linux32_sys_clone)
415
416 struct linux32_sys_setdomainname_args {
417 syscallarg(netbsd32_charp) domainname;
418 syscallarg(int) len;
419 };
420 check_syscall_args(linux32_sys_setdomainname)
421
422 struct linux32_sys_uname_args {
423 syscallarg(linux32_utsnamep) up;
424 };
425 check_syscall_args(linux32_sys_uname)
426
427 struct linux32_sys_modify_ldt_args {
428 syscallarg(int) func;
429 syscallarg(netbsd32_charp) ptr;
430 syscallarg(netbsd32_size_t) bytecount;
431 };
432 check_syscall_args(linux32_sys_modify_ldt)
433
434 struct linux32_sys_mprotect_args {
435 syscallarg(netbsd32_voidp) start;
436 syscallarg(netbsd32_size_t) len;
437 syscallarg(int) prot;
438 };
439 check_syscall_args(linux32_sys_mprotect)
440
441 struct netbsd32_getpgid_args;
442
443 struct netbsd32_fchdir_args;
444
445 struct linux32_sys_personality_args {
446 syscallarg(netbsd32_u_long) per;
447 };
448 check_syscall_args(linux32_sys_personality)
449
450 struct linux32_sys_setfsuid_args;
451
452 struct linux32_sys_setfsgid_args;
453
454 struct linux32_sys_llseek_args {
455 syscallarg(int) fd;
456 syscallarg(u_int32_t) ohigh;
457 syscallarg(u_int32_t) olow;
458 syscallarg(netbsd32_voidp) res;
459 syscallarg(int) whence;
460 };
461 check_syscall_args(linux32_sys_llseek)
462
463 struct linux32_sys_getdents_args {
464 syscallarg(int) fd;
465 syscallarg(linux32_direntp_t) dent;
466 syscallarg(unsigned int) count;
467 };
468 check_syscall_args(linux32_sys_getdents)
469
470 struct linux32_sys_select_args {
471 syscallarg(int) nfds;
472 syscallarg(netbsd32_fd_setp_t) readfds;
473 syscallarg(netbsd32_fd_setp_t) writefds;
474 syscallarg(netbsd32_fd_setp_t) exceptfds;
475 syscallarg(netbsd32_timeval50p_t) timeout;
476 };
477 check_syscall_args(linux32_sys_select)
478
479 struct netbsd32_flock_args;
480
481 struct netbsd32___msync13_args;
482
483 struct netbsd32_readv_args;
484
485 struct netbsd32_writev_args;
486
487 struct netbsd32_getsid_args;
488
489 struct linux32_sys_fdatasync_args {
490 syscallarg(int) fd;
491 };
492 check_syscall_args(linux32_sys_fdatasync)
493
494 struct linux32_sys___sysctl_args {
495 syscallarg(linux32___sysctlp_t) lsp;
496 };
497 check_syscall_args(linux32_sys___sysctl)
498
499 struct netbsd32_mlock_args;
500
501 struct netbsd32_munlock_args;
502
503 struct netbsd32_mlockall_args;
504
505 struct linux32_sys_sched_setparam_args {
506 syscallarg(pid_t) pid;
507 syscallarg(const linux32_sched_paramp_t) sp;
508 };
509 check_syscall_args(linux32_sys_sched_setparam)
510
511 struct linux32_sys_sched_getparam_args {
512 syscallarg(pid_t) pid;
513 syscallarg(linux32_sched_paramp_t) sp;
514 };
515 check_syscall_args(linux32_sys_sched_getparam)
516
517 struct linux32_sys_sched_setscheduler_args {
518 syscallarg(pid_t) pid;
519 syscallarg(int) policy;
520 syscallarg(linux32_sched_paramp_t) sp;
521 };
522 check_syscall_args(linux32_sys_sched_setscheduler)
523
524 struct linux32_sys_sched_getscheduler_args {
525 syscallarg(pid_t) pid;
526 };
527 check_syscall_args(linux32_sys_sched_getscheduler)
528
529 struct linux32_sys_sched_get_priority_max_args {
530 syscallarg(int) policy;
531 };
532 check_syscall_args(linux32_sys_sched_get_priority_max)
533
534 struct linux32_sys_sched_get_priority_min_args {
535 syscallarg(int) policy;
536 };
537 check_syscall_args(linux32_sys_sched_get_priority_min)
538
539 struct linux32_sys_nanosleep_args {
540 syscallarg(linux32_timespecp_t) rqtp;
541 syscallarg(linux32_timespecp_t) rmtp;
542 };
543 check_syscall_args(linux32_sys_nanosleep)
544
545 struct linux32_sys_mremap_args {
546 syscallarg(netbsd32_voidp) old_address;
547 syscallarg(netbsd32_size_t) old_size;
548 syscallarg(netbsd32_size_t) new_size;
549 syscallarg(netbsd32_u_long) flags;
550 };
551 check_syscall_args(linux32_sys_mremap)
552
553 struct linux32_sys_setresuid16_args {
554 syscallarg(linux32_uid16_t) ruid;
555 syscallarg(linux32_uid16_t) euid;
556 syscallarg(linux32_uid16_t) suid;
557 };
558 check_syscall_args(linux32_sys_setresuid16)
559
560 struct linux32_sys_getresuid16_args {
561 syscallarg(linux32_uid16p_t) ruid;
562 syscallarg(linux32_uid16p_t) euid;
563 syscallarg(linux32_uid16p_t) suid;
564 };
565 check_syscall_args(linux32_sys_getresuid16)
566
567 struct netbsd32_poll_args;
568
569 struct linux32_sys_setresgid16_args {
570 syscallarg(linux32_gid16_t) rgid;
571 syscallarg(linux32_gid16_t) egid;
572 syscallarg(linux32_gid16_t) sgid;
573 };
574 check_syscall_args(linux32_sys_setresgid16)
575
576 struct linux32_sys_getresgid16_args {
577 syscallarg(linux32_gid16p_t) rgid;
578 syscallarg(linux32_gid16p_t) egid;
579 syscallarg(linux32_gid16p_t) sgid;
580 };
581 check_syscall_args(linux32_sys_getresgid16)
582
583 struct linux32_sys_rt_sigreturn_args {
584 syscallarg(linux32_ucontextp_t) ucp;
585 };
586 check_syscall_args(linux32_sys_rt_sigreturn)
587
588 struct linux32_sys_rt_sigaction_args {
589 syscallarg(int) signum;
590 syscallarg(linux32_sigactionp_t) nsa;
591 syscallarg(linux32_sigactionp_t) osa;
592 syscallarg(netbsd32_size_t) sigsetsize;
593 };
594 check_syscall_args(linux32_sys_rt_sigaction)
595
596 struct linux32_sys_rt_sigprocmask_args {
597 syscallarg(int) how;
598 syscallarg(linux32_sigsetp_t) set;
599 syscallarg(linux32_sigsetp_t) oset;
600 syscallarg(netbsd32_size_t) sigsetsize;
601 };
602 check_syscall_args(linux32_sys_rt_sigprocmask)
603
604 struct linux32_sys_rt_sigpending_args {
605 syscallarg(linux32_sigsetp_t) set;
606 syscallarg(netbsd32_size_t) sigsetsize;
607 };
608 check_syscall_args(linux32_sys_rt_sigpending)
609
610 struct linux32_sys_rt_sigtimedwait_args {
611 syscallarg(const linux32_sigsetp_t) set;
612 syscallarg(linux32_siginfop_t) info;
613 syscallarg(const linux32_timespecp_t) timeout;
614 };
615 check_syscall_args(linux32_sys_rt_sigtimedwait)
616
617 struct linux32_sys_rt_queueinfo_args {
618 syscallarg(int) pid;
619 syscallarg(int) sig;
620 syscallarg(linux32_siginfop_t) uinfo;
621 };
622 check_syscall_args(linux32_sys_rt_queueinfo)
623
624 struct linux32_sys_rt_sigsuspend_args {
625 syscallarg(linux32_sigsetp_t) unewset;
626 syscallarg(netbsd32_size_t) sigsetsize;
627 };
628 check_syscall_args(linux32_sys_rt_sigsuspend)
629
630 struct linux32_sys_pread_args {
631 syscallarg(int) fd;
632 syscallarg(netbsd32_voidp) buf;
633 syscallarg(netbsd32_size_t) nbyte;
634 syscallarg(netbsd32_off_t) offset;
635 };
636 check_syscall_args(linux32_sys_pread)
637
638 struct linux32_sys_pwrite_args {
639 syscallarg(int) fd;
640 syscallarg(netbsd32_voidp) buf;
641 syscallarg(netbsd32_size_t) nbyte;
642 syscallarg(netbsd32_off_t) offset;
643 };
644 check_syscall_args(linux32_sys_pwrite)
645
646 struct linux32_sys_chown16_args {
647 syscallarg(netbsd32_charp) path;
648 syscallarg(linux32_uid16_t) uid;
649 syscallarg(linux32_gid16_t) gid;
650 };
651 check_syscall_args(linux32_sys_chown16)
652
653 struct netbsd32___getcwd_args;
654
655 struct linux32_sys_ugetrlimit_args {
656 syscallarg(int) which;
657 syscallarg(netbsd32_orlimitp_t) rlp;
658 };
659 check_syscall_args(linux32_sys_ugetrlimit)
660
661 struct linux32_sys_mmap2_args {
662 syscallarg(netbsd32_u_long) addr;
663 syscallarg(netbsd32_size_t) len;
664 syscallarg(int) prot;
665 syscallarg(int) flags;
666 syscallarg(int) fd;
667 syscallarg(linux32_off_t) offset;
668 };
669 check_syscall_args(linux32_sys_mmap2)
670
671 struct linux32_sys_truncate64_args {
672 syscallarg(netbsd32_charp) path;
673 syscallarg(uint32_t) lenlo;
674 syscallarg(uint32_t) lenhi;
675 };
676 check_syscall_args(linux32_sys_truncate64)
677
678 struct linux32_sys_ftruncate64_args {
679 syscallarg(unsigned int) fd;
680 syscallarg(uint32_t) lenlo;
681 syscallarg(uint32_t) lenhi;
682 };
683 check_syscall_args(linux32_sys_ftruncate64)
684
685 struct linux32_sys_stat64_args {
686 syscallarg(netbsd32_charp) path;
687 syscallarg(linux32_stat64p) sp;
688 };
689 check_syscall_args(linux32_sys_stat64)
690
691 struct linux32_sys_lstat64_args {
692 syscallarg(netbsd32_charp) path;
693 syscallarg(linux32_stat64p) sp;
694 };
695 check_syscall_args(linux32_sys_lstat64)
696
697 struct linux32_sys_fstat64_args {
698 syscallarg(int) fd;
699 syscallarg(linux32_stat64p) sp;
700 };
701 check_syscall_args(linux32_sys_fstat64)
702
703 struct netbsd32___posix_lchown_args;
704
705 struct netbsd32_setreuid_args;
706
707 struct netbsd32_setregid_args;
708
709 struct netbsd32_getgroups_args;
710
711 struct netbsd32_setgroups_args;
712
713 struct netbsd32___posix_fchown_args;
714
715 struct linux32_sys_setresuid_args {
716 syscallarg(uid_t) ruid;
717 syscallarg(uid_t) euid;
718 syscallarg(uid_t) suid;
719 };
720 check_syscall_args(linux32_sys_setresuid)
721
722 struct linux32_sys_getresuid_args {
723 syscallarg(linux32_uidp_t) ruid;
724 syscallarg(linux32_uidp_t) euid;
725 syscallarg(linux32_uidp_t) suid;
726 };
727 check_syscall_args(linux32_sys_getresuid)
728
729 struct linux32_sys_setresgid_args {
730 syscallarg(gid_t) rgid;
731 syscallarg(gid_t) egid;
732 syscallarg(gid_t) sgid;
733 };
734 check_syscall_args(linux32_sys_setresgid)
735
736 struct linux32_sys_getresgid_args {
737 syscallarg(linux32_gidp_t) rgid;
738 syscallarg(linux32_gidp_t) egid;
739 syscallarg(linux32_gidp_t) sgid;
740 };
741 check_syscall_args(linux32_sys_getresgid)
742
743 struct netbsd32___posix_chown_args;
744
745 struct netbsd32_setuid_args;
746
747 struct netbsd32_setgid_args;
748
749 struct linux32_sys_setfsuid_args {
750 syscallarg(uid_t) uid;
751 };
752 check_syscall_args(linux32_sys_setfsuid)
753
754 struct linux32_sys_setfsgid_args {
755 syscallarg(gid_t) gid;
756 };
757 check_syscall_args(linux32_sys_setfsgid)
758
759 struct netbsd32_mincore_args;
760
761 struct netbsd32_madvise_args;
762
763 struct linux32_sys_getdents64_args {
764 syscallarg(int) fd;
765 syscallarg(linux32_dirent64p_t) dent;
766 syscallarg(unsigned int) count;
767 };
768 check_syscall_args(linux32_sys_getdents64)
769 #define linux32_sys_fcntl64 linux32_sys_fcntl
770 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
771
772 struct linux32_sys_fcntl64_args;
773
774 struct netbsd32_setxattr_args;
775
776 struct netbsd32_lsetxattr_args;
777
778 struct netbsd32_fsetxattr_args;
779
780 struct netbsd32_getxattr_args;
781
782 struct netbsd32_lgetxattr_args;
783
784 struct netbsd32_fgetxattr_args;
785
786 struct netbsd32_listxattr_args;
787
788 struct netbsd32_llistxattr_args;
789
790 struct netbsd32_flistxattr_args;
791
792 struct netbsd32_removexattr_args;
793
794 struct netbsd32_lremovexattr_args;
795
796 struct netbsd32_fremovexattr_args;
797
798 struct linux32_sys_tkill_args {
799 syscallarg(int) tid;
800 syscallarg(int) sig;
801 };
802 check_syscall_args(linux32_sys_tkill)
803
804 struct linux32_sys_futex_args {
805 syscallarg(linux32_intp_t) uaddr;
806 syscallarg(int) op;
807 syscallarg(int) val;
808 syscallarg(linux32_timespecp_t) timeout;
809 syscallarg(linux32_intp_t) uaddr2;
810 syscallarg(int) val3;
811 };
812 check_syscall_args(linux32_sys_futex)
813
814 struct linux32_sys_sched_setaffinity_args {
815 syscallarg(pid_t) pid;
816 syscallarg(unsigned int) len;
817 syscallarg(linux32_ulongp_t) mask;
818 };
819 check_syscall_args(linux32_sys_sched_setaffinity)
820
821 struct linux32_sys_sched_getaffinity_args {
822 syscallarg(pid_t) pid;
823 syscallarg(unsigned int) len;
824 syscallarg(linux32_ulongp_t) mask;
825 };
826 check_syscall_args(linux32_sys_sched_getaffinity)
827
828 struct linux32_sys_set_thread_area_args {
829 syscallarg(linux32_user_descp_t) desc;
830 };
831 check_syscall_args(linux32_sys_set_thread_area)
832
833 struct linux32_sys_get_thread_area_args {
834 syscallarg(linux32_user_descp_t) desc;
835 };
836 check_syscall_args(linux32_sys_get_thread_area)
837
838 struct linux32_sys_fadvise64_args {
839 syscallarg(int) fd;
840 syscallarg(uint32_t) offlo;
841 syscallarg(uint32_t) offhi;
842 syscallarg(linux32_size_t) len;
843 syscallarg(int) advice;
844 };
845 check_syscall_args(linux32_sys_fadvise64)
846
847 struct linux32_sys_exit_group_args {
848 syscallarg(int) error_code;
849 };
850 check_syscall_args(linux32_sys_exit_group)
851
852 struct linux32_sys_set_tid_address_args {
853 syscallarg(linux32_intp_t) tid;
854 };
855 check_syscall_args(linux32_sys_set_tid_address)
856
857 struct linux32_sys_clock_settime_args {
858 syscallarg(clockid_t) which;
859 syscallarg(linux32_timespecp_t) tp;
860 };
861 check_syscall_args(linux32_sys_clock_settime)
862
863 struct linux32_sys_clock_gettime_args {
864 syscallarg(clockid_t) which;
865 syscallarg(linux32_timespecp_t) tp;
866 };
867 check_syscall_args(linux32_sys_clock_gettime)
868
869 struct linux32_sys_clock_getres_args {
870 syscallarg(clockid_t) which;
871 syscallarg(linux32_timespecp_t) tp;
872 };
873 check_syscall_args(linux32_sys_clock_getres)
874
875 struct linux32_sys_clock_nanosleep_args {
876 syscallarg(clockid_t) which;
877 syscallarg(int) flags;
878 syscallarg(linux32_timespecp_t) rqtp;
879 syscallarg(linux32_timespecp_t) rmtp;
880 };
881 check_syscall_args(linux32_sys_clock_nanosleep)
882
883 struct linux32_sys_statfs64_args {
884 syscallarg(netbsd32_charp) path;
885 syscallarg(netbsd32_size_t) sz;
886 syscallarg(linux32_statfs64p) sp;
887 };
888 check_syscall_args(linux32_sys_statfs64)
889
890 struct linux32_sys_fstatfs64_args {
891 syscallarg(int) fd;
892 syscallarg(netbsd32_size_t) sz;
893 syscallarg(linux32_statfs64p) sp;
894 };
895 check_syscall_args(linux32_sys_fstatfs64)
896
897 struct linux32_sys_tgkill_args {
898 syscallarg(int) tgid;
899 syscallarg(int) tid;
900 syscallarg(int) sig;
901 };
902 check_syscall_args(linux32_sys_tgkill)
903
904 struct compat_50_netbsd32_utimes_args;
905
906 struct linux32_sys_fadvise64_64_args {
907 syscallarg(int) fd;
908 syscallarg(uint32_t) offlo;
909 syscallarg(uint32_t) offhi;
910 syscallarg(uint32_t) lenlo;
911 syscallarg(uint32_t) lenhi;
912 syscallarg(int) advice;
913 };
914 check_syscall_args(linux32_sys_fadvise64_64)
915
916 struct linux32_sys_openat_args {
917 syscallarg(int) fd;
918 syscallarg(netbsd32_charp) path;
919 syscallarg(int) flags;
920 syscallarg(linux_umode_t) mode;
921 };
922 check_syscall_args(linux32_sys_openat)
923
924 struct netbsd32_mkdirat_args;
925
926 struct linux32_sys_mknodat_args {
927 syscallarg(int) fd;
928 syscallarg(netbsd32_charp) path;
929 syscallarg(linux_umode_t) mode;
930 syscallarg(unsigned) dev;
931 };
932 check_syscall_args(linux32_sys_mknodat)
933
934 struct linux32_sys_fchownat_args {
935 syscallarg(int) fd;
936 syscallarg(netbsd32_charp) path;
937 syscallarg(uid_t) owner;
938 syscallarg(gid_t) group;
939 syscallarg(int) flag;
940 };
941 check_syscall_args(linux32_sys_fchownat)
942
943 struct linux32_sys_fstatat64_args {
944 syscallarg(int) fd;
945 syscallarg(netbsd32_charp) path;
946 syscallarg(linux32_stat64p) sp;
947 syscallarg(int) flag;
948 };
949 check_syscall_args(linux32_sys_fstatat64)
950
951 struct linux32_sys_unlinkat_args {
952 syscallarg(int) fd;
953 syscallarg(netbsd32_charp) path;
954 syscallarg(int) flag;
955 };
956 check_syscall_args(linux32_sys_unlinkat)
957
958 struct netbsd32_renameat_args;
959
960 struct linux32_sys_linkat_args {
961 syscallarg(int) fd1;
962 syscallarg(netbsd32_charp) name1;
963 syscallarg(int) fd2;
964 syscallarg(netbsd32_charp) name2;
965 syscallarg(int) flags;
966 };
967 check_syscall_args(linux32_sys_linkat)
968
969 struct netbsd32_symlinkat_args;
970
971 struct netbsd32_readlinkat_args;
972
973 struct linux32_sys_fchmodat_args {
974 syscallarg(int) fd;
975 syscallarg(netbsd32_charp) path;
976 syscallarg(linux_umode_t) mode;
977 };
978 check_syscall_args(linux32_sys_fchmodat)
979
980 struct linux32_sys_faccessat_args {
981 syscallarg(int) fd;
982 syscallarg(netbsd32_charp) path;
983 syscallarg(int) amode;
984 };
985 check_syscall_args(linux32_sys_faccessat)
986
987 struct linux32_sys_ppoll_args {
988 syscallarg(netbsd32_pollfdp_t) fds;
989 syscallarg(u_int) nfds;
990 syscallarg(linux32_timespecp_t) timeout;
991 syscallarg(linux32_sigsetp_t) sigset;
992 };
993 check_syscall_args(linux32_sys_ppoll)
994
995 struct linux32_sys_set_robust_list_args {
996 syscallarg(linux32_robust_list_headp_t) head;
997 syscallarg(linux32_size_t) len;
998 };
999 check_syscall_args(linux32_sys_set_robust_list)
1000
1001 struct linux32_sys_get_robust_list_args {
1002 syscallarg(linux32_pid_t) pid;
1003 syscallarg(linux32_robust_list_headpp_t) head;
1004 syscallarg(linux32_sizep_t) len;
1005 };
1006 check_syscall_args(linux32_sys_get_robust_list)
1007
1008 struct linux32_sys_utimensat_args {
1009 syscallarg(int) fd;
1010 syscallarg(netbsd32_charp) path;
1011 syscallarg(linux32_timespecp_t) times;
1012 syscallarg(int) flag;
1013 };
1014 check_syscall_args(linux32_sys_utimensat)
1015
1016 struct linux32_sys_fallocate_args {
1017 syscallarg(int) fd;
1018 syscallarg(int) mode;
1019 syscallarg(off_t) offset;
1020 syscallarg(off_t) len;
1021 };
1022 check_syscall_args(linux32_sys_fallocate)
1023
1024 struct linux32_sys_dup3_args {
1025 syscallarg(int) from;
1026 syscallarg(int) to;
1027 syscallarg(int) flags;
1028 };
1029 check_syscall_args(linux32_sys_dup3)
1030
1031 struct linux32_sys_pipe2_args {
1032 syscallarg(netbsd32_intp) fd;
1033 syscallarg(int) flags;
1034 };
1035 check_syscall_args(linux32_sys_pipe2)
1036
1037 /*
1038 * System call prototypes.
1039 */
1040
1041 int linux_sys_nosys(struct lwp *, const void *, register_t *);
1042
1043 int linux32_sys_exit(struct lwp *, const struct linux32_sys_exit_args *, register_t *);
1044
1045 int sys_fork(struct lwp *, const void *, register_t *);
1046
1047 int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
1048
1049 int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
1050
1051 int linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *);
1052
1053 int netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
1054
1055 int linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *);
1056
1057 int linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *);
1058
1059 int netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
1060
1061 int linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *);
1062
1063 int netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
1064
1065 int netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
1066
1067 int linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *);
1068
1069 int linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *);
1070
1071 int netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
1072
1073 int linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *);
1074
1075 int linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *);
1076
1077 int compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
1078
1079 int sys_getpid(struct lwp *, const void *, register_t *);
1080
1081 int netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
1082
1083 int sys_getuid(struct lwp *, const void *, register_t *);
1084
1085 int linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *);
1086
1087 int linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *);
1088
1089 int linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *);
1090
1091 int linux_sys_pause(struct lwp *, const void *, register_t *);
1092
1093 int linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *);
1094
1095 int netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
1096
1097 int linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *);
1098
1099 int sys_sync(struct lwp *, const void *, register_t *);
1100
1101 int linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *);
1102
1103 int netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
1104
1105 int netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
1106
1107 int netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
1108
1109 int netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
1110
1111 int linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *);
1112
1113 int linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *);
1114
1115 int linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *);
1116
1117 int netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
1118
1119 int sys_getgid(struct lwp *, const void *, register_t *);
1120
1121 int linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *);
1122
1123 int sys_geteuid(struct lwp *, const void *, register_t *);
1124
1125 int sys_getegid(struct lwp *, const void *, register_t *);
1126
1127 int netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
1128
1129 int linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *);
1130
1131 int linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *);
1132
1133 int netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
1134
1135 int linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *);
1136
1137 int netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
1138
1139 int netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
1140
1141 int netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
1142
1143 int sys_getppid(struct lwp *, const void *, register_t *);
1144
1145 int sys_getpgrp(struct lwp *, const void *, register_t *);
1146
1147 int sys_setsid(struct lwp *, const void *, register_t *);
1148
1149 int linux32_sys_siggetmask(struct lwp *, const void *, register_t *);
1150
1151 int linux32_sys_sigsetmask(struct lwp *, const struct linux32_sys_sigsetmask_args *, register_t *);
1152
1153 int linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *);
1154
1155 int linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *);
1156
1157 int compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
1158
1159 int linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *);
1160
1161 int linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *);
1162
1163 int compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *);
1164
1165 int linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *);
1166
1167 int linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *);
1168
1169 int linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *);
1170
1171 int linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *);
1172
1173 int linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *);
1174
1175 int netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
1176
1177 int compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
1178
1179 int netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
1180
1181 int linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *);
1182
1183 int linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *);
1184
1185 int linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *);
1186
1187 int linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *);
1188
1189 int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
1190
1191 int compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *);
1192
1193 int compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
1194
1195 int netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
1196
1197 int linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *);
1198
1199 int linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *);
1200
1201 int netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
1202
1203 int netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *);
1204
1205 int linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
1206
1207 int linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *);
1208
1209 int linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *);
1210
1211 int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
1212
1213 int compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
1214
1215 int compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
1216
1217 int linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *);
1218
1219 int linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *);
1220
1221 int linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *);
1222
1223 int linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
1224
1225 int linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *);
1226
1227 int linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
1228
1229 int linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
1230
1231 int linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *);
1232
1233 int linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *);
1234
1235 int netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
1236
1237 int linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *);
1238
1239 int linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
1240
1241 int linux32_sys_setdomainname(struct lwp *, const struct linux32_sys_setdomainname_args *, register_t *);
1242
1243 int linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
1244
1245 int linux32_sys_modify_ldt(struct lwp *, const struct linux32_sys_modify_ldt_args *, register_t *);
1246
1247 int linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
1248
1249 int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
1250
1251 int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
1252
1253 int linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *);
1254
1255 int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
1256
1257 int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
1258
1259 int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);
1260
1261 int linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *);
1262
1263 int linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *);
1264
1265 int netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
1266
1267 int netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *);
1268
1269 int netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
1270
1271 int netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
1272
1273 int netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
1274
1275 int linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *);
1276
1277 int linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *);
1278
1279 int netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *);
1280
1281 int netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *);
1282
1283 int netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
1284
1285 int sys_munlockall(struct lwp *, const void *, register_t *);
1286
1287 int linux32_sys_sched_setparam(struct lwp *, const struct linux32_sys_sched_setparam_args *, register_t *);
1288
1289 int linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *);
1290
1291 int linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *);
1292
1293 int linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *);
1294
1295 int linux_sys_sched_yield(struct lwp *, const void *, register_t *);
1296
1297 int linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *);
1298
1299 int linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *);
1300
1301 int linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *);
1302
1303 int linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *);
1304
1305 int linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
1306
1307 int linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *);
1308
1309 int netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
1310
1311 int linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
1312
1313 int linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *);
1314
1315 int linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
1316
1317 int linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);
1318
1319 int linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *);
1320
1321 int linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *);
1322
1323 int linux32_sys_rt_sigtimedwait(struct lwp *, const struct linux32_sys_rt_sigtimedwait_args *, register_t *);
1324
1325 int linux32_sys_rt_queueinfo(struct lwp *, const struct linux32_sys_rt_queueinfo_args *, register_t *);
1326
1327 int linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
1328
1329 int linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *);
1330
1331 int linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *);
1332
1333 int linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
1334
1335 int netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
1336
1337 int sys___vfork14(struct lwp *, const void *, register_t *);
1338
1339 int linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *);
1340
1341 int linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
1342
1343 int linux32_sys_truncate64(struct lwp *, const struct linux32_sys_truncate64_args *, register_t *);
1344
1345 int linux32_sys_ftruncate64(struct lwp *, const struct linux32_sys_ftruncate64_args *, register_t *);
1346
1347 int linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
1348
1349 int linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
1350
1351 int linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *);
1352
1353 int netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
1354
1355 int netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
1356
1357 int netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
1358
1359 int netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
1360
1361 int netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
1362
1363 int netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
1364
1365 int linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *);
1366
1367 int linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *);
1368
1369 int linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *);
1370
1371 int linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *);
1372
1373 int netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
1374
1375 int netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *);
1376
1377 int netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
1378
1379 int linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *);
1380
1381 #define linux32_sys_fcntl64 linux32_sys_fcntl
1382 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
1383 int linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *);
1384
1385 int linux_sys_gettid(struct lwp *, const void *, register_t *);
1386
1387 int netbsd32_setxattr(struct lwp *, const struct netbsd32_setxattr_args *, register_t *);
1388
1389 int netbsd32_lsetxattr(struct lwp *, const struct netbsd32_lsetxattr_args *, register_t *);
1390
1391 int netbsd32_fsetxattr(struct lwp *, const struct netbsd32_fsetxattr_args *, register_t *);
1392
1393 int netbsd32_getxattr(struct lwp *, const struct netbsd32_getxattr_args *, register_t *);
1394
1395 int netbsd32_lgetxattr(struct lwp *, const struct netbsd32_lgetxattr_args *, register_t *);
1396
1397 int netbsd32_fgetxattr(struct lwp *, const struct netbsd32_fgetxattr_args *, register_t *);
1398
1399 int netbsd32_listxattr(struct lwp *, const struct netbsd32_listxattr_args *, register_t *);
1400
1401 int netbsd32_llistxattr(struct lwp *, const struct netbsd32_llistxattr_args *, register_t *);
1402
1403 int netbsd32_flistxattr(struct lwp *, const struct netbsd32_flistxattr_args *, register_t *);
1404
1405 int netbsd32_removexattr(struct lwp *, const struct netbsd32_removexattr_args *, register_t *);
1406
1407 int netbsd32_lremovexattr(struct lwp *, const struct netbsd32_lremovexattr_args *, register_t *);
1408
1409 int netbsd32_fremovexattr(struct lwp *, const struct netbsd32_fremovexattr_args *, register_t *);
1410
1411 int linux32_sys_tkill(struct lwp *, const struct linux32_sys_tkill_args *, register_t *);
1412
1413 int linux32_sys_futex(struct lwp *, const struct linux32_sys_futex_args *, register_t *);
1414
1415 int linux32_sys_sched_setaffinity(struct lwp *, const struct linux32_sys_sched_setaffinity_args *, register_t *);
1416
1417 int linux32_sys_sched_getaffinity(struct lwp *, const struct linux32_sys_sched_getaffinity_args *, register_t *);
1418
1419 int linux32_sys_set_thread_area(struct lwp *, const struct linux32_sys_set_thread_area_args *, register_t *);
1420
1421 int linux32_sys_get_thread_area(struct lwp *, const struct linux32_sys_get_thread_area_args *, register_t *);
1422
1423 int linux32_sys_fadvise64(struct lwp *, const struct linux32_sys_fadvise64_args *, register_t *);
1424
1425 int linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *);
1426
1427 int linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *);
1428
1429 int linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *);
1430
1431 int linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *);
1432
1433 int linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *);
1434
1435 int linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *);
1436
1437 int linux32_sys_statfs64(struct lwp *, const struct linux32_sys_statfs64_args *, register_t *);
1438
1439 int linux32_sys_fstatfs64(struct lwp *, const struct linux32_sys_fstatfs64_args *, register_t *);
1440
1441 int linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *);
1442
1443 int compat_50_netbsd32_utimes(struct lwp *, const struct compat_50_netbsd32_utimes_args *, register_t *);
1444
1445 int linux32_sys_fadvise64_64(struct lwp *, const struct linux32_sys_fadvise64_64_args *, register_t *);
1446
1447 int linux32_sys_openat(struct lwp *, const struct linux32_sys_openat_args *, register_t *);
1448
1449 int netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *);
1450
1451 int linux32_sys_mknodat(struct lwp *, const struct linux32_sys_mknodat_args *, register_t *);
1452
1453 int linux32_sys_fchownat(struct lwp *, const struct linux32_sys_fchownat_args *, register_t *);
1454
1455 int linux32_sys_fstatat64(struct lwp *, const struct linux32_sys_fstatat64_args *, register_t *);
1456
1457 int linux32_sys_unlinkat(struct lwp *, const struct linux32_sys_unlinkat_args *, register_t *);
1458
1459 int netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *);
1460
1461 int linux32_sys_linkat(struct lwp *, const struct linux32_sys_linkat_args *, register_t *);
1462
1463 int netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *);
1464
1465 int netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *);
1466
1467 int linux32_sys_fchmodat(struct lwp *, const struct linux32_sys_fchmodat_args *, register_t *);
1468
1469 int linux32_sys_faccessat(struct lwp *, const struct linux32_sys_faccessat_args *, register_t *);
1470
1471 int linux32_sys_ppoll(struct lwp *, const struct linux32_sys_ppoll_args *, register_t *);
1472
1473 int linux32_sys_set_robust_list(struct lwp *, const struct linux32_sys_set_robust_list_args *, register_t *);
1474
1475 int linux32_sys_get_robust_list(struct lwp *, const struct linux32_sys_get_robust_list_args *, register_t *);
1476
1477 int linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_args *, register_t *);
1478
1479 int linux32_sys_fallocate(struct lwp *, const struct linux32_sys_fallocate_args *, register_t *);
1480
1481 int linux32_sys_dup3(struct lwp *, const struct linux32_sys_dup3_args *, register_t *);
1482
1483 int linux32_sys_pipe2(struct lwp *, const struct linux32_sys_pipe2_args *, register_t *);
1484
1485 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
1486