aoutm68k_syscallargs.h revision 1.46 1 /* $NetBSD: aoutm68k_syscallargs.h,v 1.46 2017/05/10 06:19:48 riastradh 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.37 2011/03/07 19:26:35 bouyer Exp
8 */
9
10 #ifndef _AOUTM68K_SYS_SYSCALLARGS_H_
11 #define _AOUTM68K_SYS_SYSCALLARGS_H_
12
13 /* Forward declaration */
14 struct lwp;
15
16 #define AOUTM68K_SYS_MAXSYSARGS 8
17
18 #undef syscallarg
19 #define syscallarg(x) \
20 union { \
21 register_t pad; \
22 struct { x datum; } le; \
23 struct { /* LINTED zero array dimension */ \
24 int8_t pad[ /* CONSTCOND */ \
25 (sizeof (register_t) < sizeof (x)) \
26 ? 0 \
27 : sizeof (register_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 <= AOUTM68K_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
36
37 struct sys_syscall_args;
38
39 struct sys_exit_args;
40
41 struct sys_read_args;
42
43 struct sys_write_args;
44
45 struct sys_open_args;
46
47 struct sys_close_args;
48
49 struct compat_50_sys_wait4_args;
50 #if defined(COMPAT_43) || !defined(_KERNEL)
51
52 struct compat_43_sys_creat_args;
53 #else
54 #endif
55
56 struct sys_link_args;
57
58 struct sys_unlink_args;
59
60 struct sys_chdir_args;
61
62 struct sys_fchdir_args;
63
64 struct compat_50_sys_mknod_args;
65
66 struct sys_chmod_args;
67
68 struct sys_chown_args;
69
70 struct sys_obreak_args;
71 #if defined(COMPAT_20) || !defined(_KERNEL)
72
73 struct compat_20_sys_getfsstat_args;
74 #else
75 #endif
76 #if defined(COMPAT_43) || !defined(_KERNEL)
77
78 struct compat_43_sys_lseek_args;
79 #else
80 #endif
81
82 struct compat_40_sys_mount_args;
83
84 struct sys_unmount_args;
85
86 struct sys_setuid_args;
87
88 struct sys_ptrace_args;
89
90 struct sys_recvmsg_args;
91
92 struct sys_sendmsg_args;
93
94 struct sys_recvfrom_args;
95
96 struct sys_accept_args;
97
98 struct sys_getpeername_args;
99
100 struct sys_getsockname_args;
101
102 struct sys_access_args;
103
104 struct sys_chflags_args;
105
106 struct sys_fchflags_args;
107
108 struct sys_kill_args;
109 #if defined(COMPAT_43) || !defined(_KERNEL)
110
111 struct aoutm68k_compat_43_sys_stat_args {
112 syscallarg(const char *) path;
113 syscallarg(struct aoutm68k_stat43 *) ub;
114 };
115 check_syscall_args(aoutm68k_compat_43_sys_stat)
116 #else
117 #endif
118 #if defined(COMPAT_43) || !defined(_KERNEL)
119
120 struct aoutm68k_compat_43_sys_lstat_args {
121 syscallarg(const char *) path;
122 syscallarg(struct aoutm68k_stat43 *) ub;
123 };
124 check_syscall_args(aoutm68k_compat_43_sys_lstat)
125 #else
126 #endif
127
128 struct sys_dup_args;
129
130 struct sys_profil_args;
131 #if defined(KTRACE) || !defined(_KERNEL)
132
133 struct sys_ktrace_args;
134 #else
135 #endif
136 #if defined(COMPAT_13) || !defined(_KERNEL)
137
138 struct compat_13_sys_sigaction_args;
139 #else
140 #endif
141 #if defined(COMPAT_13) || !defined(_KERNEL)
142
143 struct compat_13_sys_sigprocmask_args;
144 #else
145 #endif
146
147 struct sys___getlogin_args;
148
149 struct sys___setlogin_args;
150
151 struct sys_acct_args;
152 #if defined(COMPAT_13) || !defined(_KERNEL)
153
154 struct compat_13_sys_sigaltstack_args;
155 #else
156 #endif
157
158 struct sys_ioctl_args;
159 #if defined(COMPAT_12) || !defined(_KERNEL)
160
161 struct compat_12_sys_reboot_args;
162 #else
163 #endif
164
165 struct sys_revoke_args;
166
167 struct sys_symlink_args;
168
169 struct sys_readlink_args;
170
171 struct sys_execve_args;
172
173 struct sys_umask_args;
174
175 struct sys_chroot_args;
176 #if defined(COMPAT_43) || !defined(_KERNEL)
177
178 struct aoutm68k_compat_43_sys_fstat_args {
179 syscallarg(int) fd;
180 syscallarg(struct aoutm68k_stat43 *) sb;
181 };
182 check_syscall_args(aoutm68k_compat_43_sys_fstat)
183
184 struct compat_43_sys_getkerninfo_args;
185 #else
186 #endif
187 #if defined(COMPAT_12) || !defined(_KERNEL)
188
189 struct compat_12_sys_msync_args;
190 #else
191 #endif
192
193 struct sys_sbrk_args;
194
195 struct sys_sstk_args;
196 #if defined(COMPAT_43) || !defined(_KERNEL)
197
198 struct compat_43_sys_mmap_args;
199 #else
200 #endif
201
202 struct sys_ovadvise_args;
203
204 struct sys_munmap_args;
205
206 struct sys_mprotect_args;
207
208 struct sys_madvise_args;
209
210 struct sys_mincore_args;
211
212 struct sys_getgroups_args;
213
214 struct sys_setgroups_args;
215
216 struct sys_setpgid_args;
217
218 struct compat_50_sys_setitimer_args;
219 #if defined(COMPAT_43) || !defined(_KERNEL)
220 #else
221 #endif
222 #if defined(COMPAT_12) || !defined(_KERNEL)
223
224 struct compat_12_sys_swapon_args;
225 #else
226 #endif
227
228 struct compat_50_sys_getitimer_args;
229 #if defined(COMPAT_43) || !defined(_KERNEL)
230
231 struct compat_43_sys_gethostname_args;
232
233 struct compat_43_sys_sethostname_args;
234 #else
235 #endif
236
237 struct sys_dup2_args;
238
239 struct sys_fcntl_args;
240
241 struct compat_50_sys_select_args;
242
243 struct sys_fsync_args;
244
245 struct sys_setpriority_args;
246
247 struct compat_30_sys_socket_args;
248
249 struct sys_connect_args;
250 #if defined(COMPAT_43) || !defined(_KERNEL)
251
252 struct compat_43_sys_accept_args;
253 #else
254 #endif
255
256 struct sys_getpriority_args;
257 #if defined(COMPAT_43) || !defined(_KERNEL)
258
259 struct compat_43_sys_send_args;
260
261 struct compat_43_sys_recv_args;
262 #else
263 #endif
264 #if defined(COMPAT_13) || !defined(_KERNEL)
265
266 struct compat_13_sys_sigreturn_args;
267 #else
268 #endif
269
270 struct sys_bind_args;
271
272 struct sys_setsockopt_args;
273
274 struct sys_listen_args;
275 #if defined(COMPAT_43) || !defined(_KERNEL)
276
277 struct compat_43_sys_sigvec_args;
278
279 struct compat_43_sys_sigblock_args;
280
281 struct compat_43_sys_sigsetmask_args;
282 #else
283 #endif
284 #if defined(COMPAT_13) || !defined(_KERNEL)
285
286 struct compat_13_sys_sigsuspend_args;
287 #else
288 #endif
289 #if defined(COMPAT_43) || !defined(_KERNEL)
290
291 struct compat_43_sys_sigstack_args;
292
293 struct compat_43_sys_recvmsg_args;
294
295 struct compat_43_sys_sendmsg_args;
296 #else
297 #endif
298
299 struct compat_50_sys_gettimeofday_args;
300
301 struct compat_50_sys_getrusage_args;
302
303 struct sys_getsockopt_args;
304
305 struct sys_readv_args;
306
307 struct sys_writev_args;
308
309 struct compat_50_sys_settimeofday_args;
310
311 struct sys_fchown_args;
312
313 struct sys_fchmod_args;
314 #if defined(COMPAT_43) || !defined(_KERNEL)
315
316 struct compat_43_sys_recvfrom_args;
317 #else
318 #endif
319
320 struct sys_setreuid_args;
321
322 struct sys_setregid_args;
323
324 struct sys_rename_args;
325 #if defined(COMPAT_43) || !defined(_KERNEL)
326
327 struct compat_43_sys_truncate_args;
328
329 struct compat_43_sys_ftruncate_args;
330 #else
331 #endif
332
333 struct sys_flock_args;
334
335 struct sys_mkfifo_args;
336
337 struct sys_sendto_args;
338
339 struct sys_shutdown_args;
340
341 struct sys_socketpair_args;
342
343 struct sys_mkdir_args;
344
345 struct sys_rmdir_args;
346
347 struct compat_50_sys_utimes_args;
348
349 struct compat_50_sys_adjtime_args;
350 #if defined(COMPAT_43) || !defined(_KERNEL)
351
352 struct compat_43_sys_getpeername_args;
353
354 struct compat_43_sys_sethostid_args;
355
356 struct compat_43_sys_getrlimit_args;
357
358 struct compat_43_sys_setrlimit_args;
359
360 struct compat_43_sys_killpg_args;
361 #else
362 #endif
363
364 struct compat_50_sys_quotactl_args;
365 #if defined(COMPAT_43) || !defined(_KERNEL)
366
367 struct compat_43_sys_getsockname_args;
368 #else
369 #endif
370 #if defined(COMPAT_43) || !defined(_KERNEL)
371
372 struct compat_43_sys_getdirentries_args;
373 #else
374 #endif
375 #if defined(COMPAT_20) || !defined(_KERNEL)
376
377 struct compat_20_sys_statfs_args;
378 #else
379 #endif
380 #if defined(COMPAT_20) || !defined(_KERNEL)
381
382 struct compat_20_sys_fstatfs_args;
383 #else
384 #endif
385
386 struct compat_30_sys_getfh_args;
387 #if defined(COMPAT_09) || !defined(_KERNEL)
388
389 struct compat_09_sys_getdomainname_args;
390
391 struct compat_09_sys_setdomainname_args;
392
393 struct compat_09_sys_uname_args;
394 #else
395 #endif
396
397 struct sys_sysarch_args;
398 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
399
400 struct compat_10_sys_semsys_args;
401 #else
402 #endif
403 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
404
405 struct compat_10_sys_msgsys_args;
406 #else
407 #endif
408 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
409
410 struct compat_10_sys_shmsys_args;
411 #else
412 #endif
413
414 struct sys_pread_args;
415
416 struct sys_pwrite_args;
417 #if defined(NTP) || !defined(_KERNEL)
418
419 struct sys_ntp_adjtime_args;
420 #else
421 #endif
422
423 struct sys_setgid_args;
424
425 struct sys_setegid_args;
426
427 struct sys_seteuid_args;
428 #if defined(COMPAT_12) || !defined(_KERNEL)
429
430 struct aoutm68k_compat_12_sys_stat_args {
431 syscallarg(const char *) path;
432 syscallarg(struct aoutm68k_stat12 *) ub;
433 };
434 check_syscall_args(aoutm68k_compat_12_sys_stat)
435
436 struct aoutm68k_compat_12_sys_fstat_args {
437 syscallarg(int) fd;
438 syscallarg(struct aoutm68k_stat12 *) sb;
439 };
440 check_syscall_args(aoutm68k_compat_12_sys_fstat)
441
442 struct aoutm68k_compat_12_sys_lstat_args {
443 syscallarg(const char *) path;
444 syscallarg(struct aoutm68k_stat12 *) ub;
445 };
446 check_syscall_args(aoutm68k_compat_12_sys_lstat)
447 #else
448 #endif
449
450 struct sys_pathconf_args;
451
452 struct sys_fpathconf_args;
453
454 struct sys_getrlimit_args;
455
456 struct sys_setrlimit_args;
457 #if defined(COMPAT_12) || !defined(_KERNEL)
458
459 struct compat_12_sys_getdirentries_args;
460 #else
461 #endif
462
463 struct sys_mmap_args;
464
465 struct sys___syscall_args;
466
467 struct sys_lseek_args;
468
469 struct sys_truncate_args;
470
471 struct sys_ftruncate_args;
472
473 struct sys___sysctl_args;
474
475 struct sys_mlock_args;
476
477 struct sys_munlock_args;
478
479 struct sys_undelete_args;
480
481 struct compat_50_sys_futimes_args;
482
483 struct sys_getpgid_args;
484
485 struct sys_reboot_args;
486
487 struct sys_poll_args;
488 #if defined(SYSVSEM) || !defined(_KERNEL)
489 #if defined(COMPAT_14) || !defined(_KERNEL)
490
491 struct compat_14_sys___semctl_args;
492 #else
493 #endif
494
495 struct sys_semget_args;
496
497 struct sys_semop_args;
498
499 struct sys_semconfig_args;
500 #else
501 #endif
502 #if defined(SYSVMSG) || !defined(_KERNEL)
503 #if defined(COMPAT_14) || !defined(_KERNEL)
504
505 struct compat_14_sys_msgctl_args;
506 #else
507 #endif
508
509 struct sys_msgget_args;
510
511 struct sys_msgsnd_args;
512
513 struct sys_msgrcv_args;
514 #else
515 #endif
516 #if defined(SYSVSHM) || !defined(_KERNEL)
517
518 struct sys_shmat_args;
519 #if defined(COMPAT_14) || !defined(_KERNEL)
520
521 struct compat_14_sys_shmctl_args;
522 #else
523 #endif
524
525 struct sys_shmdt_args;
526
527 struct sys_shmget_args;
528 #else
529 #endif
530
531 struct compat_50_sys_clock_gettime_args;
532
533 struct compat_50_sys_clock_settime_args;
534
535 struct compat_50_sys_clock_getres_args;
536
537 struct compat_50_sys_nanosleep_args;
538
539 struct sys_fdatasync_args;
540
541 struct sys_mlockall_args;
542
543 struct sys___posix_rename_args;
544
545 struct sys_swapctl_args;
546 #if defined(COMPAT_30) || !defined(_KERNEL)
547
548 struct compat_30_sys_getdents_args;
549 #else
550 #endif
551
552 struct sys_minherit_args;
553
554 struct sys_lchmod_args;
555
556 struct sys_lchown_args;
557
558 struct compat_50_sys_lutimes_args;
559
560 struct sys___msync13_args;
561
562 struct aoutm68k_sys___stat13_args {
563 syscallarg(const char *) path;
564 syscallarg(struct aoutm68k_stat *) ub;
565 };
566 check_syscall_args(aoutm68k_sys___stat13)
567
568 struct aoutm68k_sys___fstat13_args {
569 syscallarg(int) fd;
570 syscallarg(struct aoutm68k_stat *) sb;
571 };
572 check_syscall_args(aoutm68k_sys___fstat13)
573
574 struct aoutm68k_sys___lstat13_args {
575 syscallarg(const char *) path;
576 syscallarg(struct aoutm68k_stat *) ub;
577 };
578 check_syscall_args(aoutm68k_sys___lstat13)
579
580 struct sys___sigaltstack14_args;
581
582 struct sys___posix_chown_args;
583
584 struct sys___posix_fchown_args;
585
586 struct sys___posix_lchown_args;
587
588 struct sys_getsid_args;
589 #if defined(KTRACE) || !defined(_KERNEL)
590
591 struct sys_fktrace_args;
592 #else
593 #endif
594
595 struct sys_preadv_args;
596
597 struct sys_pwritev_args;
598 #if defined(COMPAT_16) || !defined(_KERNEL)
599
600 struct compat_16_sys___sigaction14_args;
601 #else
602 #endif
603
604 struct sys___sigpending14_args;
605
606 struct sys___sigprocmask14_args;
607
608 struct sys___sigsuspend14_args;
609 #if defined(COMPAT_16) || !defined(_KERNEL)
610
611 struct compat_16_sys___sigreturn14_args;
612 #else
613 #endif
614
615 struct sys___getcwd_args;
616
617 struct sys_fchroot_args;
618
619 struct compat_30_sys_fhopen_args;
620
621 struct aoutm68k_sys_fhstat_args {
622 syscallarg(const struct compat_30_fhandle *) fhp;
623 syscallarg(struct aoutm68k_stat *) sb;
624 };
625 check_syscall_args(aoutm68k_sys_fhstat)
626 #if defined(COMPAT_20) || !defined(_KERNEL)
627
628 struct compat_20_sys_fhstatfs_args;
629 #else
630 #endif
631 #if defined(SYSVSEM) || !defined(_KERNEL)
632
633 struct compat_50_sys_____semctl13_args;
634 #else
635 #endif
636 #if defined(SYSVMSG) || !defined(_KERNEL)
637
638 struct compat_50_sys___msgctl13_args;
639 #else
640 #endif
641 #if defined(SYSVSHM) || !defined(_KERNEL)
642
643 struct compat_50_sys___shmctl13_args;
644 #else
645 #endif
646
647 struct sys_lchflags_args;
648
649 struct sys_getcontext_args;
650
651 struct sys_setcontext_args;
652
653 /*
654 * System call prototypes.
655 */
656
657 int sys_syscall(struct lwp *, const struct sys_syscall_args *, register_t *);
658
659 int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *);
660
661 int sys_fork(struct lwp *, const void *, register_t *);
662
663 int sys_read(struct lwp *, const struct sys_read_args *, register_t *);
664
665 int sys_write(struct lwp *, const struct sys_write_args *, register_t *);
666
667 int sys_open(struct lwp *, const struct sys_open_args *, register_t *);
668
669 int sys_close(struct lwp *, const struct sys_close_args *, register_t *);
670
671 int compat_50_sys_wait4(struct lwp *, const struct compat_50_sys_wait4_args *, register_t *);
672
673 #if defined(COMPAT_43) || !defined(_KERNEL)
674 int compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *);
675
676 #else
677 #endif
678 int sys_link(struct lwp *, const struct sys_link_args *, register_t *);
679
680 int sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *);
681
682 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
683
684 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
685
686 int compat_50_sys_mknod(struct lwp *, const struct compat_50_sys_mknod_args *, register_t *);
687
688 int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
689
690 int sys_chown(struct lwp *, const struct sys_chown_args *, register_t *);
691
692 int sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *);
693
694 #if defined(COMPAT_20) || !defined(_KERNEL)
695 int compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *);
696
697 #else
698 #endif
699 #if defined(COMPAT_43) || !defined(_KERNEL)
700 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
701
702 #else
703 #endif
704 int sys_getpid(struct lwp *, const void *, register_t *);
705
706 int compat_40_sys_mount(struct lwp *, const struct compat_40_sys_mount_args *, register_t *);
707
708 int sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *);
709
710 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
711
712 int sys_getuid(struct lwp *, const void *, register_t *);
713
714 int sys_geteuid(struct lwp *, const void *, register_t *);
715
716 int sys_ptrace(struct lwp *, const struct sys_ptrace_args *, register_t *);
717
718 int sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *);
719
720 int sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *);
721
722 int sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *);
723
724 int sys_accept(struct lwp *, const struct sys_accept_args *, register_t *);
725
726 int sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *);
727
728 int sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *);
729
730 int sys_access(struct lwp *, const struct sys_access_args *, register_t *);
731
732 int sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *);
733
734 int sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *);
735
736 int sys_sync(struct lwp *, const void *, register_t *);
737
738 int sys_kill(struct lwp *, const struct sys_kill_args *, register_t *);
739
740 #if defined(COMPAT_43) || !defined(_KERNEL)
741 int aoutm68k_compat_43_sys_stat(struct lwp *, const struct aoutm68k_compat_43_sys_stat_args *, register_t *);
742
743 #else
744 #endif
745 int sys_getppid(struct lwp *, const void *, register_t *);
746
747 #if defined(COMPAT_43) || !defined(_KERNEL)
748 int aoutm68k_compat_43_sys_lstat(struct lwp *, const struct aoutm68k_compat_43_sys_lstat_args *, register_t *);
749
750 #else
751 #endif
752 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
753
754 int sys_pipe(struct lwp *, const void *, register_t *);
755
756 int sys_getegid(struct lwp *, const void *, register_t *);
757
758 int sys_profil(struct lwp *, const struct sys_profil_args *, register_t *);
759
760 #if defined(KTRACE) || !defined(_KERNEL)
761 int sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *);
762
763 #else
764 #endif
765 #if defined(COMPAT_13) || !defined(_KERNEL)
766 int compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *);
767
768 #else
769 #endif
770 int sys_getgid(struct lwp *, const void *, register_t *);
771
772 #if defined(COMPAT_13) || !defined(_KERNEL)
773 int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *);
774
775 #else
776 #endif
777 int sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *);
778
779 int sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *);
780
781 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
782
783 #if defined(COMPAT_13) || !defined(_KERNEL)
784 int compat_13_sys_sigpending(struct lwp *, const void *, register_t *);
785
786 int compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *);
787
788 #else
789 #endif
790 int sys_ioctl(struct lwp *, const struct sys_ioctl_args *, register_t *);
791
792 #if defined(COMPAT_12) || !defined(_KERNEL)
793 int compat_12_sys_reboot(struct lwp *, const struct compat_12_sys_reboot_args *, register_t *);
794
795 #else
796 #endif
797 int sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *);
798
799 int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
800
801 int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
802
803 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
804
805 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
806
807 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
808
809 #if defined(COMPAT_43) || !defined(_KERNEL)
810 int aoutm68k_compat_43_sys_fstat(struct lwp *, const struct aoutm68k_compat_43_sys_fstat_args *, register_t *);
811
812 int compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *);
813
814 int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
815
816 #else
817 #endif
818 #if defined(COMPAT_12) || !defined(_KERNEL)
819 int compat_12_sys_msync(struct lwp *, const struct compat_12_sys_msync_args *, register_t *);
820
821 #else
822 #endif
823 int sys_vfork(struct lwp *, const void *, register_t *);
824
825 int sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
826
827 int sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *);
828
829 #if defined(COMPAT_43) || !defined(_KERNEL)
830 int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
831
832 #else
833 #endif
834 int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
835
836 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
837
838 int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
839
840 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
841
842 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
843
844 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
845
846 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
847
848 int sys_getpgrp(struct lwp *, const void *, register_t *);
849
850 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
851
852 int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
853
854 #if defined(COMPAT_43) || !defined(_KERNEL)
855 int compat_43_sys_wait(struct lwp *, const void *, register_t *);
856
857 #else
858 #endif
859 #if defined(COMPAT_12) || !defined(_KERNEL)
860 int compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *);
861
862 #else
863 #endif
864 int compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
865
866 #if defined(COMPAT_43) || !defined(_KERNEL)
867 int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *);
868
869 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
870
871 int compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *);
872
873 #else
874 #endif
875 int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
876
877 int sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *);
878
879 int compat_50_sys_select(struct lwp *, const struct compat_50_sys_select_args *, register_t *);
880
881 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
882
883 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
884
885 int compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *);
886
887 int sys_connect(struct lwp *, const struct sys_connect_args *, register_t *);
888
889 #if defined(COMPAT_43) || !defined(_KERNEL)
890 int compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *);
891
892 #else
893 #endif
894 int sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *);
895
896 #if defined(COMPAT_43) || !defined(_KERNEL)
897 int compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *);
898
899 int compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *);
900
901 #else
902 #endif
903 #if defined(COMPAT_13) || !defined(_KERNEL)
904 int compat_13_sys_sigreturn(struct lwp *, const struct compat_13_sys_sigreturn_args *, register_t *);
905
906 #else
907 #endif
908 int sys_bind(struct lwp *, const struct sys_bind_args *, register_t *);
909
910 int sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *);
911
912 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
913
914 #if defined(COMPAT_43) || !defined(_KERNEL)
915 int compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *);
916
917 int compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *);
918
919 int compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *);
920
921 #else
922 #endif
923 #if defined(COMPAT_13) || !defined(_KERNEL)
924 int compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *);
925
926 #else
927 #endif
928 #if defined(COMPAT_43) || !defined(_KERNEL)
929 int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *);
930
931 int compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *);
932
933 int compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *);
934
935 #else
936 #endif
937 int compat_50_sys_gettimeofday(struct lwp *, const struct compat_50_sys_gettimeofday_args *, register_t *);
938
939 int compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
940
941 int sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *);
942
943 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
944
945 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
946
947 int compat_50_sys_settimeofday(struct lwp *, const struct compat_50_sys_settimeofday_args *, register_t *);
948
949 int sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *);
950
951 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
952
953 #if defined(COMPAT_43) || !defined(_KERNEL)
954 int compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *);
955
956 #else
957 #endif
958 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
959
960 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
961
962 int sys_rename(struct lwp *, const struct sys_rename_args *, register_t *);
963
964 #if defined(COMPAT_43) || !defined(_KERNEL)
965 int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *);
966
967 int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *);
968
969 #else
970 #endif
971 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
972
973 int sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *);
974
975 int sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *);
976
977 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
978
979 int sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *);
980
981 int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
982
983 int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
984
985 int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *);
986
987 int compat_50_sys_adjtime(struct lwp *, const struct compat_50_sys_adjtime_args *, register_t *);
988
989 #if defined(COMPAT_43) || !defined(_KERNEL)
990 int compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *);
991
992 int compat_43_sys_gethostid(struct lwp *, const void *, register_t *);
993
994 int compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *);
995
996 int compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *);
997
998 int compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *);
999
1000 int compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *);
1001
1002 #else
1003 #endif
1004 int sys_setsid(struct lwp *, const void *, register_t *);
1005
1006 int compat_50_sys_quotactl(struct lwp *, const struct compat_50_sys_quotactl_args *, register_t *);
1007
1008 #if defined(COMPAT_43) || !defined(_KERNEL)
1009 int compat_43_sys_quota(struct lwp *, const void *, register_t *);
1010
1011 int compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *);
1012
1013 #else
1014 #endif
1015 #if defined(COMPAT_43) || !defined(_KERNEL)
1016 int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *);
1017
1018 #else
1019 #endif
1020 #if defined(COMPAT_20) || !defined(_KERNEL)
1021 int compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *);
1022
1023 #else
1024 #endif
1025 #if defined(COMPAT_20) || !defined(_KERNEL)
1026 int compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *);
1027
1028 #else
1029 #endif
1030 int compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *);
1031
1032 #if defined(COMPAT_09) || !defined(_KERNEL)
1033 int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *);
1034
1035 int compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *);
1036
1037 int compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *);
1038
1039 #else
1040 #endif
1041 int sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *);
1042
1043 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
1044 int compat_10_sys_semsys(struct lwp *, const struct compat_10_sys_semsys_args *, register_t *);
1045
1046 #else
1047 #endif
1048 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
1049 int compat_10_sys_msgsys(struct lwp *, const struct compat_10_sys_msgsys_args *, register_t *);
1050
1051 #else
1052 #endif
1053 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
1054 int compat_10_sys_shmsys(struct lwp *, const struct compat_10_sys_shmsys_args *, register_t *);
1055
1056 #else
1057 #endif
1058 int sys_pread(struct lwp *, const struct sys_pread_args *, register_t *);
1059
1060 int sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *);
1061
1062 #if defined(NTP) || !defined(_KERNEL)
1063 int sys_ntp_adjtime(struct lwp *, const struct sys_ntp_adjtime_args *, register_t *);
1064
1065 #else
1066 #endif
1067 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
1068
1069 int sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *);
1070
1071 int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *);
1072
1073 #if defined(COMPAT_12) || !defined(_KERNEL)
1074 int aoutm68k_compat_12_sys_stat(struct lwp *, const struct aoutm68k_compat_12_sys_stat_args *, register_t *);
1075
1076 int aoutm68k_compat_12_sys_fstat(struct lwp *, const struct aoutm68k_compat_12_sys_fstat_args *, register_t *);
1077
1078 int aoutm68k_compat_12_sys_lstat(struct lwp *, const struct aoutm68k_compat_12_sys_lstat_args *, register_t *);
1079
1080 #else
1081 #endif
1082 int sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *);
1083
1084 int sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *);
1085
1086 int sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *);
1087
1088 int sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *);
1089
1090 #if defined(COMPAT_12) || !defined(_KERNEL)
1091 int compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *);
1092
1093 #else
1094 #endif
1095 int sys_mmap(struct lwp *, const struct sys_mmap_args *, register_t *);
1096
1097 int sys___syscall(struct lwp *, const struct sys___syscall_args *, register_t *);
1098
1099 int sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *);
1100
1101 int sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *);
1102
1103 int sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *);
1104
1105 int sys___sysctl(struct lwp *, const struct sys___sysctl_args *, register_t *);
1106
1107 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
1108
1109 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
1110
1111 int sys_undelete(struct lwp *, const struct sys_undelete_args *, register_t *);
1112
1113 int compat_50_sys_futimes(struct lwp *, const struct compat_50_sys_futimes_args *, register_t *);
1114
1115 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
1116
1117 int sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *);
1118
1119 int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
1120
1121 #if defined(SYSVSEM) || !defined(_KERNEL)
1122 #if defined(COMPAT_14) || !defined(_KERNEL)
1123 int compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *);
1124
1125 #else
1126 #endif
1127 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
1128
1129 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
1130
1131 int sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *);
1132
1133 #else
1134 #endif
1135 #if defined(SYSVMSG) || !defined(_KERNEL)
1136 #if defined(COMPAT_14) || !defined(_KERNEL)
1137 int compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *);
1138
1139 #else
1140 #endif
1141 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1142
1143 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1144
1145 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1146
1147 #else
1148 #endif
1149 #if defined(SYSVSHM) || !defined(_KERNEL)
1150 int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
1151
1152 #if defined(COMPAT_14) || !defined(_KERNEL)
1153 int compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *);
1154
1155 #else
1156 #endif
1157 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1158
1159 int sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *);
1160
1161 #else
1162 #endif
1163 int compat_50_sys_clock_gettime(struct lwp *, const struct compat_50_sys_clock_gettime_args *, register_t *);
1164
1165 int compat_50_sys_clock_settime(struct lwp *, const struct compat_50_sys_clock_settime_args *, register_t *);
1166
1167 int compat_50_sys_clock_getres(struct lwp *, const struct compat_50_sys_clock_getres_args *, register_t *);
1168
1169 int compat_50_sys_nanosleep(struct lwp *, const struct compat_50_sys_nanosleep_args *, register_t *);
1170
1171 int sys_fdatasync(struct lwp *, const struct sys_fdatasync_args *, register_t *);
1172
1173 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1174
1175 int sys_munlockall(struct lwp *, const void *, register_t *);
1176
1177 int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
1178
1179 int sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *);
1180
1181 #if defined(COMPAT_30) || !defined(_KERNEL)
1182 int compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *);
1183
1184 #else
1185 #endif
1186 int sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *);
1187
1188 int sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *);
1189
1190 int sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *);
1191
1192 int compat_50_sys_lutimes(struct lwp *, const struct compat_50_sys_lutimes_args *, register_t *);
1193
1194 int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
1195
1196 int aoutm68k_sys___stat13(struct lwp *, const struct aoutm68k_sys___stat13_args *, register_t *);
1197
1198 int aoutm68k_sys___fstat13(struct lwp *, const struct aoutm68k_sys___fstat13_args *, register_t *);
1199
1200 int aoutm68k_sys___lstat13(struct lwp *, const struct aoutm68k_sys___lstat13_args *, register_t *);
1201
1202 int sys___sigaltstack14(struct lwp *, const struct sys___sigaltstack14_args *, register_t *);
1203
1204 int sys___vfork14(struct lwp *, const void *, register_t *);
1205
1206 int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
1207
1208 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
1209
1210 int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
1211
1212 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1213
1214 #if defined(KTRACE) || !defined(_KERNEL)
1215 int sys_fktrace(struct lwp *, const struct sys_fktrace_args *, register_t *);
1216
1217 #else
1218 #endif
1219 int sys_preadv(struct lwp *, const struct sys_preadv_args *, register_t *);
1220
1221 int sys_pwritev(struct lwp *, const struct sys_pwritev_args *, register_t *);
1222
1223 #if defined(COMPAT_16) || !defined(_KERNEL)
1224 int compat_16_sys___sigaction14(struct lwp *, const struct compat_16_sys___sigaction14_args *, register_t *);
1225
1226 #else
1227 #endif
1228 int sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *);
1229
1230 int sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *);
1231
1232 int sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *);
1233
1234 #if defined(COMPAT_16) || !defined(_KERNEL)
1235 int compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *);
1236
1237 #else
1238 #endif
1239 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1240
1241 int sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *);
1242
1243 int compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *);
1244
1245 int aoutm68k_sys_fhstat(struct lwp *, const struct aoutm68k_sys_fhstat_args *, register_t *);
1246
1247 #if defined(COMPAT_20) || !defined(_KERNEL)
1248 int compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *);
1249
1250 #else
1251 #endif
1252 #if defined(SYSVSEM) || !defined(_KERNEL)
1253 int compat_50_sys_____semctl13(struct lwp *, const struct compat_50_sys_____semctl13_args *, register_t *);
1254
1255 #else
1256 #endif
1257 #if defined(SYSVMSG) || !defined(_KERNEL)
1258 int compat_50_sys___msgctl13(struct lwp *, const struct compat_50_sys___msgctl13_args *, register_t *);
1259
1260 #else
1261 #endif
1262 #if defined(SYSVSHM) || !defined(_KERNEL)
1263 int compat_50_sys___shmctl13(struct lwp *, const struct compat_50_sys___shmctl13_args *, register_t *);
1264
1265 #else
1266 #endif
1267 int sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *);
1268
1269 int sys_issetugid(struct lwp *, const void *, register_t *);
1270
1271 int sys_getcontext(struct lwp *, const struct sys_getcontext_args *, register_t *);
1272
1273 int sys_setcontext(struct lwp *, const struct sys_setcontext_args *, register_t *);
1274
1275 #endif /* _AOUTM68K_SYS_SYSCALLARGS_H_ */
1276