1/* $NetBSD: freebsd_syscallargs.h,v 1.93 2019/06/18 01:42:44 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.73 2019/06/18 01:42:36 christos Exp 8 */ 9 10#ifndef _FREEBSD_SYS_SYSCALLARGS_H_ 11#define _FREEBSD_SYS_SYSCALLARGS_H_ 12 13/* Forward declaration */ 14struct lwp; 15 16#define FREEBSD_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 <= FREEBSD_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1]; 36 37struct sys_exit_args; 38 39struct sys_read_args; 40 41struct sys_write_args; 42 43struct sys_open_args; 44 45struct sys_close_args; 46 47struct compat_50_sys_wait4_args; 48 49struct compat_43_sys_creat_args; 50 51struct sys_link_args; 52 53struct sys_unlink_args; 54 55struct sys_chdir_args; 56 57struct sys_fchdir_args; 58 59struct compat_50_sys_mknod_args; 60 61struct sys_chmod_args; 62 63struct sys_chown_args; 64 65struct sys_obreak_args; 66 67struct compat_20_sys_getfsstat_args; 68 69struct compat_43_sys_lseek_args; 70 71struct freebsd_sys_mount_args { 72 syscallarg(int) type; 73 syscallarg(const char *) path; 74 syscallarg(int) flags; 75 syscallarg(void *) data; 76}; 77check_syscall_args(freebsd_sys_mount) 78 79struct sys_unmount_args; 80 81struct sys_setuid_args; 82 83struct freebsd_sys_ptrace_args { 84 syscallarg(int) req; 85 syscallarg(pid_t) pid; 86 syscallarg(void *) addr; 87 syscallarg(int) data; 88}; 89check_syscall_args(freebsd_sys_ptrace) 90 91struct sys_recvmsg_args; 92 93struct sys_sendmsg_args; 94 95struct sys_recvfrom_args; 96 97struct sys_accept_args; 98 99struct sys_getpeername_args; 100 101struct sys_getsockname_args; 102 103struct sys_access_args; 104 105struct sys_chflags_args; 106 107struct sys_fchflags_args; 108 109struct sys_kill_args; 110 111struct compat_43_sys_stat_args; 112 113struct compat_43_sys_lstat_args; 114 115struct sys_dup_args; 116 117struct sys_profil_args; 118#ifdef KTRACE 119 120struct sys_ktrace_args; 121#else 122#endif 123 124struct compat_13_sys_sigaction_args; 125 126struct compat_13_sys_sigprocmask_args; 127 128struct sys___getlogin_args; 129 130struct sys___setlogin_args; 131 132struct sys_acct_args; 133 134struct compat_13_sys_sigaltstack_args; 135 136struct freebsd_sys_ioctl_args { 137 syscallarg(int) fd; 138 syscallarg(u_long) com; 139 syscallarg(void *) data; 140}; 141check_syscall_args(freebsd_sys_ioctl) 142 143struct sys_reboot_args; 144 145struct sys_revoke_args; 146 147struct sys_symlink_args; 148 149struct sys_readlink_args; 150 151struct sys_execve_args; 152 153struct sys_umask_args; 154 155struct sys_chroot_args; 156 157struct compat_43_sys_fstat_args; 158 159struct compat_43_sys_getkerninfo_args; 160 161struct freebsd_sys_msync_args { 162 syscallarg(void *) addr; 163 syscallarg(size_t) len; 164 syscallarg(int) flags; 165}; 166check_syscall_args(freebsd_sys_msync) 167 168struct compat_43_sys_mmap_args; 169 170struct sys_ovadvise_args; 171 172struct sys_munmap_args; 173 174struct sys_mprotect_args; 175 176struct sys_madvise_args; 177 178struct sys_mincore_args; 179 180struct sys_getgroups_args; 181 182struct sys_setgroups_args; 183 184struct sys_setpgid_args; 185 186struct compat_50_sys_setitimer_args; 187 188struct compat_12_sys_swapon_args; 189 190struct compat_50_sys_getitimer_args; 191 192struct compat_43_sys_gethostname_args; 193 194struct compat_43_sys_sethostname_args; 195 196struct sys_dup2_args; 197 198struct sys_fcntl_args; 199 200struct compat_50_sys_select_args; 201 202struct sys_fsync_args; 203 204struct sys_setpriority_args; 205 206struct compat_30_sys_socket_args; 207 208struct sys_connect_args; 209 210struct compat_43_sys_accept_args; 211 212struct sys_getpriority_args; 213 214struct compat_43_sys_send_args; 215 216struct compat_43_sys_recv_args; 217 218struct freebsd_sys_sigreturn_args { 219 syscallarg(struct freebsd_sigcontext *) scp; 220}; 221check_syscall_args(freebsd_sys_sigreturn) 222 223struct sys_bind_args; 224 225struct sys_setsockopt_args; 226 227struct sys_listen_args; 228 229struct compat_43_sys_sigvec_args; 230 231struct compat_43_sys_sigblock_args; 232 233struct compat_43_sys_sigsetmask_args; 234 235struct compat_13_sys_sigsuspend_args; 236 237struct compat_43_sys_sigstack_args; 238 239struct compat_43_sys_recvmsg_args; 240 241struct compat_43_sys_sendmsg_args; 242#ifdef TRACE 243 244struct sys_vtrace_args; 245#else 246#endif 247 248struct compat_50_sys_gettimeofday_args; 249 250struct compat_50_sys_getrusage_args; 251 252struct sys_getsockopt_args; 253 254struct sys_readv_args; 255 256struct sys_writev_args; 257 258struct compat_50_sys_settimeofday_args; 259 260struct sys_fchown_args; 261 262struct sys_fchmod_args; 263 264struct compat_43_sys_recvfrom_args; 265 266struct sys_setreuid_args; 267 268struct sys_setregid_args; 269 270struct sys_rename_args; 271 272struct compat_43_sys_truncate_args; 273 274struct compat_43_sys_ftruncate_args; 275 276struct sys_flock_args; 277 278struct sys_mkfifo_args; 279 280struct sys_sendto_args; 281 282struct sys_shutdown_args; 283 284struct sys_socketpair_args; 285 286struct sys_mkdir_args; 287 288struct sys_rmdir_args; 289 290struct compat_50_sys_utimes_args; 291 292struct compat_50_sys_adjtime_args; 293 294struct compat_43_sys_getpeername_args; 295 296struct compat_43_sys_sethostid_args; 297 298struct compat_43_sys_getrlimit_args; 299 300struct compat_43_sys_setrlimit_args; 301 302struct compat_43_sys_killpg_args; 303#if defined(QUOTA) || !defined(_KERNEL_OPT) 304 305struct compat_50_sys_quotactl_args; 306#else 307#endif 308 309struct compat_43_sys_getsockname_args; 310 311struct compat_43_sys_getdirentries_args; 312 313struct compat_20_sys_statfs_args; 314 315struct compat_20_sys_fstatfs_args; 316 317struct compat_30_sys_getfh_args; 318 319struct compat_09_sys_getdomainname_args; 320 321struct compat_09_sys_setdomainname_args; 322 323struct compat_09_sys_uname_args; 324 325struct sys_sysarch_args; 326 327struct freebsd_sys_rtprio_args { 328 syscallarg(int) function; 329 syscallarg(pid_t) pid; 330 syscallarg(struct freebsd_rtprio *) rtp; 331}; 332check_syscall_args(freebsd_sys_rtprio) 333#if defined(SYSVSEM) && !defined(_LP64) 334 335struct freebsd_sys_semsys_args { 336 syscallarg(int) which; 337 syscallarg(int) a2; 338 syscallarg(int) a3; 339 syscallarg(int) a4; 340 syscallarg(int) a5; 341}; 342check_syscall_args(freebsd_sys_semsys) 343#else 344#endif 345#if defined(SYSVMSG) && !defined(_LP64) 346 347struct freebsd_sys_msgsys_args { 348 syscallarg(int) which; 349 syscallarg(int) a2; 350 syscallarg(int) a3; 351 syscallarg(int) a4; 352 syscallarg(int) a5; 353 syscallarg(int) a6; 354}; 355check_syscall_args(freebsd_sys_msgsys) 356#else 357#endif 358#if defined(SYSVSHM) && !defined(_LP64) 359 360struct freebsd_sys_shmsys_args { 361 syscallarg(int) which; 362 syscallarg(int) a2; 363 syscallarg(int) a3; 364 syscallarg(int) a4; 365}; 366check_syscall_args(freebsd_sys_shmsys) 367#else 368#endif 369 370struct sys_pread_args; 371 372struct sys_pwrite_args; 373#ifdef NTP 374 375struct freebsd_ntp_adjtime_args { 376 syscallarg(struct freebsd_timex *) tp; 377}; 378check_syscall_args(freebsd_ntp_adjtime) 379#else 380#endif 381 382struct sys_setgid_args; 383 384struct sys_setegid_args; 385 386struct sys_seteuid_args; 387 388struct compat_12_sys_stat_args; 389 390struct compat_12_sys_fstat_args; 391 392struct compat_12_sys_lstat_args; 393 394struct sys_pathconf_args; 395 396struct sys_fpathconf_args; 397 398struct sys_getrlimit_args; 399 400struct sys_setrlimit_args; 401 402struct compat_12_sys_getdirentries_args; 403 404struct freebsd_sys_mmap_args { 405 syscallarg(void *) addr; 406 syscallarg(size_t) len; 407 syscallarg(int) prot; 408 syscallarg(int) flags; 409 syscallarg(int) fd; 410 syscallarg(long) pad; 411 syscallarg(off_t) pos; 412}; 413check_syscall_args(freebsd_sys_mmap) 414 415struct sys_lseek_args; 416 417struct sys_truncate_args; 418 419struct sys_ftruncate_args; 420 421struct freebsd_sys_sysctl_args { 422 syscallarg(int *) name; 423 syscallarg(u_int) namelen; 424 syscallarg(void *) old; 425 syscallarg(size_t *) oldlenp; 426 syscallarg(void *) new; 427 syscallarg(size_t) newlen; 428}; 429check_syscall_args(freebsd_sys_sysctl) 430 431struct sys_mlock_args; 432 433struct sys_munlock_args; 434#ifdef FREEBSD_BASED_ON_44LITE_R2 435 436struct freebsd_sys_undelete_args { 437 syscallarg(char *) path; 438}; 439check_syscall_args(freebsd_sys_undelete) 440#else 441#endif 442 443struct compat_50_sys_futimes_args; 444 445struct sys_getpgid_args; 446#if 0 447 448struct sys_reboot_args; 449#else 450#endif 451 452struct sys_poll_args; 453#ifdef SYSVSEM 454 455struct compat_14_sys___semctl_args; 456 457struct sys_semget_args; 458 459struct sys_semop_args; 460 461struct sys_semconfig_args; 462#else 463#endif 464#ifdef SYSVMSG 465 466struct compat_14_sys_msgctl_args; 467 468struct sys_msgget_args; 469 470struct sys_msgsnd_args; 471 472struct sys_msgrcv_args; 473#else 474#endif 475#ifdef SYSVSHM 476 477struct sys_shmat_args; 478 479struct compat_14_sys_shmctl_args; 480 481struct sys_shmdt_args; 482 483struct sys_shmget_args; 484#else 485#endif 486 487struct compat_50_sys_clock_gettime_args; 488 489struct compat_50_sys_clock_settime_args; 490 491struct compat_50_sys_clock_getres_args; 492 493struct compat_50_sys_nanosleep_args; 494 495struct sys_minherit_args; 496 497struct freebsd_sys_rfork_args { 498 syscallarg(int) flags; 499}; 500check_syscall_args(freebsd_sys_rfork) 501 502struct sys_lchown_args; 503 504struct compat_30_sys_getdents_args; 505 506struct sys_lchmod_args; 507 508struct sys_lchown_args; 509 510struct compat_50_sys_lutimes_args; 511 512struct sys___msync13_args; 513 514struct compat_30_sys___stat13_args; 515 516struct compat_30_sys___fstat13_args; 517 518struct compat_30_sys___lstat13_args; 519 520struct compat_20_sys_fhstatfs_args; 521 522struct compat_30_sys_fhopen_args; 523 524struct compat_30_sys_fhstat_args; 525 526struct sys_getsid_args; 527 528struct sys_mlockall_args; 529 530struct sys___getcwd_args; 531 532struct freebsd_sys_sched_setparam_args { 533 syscallarg(pid_t) pid; 534 syscallarg(const struct freebsd_sched_param *) sp; 535}; 536check_syscall_args(freebsd_sys_sched_setparam) 537 538struct freebsd_sys_sched_getparam_args { 539 syscallarg(pid_t) pid; 540 syscallarg(struct freebsd_sched_param *) sp; 541}; 542check_syscall_args(freebsd_sys_sched_getparam) 543 544struct freebsd_sys_sched_setscheduler_args { 545 syscallarg(pid_t) pid; 546 syscallarg(int) policy; 547 syscallarg(const struct sched_param *) sp; 548}; 549check_syscall_args(freebsd_sys_sched_setscheduler) 550 551struct freebsd_sys_sched_getscheduler_args { 552 syscallarg(pid_t) pid; 553}; 554check_syscall_args(freebsd_sys_sched_getscheduler) 555 556struct freebsd_sys_sched_get_priority_max_args { 557 syscallarg(int) policy; 558}; 559check_syscall_args(freebsd_sys_sched_get_priority_max) 560 561struct freebsd_sys_sched_get_priority_min_args { 562 syscallarg(int) policy; 563}; 564check_syscall_args(freebsd_sys_sched_get_priority_min) 565 566struct freebsd_sys_utrace_args { 567 syscallarg(void *) addr; 568 syscallarg(size_t) len; 569}; 570check_syscall_args(freebsd_sys_utrace) 571 572struct sys___sigprocmask14_args; 573 574struct sys___sigsuspend14_args; 575 576struct freebsd_sys_sigaction4_args { 577 syscallarg(int) signum; 578 syscallarg(const struct freebsd_sigaction4 *) nsa; 579 syscallarg(struct freebsd_sigaction4 *) osa; 580}; 581check_syscall_args(freebsd_sys_sigaction4) 582 583struct sys___sigpending14_args; 584 585struct sys_lchflags_args; 586 587struct sys_uuidgen_args; 588 589struct sys__ksem_close_args; 590 591struct sys__ksem_post_args; 592 593struct sys__ksem_wait_args; 594 595struct sys__ksem_trywait_args; 596 597struct sys__ksem_unlink_args; 598 599struct sys__ksem_getvalue_args; 600 601struct sys__ksem_destroy_args; 602 603/* 604 * System call prototypes. 605 */ 606 607int sys_nosys(struct lwp *, const void *, register_t *); 608 609int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *); 610 611int sys_fork(struct lwp *, const void *, register_t *); 612 613int sys_read(struct lwp *, const struct sys_read_args *, register_t *); 614 615int sys_write(struct lwp *, const struct sys_write_args *, register_t *); 616 617int sys_open(struct lwp *, const struct sys_open_args *, register_t *); 618 619int sys_close(struct lwp *, const struct sys_close_args *, register_t *); 620 621int compat_50_sys_wait4(struct lwp *, const struct compat_50_sys_wait4_args *, register_t *); 622 623int compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *); 624 625int sys_link(struct lwp *, const struct sys_link_args *, register_t *); 626 627int sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *); 628 629int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *); 630 631int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *); 632 633int compat_50_sys_mknod(struct lwp *, const struct compat_50_sys_mknod_args *, register_t *); 634 635int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *); 636 637int sys_chown(struct lwp *, const struct sys_chown_args *, register_t *); 638 639int sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *); 640 641int compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *); 642 643int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *); 644 645int sys_getpid_with_ppid(struct lwp *, const void *, register_t *); 646 647int freebsd_sys_mount(struct lwp *, const struct freebsd_sys_mount_args *, register_t *); 648 649int sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *); 650 651int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *); 652 653int sys_getuid_with_euid(struct lwp *, const void *, register_t *); 654 655int sys_geteuid(struct lwp *, const void *, register_t *); 656 657int freebsd_sys_ptrace(struct lwp *, const struct freebsd_sys_ptrace_args *, register_t *); 658 659int sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *); 660 661int sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *); 662 663int sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *); 664 665int sys_accept(struct lwp *, const struct sys_accept_args *, register_t *); 666 667int sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *); 668 669int sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *); 670 671int sys_access(struct lwp *, const struct sys_access_args *, register_t *); 672 673int sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *); 674 675int sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *); 676 677int sys_sync(struct lwp *, const void *, register_t *); 678 679int sys_kill(struct lwp *, const struct sys_kill_args *, register_t *); 680 681int compat_43_sys_stat(struct lwp *, const struct compat_43_sys_stat_args *, register_t *); 682 683int sys_getppid(struct lwp *, const void *, register_t *); 684 685int compat_43_sys_lstat(struct lwp *, const struct compat_43_sys_lstat_args *, register_t *); 686 687int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *); 688 689int sys_pipe(struct lwp *, const void *, register_t *); 690 691int sys_getegid(struct lwp *, const void *, register_t *); 692 693int sys_profil(struct lwp *, const struct sys_profil_args *, register_t *); 694 695#ifdef KTRACE 696int sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *); 697 698#else 699#endif 700int compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *); 701 702int sys_getgid_with_egid(struct lwp *, const void *, register_t *); 703 704int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *); 705 706int sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *); 707 708int sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *); 709 710int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *); 711 712int compat_13_sys_sigpending(struct lwp *, const void *, register_t *); 713 714int compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *); 715 716int freebsd_sys_ioctl(struct lwp *, const struct freebsd_sys_ioctl_args *, register_t *); 717 718int sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *); 719 720int sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *); 721 722int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *); 723 724int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *); 725 726int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *); 727 728int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *); 729 730int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *); 731 732int compat_43_sys_fstat(struct lwp *, const struct compat_43_sys_fstat_args *, register_t *); 733 734int compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *); 735 736int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *); 737 738int freebsd_sys_msync(struct lwp *, const struct freebsd_sys_msync_args *, register_t *); 739 740int sys_vfork(struct lwp *, const void *, register_t *); 741 742int compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *); 743 744int sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *); 745 746int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); 747 748int sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *); 749 750int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *); 751 752int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *); 753 754int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *); 755 756int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *); 757 758int sys_getpgrp(struct lwp *, const void *, register_t *); 759 760int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *); 761 762int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *); 763 764int compat_43_sys_wait(struct lwp *, const void *, register_t *); 765 766int compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *); 767 768int compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *); 769 770int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *); 771 772int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *); 773 774int compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *); 775 776int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *); 777 778int sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *); 779 780int compat_50_sys_select(struct lwp *, const struct compat_50_sys_select_args *, register_t *); 781 782int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *); 783 784int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *); 785 786int compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *); 787 788int sys_connect(struct lwp *, const struct sys_connect_args *, register_t *); 789 790int compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *); 791 792int sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *); 793 794int compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *); 795 796int compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *); 797 798int freebsd_sys_sigreturn(struct lwp *, const struct freebsd_sys_sigreturn_args *, register_t *); 799 800int sys_bind(struct lwp *, const struct sys_bind_args *, register_t *); 801 802int sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *); 803 804int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); 805 806int compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *); 807 808int compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *); 809 810int compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *); 811 812int compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *); 813 814int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *); 815 816int compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *); 817 818int compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *); 819 820#ifdef TRACE 821int sys_vtrace(struct lwp *, const struct sys_vtrace_args *, register_t *); 822 823#else 824#endif 825int compat_50_sys_gettimeofday(struct lwp *, const struct compat_50_sys_gettimeofday_args *, register_t *); 826 827int compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *); 828 829int sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *); 830 831int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *); 832 833int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *); 834 835int compat_50_sys_settimeofday(struct lwp *, const struct compat_50_sys_settimeofday_args *, register_t *); 836 837int sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *); 838 839int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *); 840 841int compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *); 842 843int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *); 844 845int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *); 846 847int sys_rename(struct lwp *, const struct sys_rename_args *, register_t *); 848 849int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *); 850 851int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *); 852 853int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *); 854 855int sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *); 856 857int sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *); 858 859int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *); 860 861int sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *); 862 863int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *); 864 865int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *); 866 867int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *); 868 869int compat_50_sys_adjtime(struct lwp *, const struct compat_50_sys_adjtime_args *, register_t *); 870 871int compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *); 872 873int compat_43_sys_gethostid(struct lwp *, const void *, register_t *); 874 875int compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *); 876 877int compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *); 878 879int compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *); 880 881int compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *); 882 883int sys_setsid(struct lwp *, const void *, register_t *); 884 885#if defined(QUOTA) || !defined(_KERNEL_OPT) 886int compat_50_sys_quotactl(struct lwp *, const struct compat_50_sys_quotactl_args *, register_t *); 887 888int compat_43_sys_quota(struct lwp *, const void *, register_t *); 889 890#else 891#endif 892int compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *); 893 894int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *); 895 896int compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *); 897 898int compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *); 899 900int compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *); 901 902int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *); 903 904int compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *); 905 906int compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *); 907 908int sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *); 909 910int freebsd_sys_rtprio(struct lwp *, const struct freebsd_sys_rtprio_args *, register_t *); 911 912#if defined(SYSVSEM) && !defined(_LP64) 913int freebsd_sys_semsys(struct lwp *, const struct freebsd_sys_semsys_args *, register_t *); 914 915#else 916#endif 917#if defined(SYSVMSG) && !defined(_LP64) 918int freebsd_sys_msgsys(struct lwp *, const struct freebsd_sys_msgsys_args *, register_t *); 919 920#else 921#endif 922#if defined(SYSVSHM) && !defined(_LP64) 923int freebsd_sys_shmsys(struct lwp *, const struct freebsd_sys_shmsys_args *, register_t *); 924 925#else 926#endif 927int sys_pread(struct lwp *, const struct sys_pread_args *, register_t *); 928 929int sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *); 930 931#ifdef NTP 932int freebsd_ntp_adjtime(struct lwp *, const struct freebsd_ntp_adjtime_args *, register_t *); 933 934#else 935#endif 936int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *); 937 938int sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *); 939 940int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *); 941 942int compat_12_sys_stat(struct lwp *, const struct compat_12_sys_stat_args *, register_t *); 943 944int compat_12_sys_fstat(struct lwp *, const struct compat_12_sys_fstat_args *, register_t *); 945 946int compat_12_sys_lstat(struct lwp *, const struct compat_12_sys_lstat_args *, register_t *); 947 948int sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *); 949 950int sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *); 951 952int sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *); 953 954int sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *); 955 956int compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *); 957 958int freebsd_sys_mmap(struct lwp *, const struct freebsd_sys_mmap_args *, register_t *); 959 960int sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *); 961 962int sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *); 963 964int sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *); 965 966int freebsd_sys_sysctl(struct lwp *, const struct freebsd_sys_sysctl_args *, register_t *); 967 968int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *); 969 970int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *); 971 972#ifdef FREEBSD_BASED_ON_44LITE_R2 973int freebsd_sys_undelete(struct lwp *, const struct freebsd_sys_undelete_args *, register_t *); 974 975#else 976#endif 977int compat_50_sys_futimes(struct lwp *, const struct compat_50_sys_futimes_args *, register_t *); 978 979int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *); 980 981#if 0 982#else 983#endif 984int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *); 985 986#ifdef SYSVSEM 987int compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *); 988 989int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *); 990 991int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *); 992 993int sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *); 994 995#else 996#endif 997#ifdef SYSVMSG 998int compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *); 999 1000int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *); 1001 1002int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *); 1003 1004int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *); 1005 1006#else 1007#endif 1008#ifdef SYSVSHM 1009int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *); 1010 1011int compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *); 1012 1013int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *); 1014 1015int sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *); 1016 1017#else 1018#endif 1019int compat_50_sys_clock_gettime(struct lwp *, const struct compat_50_sys_clock_gettime_args *, register_t *); 1020 1021int compat_50_sys_clock_settime(struct lwp *, const struct compat_50_sys_clock_settime_args *, register_t *); 1022 1023int compat_50_sys_clock_getres(struct lwp *, const struct compat_50_sys_clock_getres_args *, register_t *); 1024 1025int compat_50_sys_nanosleep(struct lwp *, const struct compat_50_sys_nanosleep_args *, register_t *); 1026 1027int sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *); 1028 1029int freebsd_sys_rfork(struct lwp *, const struct freebsd_sys_rfork_args *, register_t *); 1030 1031int sys_issetugid(struct lwp *, const void *, register_t *); 1032 1033int sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *); 1034 1035int compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *); 1036 1037int sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *); 1038 1039int compat_50_sys_lutimes(struct lwp *, const struct compat_50_sys_lutimes_args *, register_t *); 1040 1041int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *); 1042 1043int compat_30_sys___stat13(struct lwp *, const struct compat_30_sys___stat13_args *, register_t *); 1044 1045int compat_30_sys___fstat13(struct lwp *, const struct compat_30_sys___fstat13_args *, register_t *); 1046 1047int compat_30_sys___lstat13(struct lwp *, const struct compat_30_sys___lstat13_args *, register_t *); 1048 1049int compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *); 1050 1051int compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *); 1052 1053int compat_30_sys_fhstat(struct lwp *, const struct compat_30_sys_fhstat_args *, register_t *); 1054 1055int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); 1056 1057int freebsd_sys_yield(struct lwp *, const void *, register_t *); 1058 1059int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *); 1060 1061int sys_munlockall(struct lwp *, const void *, register_t *); 1062 1063int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *); 1064 1065int freebsd_sys_sched_setparam(struct lwp *, const struct freebsd_sys_sched_setparam_args *, register_t *); 1066 1067int freebsd_sys_sched_getparam(struct lwp *, const struct freebsd_sys_sched_getparam_args *, register_t *); 1068 1069int freebsd_sys_sched_setscheduler(struct lwp *, const struct freebsd_sys_sched_setscheduler_args *, register_t *); 1070 1071int freebsd_sys_sched_getscheduler(struct lwp *, const struct freebsd_sys_sched_getscheduler_args *, register_t *); 1072 1073int freebsd_sys_sched_yield(struct lwp *, const void *, register_t *); 1074 1075int freebsd_sys_sched_get_priority_max(struct lwp *, const struct freebsd_sys_sched_get_priority_max_args *, register_t *); 1076 1077int freebsd_sys_sched_get_priority_min(struct lwp *, const struct freebsd_sys_sched_get_priority_min_args *, register_t *); 1078 1079int freebsd_sys_utrace(struct lwp *, const struct freebsd_sys_utrace_args *, register_t *); 1080 1081int sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *); 1082 1083int sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *); 1084 1085int freebsd_sys_sigaction4(struct lwp *, const struct freebsd_sys_sigaction4_args *, register_t *); 1086 1087int sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *); 1088 1089int sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *); 1090 1091int sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *); 1092 1093int sys__ksem_close(struct lwp *, const struct sys__ksem_close_args *, register_t *); 1094 1095int sys__ksem_post(struct lwp *, const struct sys__ksem_post_args *, register_t *); 1096 1097int sys__ksem_wait(struct lwp *, const struct sys__ksem_wait_args *, register_t *); 1098 1099int sys__ksem_trywait(struct lwp *, const struct sys__ksem_trywait_args *, register_t *); 1100 1101int sys__ksem_unlink(struct lwp *, const struct sys__ksem_unlink_args *, register_t *); 1102 1103int sys__ksem_getvalue(struct lwp *, const struct sys__ksem_getvalue_args *, register_t *); 1104 1105int sys__ksem_destroy(struct lwp *, const struct sys__ksem_destroy_args *, register_t *); 1106 1107#endif /* _FREEBSD_SYS_SYSCALLARGS_H_ */ 1108