xref: /netbsd-src/sys/sys/syscallargs.h (revision b19e9f6776dfba359eaedbfd67d0367bca2f732e)
1 /* $NetBSD: syscallargs.h,v 1.101 2001/05/24 06:45:57 lukem 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.109 2001/04/10 11:03:56 kleink Exp
8  */
9 
10 #ifndef _SYS__SYSCALLARGS_H_
11 #define	_SYS__SYSCALLARGS_H_
12 
13 #ifdef	syscallarg
14 #undef	syscallarg
15 #endif
16 
17 #define	syscallarg(x)							\
18 	union {								\
19 		register_t pad;						\
20 		struct { x datum; } le;					\
21 		struct {						\
22 			int8_t pad[ (sizeof (register_t) < sizeof (x))	\
23 				? 0					\
24 				: sizeof (register_t) - sizeof (x)];	\
25 			x datum;					\
26 		} be;							\
27 	}
28 
29 struct sys_exit_args {
30 	syscallarg(int) rval;
31 };
32 
33 struct sys_read_args {
34 	syscallarg(int) fd;
35 	syscallarg(void *) buf;
36 	syscallarg(size_t) nbyte;
37 };
38 
39 struct sys_write_args {
40 	syscallarg(int) fd;
41 	syscallarg(const void *) buf;
42 	syscallarg(size_t) nbyte;
43 };
44 
45 struct sys_open_args {
46 	syscallarg(const char *) path;
47 	syscallarg(int) flags;
48 	syscallarg(mode_t) mode;
49 };
50 
51 struct sys_close_args {
52 	syscallarg(int) fd;
53 };
54 
55 struct sys_wait4_args {
56 	syscallarg(int) pid;
57 	syscallarg(int *) status;
58 	syscallarg(int) options;
59 	syscallarg(struct rusage *) rusage;
60 };
61 
62 struct compat_43_sys_creat_args {
63 	syscallarg(const char *) path;
64 	syscallarg(mode_t) mode;
65 };
66 
67 struct sys_link_args {
68 	syscallarg(const char *) path;
69 	syscallarg(const char *) link;
70 };
71 
72 struct sys_unlink_args {
73 	syscallarg(const char *) path;
74 };
75 
76 struct sys_chdir_args {
77 	syscallarg(const char *) path;
78 };
79 
80 struct sys_fchdir_args {
81 	syscallarg(int) fd;
82 };
83 
84 struct sys_mknod_args {
85 	syscallarg(const char *) path;
86 	syscallarg(mode_t) mode;
87 	syscallarg(dev_t) dev;
88 };
89 
90 struct sys_chmod_args {
91 	syscallarg(const char *) path;
92 	syscallarg(mode_t) mode;
93 };
94 
95 struct sys_chown_args {
96 	syscallarg(const char *) path;
97 	syscallarg(uid_t) uid;
98 	syscallarg(gid_t) gid;
99 };
100 
101 struct sys_obreak_args {
102 	syscallarg(char *) nsize;
103 };
104 
105 struct sys_getfsstat_args {
106 	syscallarg(struct statfs *) buf;
107 	syscallarg(long) bufsize;
108 	syscallarg(int) flags;
109 };
110 
111 struct compat_43_sys_lseek_args {
112 	syscallarg(int) fd;
113 	syscallarg(long) offset;
114 	syscallarg(int) whence;
115 };
116 
117 struct sys_mount_args {
118 	syscallarg(const char *) type;
119 	syscallarg(const char *) path;
120 	syscallarg(int) flags;
121 	syscallarg(void *) data;
122 };
123 
124 struct sys_unmount_args {
125 	syscallarg(const char *) path;
126 	syscallarg(int) flags;
127 };
128 
129 struct sys_setuid_args {
130 	syscallarg(uid_t) uid;
131 };
132 
133 struct sys_ptrace_args {
134 	syscallarg(int) req;
135 	syscallarg(pid_t) pid;
136 	syscallarg(caddr_t) addr;
137 	syscallarg(int) data;
138 };
139 
140 struct sys_recvmsg_args {
141 	syscallarg(int) s;
142 	syscallarg(struct msghdr *) msg;
143 	syscallarg(int) flags;
144 };
145 
146 struct sys_sendmsg_args {
147 	syscallarg(int) s;
148 	syscallarg(const struct msghdr *) msg;
149 	syscallarg(int) flags;
150 };
151 
152 struct sys_recvfrom_args {
153 	syscallarg(int) s;
154 	syscallarg(void *) buf;
155 	syscallarg(size_t) len;
156 	syscallarg(int) flags;
157 	syscallarg(struct sockaddr *) from;
158 	syscallarg(unsigned int *) fromlenaddr;
159 };
160 
161 struct sys_accept_args {
162 	syscallarg(int) s;
163 	syscallarg(struct sockaddr *) name;
164 	syscallarg(unsigned int *) anamelen;
165 };
166 
167 struct sys_getpeername_args {
168 	syscallarg(int) fdes;
169 	syscallarg(struct sockaddr *) asa;
170 	syscallarg(unsigned int *) alen;
171 };
172 
173 struct sys_getsockname_args {
174 	syscallarg(int) fdes;
175 	syscallarg(struct sockaddr *) asa;
176 	syscallarg(unsigned int *) alen;
177 };
178 
179 struct sys_access_args {
180 	syscallarg(const char *) path;
181 	syscallarg(int) flags;
182 };
183 
184 struct sys_chflags_args {
185 	syscallarg(const char *) path;
186 	syscallarg(u_long) flags;
187 };
188 
189 struct sys_fchflags_args {
190 	syscallarg(int) fd;
191 	syscallarg(u_long) flags;
192 };
193 
194 struct sys_kill_args {
195 	syscallarg(int) pid;
196 	syscallarg(int) signum;
197 };
198 
199 struct compat_43_sys_stat_args {
200 	syscallarg(const char *) path;
201 	syscallarg(struct stat43 *) ub;
202 };
203 
204 struct compat_43_sys_lstat_args {
205 	syscallarg(const char *) path;
206 	syscallarg(struct stat43 *) ub;
207 };
208 
209 struct sys_dup_args {
210 	syscallarg(int) fd;
211 };
212 
213 struct sys_profil_args {
214 	syscallarg(caddr_t) samples;
215 	syscallarg(size_t) size;
216 	syscallarg(u_long) offset;
217 	syscallarg(u_int) scale;
218 };
219 
220 struct sys_ktrace_args {
221 	syscallarg(const char *) fname;
222 	syscallarg(int) ops;
223 	syscallarg(int) facs;
224 	syscallarg(int) pid;
225 };
226 
227 struct compat_13_sys_sigaction_args {
228 	syscallarg(int) signum;
229 	syscallarg(const struct sigaction13 *) nsa;
230 	syscallarg(struct sigaction13 *) osa;
231 };
232 
233 struct compat_13_sys_sigprocmask_args {
234 	syscallarg(int) how;
235 	syscallarg(int) mask;
236 };
237 
238 struct sys___getlogin_args {
239 	syscallarg(char *) namebuf;
240 	syscallarg(size_t) namelen;
241 };
242 
243 struct sys_setlogin_args {
244 	syscallarg(const char *) namebuf;
245 };
246 
247 struct sys_acct_args {
248 	syscallarg(const char *) path;
249 };
250 
251 struct compat_13_sys_sigaltstack_args {
252 	syscallarg(const struct sigaltstack13 *) nss;
253 	syscallarg(struct sigaltstack13 *) oss;
254 };
255 
256 struct sys_ioctl_args {
257 	syscallarg(int) fd;
258 	syscallarg(u_long) com;
259 	syscallarg(void *) data;
260 };
261 
262 struct compat_12_sys_reboot_args {
263 	syscallarg(int) opt;
264 };
265 
266 struct sys_revoke_args {
267 	syscallarg(const char *) path;
268 };
269 
270 struct sys_symlink_args {
271 	syscallarg(const char *) path;
272 	syscallarg(const char *) link;
273 };
274 
275 struct sys_readlink_args {
276 	syscallarg(const char *) path;
277 	syscallarg(char *) buf;
278 	syscallarg(size_t) count;
279 };
280 
281 struct sys_execve_args {
282 	syscallarg(const char *) path;
283 	syscallarg(char *const *) argp;
284 	syscallarg(char *const *) envp;
285 };
286 
287 struct sys_umask_args {
288 	syscallarg(mode_t) newmask;
289 };
290 
291 struct sys_chroot_args {
292 	syscallarg(const char *) path;
293 };
294 
295 struct compat_43_sys_fstat_args {
296 	syscallarg(int) fd;
297 	syscallarg(struct stat43 *) sb;
298 };
299 
300 struct compat_43_sys_getkerninfo_args {
301 	syscallarg(int) op;
302 	syscallarg(char *) where;
303 	syscallarg(int *) size;
304 	syscallarg(int) arg;
305 };
306 
307 struct compat_12_sys_msync_args {
308 	syscallarg(caddr_t) addr;
309 	syscallarg(size_t) len;
310 };
311 
312 struct sys_sbrk_args {
313 	syscallarg(intptr_t) incr;
314 };
315 
316 struct sys_sstk_args {
317 	syscallarg(int) incr;
318 };
319 
320 struct compat_43_sys_mmap_args {
321 	syscallarg(caddr_t) addr;
322 	syscallarg(size_t) len;
323 	syscallarg(int) prot;
324 	syscallarg(int) flags;
325 	syscallarg(int) fd;
326 	syscallarg(long) pos;
327 };
328 
329 struct sys_ovadvise_args {
330 	syscallarg(int) anom;
331 };
332 
333 struct sys_munmap_args {
334 	syscallarg(void *) addr;
335 	syscallarg(size_t) len;
336 };
337 
338 struct sys_mprotect_args {
339 	syscallarg(void *) addr;
340 	syscallarg(size_t) len;
341 	syscallarg(int) prot;
342 };
343 
344 struct sys_madvise_args {
345 	syscallarg(void *) addr;
346 	syscallarg(size_t) len;
347 	syscallarg(int) behav;
348 };
349 
350 struct sys_mincore_args {
351 	syscallarg(void *) addr;
352 	syscallarg(size_t) len;
353 	syscallarg(char *) vec;
354 };
355 
356 struct sys_getgroups_args {
357 	syscallarg(int) gidsetsize;
358 	syscallarg(gid_t *) gidset;
359 };
360 
361 struct sys_setgroups_args {
362 	syscallarg(int) gidsetsize;
363 	syscallarg(const gid_t *) gidset;
364 };
365 
366 struct sys_setpgid_args {
367 	syscallarg(int) pid;
368 	syscallarg(int) pgid;
369 };
370 
371 struct sys_setitimer_args {
372 	syscallarg(int) which;
373 	syscallarg(const struct itimerval *) itv;
374 	syscallarg(struct itimerval *) oitv;
375 };
376 
377 struct compat_12_sys_swapon_args {
378 	syscallarg(const char *) name;
379 };
380 
381 struct sys_getitimer_args {
382 	syscallarg(int) which;
383 	syscallarg(struct itimerval *) itv;
384 };
385 
386 struct compat_43_sys_gethostname_args {
387 	syscallarg(char *) hostname;
388 	syscallarg(u_int) len;
389 };
390 
391 struct compat_43_sys_sethostname_args {
392 	syscallarg(char *) hostname;
393 	syscallarg(u_int) len;
394 };
395 
396 struct sys_dup2_args {
397 	syscallarg(int) from;
398 	syscallarg(int) to;
399 };
400 
401 struct sys_fcntl_args {
402 	syscallarg(int) fd;
403 	syscallarg(int) cmd;
404 	syscallarg(void *) arg;
405 };
406 
407 struct sys_select_args {
408 	syscallarg(int) nd;
409 	syscallarg(fd_set *) in;
410 	syscallarg(fd_set *) ou;
411 	syscallarg(fd_set *) ex;
412 	syscallarg(struct timeval *) tv;
413 };
414 
415 struct sys_fsync_args {
416 	syscallarg(int) fd;
417 };
418 
419 struct sys_setpriority_args {
420 	syscallarg(int) which;
421 	syscallarg(int) who;
422 	syscallarg(int) prio;
423 };
424 
425 struct sys_socket_args {
426 	syscallarg(int) domain;
427 	syscallarg(int) type;
428 	syscallarg(int) protocol;
429 };
430 
431 struct sys_connect_args {
432 	syscallarg(int) s;
433 	syscallarg(const struct sockaddr *) name;
434 	syscallarg(unsigned int) namelen;
435 };
436 
437 struct compat_43_sys_accept_args {
438 	syscallarg(int) s;
439 	syscallarg(caddr_t) name;
440 	syscallarg(int *) anamelen;
441 };
442 
443 struct sys_getpriority_args {
444 	syscallarg(int) which;
445 	syscallarg(int) who;
446 };
447 
448 struct compat_43_sys_send_args {
449 	syscallarg(int) s;
450 	syscallarg(caddr_t) buf;
451 	syscallarg(int) len;
452 	syscallarg(int) flags;
453 };
454 
455 struct compat_43_sys_recv_args {
456 	syscallarg(int) s;
457 	syscallarg(caddr_t) buf;
458 	syscallarg(int) len;
459 	syscallarg(int) flags;
460 };
461 
462 struct compat_13_sys_sigreturn_args {
463 	syscallarg(struct sigcontext13 *) sigcntxp;
464 };
465 
466 struct sys_bind_args {
467 	syscallarg(int) s;
468 	syscallarg(const struct sockaddr *) name;
469 	syscallarg(unsigned int) namelen;
470 };
471 
472 struct sys_setsockopt_args {
473 	syscallarg(int) s;
474 	syscallarg(int) level;
475 	syscallarg(int) name;
476 	syscallarg(const void *) val;
477 	syscallarg(unsigned int) valsize;
478 };
479 
480 struct sys_listen_args {
481 	syscallarg(int) s;
482 	syscallarg(int) backlog;
483 };
484 
485 struct compat_43_sys_sigvec_args {
486 	syscallarg(int) signum;
487 	syscallarg(struct sigvec *) nsv;
488 	syscallarg(struct sigvec *) osv;
489 };
490 
491 struct compat_43_sys_sigblock_args {
492 	syscallarg(int) mask;
493 };
494 
495 struct compat_43_sys_sigsetmask_args {
496 	syscallarg(int) mask;
497 };
498 
499 struct compat_13_sys_sigsuspend_args {
500 	syscallarg(int) mask;
501 };
502 
503 struct compat_43_sys_sigstack_args {
504 	syscallarg(struct sigstack *) nss;
505 	syscallarg(struct sigstack *) oss;
506 };
507 
508 struct compat_43_sys_recvmsg_args {
509 	syscallarg(int) s;
510 	syscallarg(struct omsghdr *) msg;
511 	syscallarg(int) flags;
512 };
513 
514 struct compat_43_sys_sendmsg_args {
515 	syscallarg(int) s;
516 	syscallarg(caddr_t) msg;
517 	syscallarg(int) flags;
518 };
519 
520 struct sys_gettimeofday_args {
521 	syscallarg(struct timeval *) tp;
522 	syscallarg(struct timezone *) tzp;
523 };
524 
525 struct sys_getrusage_args {
526 	syscallarg(int) who;
527 	syscallarg(struct rusage *) rusage;
528 };
529 
530 struct sys_getsockopt_args {
531 	syscallarg(int) s;
532 	syscallarg(int) level;
533 	syscallarg(int) name;
534 	syscallarg(void *) val;
535 	syscallarg(unsigned int *) avalsize;
536 };
537 
538 struct sys_readv_args {
539 	syscallarg(int) fd;
540 	syscallarg(const struct iovec *) iovp;
541 	syscallarg(int) iovcnt;
542 };
543 
544 struct sys_writev_args {
545 	syscallarg(int) fd;
546 	syscallarg(const struct iovec *) iovp;
547 	syscallarg(int) iovcnt;
548 };
549 
550 struct sys_settimeofday_args {
551 	syscallarg(const struct timeval *) tv;
552 	syscallarg(const struct timezone *) tzp;
553 };
554 
555 struct sys_fchown_args {
556 	syscallarg(int) fd;
557 	syscallarg(uid_t) uid;
558 	syscallarg(gid_t) gid;
559 };
560 
561 struct sys_fchmod_args {
562 	syscallarg(int) fd;
563 	syscallarg(mode_t) mode;
564 };
565 
566 struct compat_43_sys_recvfrom_args {
567 	syscallarg(int) s;
568 	syscallarg(caddr_t) buf;
569 	syscallarg(size_t) len;
570 	syscallarg(int) flags;
571 	syscallarg(caddr_t) from;
572 	syscallarg(int *) fromlenaddr;
573 };
574 
575 struct sys_setreuid_args {
576 	syscallarg(uid_t) ruid;
577 	syscallarg(uid_t) euid;
578 };
579 
580 struct sys_setregid_args {
581 	syscallarg(gid_t) rgid;
582 	syscallarg(gid_t) egid;
583 };
584 
585 struct sys_rename_args {
586 	syscallarg(const char *) from;
587 	syscallarg(const char *) to;
588 };
589 
590 struct compat_43_sys_truncate_args {
591 	syscallarg(const char *) path;
592 	syscallarg(long) length;
593 };
594 
595 struct compat_43_sys_ftruncate_args {
596 	syscallarg(int) fd;
597 	syscallarg(long) length;
598 };
599 
600 struct sys_flock_args {
601 	syscallarg(int) fd;
602 	syscallarg(int) how;
603 };
604 
605 struct sys_mkfifo_args {
606 	syscallarg(const char *) path;
607 	syscallarg(mode_t) mode;
608 };
609 
610 struct sys_sendto_args {
611 	syscallarg(int) s;
612 	syscallarg(const void *) buf;
613 	syscallarg(size_t) len;
614 	syscallarg(int) flags;
615 	syscallarg(const struct sockaddr *) to;
616 	syscallarg(unsigned int) tolen;
617 };
618 
619 struct sys_shutdown_args {
620 	syscallarg(int) s;
621 	syscallarg(int) how;
622 };
623 
624 struct sys_socketpair_args {
625 	syscallarg(int) domain;
626 	syscallarg(int) type;
627 	syscallarg(int) protocol;
628 	syscallarg(int *) rsv;
629 };
630 
631 struct sys_mkdir_args {
632 	syscallarg(const char *) path;
633 	syscallarg(mode_t) mode;
634 };
635 
636 struct sys_rmdir_args {
637 	syscallarg(const char *) path;
638 };
639 
640 struct sys_utimes_args {
641 	syscallarg(const char *) path;
642 	syscallarg(const struct timeval *) tptr;
643 };
644 
645 struct sys_adjtime_args {
646 	syscallarg(const struct timeval *) delta;
647 	syscallarg(struct timeval *) olddelta;
648 };
649 
650 struct compat_43_sys_getpeername_args {
651 	syscallarg(int) fdes;
652 	syscallarg(caddr_t) asa;
653 	syscallarg(int *) alen;
654 };
655 
656 struct compat_43_sys_sethostid_args {
657 	syscallarg(int32_t) hostid;
658 };
659 
660 struct compat_43_sys_getrlimit_args {
661 	syscallarg(int) which;
662 	syscallarg(struct orlimit *) rlp;
663 };
664 
665 struct compat_43_sys_setrlimit_args {
666 	syscallarg(int) which;
667 	syscallarg(const struct orlimit *) rlp;
668 };
669 
670 struct compat_43_sys_killpg_args {
671 	syscallarg(int) pgid;
672 	syscallarg(int) signum;
673 };
674 
675 struct sys_quotactl_args {
676 	syscallarg(const char *) path;
677 	syscallarg(int) cmd;
678 	syscallarg(int) uid;
679 	syscallarg(caddr_t) arg;
680 };
681 
682 struct compat_43_sys_getsockname_args {
683 	syscallarg(int) fdec;
684 	syscallarg(caddr_t) asa;
685 	syscallarg(int *) alen;
686 };
687 
688 struct sys_nfssvc_args {
689 	syscallarg(int) flag;
690 	syscallarg(void *) argp;
691 };
692 
693 struct compat_43_sys_getdirentries_args {
694 	syscallarg(int) fd;
695 	syscallarg(char *) buf;
696 	syscallarg(u_int) count;
697 	syscallarg(long *) basep;
698 };
699 
700 struct sys_statfs_args {
701 	syscallarg(const char *) path;
702 	syscallarg(struct statfs *) buf;
703 };
704 
705 struct sys_fstatfs_args {
706 	syscallarg(int) fd;
707 	syscallarg(struct statfs *) buf;
708 };
709 
710 struct sys_getfh_args {
711 	syscallarg(const char *) fname;
712 	syscallarg(fhandle_t *) fhp;
713 };
714 
715 struct compat_09_sys_getdomainname_args {
716 	syscallarg(char *) domainname;
717 	syscallarg(int) len;
718 };
719 
720 struct compat_09_sys_setdomainname_args {
721 	syscallarg(char *) domainname;
722 	syscallarg(int) len;
723 };
724 
725 struct compat_09_sys_uname_args {
726 	syscallarg(struct outsname *) name;
727 };
728 
729 struct sys_sysarch_args {
730 	syscallarg(int) op;
731 	syscallarg(void *) parms;
732 };
733 
734 struct compat_10_sys_semsys_args {
735 	syscallarg(int) which;
736 	syscallarg(int) a2;
737 	syscallarg(int) a3;
738 	syscallarg(int) a4;
739 	syscallarg(int) a5;
740 };
741 
742 struct compat_10_sys_msgsys_args {
743 	syscallarg(int) which;
744 	syscallarg(int) a2;
745 	syscallarg(int) a3;
746 	syscallarg(int) a4;
747 	syscallarg(int) a5;
748 	syscallarg(int) a6;
749 };
750 
751 struct compat_10_sys_shmsys_args {
752 	syscallarg(int) which;
753 	syscallarg(int) a2;
754 	syscallarg(int) a3;
755 	syscallarg(int) a4;
756 };
757 
758 struct sys_pread_args {
759 	syscallarg(int) fd;
760 	syscallarg(void *) buf;
761 	syscallarg(size_t) nbyte;
762 	syscallarg(int) pad;
763 	syscallarg(off_t) offset;
764 };
765 
766 struct sys_pwrite_args {
767 	syscallarg(int) fd;
768 	syscallarg(const void *) buf;
769 	syscallarg(size_t) nbyte;
770 	syscallarg(int) pad;
771 	syscallarg(off_t) offset;
772 };
773 
774 struct sys_ntp_gettime_args {
775 	syscallarg(struct ntptimeval *) ntvp;
776 };
777 
778 struct sys_ntp_adjtime_args {
779 	syscallarg(struct timex *) tp;
780 };
781 
782 struct sys_setgid_args {
783 	syscallarg(gid_t) gid;
784 };
785 
786 struct sys_setegid_args {
787 	syscallarg(gid_t) egid;
788 };
789 
790 struct sys_seteuid_args {
791 	syscallarg(uid_t) euid;
792 };
793 
794 struct sys_lfs_bmapv_args {
795 	syscallarg(fsid_t *) fsidp;
796 	syscallarg(struct block_info *) blkiov;
797 	syscallarg(int) blkcnt;
798 };
799 
800 struct sys_lfs_markv_args {
801 	syscallarg(fsid_t *) fsidp;
802 	syscallarg(struct block_info *) blkiov;
803 	syscallarg(int) blkcnt;
804 };
805 
806 struct sys_lfs_segclean_args {
807 	syscallarg(fsid_t *) fsidp;
808 	syscallarg(u_long) segment;
809 };
810 
811 struct sys_lfs_segwait_args {
812 	syscallarg(fsid_t *) fsidp;
813 	syscallarg(struct timeval *) tv;
814 };
815 
816 struct compat_12_sys_stat_args {
817 	syscallarg(const char *) path;
818 	syscallarg(struct stat12 *) ub;
819 };
820 
821 struct compat_12_sys_fstat_args {
822 	syscallarg(int) fd;
823 	syscallarg(struct stat12 *) sb;
824 };
825 
826 struct compat_12_sys_lstat_args {
827 	syscallarg(const char *) path;
828 	syscallarg(struct stat12 *) ub;
829 };
830 
831 struct sys_pathconf_args {
832 	syscallarg(const char *) path;
833 	syscallarg(int) name;
834 };
835 
836 struct sys_fpathconf_args {
837 	syscallarg(int) fd;
838 	syscallarg(int) name;
839 };
840 
841 struct sys_getrlimit_args {
842 	syscallarg(int) which;
843 	syscallarg(struct rlimit *) rlp;
844 };
845 
846 struct sys_setrlimit_args {
847 	syscallarg(int) which;
848 	syscallarg(const struct rlimit *) rlp;
849 };
850 
851 struct compat_12_sys_getdirentries_args {
852 	syscallarg(int) fd;
853 	syscallarg(char *) buf;
854 	syscallarg(u_int) count;
855 	syscallarg(long *) basep;
856 };
857 
858 struct sys_mmap_args {
859 	syscallarg(void *) addr;
860 	syscallarg(size_t) len;
861 	syscallarg(int) prot;
862 	syscallarg(int) flags;
863 	syscallarg(int) fd;
864 	syscallarg(long) pad;
865 	syscallarg(off_t) pos;
866 };
867 
868 struct sys_lseek_args {
869 	syscallarg(int) fd;
870 	syscallarg(int) pad;
871 	syscallarg(off_t) offset;
872 	syscallarg(int) whence;
873 };
874 
875 struct sys_truncate_args {
876 	syscallarg(const char *) path;
877 	syscallarg(int) pad;
878 	syscallarg(off_t) length;
879 };
880 
881 struct sys_ftruncate_args {
882 	syscallarg(int) fd;
883 	syscallarg(int) pad;
884 	syscallarg(off_t) length;
885 };
886 
887 struct sys___sysctl_args {
888 	syscallarg(int *) name;
889 	syscallarg(u_int) namelen;
890 	syscallarg(void *) old;
891 	syscallarg(size_t *) oldlenp;
892 	syscallarg(void *) new;
893 	syscallarg(size_t) newlen;
894 };
895 
896 struct sys_mlock_args {
897 	syscallarg(const void *) addr;
898 	syscallarg(size_t) len;
899 };
900 
901 struct sys_munlock_args {
902 	syscallarg(const void *) addr;
903 	syscallarg(size_t) len;
904 };
905 
906 struct sys_undelete_args {
907 	syscallarg(const char *) path;
908 };
909 
910 struct sys_futimes_args {
911 	syscallarg(int) fd;
912 	syscallarg(const struct timeval *) tptr;
913 };
914 
915 struct sys_getpgid_args {
916 	syscallarg(pid_t) pid;
917 };
918 
919 struct sys_reboot_args {
920 	syscallarg(int) opt;
921 	syscallarg(char *) bootstr;
922 };
923 
924 struct sys_poll_args {
925 	syscallarg(struct pollfd *) fds;
926 	syscallarg(u_int) nfds;
927 	syscallarg(int) timeout;
928 };
929 
930 struct compat_14_sys___semctl_args {
931 	syscallarg(int) semid;
932 	syscallarg(int) semnum;
933 	syscallarg(int) cmd;
934 	syscallarg(union __semun *) arg;
935 };
936 
937 struct sys_semget_args {
938 	syscallarg(key_t) key;
939 	syscallarg(int) nsems;
940 	syscallarg(int) semflg;
941 };
942 
943 struct sys_semop_args {
944 	syscallarg(int) semid;
945 	syscallarg(struct sembuf *) sops;
946 	syscallarg(size_t) nsops;
947 };
948 
949 struct sys_semconfig_args {
950 	syscallarg(int) flag;
951 };
952 
953 struct compat_14_sys_msgctl_args {
954 	syscallarg(int) msqid;
955 	syscallarg(int) cmd;
956 	syscallarg(struct msqid_ds14 *) buf;
957 };
958 
959 struct sys_msgget_args {
960 	syscallarg(key_t) key;
961 	syscallarg(int) msgflg;
962 };
963 
964 struct sys_msgsnd_args {
965 	syscallarg(int) msqid;
966 	syscallarg(const void *) msgp;
967 	syscallarg(size_t) msgsz;
968 	syscallarg(int) msgflg;
969 };
970 
971 struct sys_msgrcv_args {
972 	syscallarg(int) msqid;
973 	syscallarg(void *) msgp;
974 	syscallarg(size_t) msgsz;
975 	syscallarg(long) msgtyp;
976 	syscallarg(int) msgflg;
977 };
978 
979 struct sys_shmat_args {
980 	syscallarg(int) shmid;
981 	syscallarg(const void *) shmaddr;
982 	syscallarg(int) shmflg;
983 };
984 
985 struct compat_14_sys_shmctl_args {
986 	syscallarg(int) shmid;
987 	syscallarg(int) cmd;
988 	syscallarg(struct shmid_ds14 *) buf;
989 };
990 
991 struct sys_shmdt_args {
992 	syscallarg(const void *) shmaddr;
993 };
994 
995 struct sys_shmget_args {
996 	syscallarg(key_t) key;
997 	syscallarg(size_t) size;
998 	syscallarg(int) shmflg;
999 };
1000 
1001 struct sys_clock_gettime_args {
1002 	syscallarg(clockid_t) clock_id;
1003 	syscallarg(struct timespec *) tp;
1004 };
1005 
1006 struct sys_clock_settime_args {
1007 	syscallarg(clockid_t) clock_id;
1008 	syscallarg(const struct timespec *) tp;
1009 };
1010 
1011 struct sys_clock_getres_args {
1012 	syscallarg(clockid_t) clock_id;
1013 	syscallarg(struct timespec *) tp;
1014 };
1015 
1016 struct sys_nanosleep_args {
1017 	syscallarg(const struct timespec *) rqtp;
1018 	syscallarg(struct timespec *) rmtp;
1019 };
1020 
1021 struct sys_fdatasync_args {
1022 	syscallarg(int) fd;
1023 };
1024 
1025 struct sys_mlockall_args {
1026 	syscallarg(int) flags;
1027 };
1028 
1029 struct sys___posix_rename_args {
1030 	syscallarg(const char *) from;
1031 	syscallarg(const char *) to;
1032 };
1033 
1034 struct sys_swapctl_args {
1035 	syscallarg(int) cmd;
1036 	syscallarg(const void *) arg;
1037 	syscallarg(int) misc;
1038 };
1039 
1040 struct sys_getdents_args {
1041 	syscallarg(int) fd;
1042 	syscallarg(char *) buf;
1043 	syscallarg(size_t) count;
1044 };
1045 
1046 struct sys_minherit_args {
1047 	syscallarg(void *) addr;
1048 	syscallarg(size_t) len;
1049 	syscallarg(int) inherit;
1050 };
1051 
1052 struct sys_lchmod_args {
1053 	syscallarg(const char *) path;
1054 	syscallarg(mode_t) mode;
1055 };
1056 
1057 struct sys_lchown_args {
1058 	syscallarg(const char *) path;
1059 	syscallarg(uid_t) uid;
1060 	syscallarg(gid_t) gid;
1061 };
1062 
1063 struct sys_lutimes_args {
1064 	syscallarg(const char *) path;
1065 	syscallarg(const struct timeval *) tptr;
1066 };
1067 
1068 struct sys___msync13_args {
1069 	syscallarg(void *) addr;
1070 	syscallarg(size_t) len;
1071 	syscallarg(int) flags;
1072 };
1073 
1074 struct sys___stat13_args {
1075 	syscallarg(const char *) path;
1076 	syscallarg(struct stat *) ub;
1077 };
1078 
1079 struct sys___fstat13_args {
1080 	syscallarg(int) fd;
1081 	syscallarg(struct stat *) sb;
1082 };
1083 
1084 struct sys___lstat13_args {
1085 	syscallarg(const char *) path;
1086 	syscallarg(struct stat *) ub;
1087 };
1088 
1089 struct sys___sigaltstack14_args {
1090 	syscallarg(const struct sigaltstack *) nss;
1091 	syscallarg(struct sigaltstack *) oss;
1092 };
1093 
1094 struct sys___posix_chown_args {
1095 	syscallarg(const char *) path;
1096 	syscallarg(uid_t) uid;
1097 	syscallarg(gid_t) gid;
1098 };
1099 
1100 struct sys___posix_fchown_args {
1101 	syscallarg(int) fd;
1102 	syscallarg(uid_t) uid;
1103 	syscallarg(gid_t) gid;
1104 };
1105 
1106 struct sys___posix_lchown_args {
1107 	syscallarg(const char *) path;
1108 	syscallarg(uid_t) uid;
1109 	syscallarg(gid_t) gid;
1110 };
1111 
1112 struct sys_getsid_args {
1113 	syscallarg(pid_t) pid;
1114 };
1115 
1116 struct sys_fktrace_args {
1117 	syscallarg(const int) fd;
1118 	syscallarg(int) ops;
1119 	syscallarg(int) facs;
1120 	syscallarg(int) pid;
1121 };
1122 
1123 struct sys_preadv_args {
1124 	syscallarg(int) fd;
1125 	syscallarg(const struct iovec *) iovp;
1126 	syscallarg(int) iovcnt;
1127 	syscallarg(int) pad;
1128 	syscallarg(off_t) offset;
1129 };
1130 
1131 struct sys_pwritev_args {
1132 	syscallarg(int) fd;
1133 	syscallarg(const struct iovec *) iovp;
1134 	syscallarg(int) iovcnt;
1135 	syscallarg(int) pad;
1136 	syscallarg(off_t) offset;
1137 };
1138 
1139 struct sys___sigaction14_args {
1140 	syscallarg(int) signum;
1141 	syscallarg(const struct sigaction *) nsa;
1142 	syscallarg(struct sigaction *) osa;
1143 };
1144 
1145 struct sys___sigpending14_args {
1146 	syscallarg(sigset_t *) set;
1147 };
1148 
1149 struct sys___sigprocmask14_args {
1150 	syscallarg(int) how;
1151 	syscallarg(const sigset_t *) set;
1152 	syscallarg(sigset_t *) oset;
1153 };
1154 
1155 struct sys___sigsuspend14_args {
1156 	syscallarg(const sigset_t *) set;
1157 };
1158 
1159 struct sys___sigreturn14_args {
1160 	syscallarg(struct sigcontext *) sigcntxp;
1161 };
1162 
1163 struct sys___getcwd_args {
1164 	syscallarg(char *) bufp;
1165 	syscallarg(size_t) length;
1166 };
1167 
1168 struct sys_fchroot_args {
1169 	syscallarg(int) fd;
1170 };
1171 
1172 struct sys_fhopen_args {
1173 	syscallarg(const fhandle_t *) fhp;
1174 	syscallarg(int) flags;
1175 };
1176 
1177 struct sys_fhstat_args {
1178 	syscallarg(const fhandle_t *) fhp;
1179 	syscallarg(struct stat *) sb;
1180 };
1181 
1182 struct sys_fhstatfs_args {
1183 	syscallarg(const fhandle_t *) fhp;
1184 	syscallarg(struct statfs *) buf;
1185 };
1186 
1187 struct sys_____semctl13_args {
1188 	syscallarg(int) semid;
1189 	syscallarg(int) semnum;
1190 	syscallarg(int) cmd;
1191 	syscallarg(union __semun *) arg;
1192 };
1193 
1194 struct sys___msgctl13_args {
1195 	syscallarg(int) msqid;
1196 	syscallarg(int) cmd;
1197 	syscallarg(struct msqid_ds *) buf;
1198 };
1199 
1200 struct sys___shmctl13_args {
1201 	syscallarg(int) shmid;
1202 	syscallarg(int) cmd;
1203 	syscallarg(struct shmid_ds *) buf;
1204 };
1205 
1206 struct sys_lchflags_args {
1207 	syscallarg(const char *) path;
1208 	syscallarg(u_long) flags;
1209 };
1210 
1211 struct sys_utrace_args {
1212 	syscallarg(const char *) label;
1213 	syscallarg(void *) addr;
1214 	syscallarg(size_t) len;
1215 };
1216 
1217 /*
1218  * System call prototypes.
1219  */
1220 
1221 int	sys_exit(struct proc *, void *, register_t *);
1222 int	sys_fork(struct proc *, void *, register_t *);
1223 int	sys_read(struct proc *, void *, register_t *);
1224 int	sys_write(struct proc *, void *, register_t *);
1225 int	sys_open(struct proc *, void *, register_t *);
1226 int	sys_close(struct proc *, void *, register_t *);
1227 int	sys_wait4(struct proc *, void *, register_t *);
1228 int	compat_43_sys_creat(struct proc *, void *, register_t *);
1229 int	sys_link(struct proc *, void *, register_t *);
1230 int	sys_unlink(struct proc *, void *, register_t *);
1231 int	sys_chdir(struct proc *, void *, register_t *);
1232 int	sys_fchdir(struct proc *, void *, register_t *);
1233 int	sys_mknod(struct proc *, void *, register_t *);
1234 int	sys_chmod(struct proc *, void *, register_t *);
1235 int	sys_chown(struct proc *, void *, register_t *);
1236 int	sys_obreak(struct proc *, void *, register_t *);
1237 int	sys_getfsstat(struct proc *, void *, register_t *);
1238 int	compat_43_sys_lseek(struct proc *, void *, register_t *);
1239 #ifdef COMPAT_43
1240 int	sys_getpid_with_ppid(struct proc *, void *, register_t *);
1241 #else
1242 int	sys_getpid(struct proc *, void *, register_t *);
1243 #endif
1244 int	sys_mount(struct proc *, void *, register_t *);
1245 int	sys_unmount(struct proc *, void *, register_t *);
1246 int	sys_setuid(struct proc *, void *, register_t *);
1247 #ifdef COMPAT_43
1248 int	sys_getuid_with_euid(struct proc *, void *, register_t *);
1249 #else
1250 int	sys_getuid(struct proc *, void *, register_t *);
1251 #endif
1252 int	sys_geteuid(struct proc *, void *, register_t *);
1253 int	sys_ptrace(struct proc *, void *, register_t *);
1254 int	sys_recvmsg(struct proc *, void *, register_t *);
1255 int	sys_sendmsg(struct proc *, void *, register_t *);
1256 int	sys_recvfrom(struct proc *, void *, register_t *);
1257 int	sys_accept(struct proc *, void *, register_t *);
1258 int	sys_getpeername(struct proc *, void *, register_t *);
1259 int	sys_getsockname(struct proc *, void *, register_t *);
1260 int	sys_access(struct proc *, void *, register_t *);
1261 int	sys_chflags(struct proc *, void *, register_t *);
1262 int	sys_fchflags(struct proc *, void *, register_t *);
1263 int	sys_sync(struct proc *, void *, register_t *);
1264 int	sys_kill(struct proc *, void *, register_t *);
1265 int	compat_43_sys_stat(struct proc *, void *, register_t *);
1266 int	sys_getppid(struct proc *, void *, register_t *);
1267 int	compat_43_sys_lstat(struct proc *, void *, register_t *);
1268 int	sys_dup(struct proc *, void *, register_t *);
1269 int	sys_pipe(struct proc *, void *, register_t *);
1270 int	sys_getegid(struct proc *, void *, register_t *);
1271 int	sys_profil(struct proc *, void *, register_t *);
1272 #if defined(KTRACE) || !defined(_KERNEL)
1273 int	sys_ktrace(struct proc *, void *, register_t *);
1274 #else
1275 #endif
1276 int	compat_13_sys_sigaction(struct proc *, void *, register_t *);
1277 #ifdef COMPAT_43
1278 int	sys_getgid_with_egid(struct proc *, void *, register_t *);
1279 #else
1280 int	sys_getgid(struct proc *, void *, register_t *);
1281 #endif
1282 int	compat_13_sys_sigprocmask(struct proc *, void *, register_t *);
1283 int	sys___getlogin(struct proc *, void *, register_t *);
1284 int	sys_setlogin(struct proc *, void *, register_t *);
1285 int	sys_acct(struct proc *, void *, register_t *);
1286 int	compat_13_sys_sigpending(struct proc *, void *, register_t *);
1287 int	compat_13_sys_sigaltstack(struct proc *, void *, register_t *);
1288 int	sys_ioctl(struct proc *, void *, register_t *);
1289 int	compat_12_sys_reboot(struct proc *, void *, register_t *);
1290 int	sys_revoke(struct proc *, void *, register_t *);
1291 int	sys_symlink(struct proc *, void *, register_t *);
1292 int	sys_readlink(struct proc *, void *, register_t *);
1293 int	sys_execve(struct proc *, void *, register_t *);
1294 int	sys_umask(struct proc *, void *, register_t *);
1295 int	sys_chroot(struct proc *, void *, register_t *);
1296 int	compat_43_sys_fstat(struct proc *, void *, register_t *);
1297 int	compat_43_sys_getkerninfo(struct proc *, void *, register_t *);
1298 int	compat_43_sys_getpagesize(struct proc *, void *, register_t *);
1299 int	compat_12_sys_msync(struct proc *, void *, register_t *);
1300 int	sys_vfork(struct proc *, void *, register_t *);
1301 int	sys_sbrk(struct proc *, void *, register_t *);
1302 int	sys_sstk(struct proc *, void *, register_t *);
1303 int	compat_43_sys_mmap(struct proc *, void *, register_t *);
1304 int	sys_ovadvise(struct proc *, void *, register_t *);
1305 int	sys_munmap(struct proc *, void *, register_t *);
1306 int	sys_mprotect(struct proc *, void *, register_t *);
1307 int	sys_madvise(struct proc *, void *, register_t *);
1308 int	sys_mincore(struct proc *, void *, register_t *);
1309 int	sys_getgroups(struct proc *, void *, register_t *);
1310 int	sys_setgroups(struct proc *, void *, register_t *);
1311 int	sys_getpgrp(struct proc *, void *, register_t *);
1312 int	sys_setpgid(struct proc *, void *, register_t *);
1313 int	sys_setitimer(struct proc *, void *, register_t *);
1314 int	compat_43_sys_wait(struct proc *, void *, register_t *);
1315 int	compat_12_sys_swapon(struct proc *, void *, register_t *);
1316 int	sys_getitimer(struct proc *, void *, register_t *);
1317 int	compat_43_sys_gethostname(struct proc *, void *, register_t *);
1318 int	compat_43_sys_sethostname(struct proc *, void *, register_t *);
1319 int	compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
1320 int	sys_dup2(struct proc *, void *, register_t *);
1321 int	sys_fcntl(struct proc *, void *, register_t *);
1322 int	sys_select(struct proc *, void *, register_t *);
1323 int	sys_fsync(struct proc *, void *, register_t *);
1324 int	sys_setpriority(struct proc *, void *, register_t *);
1325 int	sys_socket(struct proc *, void *, register_t *);
1326 int	sys_connect(struct proc *, void *, register_t *);
1327 int	compat_43_sys_accept(struct proc *, void *, register_t *);
1328 int	sys_getpriority(struct proc *, void *, register_t *);
1329 int	compat_43_sys_send(struct proc *, void *, register_t *);
1330 int	compat_43_sys_recv(struct proc *, void *, register_t *);
1331 int	compat_13_sys_sigreturn(struct proc *, void *, register_t *);
1332 int	sys_bind(struct proc *, void *, register_t *);
1333 int	sys_setsockopt(struct proc *, void *, register_t *);
1334 int	sys_listen(struct proc *, void *, register_t *);
1335 int	compat_43_sys_sigvec(struct proc *, void *, register_t *);
1336 int	compat_43_sys_sigblock(struct proc *, void *, register_t *);
1337 int	compat_43_sys_sigsetmask(struct proc *, void *, register_t *);
1338 int	compat_13_sys_sigsuspend(struct proc *, void *, register_t *);
1339 int	compat_43_sys_sigstack(struct proc *, void *, register_t *);
1340 int	compat_43_sys_recvmsg(struct proc *, void *, register_t *);
1341 int	compat_43_sys_sendmsg(struct proc *, void *, register_t *);
1342 int	sys_gettimeofday(struct proc *, void *, register_t *);
1343 int	sys_getrusage(struct proc *, void *, register_t *);
1344 int	sys_getsockopt(struct proc *, void *, register_t *);
1345 int	sys_readv(struct proc *, void *, register_t *);
1346 int	sys_writev(struct proc *, void *, register_t *);
1347 int	sys_settimeofday(struct proc *, void *, register_t *);
1348 int	sys_fchown(struct proc *, void *, register_t *);
1349 int	sys_fchmod(struct proc *, void *, register_t *);
1350 int	compat_43_sys_recvfrom(struct proc *, void *, register_t *);
1351 int	sys_setreuid(struct proc *, void *, register_t *);
1352 int	sys_setregid(struct proc *, void *, register_t *);
1353 int	sys_rename(struct proc *, void *, register_t *);
1354 int	compat_43_sys_truncate(struct proc *, void *, register_t *);
1355 int	compat_43_sys_ftruncate(struct proc *, void *, register_t *);
1356 int	sys_flock(struct proc *, void *, register_t *);
1357 int	sys_mkfifo(struct proc *, void *, register_t *);
1358 int	sys_sendto(struct proc *, void *, register_t *);
1359 int	sys_shutdown(struct proc *, void *, register_t *);
1360 int	sys_socketpair(struct proc *, void *, register_t *);
1361 int	sys_mkdir(struct proc *, void *, register_t *);
1362 int	sys_rmdir(struct proc *, void *, register_t *);
1363 int	sys_utimes(struct proc *, void *, register_t *);
1364 int	sys_adjtime(struct proc *, void *, register_t *);
1365 int	compat_43_sys_getpeername(struct proc *, void *, register_t *);
1366 int	compat_43_sys_gethostid(struct proc *, void *, register_t *);
1367 int	compat_43_sys_sethostid(struct proc *, void *, register_t *);
1368 int	compat_43_sys_getrlimit(struct proc *, void *, register_t *);
1369 int	compat_43_sys_setrlimit(struct proc *, void *, register_t *);
1370 int	compat_43_sys_killpg(struct proc *, void *, register_t *);
1371 int	sys_setsid(struct proc *, void *, register_t *);
1372 int	sys_quotactl(struct proc *, void *, register_t *);
1373 int	compat_43_sys_quota(struct proc *, void *, register_t *);
1374 int	compat_43_sys_getsockname(struct proc *, void *, register_t *);
1375 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
1376 int	sys_nfssvc(struct proc *, void *, register_t *);
1377 #else
1378 #endif
1379 int	compat_43_sys_getdirentries(struct proc *, void *, register_t *);
1380 int	sys_statfs(struct proc *, void *, register_t *);
1381 int	sys_fstatfs(struct proc *, void *, register_t *);
1382 int	sys_getfh(struct proc *, void *, register_t *);
1383 int	compat_09_sys_getdomainname(struct proc *, void *, register_t *);
1384 int	compat_09_sys_setdomainname(struct proc *, void *, register_t *);
1385 int	compat_09_sys_uname(struct proc *, void *, register_t *);
1386 int	sys_sysarch(struct proc *, void *, register_t *);
1387 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
1388 int	compat_10_sys_semsys(struct proc *, void *, register_t *);
1389 #else
1390 #endif
1391 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
1392 int	compat_10_sys_msgsys(struct proc *, void *, register_t *);
1393 #else
1394 #endif
1395 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
1396 int	compat_10_sys_shmsys(struct proc *, void *, register_t *);
1397 #else
1398 #endif
1399 int	sys_pread(struct proc *, void *, register_t *);
1400 int	sys_pwrite(struct proc *, void *, register_t *);
1401 int	sys_ntp_gettime(struct proc *, void *, register_t *);
1402 #if defined(NTP) || !defined(_KERNEL)
1403 int	sys_ntp_adjtime(struct proc *, void *, register_t *);
1404 #else
1405 #endif
1406 int	sys_setgid(struct proc *, void *, register_t *);
1407 int	sys_setegid(struct proc *, void *, register_t *);
1408 int	sys_seteuid(struct proc *, void *, register_t *);
1409 #if defined(LFS) || !defined(_KERNEL)
1410 int	sys_lfs_bmapv(struct proc *, void *, register_t *);
1411 int	sys_lfs_markv(struct proc *, void *, register_t *);
1412 int	sys_lfs_segclean(struct proc *, void *, register_t *);
1413 int	sys_lfs_segwait(struct proc *, void *, register_t *);
1414 #else
1415 #endif
1416 int	compat_12_sys_stat(struct proc *, void *, register_t *);
1417 int	compat_12_sys_fstat(struct proc *, void *, register_t *);
1418 int	compat_12_sys_lstat(struct proc *, void *, register_t *);
1419 int	sys_pathconf(struct proc *, void *, register_t *);
1420 int	sys_fpathconf(struct proc *, void *, register_t *);
1421 int	sys_getrlimit(struct proc *, void *, register_t *);
1422 int	sys_setrlimit(struct proc *, void *, register_t *);
1423 int	compat_12_sys_getdirentries(struct proc *, void *, register_t *);
1424 int	sys_mmap(struct proc *, void *, register_t *);
1425 int	sys_lseek(struct proc *, void *, register_t *);
1426 int	sys_truncate(struct proc *, void *, register_t *);
1427 int	sys_ftruncate(struct proc *, void *, register_t *);
1428 int	sys___sysctl(struct proc *, void *, register_t *);
1429 int	sys_mlock(struct proc *, void *, register_t *);
1430 int	sys_munlock(struct proc *, void *, register_t *);
1431 int	sys_undelete(struct proc *, void *, register_t *);
1432 int	sys_futimes(struct proc *, void *, register_t *);
1433 int	sys_getpgid(struct proc *, void *, register_t *);
1434 int	sys_reboot(struct proc *, void *, register_t *);
1435 int	sys_poll(struct proc *, void *, register_t *);
1436 #if defined(LKM) || !defined(_KERNEL)
1437 int	sys_lkmnosys(struct proc *, void *, register_t *);
1438 int	sys_lkmnosys(struct proc *, void *, register_t *);
1439 int	sys_lkmnosys(struct proc *, void *, register_t *);
1440 int	sys_lkmnosys(struct proc *, void *, register_t *);
1441 int	sys_lkmnosys(struct proc *, void *, register_t *);
1442 int	sys_lkmnosys(struct proc *, void *, register_t *);
1443 int	sys_lkmnosys(struct proc *, void *, register_t *);
1444 int	sys_lkmnosys(struct proc *, void *, register_t *);
1445 int	sys_lkmnosys(struct proc *, void *, register_t *);
1446 int	sys_lkmnosys(struct proc *, void *, register_t *);
1447 #else	/* !LKM */
1448 #endif	/* !LKM */
1449 #if defined(SYSVSEM) || !defined(_KERNEL)
1450 int	compat_14_sys___semctl(struct proc *, void *, register_t *);
1451 int	sys_semget(struct proc *, void *, register_t *);
1452 int	sys_semop(struct proc *, void *, register_t *);
1453 int	sys_semconfig(struct proc *, void *, register_t *);
1454 #else
1455 #endif
1456 #if defined(SYSVMSG) || !defined(_KERNEL)
1457 int	compat_14_sys_msgctl(struct proc *, void *, register_t *);
1458 int	sys_msgget(struct proc *, void *, register_t *);
1459 int	sys_msgsnd(struct proc *, void *, register_t *);
1460 int	sys_msgrcv(struct proc *, void *, register_t *);
1461 #else
1462 #endif
1463 #if defined(SYSVSHM) || !defined(_KERNEL)
1464 int	sys_shmat(struct proc *, void *, register_t *);
1465 int	compat_14_sys_shmctl(struct proc *, void *, register_t *);
1466 int	sys_shmdt(struct proc *, void *, register_t *);
1467 int	sys_shmget(struct proc *, void *, register_t *);
1468 #else
1469 #endif
1470 int	sys_clock_gettime(struct proc *, void *, register_t *);
1471 int	sys_clock_settime(struct proc *, void *, register_t *);
1472 int	sys_clock_getres(struct proc *, void *, register_t *);
1473 int	sys_nanosleep(struct proc *, void *, register_t *);
1474 int	sys_fdatasync(struct proc *, void *, register_t *);
1475 int	sys_mlockall(struct proc *, void *, register_t *);
1476 int	sys_munlockall(struct proc *, void *, register_t *);
1477 int	sys___posix_rename(struct proc *, void *, register_t *);
1478 int	sys_swapctl(struct proc *, void *, register_t *);
1479 int	sys_getdents(struct proc *, void *, register_t *);
1480 int	sys_minherit(struct proc *, void *, register_t *);
1481 int	sys_lchmod(struct proc *, void *, register_t *);
1482 int	sys_lchown(struct proc *, void *, register_t *);
1483 int	sys_lutimes(struct proc *, void *, register_t *);
1484 int	sys___msync13(struct proc *, void *, register_t *);
1485 int	sys___stat13(struct proc *, void *, register_t *);
1486 int	sys___fstat13(struct proc *, void *, register_t *);
1487 int	sys___lstat13(struct proc *, void *, register_t *);
1488 int	sys___sigaltstack14(struct proc *, void *, register_t *);
1489 int	sys___vfork14(struct proc *, void *, register_t *);
1490 int	sys___posix_chown(struct proc *, void *, register_t *);
1491 int	sys___posix_fchown(struct proc *, void *, register_t *);
1492 int	sys___posix_lchown(struct proc *, void *, register_t *);
1493 int	sys_getsid(struct proc *, void *, register_t *);
1494 #if defined(KTRACE) || !defined(_KERNEL)
1495 int	sys_fktrace(struct proc *, void *, register_t *);
1496 #else
1497 #endif
1498 int	sys_preadv(struct proc *, void *, register_t *);
1499 int	sys_pwritev(struct proc *, void *, register_t *);
1500 int	sys___sigaction14(struct proc *, void *, register_t *);
1501 int	sys___sigpending14(struct proc *, void *, register_t *);
1502 int	sys___sigprocmask14(struct proc *, void *, register_t *);
1503 int	sys___sigsuspend14(struct proc *, void *, register_t *);
1504 int	sys___sigreturn14(struct proc *, void *, register_t *);
1505 int	sys___getcwd(struct proc *, void *, register_t *);
1506 int	sys_fchroot(struct proc *, void *, register_t *);
1507 int	sys_fhopen(struct proc *, void *, register_t *);
1508 int	sys_fhstat(struct proc *, void *, register_t *);
1509 int	sys_fhstatfs(struct proc *, void *, register_t *);
1510 #if defined(SYSVSEM) || !defined(_KERNEL)
1511 int	sys_____semctl13(struct proc *, void *, register_t *);
1512 #else
1513 #endif
1514 #if defined(SYSVMSG) || !defined(_KERNEL)
1515 int	sys___msgctl13(struct proc *, void *, register_t *);
1516 #else
1517 #endif
1518 #if defined(SYSVSHM) || !defined(_KERNEL)
1519 int	sys___shmctl13(struct proc *, void *, register_t *);
1520 #else
1521 #endif
1522 int	sys_lchflags(struct proc *, void *, register_t *);
1523 int	sys_issetugid(struct proc *, void *, register_t *);
1524 int	sys_utrace(struct proc *, void *, register_t *);
1525 #endif /* _SYS__SYSCALLARGS_H_ */
1526