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