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