syscallargs.h revision 1.177
1/* $NetBSD: syscallargs.h,v 1.177 2008/01/02 11:57:29 ad 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.182 2008/01/02 11:57:13 ad Exp 8 */ 9 10#ifndef _SYS_SYSCALLARGS_H_ 11#define _SYS_SYSCALLARGS_H_ 12 13#define SYS_MAXSYSARGS 8 14 15#undef syscallarg 16#define syscallarg(x) \ 17 union { \ 18 register_t pad; \ 19 struct { x datum; } le; \ 20 struct { /* LINTED zero array dimension */ \ 21 int8_t pad[ /* CONSTCOND */ \ 22 (sizeof (register_t) < sizeof (x)) \ 23 ? 0 \ 24 : sizeof (register_t) - sizeof (x)]; \ 25 x datum; \ 26 } be; \ 27 } 28 29#undef check_syscall_args 30#define check_syscall_args(call) \ 31 typedef char call##_check_args[sizeof (struct call##_args) \ 32 <= SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1]; 33 34struct sys_syscall_args { 35 syscallarg(int) code; 36 syscallarg(register_t) args[SYS_MAXSYSARGS]; 37}; 38 39struct sys_exit_args { 40 syscallarg(int) rval; 41}; 42check_syscall_args(sys_exit) 43 44struct sys_read_args { 45 syscallarg(int) fd; 46 syscallarg(void *) buf; 47 syscallarg(size_t) nbyte; 48}; 49check_syscall_args(sys_read) 50 51struct sys_write_args { 52 syscallarg(int) fd; 53 syscallarg(const void *) buf; 54 syscallarg(size_t) nbyte; 55}; 56check_syscall_args(sys_write) 57 58struct sys_open_args { 59 syscallarg(const char *) path; 60 syscallarg(int) flags; 61 syscallarg(mode_t) mode; 62}; 63check_syscall_args(sys_open) 64 65struct sys_close_args { 66 syscallarg(int) fd; 67}; 68check_syscall_args(sys_close) 69 70struct sys_wait4_args { 71 syscallarg(int) pid; 72 syscallarg(int *) status; 73 syscallarg(int) options; 74 syscallarg(struct rusage *) rusage; 75}; 76check_syscall_args(sys_wait4) 77 78struct compat_43_sys_creat_args { 79 syscallarg(const char *) path; 80 syscallarg(mode_t) mode; 81}; 82check_syscall_args(compat_43_sys_creat) 83 84struct sys_link_args { 85 syscallarg(const char *) path; 86 syscallarg(const char *) link; 87}; 88check_syscall_args(sys_link) 89 90struct sys_unlink_args { 91 syscallarg(const char *) path; 92}; 93check_syscall_args(sys_unlink) 94 95struct sys_chdir_args { 96 syscallarg(const char *) path; 97}; 98check_syscall_args(sys_chdir) 99 100struct sys_fchdir_args { 101 syscallarg(int) fd; 102}; 103check_syscall_args(sys_fchdir) 104 105struct sys_mknod_args { 106 syscallarg(const char *) path; 107 syscallarg(mode_t) mode; 108 syscallarg(dev_t) dev; 109}; 110check_syscall_args(sys_mknod) 111 112struct sys_chmod_args { 113 syscallarg(const char *) path; 114 syscallarg(mode_t) mode; 115}; 116check_syscall_args(sys_chmod) 117 118struct sys_chown_args { 119 syscallarg(const char *) path; 120 syscallarg(uid_t) uid; 121 syscallarg(gid_t) gid; 122}; 123check_syscall_args(sys_chown) 124 125struct sys_obreak_args { 126 syscallarg(char *) nsize; 127}; 128check_syscall_args(sys_obreak) 129 130struct compat_20_sys_getfsstat_args { 131 syscallarg(struct statfs12 *) buf; 132 syscallarg(long) bufsize; 133 syscallarg(int) flags; 134}; 135check_syscall_args(compat_20_sys_getfsstat) 136 137struct compat_43_sys_lseek_args { 138 syscallarg(int) fd; 139 syscallarg(long) offset; 140 syscallarg(int) whence; 141}; 142check_syscall_args(compat_43_sys_lseek) 143#ifdef COMPAT_43 144#else 145#endif 146 147struct compat_40_sys_mount_args { 148 syscallarg(const char *) type; 149 syscallarg(const char *) path; 150 syscallarg(int) flags; 151 syscallarg(void *) data; 152}; 153check_syscall_args(compat_40_sys_mount) 154 155struct sys_unmount_args { 156 syscallarg(const char *) path; 157 syscallarg(int) flags; 158}; 159check_syscall_args(sys_unmount) 160 161struct sys_setuid_args { 162 syscallarg(uid_t) uid; 163}; 164check_syscall_args(sys_setuid) 165#ifdef COMPAT_43 166#else 167#endif 168 169struct sys_ptrace_args { 170 syscallarg(int) req; 171 syscallarg(pid_t) pid; 172 syscallarg(void *) addr; 173 syscallarg(int) data; 174}; 175check_syscall_args(sys_ptrace) 176 177struct sys_recvmsg_args { 178 syscallarg(int) s; 179 syscallarg(struct msghdr *) msg; 180 syscallarg(int) flags; 181}; 182check_syscall_args(sys_recvmsg) 183 184struct sys_sendmsg_args { 185 syscallarg(int) s; 186 syscallarg(const struct msghdr *) msg; 187 syscallarg(int) flags; 188}; 189check_syscall_args(sys_sendmsg) 190 191struct sys_recvfrom_args { 192 syscallarg(int) s; 193 syscallarg(void *) buf; 194 syscallarg(size_t) len; 195 syscallarg(int) flags; 196 syscallarg(struct sockaddr *) from; 197 syscallarg(unsigned int *) fromlenaddr; 198}; 199check_syscall_args(sys_recvfrom) 200 201struct sys_accept_args { 202 syscallarg(int) s; 203 syscallarg(struct sockaddr *) name; 204 syscallarg(unsigned int *) anamelen; 205}; 206check_syscall_args(sys_accept) 207 208struct sys_getpeername_args { 209 syscallarg(int) fdes; 210 syscallarg(struct sockaddr *) asa; 211 syscallarg(unsigned int *) alen; 212}; 213check_syscall_args(sys_getpeername) 214 215struct sys_getsockname_args { 216 syscallarg(int) fdes; 217 syscallarg(struct sockaddr *) asa; 218 syscallarg(unsigned int *) alen; 219}; 220check_syscall_args(sys_getsockname) 221 222struct sys_access_args { 223 syscallarg(const char *) path; 224 syscallarg(int) flags; 225}; 226check_syscall_args(sys_access) 227 228struct sys_chflags_args { 229 syscallarg(const char *) path; 230 syscallarg(u_long) flags; 231}; 232check_syscall_args(sys_chflags) 233 234struct sys_fchflags_args { 235 syscallarg(int) fd; 236 syscallarg(u_long) flags; 237}; 238check_syscall_args(sys_fchflags) 239 240struct sys_kill_args { 241 syscallarg(int) pid; 242 syscallarg(int) signum; 243}; 244check_syscall_args(sys_kill) 245 246struct compat_43_sys_stat_args { 247 syscallarg(const char *) path; 248 syscallarg(struct stat43 *) ub; 249}; 250check_syscall_args(compat_43_sys_stat) 251 252struct compat_43_sys_lstat_args { 253 syscallarg(const char *) path; 254 syscallarg(struct stat43 *) ub; 255}; 256check_syscall_args(compat_43_sys_lstat) 257 258struct sys_dup_args { 259 syscallarg(int) fd; 260}; 261check_syscall_args(sys_dup) 262 263struct sys_profil_args { 264 syscallarg(char *) samples; 265 syscallarg(size_t) size; 266 syscallarg(u_long) offset; 267 syscallarg(u_int) scale; 268}; 269check_syscall_args(sys_profil) 270 271struct sys_ktrace_args { 272 syscallarg(const char *) fname; 273 syscallarg(int) ops; 274 syscallarg(int) facs; 275 syscallarg(int) pid; 276}; 277check_syscall_args(sys_ktrace) 278 279struct compat_13_sys_sigaction_args { 280 syscallarg(int) signum; 281 syscallarg(const struct sigaction13 *) nsa; 282 syscallarg(struct sigaction13 *) osa; 283}; 284check_syscall_args(compat_13_sys_sigaction) 285#ifdef COMPAT_43 286#else 287#endif 288 289struct compat_13_sys_sigprocmask_args { 290 syscallarg(int) how; 291 syscallarg(int) mask; 292}; 293check_syscall_args(compat_13_sys_sigprocmask) 294 295struct sys___getlogin_args { 296 syscallarg(char *) namebuf; 297 syscallarg(size_t) namelen; 298}; 299check_syscall_args(sys___getlogin) 300 301struct sys___setlogin_args { 302 syscallarg(const char *) namebuf; 303}; 304check_syscall_args(sys___setlogin) 305 306struct sys_acct_args { 307 syscallarg(const char *) path; 308}; 309check_syscall_args(sys_acct) 310 311struct compat_13_sys_sigaltstack_args { 312 syscallarg(const struct sigaltstack13 *) nss; 313 syscallarg(struct sigaltstack13 *) oss; 314}; 315check_syscall_args(compat_13_sys_sigaltstack) 316 317struct sys_ioctl_args { 318 syscallarg(int) fd; 319 syscallarg(u_long) com; 320 syscallarg(void *) data; 321}; 322check_syscall_args(sys_ioctl) 323 324struct compat_12_sys_reboot_args { 325 syscallarg(int) opt; 326}; 327check_syscall_args(compat_12_sys_reboot) 328 329struct sys_revoke_args { 330 syscallarg(const char *) path; 331}; 332check_syscall_args(sys_revoke) 333 334struct sys_symlink_args { 335 syscallarg(const char *) path; 336 syscallarg(const char *) link; 337}; 338check_syscall_args(sys_symlink) 339 340struct sys_readlink_args { 341 syscallarg(const char *) path; 342 syscallarg(char *) buf; 343 syscallarg(size_t) count; 344}; 345check_syscall_args(sys_readlink) 346 347struct sys_execve_args { 348 syscallarg(const char *) path; 349 syscallarg(char *const *) argp; 350 syscallarg(char *const *) envp; 351}; 352check_syscall_args(sys_execve) 353 354struct sys_umask_args { 355 syscallarg(mode_t) newmask; 356}; 357check_syscall_args(sys_umask) 358 359struct sys_chroot_args { 360 syscallarg(const char *) path; 361}; 362check_syscall_args(sys_chroot) 363 364struct compat_43_sys_fstat_args { 365 syscallarg(int) fd; 366 syscallarg(struct stat43 *) sb; 367}; 368check_syscall_args(compat_43_sys_fstat) 369 370struct compat_43_sys_getkerninfo_args { 371 syscallarg(int) op; 372 syscallarg(char *) where; 373 syscallarg(int *) size; 374 syscallarg(int) arg; 375}; 376check_syscall_args(compat_43_sys_getkerninfo) 377 378struct compat_12_sys_msync_args { 379 syscallarg(void *) addr; 380 syscallarg(size_t) len; 381}; 382check_syscall_args(compat_12_sys_msync) 383 384struct sys_sbrk_args { 385 syscallarg(intptr_t) incr; 386}; 387check_syscall_args(sys_sbrk) 388 389struct sys_sstk_args { 390 syscallarg(int) incr; 391}; 392check_syscall_args(sys_sstk) 393 394struct compat_43_sys_mmap_args { 395 syscallarg(void *) addr; 396 syscallarg(size_t) len; 397 syscallarg(int) prot; 398 syscallarg(int) flags; 399 syscallarg(int) fd; 400 syscallarg(long) pos; 401}; 402check_syscall_args(compat_43_sys_mmap) 403 404struct sys_ovadvise_args { 405 syscallarg(int) anom; 406}; 407check_syscall_args(sys_ovadvise) 408 409struct sys_munmap_args { 410 syscallarg(void *) addr; 411 syscallarg(size_t) len; 412}; 413check_syscall_args(sys_munmap) 414 415struct sys_mprotect_args { 416 syscallarg(void *) addr; 417 syscallarg(size_t) len; 418 syscallarg(int) prot; 419}; 420check_syscall_args(sys_mprotect) 421 422struct sys_madvise_args { 423 syscallarg(void *) addr; 424 syscallarg(size_t) len; 425 syscallarg(int) behav; 426}; 427check_syscall_args(sys_madvise) 428 429struct sys_mincore_args { 430 syscallarg(void *) addr; 431 syscallarg(size_t) len; 432 syscallarg(char *) vec; 433}; 434check_syscall_args(sys_mincore) 435 436struct sys_getgroups_args { 437 syscallarg(int) gidsetsize; 438 syscallarg(gid_t *) gidset; 439}; 440check_syscall_args(sys_getgroups) 441 442struct sys_setgroups_args { 443 syscallarg(int) gidsetsize; 444 syscallarg(const gid_t *) gidset; 445}; 446check_syscall_args(sys_setgroups) 447 448struct sys_setpgid_args { 449 syscallarg(int) pid; 450 syscallarg(int) pgid; 451}; 452check_syscall_args(sys_setpgid) 453 454struct sys_setitimer_args { 455 syscallarg(int) which; 456 syscallarg(const struct itimerval *) itv; 457 syscallarg(struct itimerval *) oitv; 458}; 459check_syscall_args(sys_setitimer) 460 461struct compat_12_sys_swapon_args { 462 syscallarg(const char *) name; 463}; 464check_syscall_args(compat_12_sys_swapon) 465 466struct sys_getitimer_args { 467 syscallarg(int) which; 468 syscallarg(struct itimerval *) itv; 469}; 470check_syscall_args(sys_getitimer) 471 472struct compat_43_sys_gethostname_args { 473 syscallarg(char *) hostname; 474 syscallarg(u_int) len; 475}; 476check_syscall_args(compat_43_sys_gethostname) 477 478struct compat_43_sys_sethostname_args { 479 syscallarg(char *) hostname; 480 syscallarg(u_int) len; 481}; 482check_syscall_args(compat_43_sys_sethostname) 483 484struct sys_dup2_args { 485 syscallarg(int) from; 486 syscallarg(int) to; 487}; 488check_syscall_args(sys_dup2) 489 490struct sys_fcntl_args { 491 syscallarg(int) fd; 492 syscallarg(int) cmd; 493 syscallarg(void *) arg; 494}; 495check_syscall_args(sys_fcntl) 496 497struct sys_select_args { 498 syscallarg(int) nd; 499 syscallarg(fd_set *) in; 500 syscallarg(fd_set *) ou; 501 syscallarg(fd_set *) ex; 502 syscallarg(struct timeval *) tv; 503}; 504check_syscall_args(sys_select) 505 506struct sys_fsync_args { 507 syscallarg(int) fd; 508}; 509check_syscall_args(sys_fsync) 510 511struct sys_setpriority_args { 512 syscallarg(int) which; 513 syscallarg(id_t) who; 514 syscallarg(int) prio; 515}; 516check_syscall_args(sys_setpriority) 517 518struct compat_30_sys_socket_args { 519 syscallarg(int) domain; 520 syscallarg(int) type; 521 syscallarg(int) protocol; 522}; 523check_syscall_args(compat_30_sys_socket) 524 525struct sys_connect_args { 526 syscallarg(int) s; 527 syscallarg(const struct sockaddr *) name; 528 syscallarg(unsigned int) namelen; 529}; 530check_syscall_args(sys_connect) 531 532struct compat_43_sys_accept_args { 533 syscallarg(int) s; 534 syscallarg(void *) name; 535 syscallarg(int *) anamelen; 536}; 537check_syscall_args(compat_43_sys_accept) 538 539struct sys_getpriority_args { 540 syscallarg(int) which; 541 syscallarg(id_t) who; 542}; 543check_syscall_args(sys_getpriority) 544 545struct compat_43_sys_send_args { 546 syscallarg(int) s; 547 syscallarg(void *) buf; 548 syscallarg(int) len; 549 syscallarg(int) flags; 550}; 551check_syscall_args(compat_43_sys_send) 552 553struct compat_43_sys_recv_args { 554 syscallarg(int) s; 555 syscallarg(void *) buf; 556 syscallarg(int) len; 557 syscallarg(int) flags; 558}; 559check_syscall_args(compat_43_sys_recv) 560 561struct compat_13_sys_sigreturn_args { 562 syscallarg(struct sigcontext13 *) sigcntxp; 563}; 564check_syscall_args(compat_13_sys_sigreturn) 565 566struct sys_bind_args { 567 syscallarg(int) s; 568 syscallarg(const struct sockaddr *) name; 569 syscallarg(unsigned int) namelen; 570}; 571check_syscall_args(sys_bind) 572 573struct sys_setsockopt_args { 574 syscallarg(int) s; 575 syscallarg(int) level; 576 syscallarg(int) name; 577 syscallarg(const void *) val; 578 syscallarg(unsigned int) valsize; 579}; 580check_syscall_args(sys_setsockopt) 581 582struct sys_listen_args { 583 syscallarg(int) s; 584 syscallarg(int) backlog; 585}; 586check_syscall_args(sys_listen) 587 588struct compat_43_sys_sigvec_args { 589 syscallarg(int) signum; 590 syscallarg(struct sigvec *) nsv; 591 syscallarg(struct sigvec *) osv; 592}; 593check_syscall_args(compat_43_sys_sigvec) 594 595struct compat_43_sys_sigblock_args { 596 syscallarg(int) mask; 597}; 598check_syscall_args(compat_43_sys_sigblock) 599 600struct compat_43_sys_sigsetmask_args { 601 syscallarg(int) mask; 602}; 603check_syscall_args(compat_43_sys_sigsetmask) 604 605struct compat_13_sys_sigsuspend_args { 606 syscallarg(int) mask; 607}; 608check_syscall_args(compat_13_sys_sigsuspend) 609 610struct compat_43_sys_sigstack_args { 611 syscallarg(struct sigstack *) nss; 612 syscallarg(struct sigstack *) oss; 613}; 614check_syscall_args(compat_43_sys_sigstack) 615 616struct compat_43_sys_recvmsg_args { 617 syscallarg(int) s; 618 syscallarg(struct omsghdr *) msg; 619 syscallarg(int) flags; 620}; 621check_syscall_args(compat_43_sys_recvmsg) 622 623struct compat_43_sys_sendmsg_args { 624 syscallarg(int) s; 625 syscallarg(void *) msg; 626 syscallarg(int) flags; 627}; 628check_syscall_args(compat_43_sys_sendmsg) 629 630struct sys_gettimeofday_args { 631 syscallarg(struct timeval *) tp; 632 syscallarg(void *) tzp; 633}; 634check_syscall_args(sys_gettimeofday) 635 636struct sys_getrusage_args { 637 syscallarg(int) who; 638 syscallarg(struct rusage *) rusage; 639}; 640check_syscall_args(sys_getrusage) 641 642struct sys_getsockopt_args { 643 syscallarg(int) s; 644 syscallarg(int) level; 645 syscallarg(int) name; 646 syscallarg(void *) val; 647 syscallarg(unsigned int *) avalsize; 648}; 649check_syscall_args(sys_getsockopt) 650 651struct sys_readv_args { 652 syscallarg(int) fd; 653 syscallarg(const struct iovec *) iovp; 654 syscallarg(int) iovcnt; 655}; 656check_syscall_args(sys_readv) 657 658struct sys_writev_args { 659 syscallarg(int) fd; 660 syscallarg(const struct iovec *) iovp; 661 syscallarg(int) iovcnt; 662}; 663check_syscall_args(sys_writev) 664 665struct sys_settimeofday_args { 666 syscallarg(const struct timeval *) tv; 667 syscallarg(const void *) tzp; 668}; 669check_syscall_args(sys_settimeofday) 670 671struct sys_fchown_args { 672 syscallarg(int) fd; 673 syscallarg(uid_t) uid; 674 syscallarg(gid_t) gid; 675}; 676check_syscall_args(sys_fchown) 677 678struct sys_fchmod_args { 679 syscallarg(int) fd; 680 syscallarg(mode_t) mode; 681}; 682check_syscall_args(sys_fchmod) 683 684struct compat_43_sys_recvfrom_args { 685 syscallarg(int) s; 686 syscallarg(void *) buf; 687 syscallarg(size_t) len; 688 syscallarg(int) flags; 689 syscallarg(void *) from; 690 syscallarg(int *) fromlenaddr; 691}; 692check_syscall_args(compat_43_sys_recvfrom) 693 694struct sys_setreuid_args { 695 syscallarg(uid_t) ruid; 696 syscallarg(uid_t) euid; 697}; 698check_syscall_args(sys_setreuid) 699 700struct sys_setregid_args { 701 syscallarg(gid_t) rgid; 702 syscallarg(gid_t) egid; 703}; 704check_syscall_args(sys_setregid) 705 706struct sys_rename_args { 707 syscallarg(const char *) from; 708 syscallarg(const char *) to; 709}; 710check_syscall_args(sys_rename) 711 712struct compat_43_sys_truncate_args { 713 syscallarg(const char *) path; 714 syscallarg(long) length; 715}; 716check_syscall_args(compat_43_sys_truncate) 717 718struct compat_43_sys_ftruncate_args { 719 syscallarg(int) fd; 720 syscallarg(long) length; 721}; 722check_syscall_args(compat_43_sys_ftruncate) 723 724struct sys_flock_args { 725 syscallarg(int) fd; 726 syscallarg(int) how; 727}; 728check_syscall_args(sys_flock) 729 730struct sys_mkfifo_args { 731 syscallarg(const char *) path; 732 syscallarg(mode_t) mode; 733}; 734check_syscall_args(sys_mkfifo) 735 736struct sys_sendto_args { 737 syscallarg(int) s; 738 syscallarg(const void *) buf; 739 syscallarg(size_t) len; 740 syscallarg(int) flags; 741 syscallarg(const struct sockaddr *) to; 742 syscallarg(unsigned int) tolen; 743}; 744check_syscall_args(sys_sendto) 745 746struct sys_shutdown_args { 747 syscallarg(int) s; 748 syscallarg(int) how; 749}; 750check_syscall_args(sys_shutdown) 751 752struct sys_socketpair_args { 753 syscallarg(int) domain; 754 syscallarg(int) type; 755 syscallarg(int) protocol; 756 syscallarg(int *) rsv; 757}; 758check_syscall_args(sys_socketpair) 759 760struct sys_mkdir_args { 761 syscallarg(const char *) path; 762 syscallarg(mode_t) mode; 763}; 764check_syscall_args(sys_mkdir) 765 766struct sys_rmdir_args { 767 syscallarg(const char *) path; 768}; 769check_syscall_args(sys_rmdir) 770 771struct sys_utimes_args { 772 syscallarg(const char *) path; 773 syscallarg(const struct timeval *) tptr; 774}; 775check_syscall_args(sys_utimes) 776 777struct sys_adjtime_args { 778 syscallarg(const struct timeval *) delta; 779 syscallarg(struct timeval *) olddelta; 780}; 781check_syscall_args(sys_adjtime) 782 783struct compat_43_sys_getpeername_args { 784 syscallarg(int) fdes; 785 syscallarg(void *) asa; 786 syscallarg(int *) alen; 787}; 788check_syscall_args(compat_43_sys_getpeername) 789 790struct compat_43_sys_sethostid_args { 791 syscallarg(int32_t) hostid; 792}; 793check_syscall_args(compat_43_sys_sethostid) 794 795struct compat_43_sys_getrlimit_args { 796 syscallarg(int) which; 797 syscallarg(struct orlimit *) rlp; 798}; 799check_syscall_args(compat_43_sys_getrlimit) 800 801struct compat_43_sys_setrlimit_args { 802 syscallarg(int) which; 803 syscallarg(const struct orlimit *) rlp; 804}; 805check_syscall_args(compat_43_sys_setrlimit) 806 807struct compat_43_sys_killpg_args { 808 syscallarg(int) pgid; 809 syscallarg(int) signum; 810}; 811check_syscall_args(compat_43_sys_killpg) 812 813struct sys_quotactl_args { 814 syscallarg(const char *) path; 815 syscallarg(int) cmd; 816 syscallarg(int) uid; 817 syscallarg(void *) arg; 818}; 819check_syscall_args(sys_quotactl) 820 821struct compat_43_sys_getsockname_args { 822 syscallarg(int) fdec; 823 syscallarg(void *) asa; 824 syscallarg(int *) alen; 825}; 826check_syscall_args(compat_43_sys_getsockname) 827#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 828 829struct sys_nfssvc_args { 830 syscallarg(int) flag; 831 syscallarg(void *) argp; 832}; 833check_syscall_args(sys_nfssvc) 834#else 835#endif 836 837struct compat_43_sys_getdirentries_args { 838 syscallarg(int) fd; 839 syscallarg(char *) buf; 840 syscallarg(u_int) count; 841 syscallarg(long *) basep; 842}; 843check_syscall_args(compat_43_sys_getdirentries) 844 845struct compat_20_sys_statfs_args { 846 syscallarg(const char *) path; 847 syscallarg(struct statfs12 *) buf; 848}; 849check_syscall_args(compat_20_sys_statfs) 850 851struct compat_20_sys_fstatfs_args { 852 syscallarg(int) fd; 853 syscallarg(struct statfs12 *) buf; 854}; 855check_syscall_args(compat_20_sys_fstatfs) 856 857struct compat_30_sys_getfh_args { 858 syscallarg(const char *) fname; 859 syscallarg(struct compat_30_fhandle *) fhp; 860}; 861check_syscall_args(compat_30_sys_getfh) 862 863struct compat_09_sys_getdomainname_args { 864 syscallarg(char *) domainname; 865 syscallarg(int) len; 866}; 867check_syscall_args(compat_09_sys_getdomainname) 868 869struct compat_09_sys_setdomainname_args { 870 syscallarg(char *) domainname; 871 syscallarg(int) len; 872}; 873check_syscall_args(compat_09_sys_setdomainname) 874 875struct compat_09_sys_uname_args { 876 syscallarg(struct outsname *) name; 877}; 878check_syscall_args(compat_09_sys_uname) 879 880struct sys_sysarch_args { 881 syscallarg(int) op; 882 syscallarg(void *) parms; 883}; 884check_syscall_args(sys_sysarch) 885#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) 886 887struct compat_10_sys_semsys_args { 888 syscallarg(int) which; 889 syscallarg(int) a2; 890 syscallarg(int) a3; 891 syscallarg(int) a4; 892 syscallarg(int) a5; 893}; 894check_syscall_args(compat_10_sys_semsys) 895#else 896#endif 897#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) 898 899struct compat_10_sys_msgsys_args { 900 syscallarg(int) which; 901 syscallarg(int) a2; 902 syscallarg(int) a3; 903 syscallarg(int) a4; 904 syscallarg(int) a5; 905 syscallarg(int) a6; 906}; 907check_syscall_args(compat_10_sys_msgsys) 908#else 909#endif 910#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) 911 912struct compat_10_sys_shmsys_args { 913 syscallarg(int) which; 914 syscallarg(int) a2; 915 syscallarg(int) a3; 916 syscallarg(int) a4; 917}; 918check_syscall_args(compat_10_sys_shmsys) 919#else 920#endif 921 922struct sys_pread_args { 923 syscallarg(int) fd; 924 syscallarg(void *) buf; 925 syscallarg(size_t) nbyte; 926 syscallarg(int) pad; 927 syscallarg(off_t) offset; 928}; 929check_syscall_args(sys_pread) 930 931struct sys_pwrite_args { 932 syscallarg(int) fd; 933 syscallarg(const void *) buf; 934 syscallarg(size_t) nbyte; 935 syscallarg(int) pad; 936 syscallarg(off_t) offset; 937}; 938check_syscall_args(sys_pwrite) 939 940struct compat_30_sys_ntp_gettime_args { 941 syscallarg(struct ntptimeval30 *) ntvp; 942}; 943check_syscall_args(compat_30_sys_ntp_gettime) 944#if defined(NTP) || !defined(_KERNEL) 945 946struct sys_ntp_adjtime_args { 947 syscallarg(struct timex *) tp; 948}; 949check_syscall_args(sys_ntp_adjtime) 950#else 951#endif 952 953struct sys_setgid_args { 954 syscallarg(gid_t) gid; 955}; 956check_syscall_args(sys_setgid) 957 958struct sys_setegid_args { 959 syscallarg(gid_t) egid; 960}; 961check_syscall_args(sys_setegid) 962 963struct sys_seteuid_args { 964 syscallarg(uid_t) euid; 965}; 966check_syscall_args(sys_seteuid) 967#if defined(LFS) || !defined(_KERNEL) 968 969struct sys_lfs_bmapv_args { 970 syscallarg(fsid_t *) fsidp; 971 syscallarg(struct block_info *) blkiov; 972 syscallarg(int) blkcnt; 973}; 974check_syscall_args(sys_lfs_bmapv) 975 976struct sys_lfs_markv_args { 977 syscallarg(fsid_t *) fsidp; 978 syscallarg(struct block_info *) blkiov; 979 syscallarg(int) blkcnt; 980}; 981check_syscall_args(sys_lfs_markv) 982 983struct sys_lfs_segclean_args { 984 syscallarg(fsid_t *) fsidp; 985 syscallarg(u_long) segment; 986}; 987check_syscall_args(sys_lfs_segclean) 988 989struct sys_lfs_segwait_args { 990 syscallarg(fsid_t *) fsidp; 991 syscallarg(struct timeval *) tv; 992}; 993check_syscall_args(sys_lfs_segwait) 994#else 995#endif 996 997struct compat_12_sys_stat_args { 998 syscallarg(const char *) path; 999 syscallarg(struct stat12 *) ub; 1000}; 1001check_syscall_args(compat_12_sys_stat) 1002 1003struct compat_12_sys_fstat_args { 1004 syscallarg(int) fd; 1005 syscallarg(struct stat12 *) sb; 1006}; 1007check_syscall_args(compat_12_sys_fstat) 1008 1009struct compat_12_sys_lstat_args { 1010 syscallarg(const char *) path; 1011 syscallarg(struct stat12 *) ub; 1012}; 1013check_syscall_args(compat_12_sys_lstat) 1014 1015struct sys_pathconf_args { 1016 syscallarg(const char *) path; 1017 syscallarg(int) name; 1018}; 1019check_syscall_args(sys_pathconf) 1020 1021struct sys_fpathconf_args { 1022 syscallarg(int) fd; 1023 syscallarg(int) name; 1024}; 1025check_syscall_args(sys_fpathconf) 1026 1027struct sys_getrlimit_args { 1028 syscallarg(int) which; 1029 syscallarg(struct rlimit *) rlp; 1030}; 1031check_syscall_args(sys_getrlimit) 1032 1033struct sys_setrlimit_args { 1034 syscallarg(int) which; 1035 syscallarg(const struct rlimit *) rlp; 1036}; 1037check_syscall_args(sys_setrlimit) 1038 1039struct compat_12_sys_getdirentries_args { 1040 syscallarg(int) fd; 1041 syscallarg(char *) buf; 1042 syscallarg(u_int) count; 1043 syscallarg(long *) basep; 1044}; 1045check_syscall_args(compat_12_sys_getdirentries) 1046 1047struct sys_mmap_args { 1048 syscallarg(void *) addr; 1049 syscallarg(size_t) len; 1050 syscallarg(int) prot; 1051 syscallarg(int) flags; 1052 syscallarg(int) fd; 1053 syscallarg(long) pad; 1054 syscallarg(off_t) pos; 1055}; 1056check_syscall_args(sys_mmap) 1057 1058struct sys___syscall_args { 1059 syscallarg(quad_t) code; 1060 syscallarg(register_t) args[SYS_MAXSYSARGS]; 1061}; 1062 1063struct sys_lseek_args { 1064 syscallarg(int) fd; 1065 syscallarg(int) pad; 1066 syscallarg(off_t) offset; 1067 syscallarg(int) whence; 1068}; 1069check_syscall_args(sys_lseek) 1070 1071struct sys_truncate_args { 1072 syscallarg(const char *) path; 1073 syscallarg(int) pad; 1074 syscallarg(off_t) length; 1075}; 1076check_syscall_args(sys_truncate) 1077 1078struct sys_ftruncate_args { 1079 syscallarg(int) fd; 1080 syscallarg(int) pad; 1081 syscallarg(off_t) length; 1082}; 1083check_syscall_args(sys_ftruncate) 1084 1085struct sys___sysctl_args { 1086 syscallarg(const int *) name; 1087 syscallarg(u_int) namelen; 1088 syscallarg(void *) old; 1089 syscallarg(size_t *) oldlenp; 1090 syscallarg(const void *) new; 1091 syscallarg(size_t) newlen; 1092}; 1093check_syscall_args(sys___sysctl) 1094 1095struct sys_mlock_args { 1096 syscallarg(const void *) addr; 1097 syscallarg(size_t) len; 1098}; 1099check_syscall_args(sys_mlock) 1100 1101struct sys_munlock_args { 1102 syscallarg(const void *) addr; 1103 syscallarg(size_t) len; 1104}; 1105check_syscall_args(sys_munlock) 1106 1107struct sys_undelete_args { 1108 syscallarg(const char *) path; 1109}; 1110check_syscall_args(sys_undelete) 1111 1112struct sys_futimes_args { 1113 syscallarg(int) fd; 1114 syscallarg(const struct timeval *) tptr; 1115}; 1116check_syscall_args(sys_futimes) 1117 1118struct sys_getpgid_args { 1119 syscallarg(pid_t) pid; 1120}; 1121check_syscall_args(sys_getpgid) 1122 1123struct sys_reboot_args { 1124 syscallarg(int) opt; 1125 syscallarg(char *) bootstr; 1126}; 1127check_syscall_args(sys_reboot) 1128 1129struct sys_poll_args { 1130 syscallarg(struct pollfd *) fds; 1131 syscallarg(u_int) nfds; 1132 syscallarg(int) timeout; 1133}; 1134check_syscall_args(sys_poll) 1135#if defined(LKM) || !defined(_KERNEL) 1136#else /* !LKM */ 1137#endif /* !LKM */ 1138#if defined(SYSVSEM) || !defined(_KERNEL) 1139 1140struct compat_14_sys___semctl_args { 1141 syscallarg(int) semid; 1142 syscallarg(int) semnum; 1143 syscallarg(int) cmd; 1144 syscallarg(union __semun *) arg; 1145}; 1146check_syscall_args(compat_14_sys___semctl) 1147 1148struct sys_semget_args { 1149 syscallarg(key_t) key; 1150 syscallarg(int) nsems; 1151 syscallarg(int) semflg; 1152}; 1153check_syscall_args(sys_semget) 1154 1155struct sys_semop_args { 1156 syscallarg(int) semid; 1157 syscallarg(struct sembuf *) sops; 1158 syscallarg(size_t) nsops; 1159}; 1160check_syscall_args(sys_semop) 1161 1162struct sys_semconfig_args { 1163 syscallarg(int) flag; 1164}; 1165check_syscall_args(sys_semconfig) 1166#else 1167#endif 1168#if defined(SYSVMSG) || !defined(_KERNEL) 1169 1170struct compat_14_sys_msgctl_args { 1171 syscallarg(int) msqid; 1172 syscallarg(int) cmd; 1173 syscallarg(struct msqid_ds14 *) buf; 1174}; 1175check_syscall_args(compat_14_sys_msgctl) 1176 1177struct sys_msgget_args { 1178 syscallarg(key_t) key; 1179 syscallarg(int) msgflg; 1180}; 1181check_syscall_args(sys_msgget) 1182 1183struct sys_msgsnd_args { 1184 syscallarg(int) msqid; 1185 syscallarg(const void *) msgp; 1186 syscallarg(size_t) msgsz; 1187 syscallarg(int) msgflg; 1188}; 1189check_syscall_args(sys_msgsnd) 1190 1191struct sys_msgrcv_args { 1192 syscallarg(int) msqid; 1193 syscallarg(void *) msgp; 1194 syscallarg(size_t) msgsz; 1195 syscallarg(long) msgtyp; 1196 syscallarg(int) msgflg; 1197}; 1198check_syscall_args(sys_msgrcv) 1199#else 1200#endif 1201#if defined(SYSVSHM) || !defined(_KERNEL) 1202 1203struct sys_shmat_args { 1204 syscallarg(int) shmid; 1205 syscallarg(const void *) shmaddr; 1206 syscallarg(int) shmflg; 1207}; 1208check_syscall_args(sys_shmat) 1209 1210struct compat_14_sys_shmctl_args { 1211 syscallarg(int) shmid; 1212 syscallarg(int) cmd; 1213 syscallarg(struct shmid_ds14 *) buf; 1214}; 1215check_syscall_args(compat_14_sys_shmctl) 1216 1217struct sys_shmdt_args { 1218 syscallarg(const void *) shmaddr; 1219}; 1220check_syscall_args(sys_shmdt) 1221 1222struct sys_shmget_args { 1223 syscallarg(key_t) key; 1224 syscallarg(size_t) size; 1225 syscallarg(int) shmflg; 1226}; 1227check_syscall_args(sys_shmget) 1228#else 1229#endif 1230 1231struct sys_clock_gettime_args { 1232 syscallarg(clockid_t) clock_id; 1233 syscallarg(struct timespec *) tp; 1234}; 1235check_syscall_args(sys_clock_gettime) 1236 1237struct sys_clock_settime_args { 1238 syscallarg(clockid_t) clock_id; 1239 syscallarg(const struct timespec *) tp; 1240}; 1241check_syscall_args(sys_clock_settime) 1242 1243struct sys_clock_getres_args { 1244 syscallarg(clockid_t) clock_id; 1245 syscallarg(struct timespec *) tp; 1246}; 1247check_syscall_args(sys_clock_getres) 1248 1249struct sys_timer_create_args { 1250 syscallarg(clockid_t) clock_id; 1251 syscallarg(struct sigevent *) evp; 1252 syscallarg(timer_t *) timerid; 1253}; 1254check_syscall_args(sys_timer_create) 1255 1256struct sys_timer_delete_args { 1257 syscallarg(timer_t) timerid; 1258}; 1259check_syscall_args(sys_timer_delete) 1260 1261struct sys_timer_settime_args { 1262 syscallarg(timer_t) timerid; 1263 syscallarg(int) flags; 1264 syscallarg(const struct itimerspec *) value; 1265 syscallarg(struct itimerspec *) ovalue; 1266}; 1267check_syscall_args(sys_timer_settime) 1268 1269struct sys_timer_gettime_args { 1270 syscallarg(timer_t) timerid; 1271 syscallarg(struct itimerspec *) value; 1272}; 1273check_syscall_args(sys_timer_gettime) 1274 1275struct sys_timer_getoverrun_args { 1276 syscallarg(timer_t) timerid; 1277}; 1278check_syscall_args(sys_timer_getoverrun) 1279 1280struct sys_nanosleep_args { 1281 syscallarg(const struct timespec *) rqtp; 1282 syscallarg(struct timespec *) rmtp; 1283}; 1284check_syscall_args(sys_nanosleep) 1285 1286struct sys_fdatasync_args { 1287 syscallarg(int) fd; 1288}; 1289check_syscall_args(sys_fdatasync) 1290 1291struct sys_mlockall_args { 1292 syscallarg(int) flags; 1293}; 1294check_syscall_args(sys_mlockall) 1295 1296struct sys___sigtimedwait_args { 1297 syscallarg(const sigset_t *) set; 1298 syscallarg(siginfo_t *) info; 1299 syscallarg(struct timespec *) timeout; 1300}; 1301check_syscall_args(sys___sigtimedwait) 1302#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC)) 1303 1304struct sys__ksem_init_args { 1305 syscallarg(unsigned int) value; 1306 syscallarg(semid_t *) idp; 1307}; 1308check_syscall_args(sys__ksem_init) 1309 1310struct sys__ksem_open_args { 1311 syscallarg(const char *) name; 1312 syscallarg(int) oflag; 1313 syscallarg(mode_t) mode; 1314 syscallarg(unsigned int) value; 1315 syscallarg(semid_t *) idp; 1316}; 1317check_syscall_args(sys__ksem_open) 1318 1319struct sys__ksem_unlink_args { 1320 syscallarg(const char *) name; 1321}; 1322check_syscall_args(sys__ksem_unlink) 1323 1324struct sys__ksem_close_args { 1325 syscallarg(semid_t) id; 1326}; 1327check_syscall_args(sys__ksem_close) 1328 1329struct sys__ksem_post_args { 1330 syscallarg(semid_t) id; 1331}; 1332check_syscall_args(sys__ksem_post) 1333 1334struct sys__ksem_wait_args { 1335 syscallarg(semid_t) id; 1336}; 1337check_syscall_args(sys__ksem_wait) 1338 1339struct sys__ksem_trywait_args { 1340 syscallarg(semid_t) id; 1341}; 1342check_syscall_args(sys__ksem_trywait) 1343 1344struct sys__ksem_getvalue_args { 1345 syscallarg(semid_t) id; 1346 syscallarg(unsigned int *) value; 1347}; 1348check_syscall_args(sys__ksem_getvalue) 1349 1350struct sys__ksem_destroy_args { 1351 syscallarg(semid_t) id; 1352}; 1353check_syscall_args(sys__ksem_destroy) 1354#else 1355#endif 1356 1357struct sys_mq_open_args { 1358 syscallarg(const char *) name; 1359 syscallarg(int) oflag; 1360 syscallarg(mode_t) mode; 1361 syscallarg(struct mq_attr *) attr; 1362}; 1363check_syscall_args(sys_mq_open) 1364 1365struct sys_mq_close_args { 1366 syscallarg(mqd_t) mqdes; 1367}; 1368check_syscall_args(sys_mq_close) 1369 1370struct sys_mq_unlink_args { 1371 syscallarg(const char *) name; 1372}; 1373check_syscall_args(sys_mq_unlink) 1374 1375struct sys_mq_getattr_args { 1376 syscallarg(mqd_t) mqdes; 1377 syscallarg(struct mq_attr *) mqstat; 1378}; 1379check_syscall_args(sys_mq_getattr) 1380 1381struct sys_mq_setattr_args { 1382 syscallarg(mqd_t) mqdes; 1383 syscallarg(const struct mq_attr *) mqstat; 1384 syscallarg(struct mq_attr *) omqstat; 1385}; 1386check_syscall_args(sys_mq_setattr) 1387 1388struct sys_mq_notify_args { 1389 syscallarg(mqd_t) mqdes; 1390 syscallarg(const struct sigevent *) notification; 1391}; 1392check_syscall_args(sys_mq_notify) 1393 1394struct sys_mq_send_args { 1395 syscallarg(mqd_t) mqdes; 1396 syscallarg(const char *) msg_ptr; 1397 syscallarg(size_t) msg_len; 1398 syscallarg(unsigned) msg_prio; 1399}; 1400check_syscall_args(sys_mq_send) 1401 1402struct sys_mq_receive_args { 1403 syscallarg(mqd_t) mqdes; 1404 syscallarg(char *) msg_ptr; 1405 syscallarg(size_t) msg_len; 1406 syscallarg(unsigned *) msg_prio; 1407}; 1408check_syscall_args(sys_mq_receive) 1409 1410struct sys_mq_timedsend_args { 1411 syscallarg(mqd_t) mqdes; 1412 syscallarg(const char *) msg_ptr; 1413 syscallarg(size_t) msg_len; 1414 syscallarg(unsigned) msg_prio; 1415 syscallarg(const struct timespec *) abs_timeout; 1416}; 1417check_syscall_args(sys_mq_timedsend) 1418 1419struct sys_mq_timedreceive_args { 1420 syscallarg(mqd_t) mqdes; 1421 syscallarg(char *) msg_ptr; 1422 syscallarg(size_t) msg_len; 1423 syscallarg(unsigned *) msg_prio; 1424 syscallarg(const struct timespec *) abs_timeout; 1425}; 1426check_syscall_args(sys_mq_timedreceive) 1427 1428struct sys___posix_rename_args { 1429 syscallarg(const char *) from; 1430 syscallarg(const char *) to; 1431}; 1432check_syscall_args(sys___posix_rename) 1433 1434struct sys_swapctl_args { 1435 syscallarg(int) cmd; 1436 syscallarg(void *) arg; 1437 syscallarg(int) misc; 1438}; 1439check_syscall_args(sys_swapctl) 1440 1441struct compat_30_sys_getdents_args { 1442 syscallarg(int) fd; 1443 syscallarg(char *) buf; 1444 syscallarg(size_t) count; 1445}; 1446check_syscall_args(compat_30_sys_getdents) 1447 1448struct sys_minherit_args { 1449 syscallarg(void *) addr; 1450 syscallarg(size_t) len; 1451 syscallarg(int) inherit; 1452}; 1453check_syscall_args(sys_minherit) 1454 1455struct sys_lchmod_args { 1456 syscallarg(const char *) path; 1457 syscallarg(mode_t) mode; 1458}; 1459check_syscall_args(sys_lchmod) 1460 1461struct sys_lchown_args { 1462 syscallarg(const char *) path; 1463 syscallarg(uid_t) uid; 1464 syscallarg(gid_t) gid; 1465}; 1466check_syscall_args(sys_lchown) 1467 1468struct sys_lutimes_args { 1469 syscallarg(const char *) path; 1470 syscallarg(const struct timeval *) tptr; 1471}; 1472check_syscall_args(sys_lutimes) 1473 1474struct sys___msync13_args { 1475 syscallarg(void *) addr; 1476 syscallarg(size_t) len; 1477 syscallarg(int) flags; 1478}; 1479check_syscall_args(sys___msync13) 1480 1481struct compat_30_sys___stat13_args { 1482 syscallarg(const char *) path; 1483 syscallarg(struct stat13 *) ub; 1484}; 1485check_syscall_args(compat_30_sys___stat13) 1486 1487struct compat_30_sys___fstat13_args { 1488 syscallarg(int) fd; 1489 syscallarg(struct stat13 *) sb; 1490}; 1491check_syscall_args(compat_30_sys___fstat13) 1492 1493struct compat_30_sys___lstat13_args { 1494 syscallarg(const char *) path; 1495 syscallarg(struct stat13 *) ub; 1496}; 1497check_syscall_args(compat_30_sys___lstat13) 1498 1499struct sys___sigaltstack14_args { 1500 syscallarg(const struct sigaltstack *) nss; 1501 syscallarg(struct sigaltstack *) oss; 1502}; 1503check_syscall_args(sys___sigaltstack14) 1504 1505struct sys___posix_chown_args { 1506 syscallarg(const char *) path; 1507 syscallarg(uid_t) uid; 1508 syscallarg(gid_t) gid; 1509}; 1510check_syscall_args(sys___posix_chown) 1511 1512struct sys___posix_fchown_args { 1513 syscallarg(int) fd; 1514 syscallarg(uid_t) uid; 1515 syscallarg(gid_t) gid; 1516}; 1517check_syscall_args(sys___posix_fchown) 1518 1519struct sys___posix_lchown_args { 1520 syscallarg(const char *) path; 1521 syscallarg(uid_t) uid; 1522 syscallarg(gid_t) gid; 1523}; 1524check_syscall_args(sys___posix_lchown) 1525 1526struct sys_getsid_args { 1527 syscallarg(pid_t) pid; 1528}; 1529check_syscall_args(sys_getsid) 1530 1531struct sys___clone_args { 1532 syscallarg(int) flags; 1533 syscallarg(void *) stack; 1534}; 1535check_syscall_args(sys___clone) 1536 1537struct sys_fktrace_args { 1538 syscallarg(int) fd; 1539 syscallarg(int) ops; 1540 syscallarg(int) facs; 1541 syscallarg(int) pid; 1542}; 1543check_syscall_args(sys_fktrace) 1544 1545struct sys_preadv_args { 1546 syscallarg(int) fd; 1547 syscallarg(const struct iovec *) iovp; 1548 syscallarg(int) iovcnt; 1549 syscallarg(int) pad; 1550 syscallarg(off_t) offset; 1551}; 1552check_syscall_args(sys_preadv) 1553 1554struct sys_pwritev_args { 1555 syscallarg(int) fd; 1556 syscallarg(const struct iovec *) iovp; 1557 syscallarg(int) iovcnt; 1558 syscallarg(int) pad; 1559 syscallarg(off_t) offset; 1560}; 1561check_syscall_args(sys_pwritev) 1562 1563struct compat_16_sys___sigaction14_args { 1564 syscallarg(int) signum; 1565 syscallarg(const struct sigaction *) nsa; 1566 syscallarg(struct sigaction *) osa; 1567}; 1568check_syscall_args(compat_16_sys___sigaction14) 1569 1570struct sys___sigpending14_args { 1571 syscallarg(sigset_t *) set; 1572}; 1573check_syscall_args(sys___sigpending14) 1574 1575struct sys___sigprocmask14_args { 1576 syscallarg(int) how; 1577 syscallarg(const sigset_t *) set; 1578 syscallarg(sigset_t *) oset; 1579}; 1580check_syscall_args(sys___sigprocmask14) 1581 1582struct sys___sigsuspend14_args { 1583 syscallarg(const sigset_t *) set; 1584}; 1585check_syscall_args(sys___sigsuspend14) 1586 1587struct compat_16_sys___sigreturn14_args { 1588 syscallarg(struct sigcontext *) sigcntxp; 1589}; 1590check_syscall_args(compat_16_sys___sigreturn14) 1591 1592struct sys___getcwd_args { 1593 syscallarg(char *) bufp; 1594 syscallarg(size_t) length; 1595}; 1596check_syscall_args(sys___getcwd) 1597 1598struct sys_fchroot_args { 1599 syscallarg(int) fd; 1600}; 1601check_syscall_args(sys_fchroot) 1602 1603struct compat_30_sys_fhopen_args { 1604 syscallarg(const struct compat_30_fhandle *) fhp; 1605 syscallarg(int) flags; 1606}; 1607check_syscall_args(compat_30_sys_fhopen) 1608 1609struct compat_30_sys_fhstat_args { 1610 syscallarg(const struct compat_30_fhandle *) fhp; 1611 syscallarg(struct stat13 *) sb; 1612}; 1613check_syscall_args(compat_30_sys_fhstat) 1614 1615struct compat_20_sys_fhstatfs_args { 1616 syscallarg(const struct compat_30_fhandle *) fhp; 1617 syscallarg(struct statfs12 *) buf; 1618}; 1619check_syscall_args(compat_20_sys_fhstatfs) 1620#if defined(SYSVSEM) || !defined(_KERNEL) 1621 1622struct sys_____semctl13_args { 1623 syscallarg(int) semid; 1624 syscallarg(int) semnum; 1625 syscallarg(int) cmd; 1626 syscallarg(union __semun *) arg; 1627}; 1628check_syscall_args(sys_____semctl13) 1629#else 1630#endif 1631#if defined(SYSVMSG) || !defined(_KERNEL) 1632 1633struct sys___msgctl13_args { 1634 syscallarg(int) msqid; 1635 syscallarg(int) cmd; 1636 syscallarg(struct msqid_ds *) buf; 1637}; 1638check_syscall_args(sys___msgctl13) 1639#else 1640#endif 1641#if defined(SYSVSHM) || !defined(_KERNEL) 1642 1643struct sys___shmctl13_args { 1644 syscallarg(int) shmid; 1645 syscallarg(int) cmd; 1646 syscallarg(struct shmid_ds *) buf; 1647}; 1648check_syscall_args(sys___shmctl13) 1649#else 1650#endif 1651 1652struct sys_lchflags_args { 1653 syscallarg(const char *) path; 1654 syscallarg(u_long) flags; 1655}; 1656check_syscall_args(sys_lchflags) 1657 1658struct sys_utrace_args { 1659 syscallarg(const char *) label; 1660 syscallarg(void *) addr; 1661 syscallarg(size_t) len; 1662}; 1663check_syscall_args(sys_utrace) 1664 1665struct sys_getcontext_args { 1666 syscallarg(struct __ucontext *) ucp; 1667}; 1668check_syscall_args(sys_getcontext) 1669 1670struct sys_setcontext_args { 1671 syscallarg(const struct __ucontext *) ucp; 1672}; 1673check_syscall_args(sys_setcontext) 1674 1675struct sys__lwp_create_args { 1676 syscallarg(const struct __ucontext *) ucp; 1677 syscallarg(u_long) flags; 1678 syscallarg(lwpid_t *) new_lwp; 1679}; 1680check_syscall_args(sys__lwp_create) 1681 1682struct sys__lwp_wait_args { 1683 syscallarg(lwpid_t) wait_for; 1684 syscallarg(lwpid_t *) departed; 1685}; 1686check_syscall_args(sys__lwp_wait) 1687 1688struct sys__lwp_suspend_args { 1689 syscallarg(lwpid_t) target; 1690}; 1691check_syscall_args(sys__lwp_suspend) 1692 1693struct sys__lwp_continue_args { 1694 syscallarg(lwpid_t) target; 1695}; 1696check_syscall_args(sys__lwp_continue) 1697 1698struct sys__lwp_wakeup_args { 1699 syscallarg(lwpid_t) target; 1700}; 1701check_syscall_args(sys__lwp_wakeup) 1702 1703struct sys__lwp_setprivate_args { 1704 syscallarg(void *) ptr; 1705}; 1706check_syscall_args(sys__lwp_setprivate) 1707 1708struct sys__lwp_kill_args { 1709 syscallarg(lwpid_t) target; 1710 syscallarg(int) signo; 1711}; 1712check_syscall_args(sys__lwp_kill) 1713 1714struct sys__lwp_detach_args { 1715 syscallarg(lwpid_t) target; 1716}; 1717check_syscall_args(sys__lwp_detach) 1718 1719struct sys__lwp_park_args { 1720 syscallarg(const struct timespec *) ts; 1721 syscallarg(lwpid_t) unpark; 1722 syscallarg(const void *) hint; 1723 syscallarg(const void *) unparkhint; 1724}; 1725check_syscall_args(sys__lwp_park) 1726 1727struct sys__lwp_unpark_args { 1728 syscallarg(lwpid_t) target; 1729 syscallarg(const void *) hint; 1730}; 1731check_syscall_args(sys__lwp_unpark) 1732 1733struct sys__lwp_unpark_all_args { 1734 syscallarg(const lwpid_t *) targets; 1735 syscallarg(size_t) ntargets; 1736 syscallarg(const void *) hint; 1737}; 1738check_syscall_args(sys__lwp_unpark_all) 1739 1740struct sys__lwp_setname_args { 1741 syscallarg(lwpid_t) target; 1742 syscallarg(const char *) name; 1743}; 1744check_syscall_args(sys__lwp_setname) 1745 1746struct sys__lwp_getname_args { 1747 syscallarg(lwpid_t) target; 1748 syscallarg(char *) name; 1749 syscallarg(size_t) len; 1750}; 1751check_syscall_args(sys__lwp_getname) 1752 1753struct sys__lwp_ctl_args { 1754 syscallarg(int) features; 1755 syscallarg(struct lwpctl **) address; 1756}; 1757check_syscall_args(sys__lwp_ctl) 1758 1759struct sys___sigaction_sigtramp_args { 1760 syscallarg(int) signum; 1761 syscallarg(const struct sigaction *) nsa; 1762 syscallarg(struct sigaction *) osa; 1763 syscallarg(const void *) tramp; 1764 syscallarg(int) vers; 1765}; 1766check_syscall_args(sys___sigaction_sigtramp) 1767 1768struct sys_pmc_get_info_args { 1769 syscallarg(int) ctr; 1770 syscallarg(int) op; 1771 syscallarg(void *) args; 1772}; 1773check_syscall_args(sys_pmc_get_info) 1774 1775struct sys_pmc_control_args { 1776 syscallarg(int) ctr; 1777 syscallarg(int) op; 1778 syscallarg(void *) args; 1779}; 1780check_syscall_args(sys_pmc_control) 1781 1782struct sys_rasctl_args { 1783 syscallarg(void *) addr; 1784 syscallarg(size_t) len; 1785 syscallarg(int) op; 1786}; 1787check_syscall_args(sys_rasctl) 1788 1789struct sys_kevent_args { 1790 syscallarg(int) fd; 1791 syscallarg(const struct kevent *) changelist; 1792 syscallarg(size_t) nchanges; 1793 syscallarg(struct kevent *) eventlist; 1794 syscallarg(size_t) nevents; 1795 syscallarg(const struct timespec *) timeout; 1796}; 1797check_syscall_args(sys_kevent) 1798 1799struct sys_fsync_range_args { 1800 syscallarg(int) fd; 1801 syscallarg(int) flags; 1802 syscallarg(off_t) start; 1803 syscallarg(off_t) length; 1804}; 1805check_syscall_args(sys_fsync_range) 1806 1807struct sys_uuidgen_args { 1808 syscallarg(struct uuid *) store; 1809 syscallarg(int) count; 1810}; 1811check_syscall_args(sys_uuidgen) 1812 1813struct sys_getvfsstat_args { 1814 syscallarg(struct statvfs *) buf; 1815 syscallarg(size_t) bufsize; 1816 syscallarg(int) flags; 1817}; 1818check_syscall_args(sys_getvfsstat) 1819 1820struct sys_statvfs1_args { 1821 syscallarg(const char *) path; 1822 syscallarg(struct statvfs *) buf; 1823 syscallarg(int) flags; 1824}; 1825check_syscall_args(sys_statvfs1) 1826 1827struct sys_fstatvfs1_args { 1828 syscallarg(int) fd; 1829 syscallarg(struct statvfs *) buf; 1830 syscallarg(int) flags; 1831}; 1832check_syscall_args(sys_fstatvfs1) 1833 1834struct compat_30_sys_fhstatvfs1_args { 1835 syscallarg(const struct compat_30_fhandle *) fhp; 1836 syscallarg(struct statvfs *) buf; 1837 syscallarg(int) flags; 1838}; 1839check_syscall_args(compat_30_sys_fhstatvfs1) 1840 1841struct sys_extattrctl_args { 1842 syscallarg(const char *) path; 1843 syscallarg(int) cmd; 1844 syscallarg(const char *) filename; 1845 syscallarg(int) attrnamespace; 1846 syscallarg(const char *) attrname; 1847}; 1848check_syscall_args(sys_extattrctl) 1849 1850struct sys_extattr_set_file_args { 1851 syscallarg(const char *) path; 1852 syscallarg(int) attrnamespace; 1853 syscallarg(const char *) attrname; 1854 syscallarg(const void *) data; 1855 syscallarg(size_t) nbytes; 1856}; 1857check_syscall_args(sys_extattr_set_file) 1858 1859struct sys_extattr_get_file_args { 1860 syscallarg(const char *) path; 1861 syscallarg(int) attrnamespace; 1862 syscallarg(const char *) attrname; 1863 syscallarg(void *) data; 1864 syscallarg(size_t) nbytes; 1865}; 1866check_syscall_args(sys_extattr_get_file) 1867 1868struct sys_extattr_delete_file_args { 1869 syscallarg(const char *) path; 1870 syscallarg(int) attrnamespace; 1871 syscallarg(const char *) attrname; 1872}; 1873check_syscall_args(sys_extattr_delete_file) 1874 1875struct sys_extattr_set_fd_args { 1876 syscallarg(int) fd; 1877 syscallarg(int) attrnamespace; 1878 syscallarg(const char *) attrname; 1879 syscallarg(const void *) data; 1880 syscallarg(size_t) nbytes; 1881}; 1882check_syscall_args(sys_extattr_set_fd) 1883 1884struct sys_extattr_get_fd_args { 1885 syscallarg(int) fd; 1886 syscallarg(int) attrnamespace; 1887 syscallarg(const char *) attrname; 1888 syscallarg(void *) data; 1889 syscallarg(size_t) nbytes; 1890}; 1891check_syscall_args(sys_extattr_get_fd) 1892 1893struct sys_extattr_delete_fd_args { 1894 syscallarg(int) fd; 1895 syscallarg(int) attrnamespace; 1896 syscallarg(const char *) attrname; 1897}; 1898check_syscall_args(sys_extattr_delete_fd) 1899 1900struct sys_extattr_set_link_args { 1901 syscallarg(const char *) path; 1902 syscallarg(int) attrnamespace; 1903 syscallarg(const char *) attrname; 1904 syscallarg(const void *) data; 1905 syscallarg(size_t) nbytes; 1906}; 1907check_syscall_args(sys_extattr_set_link) 1908 1909struct sys_extattr_get_link_args { 1910 syscallarg(const char *) path; 1911 syscallarg(int) attrnamespace; 1912 syscallarg(const char *) attrname; 1913 syscallarg(void *) data; 1914 syscallarg(size_t) nbytes; 1915}; 1916check_syscall_args(sys_extattr_get_link) 1917 1918struct sys_extattr_delete_link_args { 1919 syscallarg(const char *) path; 1920 syscallarg(int) attrnamespace; 1921 syscallarg(const char *) attrname; 1922}; 1923check_syscall_args(sys_extattr_delete_link) 1924 1925struct sys_extattr_list_fd_args { 1926 syscallarg(int) fd; 1927 syscallarg(int) attrnamespace; 1928 syscallarg(void *) data; 1929 syscallarg(size_t) nbytes; 1930}; 1931check_syscall_args(sys_extattr_list_fd) 1932 1933struct sys_extattr_list_file_args { 1934 syscallarg(const char *) path; 1935 syscallarg(int) attrnamespace; 1936 syscallarg(void *) data; 1937 syscallarg(size_t) nbytes; 1938}; 1939check_syscall_args(sys_extattr_list_file) 1940 1941struct sys_extattr_list_link_args { 1942 syscallarg(const char *) path; 1943 syscallarg(int) attrnamespace; 1944 syscallarg(void *) data; 1945 syscallarg(size_t) nbytes; 1946}; 1947check_syscall_args(sys_extattr_list_link) 1948 1949struct sys_pselect_args { 1950 syscallarg(int) nd; 1951 syscallarg(fd_set *) in; 1952 syscallarg(fd_set *) ou; 1953 syscallarg(fd_set *) ex; 1954 syscallarg(const struct timespec *) ts; 1955 syscallarg(const sigset_t *) mask; 1956}; 1957check_syscall_args(sys_pselect) 1958 1959struct sys_pollts_args { 1960 syscallarg(struct pollfd *) fds; 1961 syscallarg(u_int) nfds; 1962 syscallarg(const struct timespec *) ts; 1963 syscallarg(const sigset_t *) mask; 1964}; 1965check_syscall_args(sys_pollts) 1966 1967struct sys_setxattr_args { 1968 syscallarg(const char *) path; 1969 syscallarg(const char *) name; 1970 syscallarg(void *) value; 1971 syscallarg(size_t) size; 1972 syscallarg(int) flags; 1973}; 1974check_syscall_args(sys_setxattr) 1975 1976struct sys_lsetxattr_args { 1977 syscallarg(const char *) path; 1978 syscallarg(const char *) name; 1979 syscallarg(void *) value; 1980 syscallarg(size_t) size; 1981 syscallarg(int) flags; 1982}; 1983check_syscall_args(sys_lsetxattr) 1984 1985struct sys_fsetxattr_args { 1986 syscallarg(int) fd; 1987 syscallarg(const char *) name; 1988 syscallarg(void *) value; 1989 syscallarg(size_t) size; 1990 syscallarg(int) flags; 1991}; 1992check_syscall_args(sys_fsetxattr) 1993 1994struct sys_getxattr_args { 1995 syscallarg(const char *) path; 1996 syscallarg(const char *) name; 1997 syscallarg(void *) value; 1998 syscallarg(size_t) size; 1999}; 2000check_syscall_args(sys_getxattr) 2001 2002struct sys_lgetxattr_args { 2003 syscallarg(const char *) path; 2004 syscallarg(const char *) name; 2005 syscallarg(void *) value; 2006 syscallarg(size_t) size; 2007}; 2008check_syscall_args(sys_lgetxattr) 2009 2010struct sys_fgetxattr_args { 2011 syscallarg(int) fd; 2012 syscallarg(const char *) name; 2013 syscallarg(void *) value; 2014 syscallarg(size_t) size; 2015}; 2016check_syscall_args(sys_fgetxattr) 2017 2018struct sys_listxattr_args { 2019 syscallarg(const char *) path; 2020 syscallarg(char *) list; 2021 syscallarg(size_t) size; 2022}; 2023check_syscall_args(sys_listxattr) 2024 2025struct sys_llistxattr_args { 2026 syscallarg(const char *) path; 2027 syscallarg(char *) list; 2028 syscallarg(size_t) size; 2029}; 2030check_syscall_args(sys_llistxattr) 2031 2032struct sys_flistxattr_args { 2033 syscallarg(int) fd; 2034 syscallarg(char *) list; 2035 syscallarg(size_t) size; 2036}; 2037check_syscall_args(sys_flistxattr) 2038 2039struct sys_removexattr_args { 2040 syscallarg(const char *) path; 2041 syscallarg(const char *) name; 2042}; 2043check_syscall_args(sys_removexattr) 2044 2045struct sys_lremovexattr_args { 2046 syscallarg(const char *) path; 2047 syscallarg(const char *) name; 2048}; 2049check_syscall_args(sys_lremovexattr) 2050 2051struct sys_fremovexattr_args { 2052 syscallarg(int) fd; 2053 syscallarg(const char *) name; 2054}; 2055check_syscall_args(sys_fremovexattr) 2056 2057struct sys___stat30_args { 2058 syscallarg(const char *) path; 2059 syscallarg(struct stat *) ub; 2060}; 2061check_syscall_args(sys___stat30) 2062 2063struct sys___fstat30_args { 2064 syscallarg(int) fd; 2065 syscallarg(struct stat *) sb; 2066}; 2067check_syscall_args(sys___fstat30) 2068 2069struct sys___lstat30_args { 2070 syscallarg(const char *) path; 2071 syscallarg(struct stat *) ub; 2072}; 2073check_syscall_args(sys___lstat30) 2074 2075struct sys___getdents30_args { 2076 syscallarg(int) fd; 2077 syscallarg(char *) buf; 2078 syscallarg(size_t) count; 2079}; 2080check_syscall_args(sys___getdents30) 2081 2082struct sys_posix_fadvise_args { 2083 syscallarg(int) fd; 2084 syscallarg(off_t) offset; 2085 syscallarg(off_t) len; 2086 syscallarg(int) advice; 2087}; 2088check_syscall_args(sys_posix_fadvise) 2089 2090struct compat_30_sys___fhstat30_args { 2091 syscallarg(const struct compat_30_fhandle *) fhp; 2092 syscallarg(struct stat *) sb; 2093}; 2094check_syscall_args(compat_30_sys___fhstat30) 2095 2096struct sys___ntp_gettime30_args { 2097 syscallarg(struct ntptimeval *) ntvp; 2098}; 2099check_syscall_args(sys___ntp_gettime30) 2100 2101struct sys___socket30_args { 2102 syscallarg(int) domain; 2103 syscallarg(int) type; 2104 syscallarg(int) protocol; 2105}; 2106check_syscall_args(sys___socket30) 2107 2108struct sys___getfh30_args { 2109 syscallarg(const char *) fname; 2110 syscallarg(void *) fhp; 2111 syscallarg(size_t *) fh_size; 2112}; 2113check_syscall_args(sys___getfh30) 2114 2115struct sys___fhopen40_args { 2116 syscallarg(const void *) fhp; 2117 syscallarg(size_t) fh_size; 2118 syscallarg(int) flags; 2119}; 2120check_syscall_args(sys___fhopen40) 2121 2122struct sys___fhstatvfs140_args { 2123 syscallarg(const void *) fhp; 2124 syscallarg(size_t) fh_size; 2125 syscallarg(struct statvfs *) buf; 2126 syscallarg(int) flags; 2127}; 2128check_syscall_args(sys___fhstatvfs140) 2129 2130struct sys___fhstat40_args { 2131 syscallarg(const void *) fhp; 2132 syscallarg(size_t) fh_size; 2133 syscallarg(struct stat *) sb; 2134}; 2135check_syscall_args(sys___fhstat40) 2136 2137struct sys_aio_cancel_args { 2138 syscallarg(int) fildes; 2139 syscallarg(struct aiocb *) aiocbp; 2140}; 2141check_syscall_args(sys_aio_cancel) 2142 2143struct sys_aio_error_args { 2144 syscallarg(const struct aiocb *) aiocbp; 2145}; 2146check_syscall_args(sys_aio_error) 2147 2148struct sys_aio_fsync_args { 2149 syscallarg(int) op; 2150 syscallarg(struct aiocb *) aiocbp; 2151}; 2152check_syscall_args(sys_aio_fsync) 2153 2154struct sys_aio_read_args { 2155 syscallarg(struct aiocb *) aiocbp; 2156}; 2157check_syscall_args(sys_aio_read) 2158 2159struct sys_aio_return_args { 2160 syscallarg(struct aiocb *) aiocbp; 2161}; 2162check_syscall_args(sys_aio_return) 2163 2164struct sys_aio_suspend_args { 2165 syscallarg(const struct aiocb *const *) list; 2166 syscallarg(int) nent; 2167 syscallarg(const struct timespec *) timeout; 2168}; 2169check_syscall_args(sys_aio_suspend) 2170 2171struct sys_aio_write_args { 2172 syscallarg(struct aiocb *) aiocbp; 2173}; 2174check_syscall_args(sys_aio_write) 2175 2176struct sys_lio_listio_args { 2177 syscallarg(int) mode; 2178 syscallarg(struct aiocb *const *) list; 2179 syscallarg(int) nent; 2180 syscallarg(struct sigevent *) sig; 2181}; 2182check_syscall_args(sys_lio_listio) 2183 2184struct sys___mount50_args { 2185 syscallarg(const char *) type; 2186 syscallarg(const char *) path; 2187 syscallarg(int) flags; 2188 syscallarg(void *) data; 2189 syscallarg(size_t) data_len; 2190}; 2191check_syscall_args(sys___mount50) 2192 2193struct sys_mremap_args { 2194 syscallarg(void *) old_address; 2195 syscallarg(size_t) old_size; 2196 syscallarg(void *) new_address; 2197 syscallarg(size_t) new_size; 2198 syscallarg(int) flags; 2199}; 2200check_syscall_args(sys_mremap) 2201 2202/* 2203 * System call prototypes. 2204 */ 2205 2206int sys_syscall(struct lwp *, const struct sys_syscall_args *, register_t *); 2207 2208int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *); 2209 2210int sys_fork(struct lwp *, const void *, register_t *); 2211 2212int sys_read(struct lwp *, const struct sys_read_args *, register_t *); 2213 2214int sys_write(struct lwp *, const struct sys_write_args *, register_t *); 2215 2216int sys_open(struct lwp *, const struct sys_open_args *, register_t *); 2217 2218int sys_close(struct lwp *, const struct sys_close_args *, register_t *); 2219 2220int sys_wait4(struct lwp *, const struct sys_wait4_args *, register_t *); 2221 2222int compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *); 2223 2224int sys_link(struct lwp *, const struct sys_link_args *, register_t *); 2225 2226int sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *); 2227 2228int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *); 2229 2230int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *); 2231 2232int sys_mknod(struct lwp *, const struct sys_mknod_args *, register_t *); 2233 2234int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *); 2235 2236int sys_chown(struct lwp *, const struct sys_chown_args *, register_t *); 2237 2238int sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *); 2239 2240int compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *); 2241 2242int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *); 2243 2244#ifdef COMPAT_43 2245int sys_getpid_with_ppid(struct lwp *, const void *, register_t *); 2246 2247#else 2248int sys_getpid(struct lwp *, const void *, register_t *); 2249 2250#endif 2251int compat_40_sys_mount(struct lwp *, const struct compat_40_sys_mount_args *, register_t *); 2252 2253int sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *); 2254 2255int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *); 2256 2257#ifdef COMPAT_43 2258int sys_getuid_with_euid(struct lwp *, const void *, register_t *); 2259 2260#else 2261int sys_getuid(struct lwp *, const void *, register_t *); 2262 2263#endif 2264int sys_geteuid(struct lwp *, const void *, register_t *); 2265 2266int sys_ptrace(struct lwp *, const struct sys_ptrace_args *, register_t *); 2267 2268int sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *); 2269 2270int sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *); 2271 2272int sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *); 2273 2274int sys_accept(struct lwp *, const struct sys_accept_args *, register_t *); 2275 2276int sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *); 2277 2278int sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *); 2279 2280int sys_access(struct lwp *, const struct sys_access_args *, register_t *); 2281 2282int sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *); 2283 2284int sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *); 2285 2286int sys_sync(struct lwp *, const void *, register_t *); 2287 2288int sys_kill(struct lwp *, const struct sys_kill_args *, register_t *); 2289 2290int compat_43_sys_stat(struct lwp *, const struct compat_43_sys_stat_args *, register_t *); 2291 2292int sys_getppid(struct lwp *, const void *, register_t *); 2293 2294int compat_43_sys_lstat(struct lwp *, const struct compat_43_sys_lstat_args *, register_t *); 2295 2296int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *); 2297 2298int sys_pipe(struct lwp *, const void *, register_t *); 2299 2300int sys_getegid(struct lwp *, const void *, register_t *); 2301 2302int sys_profil(struct lwp *, const struct sys_profil_args *, register_t *); 2303 2304int sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *); 2305 2306int compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *); 2307 2308#ifdef COMPAT_43 2309int sys_getgid_with_egid(struct lwp *, const void *, register_t *); 2310 2311#else 2312int sys_getgid(struct lwp *, const void *, register_t *); 2313 2314#endif 2315int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *); 2316 2317int sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *); 2318 2319int sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *); 2320 2321int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *); 2322 2323int compat_13_sys_sigpending(struct lwp *, const void *, register_t *); 2324 2325int compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *); 2326 2327int sys_ioctl(struct lwp *, const struct sys_ioctl_args *, register_t *); 2328 2329int compat_12_sys_reboot(struct lwp *, const struct compat_12_sys_reboot_args *, register_t *); 2330 2331int sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *); 2332 2333int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *); 2334 2335int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *); 2336 2337int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *); 2338 2339int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *); 2340 2341int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *); 2342 2343int compat_43_sys_fstat(struct lwp *, const struct compat_43_sys_fstat_args *, register_t *); 2344 2345int compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *); 2346 2347int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *); 2348 2349int compat_12_sys_msync(struct lwp *, const struct compat_12_sys_msync_args *, register_t *); 2350 2351int sys_vfork(struct lwp *, const void *, register_t *); 2352 2353int sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *); 2354 2355int sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *); 2356 2357int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *); 2358 2359int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *); 2360 2361int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); 2362 2363int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *); 2364 2365int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *); 2366 2367int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *); 2368 2369int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *); 2370 2371int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *); 2372 2373int sys_getpgrp(struct lwp *, const void *, register_t *); 2374 2375int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *); 2376 2377int sys_setitimer(struct lwp *, const struct sys_setitimer_args *, register_t *); 2378 2379int compat_43_sys_wait(struct lwp *, const void *, register_t *); 2380 2381int compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *); 2382 2383int sys_getitimer(struct lwp *, const struct sys_getitimer_args *, register_t *); 2384 2385int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *); 2386 2387int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *); 2388 2389int compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *); 2390 2391int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *); 2392 2393int sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *); 2394 2395int sys_select(struct lwp *, const struct sys_select_args *, register_t *); 2396 2397int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *); 2398 2399int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *); 2400 2401int compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *); 2402 2403int sys_connect(struct lwp *, const struct sys_connect_args *, register_t *); 2404 2405int compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *); 2406 2407int sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *); 2408 2409int compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *); 2410 2411int compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *); 2412 2413int compat_13_sys_sigreturn(struct lwp *, const struct compat_13_sys_sigreturn_args *, register_t *); 2414 2415int sys_bind(struct lwp *, const struct sys_bind_args *, register_t *); 2416 2417int sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *); 2418 2419int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); 2420 2421int compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *); 2422 2423int compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *); 2424 2425int compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *); 2426 2427int compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *); 2428 2429int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *); 2430 2431int compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *); 2432 2433int compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *); 2434 2435int sys_gettimeofday(struct lwp *, const struct sys_gettimeofday_args *, register_t *); 2436 2437int sys_getrusage(struct lwp *, const struct sys_getrusage_args *, register_t *); 2438 2439int sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *); 2440 2441int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *); 2442 2443int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *); 2444 2445int sys_settimeofday(struct lwp *, const struct sys_settimeofday_args *, register_t *); 2446 2447int sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *); 2448 2449int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *); 2450 2451int compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *); 2452 2453int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *); 2454 2455int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *); 2456 2457int sys_rename(struct lwp *, const struct sys_rename_args *, register_t *); 2458 2459int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *); 2460 2461int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *); 2462 2463int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *); 2464 2465int sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *); 2466 2467int sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *); 2468 2469int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *); 2470 2471int sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *); 2472 2473int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *); 2474 2475int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *); 2476 2477int sys_utimes(struct lwp *, const struct sys_utimes_args *, register_t *); 2478 2479int sys_adjtime(struct lwp *, const struct sys_adjtime_args *, register_t *); 2480 2481int compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *); 2482 2483int compat_43_sys_gethostid(struct lwp *, const void *, register_t *); 2484 2485int compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *); 2486 2487int compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *); 2488 2489int compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *); 2490 2491int compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *); 2492 2493int sys_setsid(struct lwp *, const void *, register_t *); 2494 2495int sys_quotactl(struct lwp *, const struct sys_quotactl_args *, register_t *); 2496 2497int compat_43_sys_quota(struct lwp *, const void *, register_t *); 2498 2499int compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *); 2500 2501#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 2502int sys_nfssvc(struct lwp *, const struct sys_nfssvc_args *, register_t *); 2503 2504#else 2505#endif 2506int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *); 2507 2508int compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *); 2509 2510int compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *); 2511 2512int compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *); 2513 2514int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *); 2515 2516int compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *); 2517 2518int compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *); 2519 2520int sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *); 2521 2522#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) 2523int compat_10_sys_semsys(struct lwp *, const struct compat_10_sys_semsys_args *, register_t *); 2524 2525#else 2526#endif 2527#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) 2528int compat_10_sys_msgsys(struct lwp *, const struct compat_10_sys_msgsys_args *, register_t *); 2529 2530#else 2531#endif 2532#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) 2533int compat_10_sys_shmsys(struct lwp *, const struct compat_10_sys_shmsys_args *, register_t *); 2534 2535#else 2536#endif 2537int sys_pread(struct lwp *, const struct sys_pread_args *, register_t *); 2538 2539int sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *); 2540 2541int compat_30_sys_ntp_gettime(struct lwp *, const struct compat_30_sys_ntp_gettime_args *, register_t *); 2542 2543#if defined(NTP) || !defined(_KERNEL) 2544int sys_ntp_adjtime(struct lwp *, const struct sys_ntp_adjtime_args *, register_t *); 2545 2546#else 2547#endif 2548int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *); 2549 2550int sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *); 2551 2552int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *); 2553 2554#if defined(LFS) || !defined(_KERNEL) 2555int sys_lfs_bmapv(struct lwp *, const struct sys_lfs_bmapv_args *, register_t *); 2556 2557int sys_lfs_markv(struct lwp *, const struct sys_lfs_markv_args *, register_t *); 2558 2559int sys_lfs_segclean(struct lwp *, const struct sys_lfs_segclean_args *, register_t *); 2560 2561int sys_lfs_segwait(struct lwp *, const struct sys_lfs_segwait_args *, register_t *); 2562 2563#else 2564#endif 2565int compat_12_sys_stat(struct lwp *, const struct compat_12_sys_stat_args *, register_t *); 2566 2567int compat_12_sys_fstat(struct lwp *, const struct compat_12_sys_fstat_args *, register_t *); 2568 2569int compat_12_sys_lstat(struct lwp *, const struct compat_12_sys_lstat_args *, register_t *); 2570 2571int sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *); 2572 2573int sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *); 2574 2575int sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *); 2576 2577int sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *); 2578 2579int compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *); 2580 2581int sys_mmap(struct lwp *, const struct sys_mmap_args *, register_t *); 2582 2583int sys___syscall(struct lwp *, const struct sys___syscall_args *, register_t *); 2584 2585int sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *); 2586 2587int sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *); 2588 2589int sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *); 2590 2591int sys___sysctl(struct lwp *, const struct sys___sysctl_args *, register_t *); 2592 2593int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *); 2594 2595int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *); 2596 2597int sys_undelete(struct lwp *, const struct sys_undelete_args *, register_t *); 2598 2599int sys_futimes(struct lwp *, const struct sys_futimes_args *, register_t *); 2600 2601int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *); 2602 2603int sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *); 2604 2605int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *); 2606 2607#if defined(LKM) || !defined(_KERNEL) 2608int sys_lkmnosys(struct lwp *, const void *, register_t *); 2609 2610#else /* !LKM */ 2611#endif /* !LKM */ 2612#if defined(SYSVSEM) || !defined(_KERNEL) 2613int compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *); 2614 2615int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *); 2616 2617int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *); 2618 2619int sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *); 2620 2621#else 2622#endif 2623#if defined(SYSVMSG) || !defined(_KERNEL) 2624int compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *); 2625 2626int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *); 2627 2628int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *); 2629 2630int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *); 2631 2632#else 2633#endif 2634#if defined(SYSVSHM) || !defined(_KERNEL) 2635int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *); 2636 2637int compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *); 2638 2639int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *); 2640 2641int sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *); 2642 2643#else 2644#endif 2645int sys_clock_gettime(struct lwp *, const struct sys_clock_gettime_args *, register_t *); 2646 2647int sys_clock_settime(struct lwp *, const struct sys_clock_settime_args *, register_t *); 2648 2649int sys_clock_getres(struct lwp *, const struct sys_clock_getres_args *, register_t *); 2650 2651int sys_timer_create(struct lwp *, const struct sys_timer_create_args *, register_t *); 2652 2653int sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *); 2654 2655int sys_timer_settime(struct lwp *, const struct sys_timer_settime_args *, register_t *); 2656 2657int sys_timer_gettime(struct lwp *, const struct sys_timer_gettime_args *, register_t *); 2658 2659int sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *); 2660 2661int sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *); 2662 2663int sys_fdatasync(struct lwp *, const struct sys_fdatasync_args *, register_t *); 2664 2665int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *); 2666 2667int sys_munlockall(struct lwp *, const void *, register_t *); 2668 2669int sys___sigtimedwait(struct lwp *, const struct sys___sigtimedwait_args *, register_t *); 2670 2671#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC)) 2672int sys__ksem_init(struct lwp *, const struct sys__ksem_init_args *, register_t *); 2673 2674int sys__ksem_open(struct lwp *, const struct sys__ksem_open_args *, register_t *); 2675 2676int sys__ksem_unlink(struct lwp *, const struct sys__ksem_unlink_args *, register_t *); 2677 2678int sys__ksem_close(struct lwp *, const struct sys__ksem_close_args *, register_t *); 2679 2680int sys__ksem_post(struct lwp *, const struct sys__ksem_post_args *, register_t *); 2681 2682int sys__ksem_wait(struct lwp *, const struct sys__ksem_wait_args *, register_t *); 2683 2684int sys__ksem_trywait(struct lwp *, const struct sys__ksem_trywait_args *, register_t *); 2685 2686int sys__ksem_getvalue(struct lwp *, const struct sys__ksem_getvalue_args *, register_t *); 2687 2688int sys__ksem_destroy(struct lwp *, const struct sys__ksem_destroy_args *, register_t *); 2689 2690#else 2691#endif 2692int sys_mq_open(struct lwp *, const struct sys_mq_open_args *, register_t *); 2693 2694int sys_mq_close(struct lwp *, const struct sys_mq_close_args *, register_t *); 2695 2696int sys_mq_unlink(struct lwp *, const struct sys_mq_unlink_args *, register_t *); 2697 2698int sys_mq_getattr(struct lwp *, const struct sys_mq_getattr_args *, register_t *); 2699 2700int sys_mq_setattr(struct lwp *, const struct sys_mq_setattr_args *, register_t *); 2701 2702int sys_mq_notify(struct lwp *, const struct sys_mq_notify_args *, register_t *); 2703 2704int sys_mq_send(struct lwp *, const struct sys_mq_send_args *, register_t *); 2705 2706int sys_mq_receive(struct lwp *, const struct sys_mq_receive_args *, register_t *); 2707 2708int sys_mq_timedsend(struct lwp *, const struct sys_mq_timedsend_args *, register_t *); 2709 2710int sys_mq_timedreceive(struct lwp *, const struct sys_mq_timedreceive_args *, register_t *); 2711 2712int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *); 2713 2714int sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *); 2715 2716int compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *); 2717 2718int sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *); 2719 2720int sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *); 2721 2722int sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *); 2723 2724int sys_lutimes(struct lwp *, const struct sys_lutimes_args *, register_t *); 2725 2726int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *); 2727 2728int compat_30_sys___stat13(struct lwp *, const struct compat_30_sys___stat13_args *, register_t *); 2729 2730int compat_30_sys___fstat13(struct lwp *, const struct compat_30_sys___fstat13_args *, register_t *); 2731 2732int compat_30_sys___lstat13(struct lwp *, const struct compat_30_sys___lstat13_args *, register_t *); 2733 2734int sys___sigaltstack14(struct lwp *, const struct sys___sigaltstack14_args *, register_t *); 2735 2736int sys___vfork14(struct lwp *, const void *, register_t *); 2737 2738int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *); 2739 2740int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *); 2741 2742int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *); 2743 2744int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); 2745 2746int sys___clone(struct lwp *, const struct sys___clone_args *, register_t *); 2747 2748int sys_fktrace(struct lwp *, const struct sys_fktrace_args *, register_t *); 2749 2750int sys_preadv(struct lwp *, const struct sys_preadv_args *, register_t *); 2751 2752int sys_pwritev(struct lwp *, const struct sys_pwritev_args *, register_t *); 2753 2754int compat_16_sys___sigaction14(struct lwp *, const struct compat_16_sys___sigaction14_args *, register_t *); 2755 2756int sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *); 2757 2758int sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *); 2759 2760int sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *); 2761 2762int compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *); 2763 2764int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *); 2765 2766int sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *); 2767 2768int compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *); 2769 2770int compat_30_sys_fhstat(struct lwp *, const struct compat_30_sys_fhstat_args *, register_t *); 2771 2772int compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *); 2773 2774#if defined(SYSVSEM) || !defined(_KERNEL) 2775int sys_____semctl13(struct lwp *, const struct sys_____semctl13_args *, register_t *); 2776 2777#else 2778#endif 2779#if defined(SYSVMSG) || !defined(_KERNEL) 2780int sys___msgctl13(struct lwp *, const struct sys___msgctl13_args *, register_t *); 2781 2782#else 2783#endif 2784#if defined(SYSVSHM) || !defined(_KERNEL) 2785int sys___shmctl13(struct lwp *, const struct sys___shmctl13_args *, register_t *); 2786 2787#else 2788#endif 2789int sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *); 2790 2791int sys_issetugid(struct lwp *, const void *, register_t *); 2792 2793int sys_utrace(struct lwp *, const struct sys_utrace_args *, register_t *); 2794 2795int sys_getcontext(struct lwp *, const struct sys_getcontext_args *, register_t *); 2796 2797int sys_setcontext(struct lwp *, const struct sys_setcontext_args *, register_t *); 2798 2799int sys__lwp_create(struct lwp *, const struct sys__lwp_create_args *, register_t *); 2800 2801int sys__lwp_exit(struct lwp *, const void *, register_t *); 2802 2803int sys__lwp_self(struct lwp *, const void *, register_t *); 2804 2805int sys__lwp_wait(struct lwp *, const struct sys__lwp_wait_args *, register_t *); 2806 2807int sys__lwp_suspend(struct lwp *, const struct sys__lwp_suspend_args *, register_t *); 2808 2809int sys__lwp_continue(struct lwp *, const struct sys__lwp_continue_args *, register_t *); 2810 2811int sys__lwp_wakeup(struct lwp *, const struct sys__lwp_wakeup_args *, register_t *); 2812 2813int sys__lwp_getprivate(struct lwp *, const void *, register_t *); 2814 2815int sys__lwp_setprivate(struct lwp *, const struct sys__lwp_setprivate_args *, register_t *); 2816 2817int sys__lwp_kill(struct lwp *, const struct sys__lwp_kill_args *, register_t *); 2818 2819int sys__lwp_detach(struct lwp *, const struct sys__lwp_detach_args *, register_t *); 2820 2821int sys__lwp_park(struct lwp *, const struct sys__lwp_park_args *, register_t *); 2822 2823int sys__lwp_unpark(struct lwp *, const struct sys__lwp_unpark_args *, register_t *); 2824 2825int sys__lwp_unpark_all(struct lwp *, const struct sys__lwp_unpark_all_args *, register_t *); 2826 2827int sys__lwp_setname(struct lwp *, const struct sys__lwp_setname_args *, register_t *); 2828 2829int sys__lwp_getname(struct lwp *, const struct sys__lwp_getname_args *, register_t *); 2830 2831int sys__lwp_ctl(struct lwp *, const struct sys__lwp_ctl_args *, register_t *); 2832 2833int sys_sa_register(struct lwp *, const void *, register_t *); 2834 2835int sys_sa_stacks(struct lwp *, const void *, register_t *); 2836 2837int sys_sa_enable(struct lwp *, const void *, register_t *); 2838 2839int sys_sa_setconcurrency(struct lwp *, const void *, register_t *); 2840 2841int sys_sa_yield(struct lwp *, const void *, register_t *); 2842 2843int sys_sa_preempt(struct lwp *, const void *, register_t *); 2844 2845int sys_sa_unblockyield(struct lwp *, const void *, register_t *); 2846 2847int sys___sigaction_sigtramp(struct lwp *, const struct sys___sigaction_sigtramp_args *, register_t *); 2848 2849int sys_pmc_get_info(struct lwp *, const struct sys_pmc_get_info_args *, register_t *); 2850 2851int sys_pmc_control(struct lwp *, const struct sys_pmc_control_args *, register_t *); 2852 2853int sys_rasctl(struct lwp *, const struct sys_rasctl_args *, register_t *); 2854 2855int sys_kqueue(struct lwp *, const void *, register_t *); 2856 2857int sys_kevent(struct lwp *, const struct sys_kevent_args *, register_t *); 2858 2859int sys_sched_yield(struct lwp *, const void *, register_t *); 2860 2861int sys_fsync_range(struct lwp *, const struct sys_fsync_range_args *, register_t *); 2862 2863int sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *); 2864 2865int sys_getvfsstat(struct lwp *, const struct sys_getvfsstat_args *, register_t *); 2866 2867int sys_statvfs1(struct lwp *, const struct sys_statvfs1_args *, register_t *); 2868 2869int sys_fstatvfs1(struct lwp *, const struct sys_fstatvfs1_args *, register_t *); 2870 2871int compat_30_sys_fhstatvfs1(struct lwp *, const struct compat_30_sys_fhstatvfs1_args *, register_t *); 2872 2873int sys_extattrctl(struct lwp *, const struct sys_extattrctl_args *, register_t *); 2874 2875int sys_extattr_set_file(struct lwp *, const struct sys_extattr_set_file_args *, register_t *); 2876 2877int sys_extattr_get_file(struct lwp *, const struct sys_extattr_get_file_args *, register_t *); 2878 2879int sys_extattr_delete_file(struct lwp *, const struct sys_extattr_delete_file_args *, register_t *); 2880 2881int sys_extattr_set_fd(struct lwp *, const struct sys_extattr_set_fd_args *, register_t *); 2882 2883int sys_extattr_get_fd(struct lwp *, const struct sys_extattr_get_fd_args *, register_t *); 2884 2885int sys_extattr_delete_fd(struct lwp *, const struct sys_extattr_delete_fd_args *, register_t *); 2886 2887int sys_extattr_set_link(struct lwp *, const struct sys_extattr_set_link_args *, register_t *); 2888 2889int sys_extattr_get_link(struct lwp *, const struct sys_extattr_get_link_args *, register_t *); 2890 2891int sys_extattr_delete_link(struct lwp *, const struct sys_extattr_delete_link_args *, register_t *); 2892 2893int sys_extattr_list_fd(struct lwp *, const struct sys_extattr_list_fd_args *, register_t *); 2894 2895int sys_extattr_list_file(struct lwp *, const struct sys_extattr_list_file_args *, register_t *); 2896 2897int sys_extattr_list_link(struct lwp *, const struct sys_extattr_list_link_args *, register_t *); 2898 2899int sys_pselect(struct lwp *, const struct sys_pselect_args *, register_t *); 2900 2901int sys_pollts(struct lwp *, const struct sys_pollts_args *, register_t *); 2902 2903int sys_setxattr(struct lwp *, const struct sys_setxattr_args *, register_t *); 2904 2905int sys_lsetxattr(struct lwp *, const struct sys_lsetxattr_args *, register_t *); 2906 2907int sys_fsetxattr(struct lwp *, const struct sys_fsetxattr_args *, register_t *); 2908 2909int sys_getxattr(struct lwp *, const struct sys_getxattr_args *, register_t *); 2910 2911int sys_lgetxattr(struct lwp *, const struct sys_lgetxattr_args *, register_t *); 2912 2913int sys_fgetxattr(struct lwp *, const struct sys_fgetxattr_args *, register_t *); 2914 2915int sys_listxattr(struct lwp *, const struct sys_listxattr_args *, register_t *); 2916 2917int sys_llistxattr(struct lwp *, const struct sys_llistxattr_args *, register_t *); 2918 2919int sys_flistxattr(struct lwp *, const struct sys_flistxattr_args *, register_t *); 2920 2921int sys_removexattr(struct lwp *, const struct sys_removexattr_args *, register_t *); 2922 2923int sys_lremovexattr(struct lwp *, const struct sys_lremovexattr_args *, register_t *); 2924 2925int sys_fremovexattr(struct lwp *, const struct sys_fremovexattr_args *, register_t *); 2926 2927int sys___stat30(struct lwp *, const struct sys___stat30_args *, register_t *); 2928 2929int sys___fstat30(struct lwp *, const struct sys___fstat30_args *, register_t *); 2930 2931int sys___lstat30(struct lwp *, const struct sys___lstat30_args *, register_t *); 2932 2933int sys___getdents30(struct lwp *, const struct sys___getdents30_args *, register_t *); 2934 2935int sys_posix_fadvise(struct lwp *, const struct sys_posix_fadvise_args *, register_t *); 2936 2937int compat_30_sys___fhstat30(struct lwp *, const struct compat_30_sys___fhstat30_args *, register_t *); 2938 2939int sys___ntp_gettime30(struct lwp *, const struct sys___ntp_gettime30_args *, register_t *); 2940 2941int sys___socket30(struct lwp *, const struct sys___socket30_args *, register_t *); 2942 2943int sys___getfh30(struct lwp *, const struct sys___getfh30_args *, register_t *); 2944 2945int sys___fhopen40(struct lwp *, const struct sys___fhopen40_args *, register_t *); 2946 2947int sys___fhstatvfs140(struct lwp *, const struct sys___fhstatvfs140_args *, register_t *); 2948 2949int sys___fhstat40(struct lwp *, const struct sys___fhstat40_args *, register_t *); 2950 2951int sys_aio_cancel(struct lwp *, const struct sys_aio_cancel_args *, register_t *); 2952 2953int sys_aio_error(struct lwp *, const struct sys_aio_error_args *, register_t *); 2954 2955int sys_aio_fsync(struct lwp *, const struct sys_aio_fsync_args *, register_t *); 2956 2957int sys_aio_read(struct lwp *, const struct sys_aio_read_args *, register_t *); 2958 2959int sys_aio_return(struct lwp *, const struct sys_aio_return_args *, register_t *); 2960 2961int sys_aio_suspend(struct lwp *, const struct sys_aio_suspend_args *, register_t *); 2962 2963int sys_aio_write(struct lwp *, const struct sys_aio_write_args *, register_t *); 2964 2965int sys_lio_listio(struct lwp *, const struct sys_lio_listio_args *, register_t *); 2966 2967int sys___mount50(struct lwp *, const struct sys___mount50_args *, register_t *); 2968 2969int sys_mremap(struct lwp *, const struct sys_mremap_args *, register_t *); 2970 2971#endif /* _SYS_SYSCALLARGS_H_ */ 2972