1 /* $NetBSD: freebsd_syscallargs.h,v 1.93 2019/06/18 01:42:44 christos 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.73 2019/06/18 01:42:36 christos Exp
8  */
9 
10 #ifndef _FREEBSD_SYS_SYSCALLARGS_H_
11 #define	_FREEBSD_SYS_SYSCALLARGS_H_
12 
13 /* Forward declaration */
14 struct lwp;
15 
16 #define	FREEBSD_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 		<= FREEBSD_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
36 
37 struct sys_exit_args;
38 
39 struct sys_read_args;
40 
41 struct sys_write_args;
42 
43 struct sys_open_args;
44 
45 struct sys_close_args;
46 
47 struct compat_50_sys_wait4_args;
48 
49 struct compat_43_sys_creat_args;
50 
51 struct sys_link_args;
52 
53 struct sys_unlink_args;
54 
55 struct sys_chdir_args;
56 
57 struct sys_fchdir_args;
58 
59 struct compat_50_sys_mknod_args;
60 
61 struct sys_chmod_args;
62 
63 struct sys_chown_args;
64 
65 struct sys_obreak_args;
66 
67 struct compat_20_sys_getfsstat_args;
68 
69 struct compat_43_sys_lseek_args;
70 
71 struct freebsd_sys_mount_args {
72 	syscallarg(int) type;
73 	syscallarg(const char *) path;
74 	syscallarg(int) flags;
75 	syscallarg(void *) data;
76 };
77 check_syscall_args(freebsd_sys_mount)
78 
79 struct sys_unmount_args;
80 
81 struct sys_setuid_args;
82 
83 struct freebsd_sys_ptrace_args {
84 	syscallarg(int) req;
85 	syscallarg(pid_t) pid;
86 	syscallarg(void *) addr;
87 	syscallarg(int) data;
88 };
89 check_syscall_args(freebsd_sys_ptrace)
90 
91 struct sys_recvmsg_args;
92 
93 struct sys_sendmsg_args;
94 
95 struct sys_recvfrom_args;
96 
97 struct sys_accept_args;
98 
99 struct sys_getpeername_args;
100 
101 struct sys_getsockname_args;
102 
103 struct sys_access_args;
104 
105 struct sys_chflags_args;
106 
107 struct sys_fchflags_args;
108 
109 struct sys_kill_args;
110 
111 struct compat_43_sys_stat_args;
112 
113 struct compat_43_sys_lstat_args;
114 
115 struct sys_dup_args;
116 
117 struct sys_profil_args;
118 #ifdef KTRACE
119 
120 struct sys_ktrace_args;
121 #else
122 #endif
123 
124 struct compat_13_sys_sigaction_args;
125 
126 struct compat_13_sys_sigprocmask_args;
127 
128 struct sys___getlogin_args;
129 
130 struct sys___setlogin_args;
131 
132 struct sys_acct_args;
133 
134 struct compat_13_sys_sigaltstack_args;
135 
136 struct freebsd_sys_ioctl_args {
137 	syscallarg(int) fd;
138 	syscallarg(u_long) com;
139 	syscallarg(void *) data;
140 };
141 check_syscall_args(freebsd_sys_ioctl)
142 
143 struct sys_reboot_args;
144 
145 struct sys_revoke_args;
146 
147 struct sys_symlink_args;
148 
149 struct sys_readlink_args;
150 
151 struct sys_execve_args;
152 
153 struct sys_umask_args;
154 
155 struct sys_chroot_args;
156 
157 struct compat_43_sys_fstat_args;
158 
159 struct compat_43_sys_getkerninfo_args;
160 
161 struct freebsd_sys_msync_args {
162 	syscallarg(void *) addr;
163 	syscallarg(size_t) len;
164 	syscallarg(int) flags;
165 };
166 check_syscall_args(freebsd_sys_msync)
167 
168 struct compat_43_sys_mmap_args;
169 
170 struct sys_ovadvise_args;
171 
172 struct sys_munmap_args;
173 
174 struct sys_mprotect_args;
175 
176 struct sys_madvise_args;
177 
178 struct sys_mincore_args;
179 
180 struct sys_getgroups_args;
181 
182 struct sys_setgroups_args;
183 
184 struct sys_setpgid_args;
185 
186 struct compat_50_sys_setitimer_args;
187 
188 struct compat_12_sys_swapon_args;
189 
190 struct compat_50_sys_getitimer_args;
191 
192 struct compat_43_sys_gethostname_args;
193 
194 struct compat_43_sys_sethostname_args;
195 
196 struct sys_dup2_args;
197 
198 struct sys_fcntl_args;
199 
200 struct compat_50_sys_select_args;
201 
202 struct sys_fsync_args;
203 
204 struct sys_setpriority_args;
205 
206 struct compat_30_sys_socket_args;
207 
208 struct sys_connect_args;
209 
210 struct compat_43_sys_accept_args;
211 
212 struct sys_getpriority_args;
213 
214 struct compat_43_sys_send_args;
215 
216 struct compat_43_sys_recv_args;
217 
218 struct freebsd_sys_sigreturn_args {
219 	syscallarg(struct freebsd_sigcontext *) scp;
220 };
221 check_syscall_args(freebsd_sys_sigreturn)
222 
223 struct sys_bind_args;
224 
225 struct sys_setsockopt_args;
226 
227 struct sys_listen_args;
228 
229 struct compat_43_sys_sigvec_args;
230 
231 struct compat_43_sys_sigblock_args;
232 
233 struct compat_43_sys_sigsetmask_args;
234 
235 struct compat_13_sys_sigsuspend_args;
236 
237 struct compat_43_sys_sigstack_args;
238 
239 struct compat_43_sys_recvmsg_args;
240 
241 struct compat_43_sys_sendmsg_args;
242 #ifdef TRACE
243 
244 struct sys_vtrace_args;
245 #else
246 #endif
247 
248 struct compat_50_sys_gettimeofday_args;
249 
250 struct compat_50_sys_getrusage_args;
251 
252 struct sys_getsockopt_args;
253 
254 struct sys_readv_args;
255 
256 struct sys_writev_args;
257 
258 struct compat_50_sys_settimeofday_args;
259 
260 struct sys_fchown_args;
261 
262 struct sys_fchmod_args;
263 
264 struct compat_43_sys_recvfrom_args;
265 
266 struct sys_setreuid_args;
267 
268 struct sys_setregid_args;
269 
270 struct sys_rename_args;
271 
272 struct compat_43_sys_truncate_args;
273 
274 struct compat_43_sys_ftruncate_args;
275 
276 struct sys_flock_args;
277 
278 struct sys_mkfifo_args;
279 
280 struct sys_sendto_args;
281 
282 struct sys_shutdown_args;
283 
284 struct sys_socketpair_args;
285 
286 struct sys_mkdir_args;
287 
288 struct sys_rmdir_args;
289 
290 struct compat_50_sys_utimes_args;
291 
292 struct compat_50_sys_adjtime_args;
293 
294 struct compat_43_sys_getpeername_args;
295 
296 struct compat_43_sys_sethostid_args;
297 
298 struct compat_43_sys_getrlimit_args;
299 
300 struct compat_43_sys_setrlimit_args;
301 
302 struct compat_43_sys_killpg_args;
303 #if defined(QUOTA) || !defined(_KERNEL_OPT)
304 
305 struct compat_50_sys_quotactl_args;
306 #else
307 #endif
308 
309 struct compat_43_sys_getsockname_args;
310 
311 struct compat_43_sys_getdirentries_args;
312 
313 struct compat_20_sys_statfs_args;
314 
315 struct compat_20_sys_fstatfs_args;
316 
317 struct compat_30_sys_getfh_args;
318 
319 struct compat_09_sys_getdomainname_args;
320 
321 struct compat_09_sys_setdomainname_args;
322 
323 struct compat_09_sys_uname_args;
324 
325 struct sys_sysarch_args;
326 
327 struct freebsd_sys_rtprio_args {
328 	syscallarg(int) function;
329 	syscallarg(pid_t) pid;
330 	syscallarg(struct freebsd_rtprio *) rtp;
331 };
332 check_syscall_args(freebsd_sys_rtprio)
333 #if defined(SYSVSEM) && !defined(_LP64)
334 
335 struct freebsd_sys_semsys_args {
336 	syscallarg(int) which;
337 	syscallarg(int) a2;
338 	syscallarg(int) a3;
339 	syscallarg(int) a4;
340 	syscallarg(int) a5;
341 };
342 check_syscall_args(freebsd_sys_semsys)
343 #else
344 #endif
345 #if defined(SYSVMSG) && !defined(_LP64)
346 
347 struct freebsd_sys_msgsys_args {
348 	syscallarg(int) which;
349 	syscallarg(int) a2;
350 	syscallarg(int) a3;
351 	syscallarg(int) a4;
352 	syscallarg(int) a5;
353 	syscallarg(int) a6;
354 };
355 check_syscall_args(freebsd_sys_msgsys)
356 #else
357 #endif
358 #if defined(SYSVSHM) && !defined(_LP64)
359 
360 struct freebsd_sys_shmsys_args {
361 	syscallarg(int) which;
362 	syscallarg(int) a2;
363 	syscallarg(int) a3;
364 	syscallarg(int) a4;
365 };
366 check_syscall_args(freebsd_sys_shmsys)
367 #else
368 #endif
369 
370 struct sys_pread_args;
371 
372 struct sys_pwrite_args;
373 #ifdef NTP
374 
375 struct freebsd_ntp_adjtime_args {
376 	syscallarg(struct freebsd_timex *) tp;
377 };
378 check_syscall_args(freebsd_ntp_adjtime)
379 #else
380 #endif
381 
382 struct sys_setgid_args;
383 
384 struct sys_setegid_args;
385 
386 struct sys_seteuid_args;
387 
388 struct compat_12_sys_stat_args;
389 
390 struct compat_12_sys_fstat_args;
391 
392 struct compat_12_sys_lstat_args;
393 
394 struct sys_pathconf_args;
395 
396 struct sys_fpathconf_args;
397 
398 struct sys_getrlimit_args;
399 
400 struct sys_setrlimit_args;
401 
402 struct compat_12_sys_getdirentries_args;
403 
404 struct freebsd_sys_mmap_args {
405 	syscallarg(void *) addr;
406 	syscallarg(size_t) len;
407 	syscallarg(int) prot;
408 	syscallarg(int) flags;
409 	syscallarg(int) fd;
410 	syscallarg(long) pad;
411 	syscallarg(off_t) pos;
412 };
413 check_syscall_args(freebsd_sys_mmap)
414 
415 struct sys_lseek_args;
416 
417 struct sys_truncate_args;
418 
419 struct sys_ftruncate_args;
420 
421 struct freebsd_sys_sysctl_args {
422 	syscallarg(int *) name;
423 	syscallarg(u_int) namelen;
424 	syscallarg(void *) old;
425 	syscallarg(size_t *) oldlenp;
426 	syscallarg(void *) new;
427 	syscallarg(size_t) newlen;
428 };
429 check_syscall_args(freebsd_sys_sysctl)
430 
431 struct sys_mlock_args;
432 
433 struct sys_munlock_args;
434 #ifdef FREEBSD_BASED_ON_44LITE_R2
435 
436 struct freebsd_sys_undelete_args {
437 	syscallarg(char *) path;
438 };
439 check_syscall_args(freebsd_sys_undelete)
440 #else
441 #endif
442 
443 struct compat_50_sys_futimes_args;
444 
445 struct sys_getpgid_args;
446 #if 0
447 
448 struct sys_reboot_args;
449 #else
450 #endif
451 
452 struct sys_poll_args;
453 #ifdef SYSVSEM
454 
455 struct compat_14_sys___semctl_args;
456 
457 struct sys_semget_args;
458 
459 struct sys_semop_args;
460 
461 struct sys_semconfig_args;
462 #else
463 #endif
464 #ifdef SYSVMSG
465 
466 struct compat_14_sys_msgctl_args;
467 
468 struct sys_msgget_args;
469 
470 struct sys_msgsnd_args;
471 
472 struct sys_msgrcv_args;
473 #else
474 #endif
475 #ifdef SYSVSHM
476 
477 struct sys_shmat_args;
478 
479 struct compat_14_sys_shmctl_args;
480 
481 struct sys_shmdt_args;
482 
483 struct sys_shmget_args;
484 #else
485 #endif
486 
487 struct compat_50_sys_clock_gettime_args;
488 
489 struct compat_50_sys_clock_settime_args;
490 
491 struct compat_50_sys_clock_getres_args;
492 
493 struct compat_50_sys_nanosleep_args;
494 
495 struct sys_minherit_args;
496 
497 struct freebsd_sys_rfork_args {
498 	syscallarg(int) flags;
499 };
500 check_syscall_args(freebsd_sys_rfork)
501 
502 struct sys_lchown_args;
503 
504 struct compat_30_sys_getdents_args;
505 
506 struct sys_lchmod_args;
507 
508 struct sys_lchown_args;
509 
510 struct compat_50_sys_lutimes_args;
511 
512 struct sys___msync13_args;
513 
514 struct compat_30_sys___stat13_args;
515 
516 struct compat_30_sys___fstat13_args;
517 
518 struct compat_30_sys___lstat13_args;
519 
520 struct compat_20_sys_fhstatfs_args;
521 
522 struct compat_30_sys_fhopen_args;
523 
524 struct compat_30_sys_fhstat_args;
525 
526 struct sys_getsid_args;
527 
528 struct sys_mlockall_args;
529 
530 struct sys___getcwd_args;
531 
532 struct freebsd_sys_sched_setparam_args {
533 	syscallarg(pid_t) pid;
534 	syscallarg(const struct freebsd_sched_param *) sp;
535 };
536 check_syscall_args(freebsd_sys_sched_setparam)
537 
538 struct freebsd_sys_sched_getparam_args {
539 	syscallarg(pid_t) pid;
540 	syscallarg(struct freebsd_sched_param *) sp;
541 };
542 check_syscall_args(freebsd_sys_sched_getparam)
543 
544 struct freebsd_sys_sched_setscheduler_args {
545 	syscallarg(pid_t) pid;
546 	syscallarg(int) policy;
547 	syscallarg(const struct sched_param *) sp;
548 };
549 check_syscall_args(freebsd_sys_sched_setscheduler)
550 
551 struct freebsd_sys_sched_getscheduler_args {
552 	syscallarg(pid_t) pid;
553 };
554 check_syscall_args(freebsd_sys_sched_getscheduler)
555 
556 struct freebsd_sys_sched_get_priority_max_args {
557 	syscallarg(int) policy;
558 };
559 check_syscall_args(freebsd_sys_sched_get_priority_max)
560 
561 struct freebsd_sys_sched_get_priority_min_args {
562 	syscallarg(int) policy;
563 };
564 check_syscall_args(freebsd_sys_sched_get_priority_min)
565 
566 struct freebsd_sys_utrace_args {
567 	syscallarg(void *) addr;
568 	syscallarg(size_t) len;
569 };
570 check_syscall_args(freebsd_sys_utrace)
571 
572 struct sys___sigprocmask14_args;
573 
574 struct sys___sigsuspend14_args;
575 
576 struct freebsd_sys_sigaction4_args {
577 	syscallarg(int) signum;
578 	syscallarg(const struct freebsd_sigaction4 *) nsa;
579 	syscallarg(struct freebsd_sigaction4 *) osa;
580 };
581 check_syscall_args(freebsd_sys_sigaction4)
582 
583 struct sys___sigpending14_args;
584 
585 struct sys_lchflags_args;
586 
587 struct sys_uuidgen_args;
588 
589 struct sys__ksem_close_args;
590 
591 struct sys__ksem_post_args;
592 
593 struct sys__ksem_wait_args;
594 
595 struct sys__ksem_trywait_args;
596 
597 struct sys__ksem_unlink_args;
598 
599 struct sys__ksem_getvalue_args;
600 
601 struct sys__ksem_destroy_args;
602 
603 /*
604  * System call prototypes.
605  */
606 
607 int	sys_nosys(struct lwp *, const void *, register_t *);
608 
609 int	sys_exit(struct lwp *, const struct sys_exit_args *, register_t *);
610 
611 int	sys_fork(struct lwp *, const void *, register_t *);
612 
613 int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
614 
615 int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
616 
617 int	sys_open(struct lwp *, const struct sys_open_args *, register_t *);
618 
619 int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
620 
621 int	compat_50_sys_wait4(struct lwp *, const struct compat_50_sys_wait4_args *, register_t *);
622 
623 int	compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *);
624 
625 int	sys_link(struct lwp *, const struct sys_link_args *, register_t *);
626 
627 int	sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *);
628 
629 int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
630 
631 int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
632 
633 int	compat_50_sys_mknod(struct lwp *, const struct compat_50_sys_mknod_args *, register_t *);
634 
635 int	sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
636 
637 int	sys_chown(struct lwp *, const struct sys_chown_args *, register_t *);
638 
639 int	sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *);
640 
641 int	compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *);
642 
643 int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
644 
645 int	sys_getpid_with_ppid(struct lwp *, const void *, register_t *);
646 
647 int	freebsd_sys_mount(struct lwp *, const struct freebsd_sys_mount_args *, register_t *);
648 
649 int	sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *);
650 
651 int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
652 
653 int	sys_getuid_with_euid(struct lwp *, const void *, register_t *);
654 
655 int	sys_geteuid(struct lwp *, const void *, register_t *);
656 
657 int	freebsd_sys_ptrace(struct lwp *, const struct freebsd_sys_ptrace_args *, register_t *);
658 
659 int	sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *);
660 
661 int	sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *);
662 
663 int	sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *);
664 
665 int	sys_accept(struct lwp *, const struct sys_accept_args *, register_t *);
666 
667 int	sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *);
668 
669 int	sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *);
670 
671 int	sys_access(struct lwp *, const struct sys_access_args *, register_t *);
672 
673 int	sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *);
674 
675 int	sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *);
676 
677 int	sys_sync(struct lwp *, const void *, register_t *);
678 
679 int	sys_kill(struct lwp *, const struct sys_kill_args *, register_t *);
680 
681 int	compat_43_sys_stat(struct lwp *, const struct compat_43_sys_stat_args *, register_t *);
682 
683 int	sys_getppid(struct lwp *, const void *, register_t *);
684 
685 int	compat_43_sys_lstat(struct lwp *, const struct compat_43_sys_lstat_args *, register_t *);
686 
687 int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
688 
689 int	sys_pipe(struct lwp *, const void *, register_t *);
690 
691 int	sys_getegid(struct lwp *, const void *, register_t *);
692 
693 int	sys_profil(struct lwp *, const struct sys_profil_args *, register_t *);
694 
695 #ifdef KTRACE
696 int	sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *);
697 
698 #else
699 #endif
700 int	compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *);
701 
702 int	sys_getgid_with_egid(struct lwp *, const void *, register_t *);
703 
704 int	compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *);
705 
706 int	sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *);
707 
708 int	sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *);
709 
710 int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
711 
712 int	compat_13_sys_sigpending(struct lwp *, const void *, register_t *);
713 
714 int	compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *);
715 
716 int	freebsd_sys_ioctl(struct lwp *, const struct freebsd_sys_ioctl_args *, register_t *);
717 
718 int	sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *);
719 
720 int	sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *);
721 
722 int	sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
723 
724 int	sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
725 
726 int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
727 
728 int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
729 
730 int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
731 
732 int	compat_43_sys_fstat(struct lwp *, const struct compat_43_sys_fstat_args *, register_t *);
733 
734 int	compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *);
735 
736 int	compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
737 
738 int	freebsd_sys_msync(struct lwp *, const struct freebsd_sys_msync_args *, register_t *);
739 
740 int	sys_vfork(struct lwp *, const void *, register_t *);
741 
742 int	compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
743 
744 int	sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
745 
746 int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
747 
748 int	sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
749 
750 int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
751 
752 int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
753 
754 int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
755 
756 int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
757 
758 int	sys_getpgrp(struct lwp *, const void *, register_t *);
759 
760 int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
761 
762 int	compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *);
763 
764 int	compat_43_sys_wait(struct lwp *, const void *, register_t *);
765 
766 int	compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *);
767 
768 int	compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *);
769 
770 int	compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *);
771 
772 int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
773 
774 int	compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *);
775 
776 int	sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
777 
778 int	sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *);
779 
780 int	compat_50_sys_select(struct lwp *, const struct compat_50_sys_select_args *, register_t *);
781 
782 int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
783 
784 int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
785 
786 int	compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *);
787 
788 int	sys_connect(struct lwp *, const struct sys_connect_args *, register_t *);
789 
790 int	compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *);
791 
792 int	sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *);
793 
794 int	compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *);
795 
796 int	compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *);
797 
798 int	freebsd_sys_sigreturn(struct lwp *, const struct freebsd_sys_sigreturn_args *, register_t *);
799 
800 int	sys_bind(struct lwp *, const struct sys_bind_args *, register_t *);
801 
802 int	sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *);
803 
804 int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
805 
806 int	compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *);
807 
808 int	compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *);
809 
810 int	compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *);
811 
812 int	compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *);
813 
814 int	compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *);
815 
816 int	compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *);
817 
818 int	compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *);
819 
820 #ifdef TRACE
821 int	sys_vtrace(struct lwp *, const struct sys_vtrace_args *, register_t *);
822 
823 #else
824 #endif
825 int	compat_50_sys_gettimeofday(struct lwp *, const struct compat_50_sys_gettimeofday_args *, register_t *);
826 
827 int	compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *);
828 
829 int	sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *);
830 
831 int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
832 
833 int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
834 
835 int	compat_50_sys_settimeofday(struct lwp *, const struct compat_50_sys_settimeofday_args *, register_t *);
836 
837 int	sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *);
838 
839 int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
840 
841 int	compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *);
842 
843 int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
844 
845 int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
846 
847 int	sys_rename(struct lwp *, const struct sys_rename_args *, register_t *);
848 
849 int	compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *);
850 
851 int	compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *);
852 
853 int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
854 
855 int	sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *);
856 
857 int	sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *);
858 
859 int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
860 
861 int	sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *);
862 
863 int	sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
864 
865 int	sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
866 
867 int	compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *);
868 
869 int	compat_50_sys_adjtime(struct lwp *, const struct compat_50_sys_adjtime_args *, register_t *);
870 
871 int	compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *);
872 
873 int	compat_43_sys_gethostid(struct lwp *, const void *, register_t *);
874 
875 int	compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *);
876 
877 int	compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *);
878 
879 int	compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *);
880 
881 int	compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *);
882 
883 int	sys_setsid(struct lwp *, const void *, register_t *);
884 
885 #if defined(QUOTA) || !defined(_KERNEL_OPT)
886 int	compat_50_sys_quotactl(struct lwp *, const struct compat_50_sys_quotactl_args *, register_t *);
887 
888 int	compat_43_sys_quota(struct lwp *, const void *, register_t *);
889 
890 #else
891 #endif
892 int	compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *);
893 
894 int	compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *);
895 
896 int	compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *);
897 
898 int	compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *);
899 
900 int	compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *);
901 
902 int	compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *);
903 
904 int	compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *);
905 
906 int	compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *);
907 
908 int	sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *);
909 
910 int	freebsd_sys_rtprio(struct lwp *, const struct freebsd_sys_rtprio_args *, register_t *);
911 
912 #if defined(SYSVSEM) && !defined(_LP64)
913 int	freebsd_sys_semsys(struct lwp *, const struct freebsd_sys_semsys_args *, register_t *);
914 
915 #else
916 #endif
917 #if defined(SYSVMSG) && !defined(_LP64)
918 int	freebsd_sys_msgsys(struct lwp *, const struct freebsd_sys_msgsys_args *, register_t *);
919 
920 #else
921 #endif
922 #if defined(SYSVSHM) && !defined(_LP64)
923 int	freebsd_sys_shmsys(struct lwp *, const struct freebsd_sys_shmsys_args *, register_t *);
924 
925 #else
926 #endif
927 int	sys_pread(struct lwp *, const struct sys_pread_args *, register_t *);
928 
929 int	sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *);
930 
931 #ifdef NTP
932 int	freebsd_ntp_adjtime(struct lwp *, const struct freebsd_ntp_adjtime_args *, register_t *);
933 
934 #else
935 #endif
936 int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
937 
938 int	sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *);
939 
940 int	sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *);
941 
942 int	compat_12_sys_stat(struct lwp *, const struct compat_12_sys_stat_args *, register_t *);
943 
944 int	compat_12_sys_fstat(struct lwp *, const struct compat_12_sys_fstat_args *, register_t *);
945 
946 int	compat_12_sys_lstat(struct lwp *, const struct compat_12_sys_lstat_args *, register_t *);
947 
948 int	sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *);
949 
950 int	sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *);
951 
952 int	sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *);
953 
954 int	sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *);
955 
956 int	compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *);
957 
958 int	freebsd_sys_mmap(struct lwp *, const struct freebsd_sys_mmap_args *, register_t *);
959 
960 int	sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *);
961 
962 int	sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *);
963 
964 int	sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *);
965 
966 int	freebsd_sys_sysctl(struct lwp *, const struct freebsd_sys_sysctl_args *, register_t *);
967 
968 int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
969 
970 int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
971 
972 #ifdef FREEBSD_BASED_ON_44LITE_R2
973 int	freebsd_sys_undelete(struct lwp *, const struct freebsd_sys_undelete_args *, register_t *);
974 
975 #else
976 #endif
977 int	compat_50_sys_futimes(struct lwp *, const struct compat_50_sys_futimes_args *, register_t *);
978 
979 int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
980 
981 #if 0
982 #else
983 #endif
984 int	sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
985 
986 #ifdef SYSVSEM
987 int	compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *);
988 
989 int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
990 
991 int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
992 
993 int	sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *);
994 
995 #else
996 #endif
997 #ifdef SYSVMSG
998 int	compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *);
999 
1000 int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1001 
1002 int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1003 
1004 int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1005 
1006 #else
1007 #endif
1008 #ifdef SYSVSHM
1009 int	sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
1010 
1011 int	compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *);
1012 
1013 int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1014 
1015 int	sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *);
1016 
1017 #else
1018 #endif
1019 int	compat_50_sys_clock_gettime(struct lwp *, const struct compat_50_sys_clock_gettime_args *, register_t *);
1020 
1021 int	compat_50_sys_clock_settime(struct lwp *, const struct compat_50_sys_clock_settime_args *, register_t *);
1022 
1023 int	compat_50_sys_clock_getres(struct lwp *, const struct compat_50_sys_clock_getres_args *, register_t *);
1024 
1025 int	compat_50_sys_nanosleep(struct lwp *, const struct compat_50_sys_nanosleep_args *, register_t *);
1026 
1027 int	sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *);
1028 
1029 int	freebsd_sys_rfork(struct lwp *, const struct freebsd_sys_rfork_args *, register_t *);
1030 
1031 int	sys_issetugid(struct lwp *, const void *, register_t *);
1032 
1033 int	sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *);
1034 
1035 int	compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *);
1036 
1037 int	sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *);
1038 
1039 int	compat_50_sys_lutimes(struct lwp *, const struct compat_50_sys_lutimes_args *, register_t *);
1040 
1041 int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
1042 
1043 int	compat_30_sys___stat13(struct lwp *, const struct compat_30_sys___stat13_args *, register_t *);
1044 
1045 int	compat_30_sys___fstat13(struct lwp *, const struct compat_30_sys___fstat13_args *, register_t *);
1046 
1047 int	compat_30_sys___lstat13(struct lwp *, const struct compat_30_sys___lstat13_args *, register_t *);
1048 
1049 int	compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *);
1050 
1051 int	compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *);
1052 
1053 int	compat_30_sys_fhstat(struct lwp *, const struct compat_30_sys_fhstat_args *, register_t *);
1054 
1055 int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1056 
1057 int	freebsd_sys_yield(struct lwp *, const void *, register_t *);
1058 
1059 int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1060 
1061 int	sys_munlockall(struct lwp *, const void *, register_t *);
1062 
1063 int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1064 
1065 int	freebsd_sys_sched_setparam(struct lwp *, const struct freebsd_sys_sched_setparam_args *, register_t *);
1066 
1067 int	freebsd_sys_sched_getparam(struct lwp *, const struct freebsd_sys_sched_getparam_args *, register_t *);
1068 
1069 int	freebsd_sys_sched_setscheduler(struct lwp *, const struct freebsd_sys_sched_setscheduler_args *, register_t *);
1070 
1071 int	freebsd_sys_sched_getscheduler(struct lwp *, const struct freebsd_sys_sched_getscheduler_args *, register_t *);
1072 
1073 int	freebsd_sys_sched_yield(struct lwp *, const void *, register_t *);
1074 
1075 int	freebsd_sys_sched_get_priority_max(struct lwp *, const struct freebsd_sys_sched_get_priority_max_args *, register_t *);
1076 
1077 int	freebsd_sys_sched_get_priority_min(struct lwp *, const struct freebsd_sys_sched_get_priority_min_args *, register_t *);
1078 
1079 int	freebsd_sys_utrace(struct lwp *, const struct freebsd_sys_utrace_args *, register_t *);
1080 
1081 int	sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *);
1082 
1083 int	sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *);
1084 
1085 int	freebsd_sys_sigaction4(struct lwp *, const struct freebsd_sys_sigaction4_args *, register_t *);
1086 
1087 int	sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *);
1088 
1089 int	sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *);
1090 
1091 int	sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *);
1092 
1093 int	sys__ksem_close(struct lwp *, const struct sys__ksem_close_args *, register_t *);
1094 
1095 int	sys__ksem_post(struct lwp *, const struct sys__ksem_post_args *, register_t *);
1096 
1097 int	sys__ksem_wait(struct lwp *, const struct sys__ksem_wait_args *, register_t *);
1098 
1099 int	sys__ksem_trywait(struct lwp *, const struct sys__ksem_trywait_args *, register_t *);
1100 
1101 int	sys__ksem_unlink(struct lwp *, const struct sys__ksem_unlink_args *, register_t *);
1102 
1103 int	sys__ksem_getvalue(struct lwp *, const struct sys__ksem_getvalue_args *, register_t *);
1104 
1105 int	sys__ksem_destroy(struct lwp *, const struct sys__ksem_destroy_args *, register_t *);
1106 
1107 #endif /* _FREEBSD_SYS_SYSCALLARGS_H_ */
1108