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