1 /* $NetBSD: aoutm68k_syscallargs.h,v 1.53 2019/06/18 01:39:09 christos Exp $ */ 2 3 /* 4 * System call argument lists. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.44 2019/06/18 01:39:01 christos Exp 8 */ 9 10 #ifndef _AOUTM68K_SYS_SYSCALLARGS_H_ 11 #define _AOUTM68K_SYS_SYSCALLARGS_H_ 12 13 /* Forward declaration */ 14 struct lwp; 15 16 #define AOUTM68K_SYS_MAXSYSARGS 8 17 18 #undef syscallarg 19 #define syscallarg(x) \ 20 union { \ 21 register_t pad; \ 22 struct { x datum; } le; \ 23 struct { /* LINTED zero array dimension */ \ 24 int8_t pad[ /* CONSTCOND */ \ 25 (sizeof (register_t) < sizeof (x)) \ 26 ? 0 \ 27 : sizeof (register_t) - sizeof (x)]; \ 28 x datum; \ 29 } be; \ 30 } 31 32 #undef check_syscall_args 33 #define check_syscall_args(call) /*LINTED*/ \ 34 typedef char call##_check_args[sizeof (struct call##_args) \ 35 <= AOUTM68K_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1]; 36 37 struct sys_syscall_args; 38 39 struct sys_exit_args; 40 41 struct sys_read_args; 42 43 struct sys_write_args; 44 45 struct sys_open_args; 46 47 struct sys_close_args; 48 49 struct compat_50_sys_wait4_args; 50 #if defined(COMPAT_43) || !defined(_KERNEL) 51 52 struct compat_43_sys_creat_args; 53 #else 54 #endif 55 56 struct sys_link_args; 57 58 struct sys_unlink_args; 59 60 struct sys_chdir_args; 61 62 struct sys_fchdir_args; 63 64 struct compat_50_sys_mknod_args; 65 66 struct sys_chmod_args; 67 68 struct sys_chown_args; 69 70 struct sys_obreak_args; 71 #if defined(COMPAT_20) || !defined(_KERNEL) 72 73 struct compat_20_sys_getfsstat_args; 74 #else 75 #endif 76 #if defined(COMPAT_43) || !defined(_KERNEL) 77 78 struct compat_43_sys_lseek_args; 79 #else 80 #endif 81 82 struct compat_40_sys_mount_args; 83 84 struct sys_unmount_args; 85 86 struct sys_setuid_args; 87 88 struct sys_ptrace_args; 89 90 struct sys_recvmsg_args; 91 92 struct sys_sendmsg_args; 93 94 struct sys_recvfrom_args; 95 96 struct sys_accept_args; 97 98 struct sys_getpeername_args; 99 100 struct sys_getsockname_args; 101 102 struct sys_access_args; 103 104 struct sys_chflags_args; 105 106 struct sys_fchflags_args; 107 108 struct sys_kill_args; 109 #if defined(COMPAT_43) || !defined(_KERNEL) 110 111 struct aoutm68k_compat_43_sys_stat_args { 112 syscallarg(const char *) path; 113 syscallarg(struct aoutm68k_stat43 *) ub; 114 }; 115 check_syscall_args(aoutm68k_compat_43_sys_stat) 116 #else 117 #endif 118 #if defined(COMPAT_43) || !defined(_KERNEL) 119 120 struct aoutm68k_compat_43_sys_lstat_args { 121 syscallarg(const char *) path; 122 syscallarg(struct aoutm68k_stat43 *) ub; 123 }; 124 check_syscall_args(aoutm68k_compat_43_sys_lstat) 125 #else 126 #endif 127 128 struct sys_dup_args; 129 130 struct sys_profil_args; 131 #if defined(KTRACE) || !defined(_KERNEL) 132 133 struct sys_ktrace_args; 134 #else 135 #endif 136 #if defined(COMPAT_13) || !defined(_KERNEL) 137 138 struct compat_13_sys_sigaction_args; 139 #else 140 #endif 141 #if defined(COMPAT_13) || !defined(_KERNEL) 142 143 struct compat_13_sys_sigprocmask_args; 144 #else 145 #endif 146 147 struct sys___getlogin_args; 148 149 struct sys___setlogin_args; 150 151 struct sys_acct_args; 152 #if defined(COMPAT_13) || !defined(_KERNEL) 153 154 struct compat_13_sys_sigaltstack_args; 155 #else 156 #endif 157 158 struct sys_ioctl_args; 159 #if defined(COMPAT_12) || !defined(_KERNEL) 160 161 struct compat_12_sys_reboot_args; 162 #else 163 #endif 164 165 struct sys_revoke_args; 166 167 struct sys_symlink_args; 168 169 struct sys_readlink_args; 170 171 struct sys_execve_args; 172 173 struct sys_umask_args; 174 175 struct sys_chroot_args; 176 #if defined(COMPAT_43) || !defined(_KERNEL) 177 178 struct aoutm68k_compat_43_sys_fstat_args { 179 syscallarg(int) fd; 180 syscallarg(struct aoutm68k_stat43 *) sb; 181 }; 182 check_syscall_args(aoutm68k_compat_43_sys_fstat) 183 184 struct compat_43_sys_getkerninfo_args; 185 #else 186 #endif 187 #if defined(COMPAT_12) || !defined(_KERNEL) 188 189 struct compat_12_sys_msync_args; 190 #else 191 #endif 192 #if defined(COMPAT_43) || !defined(_KERNEL) 193 194 struct compat_43_sys_mmap_args; 195 #else 196 #endif 197 198 struct sys_ovadvise_args; 199 200 struct sys_munmap_args; 201 202 struct sys_mprotect_args; 203 204 struct sys_madvise_args; 205 206 struct sys_mincore_args; 207 208 struct sys_getgroups_args; 209 210 struct sys_setgroups_args; 211 212 struct sys_setpgid_args; 213 214 struct compat_50_sys_setitimer_args; 215 #if defined(COMPAT_43) || !defined(_KERNEL) 216 #else 217 #endif 218 #if defined(COMPAT_12) || !defined(_KERNEL) 219 220 struct compat_12_sys_swapon_args; 221 #else 222 #endif 223 224 struct compat_50_sys_getitimer_args; 225 #if defined(COMPAT_43) || !defined(_KERNEL) 226 227 struct compat_43_sys_gethostname_args; 228 229 struct compat_43_sys_sethostname_args; 230 #else 231 #endif 232 233 struct sys_dup2_args; 234 235 struct sys_fcntl_args; 236 237 struct compat_50_sys_select_args; 238 239 struct sys_fsync_args; 240 241 struct sys_setpriority_args; 242 #if defined(COMPAT_30) || !defined(_KERNEL) 243 244 struct compat_30_sys_socket_args; 245 #else 246 #endif 247 248 struct sys_connect_args; 249 #if defined(COMPAT_43) || !defined(_KERNEL) 250 251 struct compat_43_sys_accept_args; 252 #else 253 #endif 254 255 struct sys_getpriority_args; 256 #if defined(COMPAT_43) || !defined(_KERNEL) 257 258 struct compat_43_sys_send_args; 259 260 struct compat_43_sys_recv_args; 261 #else 262 #endif 263 #if defined(COMPAT_13) || !defined(_KERNEL) 264 265 struct compat_13_sys_sigreturn_args; 266 #else 267 #endif 268 269 struct sys_bind_args; 270 271 struct sys_setsockopt_args; 272 273 struct sys_listen_args; 274 #if defined(COMPAT_43) || !defined(_KERNEL) 275 276 struct compat_43_sys_sigvec_args; 277 278 struct compat_43_sys_sigblock_args; 279 280 struct compat_43_sys_sigsetmask_args; 281 #else 282 #endif 283 #if defined(COMPAT_13) || !defined(_KERNEL) 284 285 struct compat_13_sys_sigsuspend_args; 286 #else 287 #endif 288 #if defined(COMPAT_43) || !defined(_KERNEL) 289 290 struct compat_43_sys_sigstack_args; 291 292 struct compat_43_sys_recvmsg_args; 293 294 struct compat_43_sys_sendmsg_args; 295 #else 296 #endif 297 298 struct compat_50_sys_gettimeofday_args; 299 300 struct compat_50_sys_getrusage_args; 301 302 struct sys_getsockopt_args; 303 304 struct sys_readv_args; 305 306 struct sys_writev_args; 307 308 struct compat_50_sys_settimeofday_args; 309 310 struct sys_fchown_args; 311 312 struct sys_fchmod_args; 313 #if defined(COMPAT_43) || !defined(_KERNEL) 314 315 struct compat_43_sys_recvfrom_args; 316 #else 317 #endif 318 319 struct sys_setreuid_args; 320 321 struct sys_setregid_args; 322 323 struct sys_rename_args; 324 #if defined(COMPAT_43) || !defined(_KERNEL) 325 326 struct compat_43_sys_truncate_args; 327 328 struct compat_43_sys_ftruncate_args; 329 #else 330 #endif 331 332 struct sys_flock_args; 333 334 struct sys_mkfifo_args; 335 336 struct sys_sendto_args; 337 338 struct sys_shutdown_args; 339 340 struct sys_socketpair_args; 341 342 struct sys_mkdir_args; 343 344 struct sys_rmdir_args; 345 346 struct compat_50_sys_utimes_args; 347 348 struct compat_50_sys_adjtime_args; 349 #if defined(COMPAT_43) || !defined(_KERNEL) 350 351 struct compat_43_sys_getpeername_args; 352 353 struct compat_43_sys_sethostid_args; 354 355 struct compat_43_sys_getrlimit_args; 356 357 struct compat_43_sys_setrlimit_args; 358 359 struct compat_43_sys_killpg_args; 360 #else 361 #endif 362 #if defined(QUOTA) || !defined(_KERNEL_OPT) 363 364 struct compat_50_sys_quotactl_args; 365 #else 366 #endif 367 #if (defined(QUOTA) && defined(COMPAT_43)) || !defined(_KERNEL_OPT) 368 #else 369 #endif 370 #if defined(COMPAT_43) || !defined(_KERNEL_OPT) 371 372 struct compat_43_sys_getsockname_args; 373 #else 374 #endif 375 #if defined(COMPAT_43) || !defined(_KERNEL) 376 377 struct compat_43_sys_getdirentries_args; 378 #else 379 #endif 380 #if defined(COMPAT_20) || !defined(_KERNEL) 381 382 struct compat_20_sys_statfs_args; 383 #else 384 #endif 385 #if defined(COMPAT_20) || !defined(_KERNEL) 386 387 struct compat_20_sys_fstatfs_args; 388 #else 389 #endif 390 #if defined(COMPAT_30) || !defined(_KERNEL) 391 392 struct compat_30_sys_getfh_args; 393 #else 394 #endif 395 #if defined(COMPAT_09) || !defined(_KERNEL) 396 397 struct compat_09_sys_getdomainname_args; 398 399 struct compat_09_sys_setdomainname_args; 400 401 struct compat_09_sys_uname_args; 402 #else 403 #endif 404 405 struct sys_sysarch_args; 406 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 407 408 struct compat_10_sys_semsys_args; 409 #else 410 #endif 411 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 412 413 struct compat_10_sys_msgsys_args; 414 #else 415 #endif 416 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 417 418 struct compat_10_sys_shmsys_args; 419 #else 420 #endif 421 422 struct sys_pread_args; 423 424 struct sys_pwrite_args; 425 #if defined(NTP) || !defined(_KERNEL) 426 427 struct sys_ntp_adjtime_args; 428 #else 429 #endif 430 431 struct sys_setgid_args; 432 433 struct sys_setegid_args; 434 435 struct sys_seteuid_args; 436 #if defined(COMPAT_12) || !defined(_KERNEL) 437 438 struct aoutm68k_compat_12_sys_stat_args { 439 syscallarg(const char *) path; 440 syscallarg(struct aoutm68k_stat12 *) ub; 441 }; 442 check_syscall_args(aoutm68k_compat_12_sys_stat) 443 444 struct aoutm68k_compat_12_sys_fstat_args { 445 syscallarg(int) fd; 446 syscallarg(struct aoutm68k_stat12 *) sb; 447 }; 448 check_syscall_args(aoutm68k_compat_12_sys_fstat) 449 450 struct aoutm68k_compat_12_sys_lstat_args { 451 syscallarg(const char *) path; 452 syscallarg(struct aoutm68k_stat12 *) ub; 453 }; 454 check_syscall_args(aoutm68k_compat_12_sys_lstat) 455 #else 456 #endif 457 458 struct sys_pathconf_args; 459 460 struct sys_fpathconf_args; 461 462 struct sys_getrlimit_args; 463 464 struct sys_setrlimit_args; 465 #if defined(COMPAT_12) || !defined(_KERNEL) 466 467 struct compat_12_sys_getdirentries_args; 468 #else 469 #endif 470 471 struct sys_mmap_args; 472 473 struct sys___syscall_args; 474 475 struct sys_lseek_args; 476 477 struct sys_truncate_args; 478 479 struct sys_ftruncate_args; 480 481 struct sys___sysctl_args; 482 483 struct sys_mlock_args; 484 485 struct sys_munlock_args; 486 487 struct sys_undelete_args; 488 489 struct compat_50_sys_futimes_args; 490 491 struct sys_getpgid_args; 492 493 struct sys_reboot_args; 494 495 struct sys_poll_args; 496 #if defined(SYSVSEM) || !defined(_KERNEL) 497 #if defined(COMPAT_14) || !defined(_KERNEL) 498 499 struct compat_14_sys___semctl_args; 500 #else 501 #endif 502 503 struct sys_semget_args; 504 505 struct sys_semop_args; 506 507 struct sys_semconfig_args; 508 #else 509 #endif 510 #if defined(SYSVMSG) || !defined(_KERNEL) 511 #if defined(COMPAT_14) || !defined(_KERNEL) 512 513 struct compat_14_sys_msgctl_args; 514 #else 515 #endif 516 517 struct sys_msgget_args; 518 519 struct sys_msgsnd_args; 520 521 struct sys_msgrcv_args; 522 #else 523 #endif 524 #if defined(SYSVSHM) || !defined(_KERNEL) 525 526 struct sys_shmat_args; 527 #if defined(COMPAT_14) || !defined(_KERNEL) 528 529 struct compat_14_sys_shmctl_args; 530 #else 531 #endif 532 533 struct sys_shmdt_args; 534 535 struct sys_shmget_args; 536 #else 537 #endif 538 539 struct compat_50_sys_clock_gettime_args; 540 541 struct compat_50_sys_clock_settime_args; 542 543 struct compat_50_sys_clock_getres_args; 544 545 struct compat_50_sys_nanosleep_args; 546 547 struct sys_fdatasync_args; 548 549 struct sys_mlockall_args; 550 551 struct sys___posix_rename_args; 552 553 struct sys_swapctl_args; 554 #if defined(COMPAT_30) || !defined(_KERNEL) 555 556 struct compat_30_sys_getdents_args; 557 #else 558 #endif 559 560 struct sys_minherit_args; 561 562 struct sys_lchmod_args; 563 564 struct sys_lchown_args; 565 566 struct compat_50_sys_lutimes_args; 567 568 struct sys___msync13_args; 569 570 struct aoutm68k_sys___stat13_args { 571 syscallarg(const char *) path; 572 syscallarg(struct aoutm68k_stat *) ub; 573 }; 574 check_syscall_args(aoutm68k_sys___stat13) 575 576 struct aoutm68k_sys___fstat13_args { 577 syscallarg(int) fd; 578 syscallarg(struct aoutm68k_stat *) sb; 579 }; 580 check_syscall_args(aoutm68k_sys___fstat13) 581 582 struct aoutm68k_sys___lstat13_args { 583 syscallarg(const char *) path; 584 syscallarg(struct aoutm68k_stat *) ub; 585 }; 586 check_syscall_args(aoutm68k_sys___lstat13) 587 588 struct sys___sigaltstack14_args; 589 590 struct sys___posix_chown_args; 591 592 struct sys___posix_fchown_args; 593 594 struct sys___posix_lchown_args; 595 596 struct sys_getsid_args; 597 #if defined(KTRACE) || !defined(_KERNEL) 598 599 struct sys_fktrace_args; 600 #else 601 #endif 602 603 struct sys_preadv_args; 604 605 struct sys_pwritev_args; 606 #if defined(COMPAT_16) || !defined(_KERNEL) 607 608 struct compat_16_sys___sigaction14_args; 609 #else 610 #endif 611 612 struct sys___sigpending14_args; 613 614 struct sys___sigprocmask14_args; 615 616 struct sys___sigsuspend14_args; 617 #if defined(COMPAT_16) || !defined(_KERNEL) 618 619 struct compat_16_sys___sigreturn14_args; 620 #else 621 #endif 622 623 struct sys___getcwd_args; 624 625 struct sys_fchroot_args; 626 #if defined(COMPAT_30) || ! defined(_KERNEL) 627 628 struct compat_30_sys_fhopen_args; 629 #else 630 #endif 631 632 struct aoutm68k_sys_fhstat_args { 633 syscallarg(const struct compat_30_fhandle *) fhp; 634 syscallarg(struct aoutm68k_stat *) sb; 635 }; 636 check_syscall_args(aoutm68k_sys_fhstat) 637 #if defined(COMPAT_20) || !defined(_KERNEL) 638 639 struct compat_20_sys_fhstatfs_args; 640 #else 641 #endif 642 #if defined(SYSVSEM) || !defined(_KERNEL) 643 644 struct compat_50_sys_____semctl13_args; 645 #else 646 #endif 647 #if defined(SYSVMSG) || !defined(_KERNEL) 648 649 struct compat_50_sys___msgctl13_args; 650 #else 651 #endif 652 #if defined(SYSVSHM) || !defined(_KERNEL) 653 654 struct compat_50_sys___shmctl13_args; 655 #else 656 #endif 657 658 struct sys_lchflags_args; 659 660 struct sys_getcontext_args; 661 662 struct sys_setcontext_args; 663 664 /* 665 * System call prototypes. 666 */ 667 668 int sys_syscall(struct lwp *, const struct sys_syscall_args *, register_t *); 669 670 int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *); 671 672 int sys_fork(struct lwp *, const void *, register_t *); 673 674 int sys_read(struct lwp *, const struct sys_read_args *, register_t *); 675 676 int sys_write(struct lwp *, const struct sys_write_args *, register_t *); 677 678 int sys_open(struct lwp *, const struct sys_open_args *, register_t *); 679 680 int sys_close(struct lwp *, const struct sys_close_args *, register_t *); 681 682 int compat_50_sys_wait4(struct lwp *, const struct compat_50_sys_wait4_args *, register_t *); 683 684 #if defined(COMPAT_43) || !defined(_KERNEL) 685 int compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *); 686 687 #else 688 #endif 689 int sys_link(struct lwp *, const struct sys_link_args *, register_t *); 690 691 int sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *); 692 693 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *); 694 695 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *); 696 697 int compat_50_sys_mknod(struct lwp *, const struct compat_50_sys_mknod_args *, register_t *); 698 699 int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *); 700 701 int sys_chown(struct lwp *, const struct sys_chown_args *, register_t *); 702 703 int sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *); 704 705 #if defined(COMPAT_20) || !defined(_KERNEL) 706 int compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *); 707 708 #else 709 #endif 710 #if defined(COMPAT_43) || !defined(_KERNEL) 711 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *); 712 713 #else 714 #endif 715 int sys_getpid(struct lwp *, const void *, register_t *); 716 717 int compat_40_sys_mount(struct lwp *, const struct compat_40_sys_mount_args *, register_t *); 718 719 int sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *); 720 721 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *); 722 723 int sys_getuid(struct lwp *, const void *, register_t *); 724 725 int sys_geteuid(struct lwp *, const void *, register_t *); 726 727 int sys_ptrace(struct lwp *, const struct sys_ptrace_args *, register_t *); 728 729 int sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *); 730 731 int sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *); 732 733 int sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *); 734 735 int sys_accept(struct lwp *, const struct sys_accept_args *, register_t *); 736 737 int sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *); 738 739 int sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *); 740 741 int sys_access(struct lwp *, const struct sys_access_args *, register_t *); 742 743 int sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *); 744 745 int sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *); 746 747 int sys_sync(struct lwp *, const void *, register_t *); 748 749 int sys_kill(struct lwp *, const struct sys_kill_args *, register_t *); 750 751 #if defined(COMPAT_43) || !defined(_KERNEL) 752 int aoutm68k_compat_43_sys_stat(struct lwp *, const struct aoutm68k_compat_43_sys_stat_args *, register_t *); 753 754 #else 755 #endif 756 int sys_getppid(struct lwp *, const void *, register_t *); 757 758 #if defined(COMPAT_43) || !defined(_KERNEL) 759 int aoutm68k_compat_43_sys_lstat(struct lwp *, const struct aoutm68k_compat_43_sys_lstat_args *, register_t *); 760 761 #else 762 #endif 763 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *); 764 765 int sys_pipe(struct lwp *, const void *, register_t *); 766 767 int sys_getegid(struct lwp *, const void *, register_t *); 768 769 int sys_profil(struct lwp *, const struct sys_profil_args *, register_t *); 770 771 #if defined(KTRACE) || !defined(_KERNEL) 772 int sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *); 773 774 #else 775 #endif 776 #if defined(COMPAT_13) || !defined(_KERNEL) 777 int compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *); 778 779 #else 780 #endif 781 int sys_getgid(struct lwp *, const void *, register_t *); 782 783 #if defined(COMPAT_13) || !defined(_KERNEL) 784 int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *); 785 786 #else 787 #endif 788 int sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *); 789 790 int sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *); 791 792 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *); 793 794 #if defined(COMPAT_13) || !defined(_KERNEL) 795 int compat_13_sys_sigpending(struct lwp *, const void *, register_t *); 796 797 int compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *); 798 799 #else 800 #endif 801 int sys_ioctl(struct lwp *, const struct sys_ioctl_args *, register_t *); 802 803 #if defined(COMPAT_12) || !defined(_KERNEL) 804 int compat_12_sys_reboot(struct lwp *, const struct compat_12_sys_reboot_args *, register_t *); 805 806 #else 807 #endif 808 int sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *); 809 810 int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *); 811 812 int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *); 813 814 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *); 815 816 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *); 817 818 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *); 819 820 #if defined(COMPAT_43) || !defined(_KERNEL) 821 int aoutm68k_compat_43_sys_fstat(struct lwp *, const struct aoutm68k_compat_43_sys_fstat_args *, register_t *); 822 823 int compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *); 824 825 int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *); 826 827 #else 828 #endif 829 #if defined(COMPAT_12) || !defined(_KERNEL) 830 int compat_12_sys_msync(struct lwp *, const struct compat_12_sys_msync_args *, register_t *); 831 832 #else 833 #endif 834 int sys_vfork(struct lwp *, const void *, register_t *); 835 836 #if defined(COMPAT_43) || !defined(_KERNEL) 837 int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *); 838 839 #else 840 #endif 841 int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *); 842 843 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); 844 845 int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *); 846 847 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *); 848 849 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *); 850 851 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *); 852 853 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *); 854 855 int sys_getpgrp(struct lwp *, const void *, register_t *); 856 857 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *); 858 859 int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *); 860 861 #if defined(COMPAT_43) || !defined(_KERNEL) 862 int compat_43_sys_wait(struct lwp *, const void *, register_t *); 863 864 #else 865 #endif 866 #if defined(COMPAT_12) || !defined(_KERNEL) 867 int compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *); 868 869 #else 870 #endif 871 int compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *); 872 873 #if defined(COMPAT_43) || !defined(_KERNEL) 874 int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *); 875 876 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *); 877 878 int compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *); 879 880 #else 881 #endif 882 int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *); 883 884 int sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *); 885 886 int compat_50_sys_select(struct lwp *, const struct compat_50_sys_select_args *, register_t *); 887 888 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *); 889 890 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *); 891 892 #if defined(COMPAT_30) || !defined(_KERNEL) 893 int compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *); 894 895 #else 896 #endif 897 int sys_connect(struct lwp *, const struct sys_connect_args *, register_t *); 898 899 #if defined(COMPAT_43) || !defined(_KERNEL) 900 int compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *); 901 902 #else 903 #endif 904 int sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *); 905 906 #if defined(COMPAT_43) || !defined(_KERNEL) 907 int compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *); 908 909 int compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *); 910 911 #else 912 #endif 913 #if defined(COMPAT_13) || !defined(_KERNEL) 914 int compat_13_sys_sigreturn(struct lwp *, const struct compat_13_sys_sigreturn_args *, register_t *); 915 916 #else 917 #endif 918 int sys_bind(struct lwp *, const struct sys_bind_args *, register_t *); 919 920 int sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *); 921 922 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); 923 924 #if defined(COMPAT_43) || !defined(_KERNEL) 925 int compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *); 926 927 int compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *); 928 929 int compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *); 930 931 #else 932 #endif 933 #if defined(COMPAT_13) || !defined(_KERNEL) 934 int compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *); 935 936 #else 937 #endif 938 #if defined(COMPAT_43) || !defined(_KERNEL) 939 int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *); 940 941 int compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *); 942 943 int compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *); 944 945 #else 946 #endif 947 int compat_50_sys_gettimeofday(struct lwp *, const struct compat_50_sys_gettimeofday_args *, register_t *); 948 949 int compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *); 950 951 int sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *); 952 953 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *); 954 955 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *); 956 957 int compat_50_sys_settimeofday(struct lwp *, const struct compat_50_sys_settimeofday_args *, register_t *); 958 959 int sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *); 960 961 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *); 962 963 #if defined(COMPAT_43) || !defined(_KERNEL) 964 int compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *); 965 966 #else 967 #endif 968 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *); 969 970 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *); 971 972 int sys_rename(struct lwp *, const struct sys_rename_args *, register_t *); 973 974 #if defined(COMPAT_43) || !defined(_KERNEL) 975 int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *); 976 977 int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *); 978 979 #else 980 #endif 981 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *); 982 983 int sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *); 984 985 int sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *); 986 987 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *); 988 989 int sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *); 990 991 int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *); 992 993 int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *); 994 995 int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *); 996 997 int compat_50_sys_adjtime(struct lwp *, const struct compat_50_sys_adjtime_args *, register_t *); 998 999 #if defined(COMPAT_43) || !defined(_KERNEL) 1000 int compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *); 1001 1002 int compat_43_sys_gethostid(struct lwp *, const void *, register_t *); 1003 1004 int compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *); 1005 1006 int compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *); 1007 1008 int compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *); 1009 1010 int compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *); 1011 1012 #else 1013 #endif 1014 int sys_setsid(struct lwp *, const void *, register_t *); 1015 1016 #if defined(QUOTA) || !defined(_KERNEL_OPT) 1017 int compat_50_sys_quotactl(struct lwp *, const struct compat_50_sys_quotactl_args *, register_t *); 1018 1019 #else 1020 #endif 1021 #if (defined(QUOTA) && defined(COMPAT_43)) || !defined(_KERNEL_OPT) 1022 int compat_43_sys_quota(struct lwp *, const void *, register_t *); 1023 1024 #else 1025 #endif 1026 #if defined(COMPAT_43) || !defined(_KERNEL_OPT) 1027 int compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *); 1028 1029 #else 1030 #endif 1031 #if defined(COMPAT_43) || !defined(_KERNEL) 1032 int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *); 1033 1034 #else 1035 #endif 1036 #if defined(COMPAT_20) || !defined(_KERNEL) 1037 int compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *); 1038 1039 #else 1040 #endif 1041 #if defined(COMPAT_20) || !defined(_KERNEL) 1042 int compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *); 1043 1044 #else 1045 #endif 1046 #if defined(COMPAT_30) || !defined(_KERNEL) 1047 int compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *); 1048 1049 #else 1050 #endif 1051 #if defined(COMPAT_09) || !defined(_KERNEL) 1052 int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *); 1053 1054 int compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *); 1055 1056 int compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *); 1057 1058 #else 1059 #endif 1060 int sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *); 1061 1062 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 1063 int compat_10_sys_semsys(struct lwp *, const struct compat_10_sys_semsys_args *, register_t *); 1064 1065 #else 1066 #endif 1067 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 1068 int compat_10_sys_msgsys(struct lwp *, const struct compat_10_sys_msgsys_args *, register_t *); 1069 1070 #else 1071 #endif 1072 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 1073 int compat_10_sys_shmsys(struct lwp *, const struct compat_10_sys_shmsys_args *, register_t *); 1074 1075 #else 1076 #endif 1077 int sys_pread(struct lwp *, const struct sys_pread_args *, register_t *); 1078 1079 int sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *); 1080 1081 #if defined(NTP) || !defined(_KERNEL) 1082 int sys_ntp_adjtime(struct lwp *, const struct sys_ntp_adjtime_args *, register_t *); 1083 1084 #else 1085 #endif 1086 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *); 1087 1088 int sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *); 1089 1090 int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *); 1091 1092 #if defined(COMPAT_12) || !defined(_KERNEL) 1093 int aoutm68k_compat_12_sys_stat(struct lwp *, const struct aoutm68k_compat_12_sys_stat_args *, register_t *); 1094 1095 int aoutm68k_compat_12_sys_fstat(struct lwp *, const struct aoutm68k_compat_12_sys_fstat_args *, register_t *); 1096 1097 int aoutm68k_compat_12_sys_lstat(struct lwp *, const struct aoutm68k_compat_12_sys_lstat_args *, register_t *); 1098 1099 #else 1100 #endif 1101 int sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *); 1102 1103 int sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *); 1104 1105 int sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *); 1106 1107 int sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *); 1108 1109 #if defined(COMPAT_12) || !defined(_KERNEL) 1110 int compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *); 1111 1112 #else 1113 #endif 1114 int sys_mmap(struct lwp *, const struct sys_mmap_args *, register_t *); 1115 1116 int sys___syscall(struct lwp *, const struct sys___syscall_args *, register_t *); 1117 1118 int sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *); 1119 1120 int sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *); 1121 1122 int sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *); 1123 1124 int sys___sysctl(struct lwp *, const struct sys___sysctl_args *, register_t *); 1125 1126 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *); 1127 1128 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *); 1129 1130 int sys_undelete(struct lwp *, const struct sys_undelete_args *, register_t *); 1131 1132 int compat_50_sys_futimes(struct lwp *, const struct compat_50_sys_futimes_args *, register_t *); 1133 1134 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *); 1135 1136 int sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *); 1137 1138 int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *); 1139 1140 #if defined(SYSVSEM) || !defined(_KERNEL) 1141 #if defined(COMPAT_14) || !defined(_KERNEL) 1142 int compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *); 1143 1144 #else 1145 #endif 1146 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *); 1147 1148 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *); 1149 1150 int sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *); 1151 1152 #else 1153 #endif 1154 #if defined(SYSVMSG) || !defined(_KERNEL) 1155 #if defined(COMPAT_14) || !defined(_KERNEL) 1156 int compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *); 1157 1158 #else 1159 #endif 1160 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *); 1161 1162 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *); 1163 1164 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *); 1165 1166 #else 1167 #endif 1168 #if defined(SYSVSHM) || !defined(_KERNEL) 1169 int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *); 1170 1171 #if defined(COMPAT_14) || !defined(_KERNEL) 1172 int compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *); 1173 1174 #else 1175 #endif 1176 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *); 1177 1178 int sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *); 1179 1180 #else 1181 #endif 1182 int compat_50_sys_clock_gettime(struct lwp *, const struct compat_50_sys_clock_gettime_args *, register_t *); 1183 1184 int compat_50_sys_clock_settime(struct lwp *, const struct compat_50_sys_clock_settime_args *, register_t *); 1185 1186 int compat_50_sys_clock_getres(struct lwp *, const struct compat_50_sys_clock_getres_args *, register_t *); 1187 1188 int compat_50_sys_nanosleep(struct lwp *, const struct compat_50_sys_nanosleep_args *, register_t *); 1189 1190 int sys_fdatasync(struct lwp *, const struct sys_fdatasync_args *, register_t *); 1191 1192 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *); 1193 1194 int sys_munlockall(struct lwp *, const void *, register_t *); 1195 1196 int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *); 1197 1198 int sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *); 1199 1200 #if defined(COMPAT_30) || !defined(_KERNEL) 1201 int compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *); 1202 1203 #else 1204 #endif 1205 int sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *); 1206 1207 int sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *); 1208 1209 int sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *); 1210 1211 int compat_50_sys_lutimes(struct lwp *, const struct compat_50_sys_lutimes_args *, register_t *); 1212 1213 int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *); 1214 1215 int aoutm68k_sys___stat13(struct lwp *, const struct aoutm68k_sys___stat13_args *, register_t *); 1216 1217 int aoutm68k_sys___fstat13(struct lwp *, const struct aoutm68k_sys___fstat13_args *, register_t *); 1218 1219 int aoutm68k_sys___lstat13(struct lwp *, const struct aoutm68k_sys___lstat13_args *, register_t *); 1220 1221 int sys___sigaltstack14(struct lwp *, const struct sys___sigaltstack14_args *, register_t *); 1222 1223 int sys___vfork14(struct lwp *, const void *, register_t *); 1224 1225 int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *); 1226 1227 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *); 1228 1229 int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *); 1230 1231 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); 1232 1233 #if defined(KTRACE) || !defined(_KERNEL) 1234 int sys_fktrace(struct lwp *, const struct sys_fktrace_args *, register_t *); 1235 1236 #else 1237 #endif 1238 int sys_preadv(struct lwp *, const struct sys_preadv_args *, register_t *); 1239 1240 int sys_pwritev(struct lwp *, const struct sys_pwritev_args *, register_t *); 1241 1242 #if defined(COMPAT_16) || !defined(_KERNEL) 1243 int compat_16_sys___sigaction14(struct lwp *, const struct compat_16_sys___sigaction14_args *, register_t *); 1244 1245 #else 1246 #endif 1247 int sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *); 1248 1249 int sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *); 1250 1251 int sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *); 1252 1253 #if defined(COMPAT_16) || !defined(_KERNEL) 1254 int compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *); 1255 1256 #else 1257 #endif 1258 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *); 1259 1260 int sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *); 1261 1262 #if defined(COMPAT_30) || ! defined(_KERNEL) 1263 int compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *); 1264 1265 #else 1266 #endif 1267 int aoutm68k_sys_fhstat(struct lwp *, const struct aoutm68k_sys_fhstat_args *, register_t *); 1268 1269 #if defined(COMPAT_20) || !defined(_KERNEL) 1270 int compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *); 1271 1272 #else 1273 #endif 1274 #if defined(SYSVSEM) || !defined(_KERNEL) 1275 int compat_50_sys_____semctl13(struct lwp *, const struct compat_50_sys_____semctl13_args *, register_t *); 1276 1277 #else 1278 #endif 1279 #if defined(SYSVMSG) || !defined(_KERNEL) 1280 int compat_50_sys___msgctl13(struct lwp *, const struct compat_50_sys___msgctl13_args *, register_t *); 1281 1282 #else 1283 #endif 1284 #if defined(SYSVSHM) || !defined(_KERNEL) 1285 int compat_50_sys___shmctl13(struct lwp *, const struct compat_50_sys___shmctl13_args *, register_t *); 1286 1287 #else 1288 #endif 1289 int sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *); 1290 1291 int sys_issetugid(struct lwp *, const void *, register_t *); 1292 1293 int sys_getcontext(struct lwp *, const struct sys_getcontext_args *, register_t *); 1294 1295 int sys_setcontext(struct lwp *, const struct sys_setcontext_args *, register_t *); 1296 1297 #endif /* _AOUTM68K_SYS_SYSCALLARGS_H_ */ 1298