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