1 /* $NetBSD: linux_syscallargs.h,v 1.109 2020/04/26 19:20:18 thorpej 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.97 2020/04/26 18:53:32 thorpej Exp 8 */ 9 10 #ifndef _LINUX_SYS_SYSCALLARGS_H_ 11 #define _LINUX_SYS_SYSCALLARGS_H_ 12 13 /* Forward declaration */ 14 struct lwp; 15 16 #define LINUX_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 <= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1]; 36 37 struct linux_sys_exit_args { 38 syscallarg(int) rval; 39 }; 40 check_syscall_args(linux_sys_exit) 41 42 struct sys_read_args; 43 44 struct sys_write_args; 45 46 struct sys_close_args; 47 48 struct linux_sys_osf1_wait4_args { 49 syscallarg(int) pid; 50 syscallarg(int *) status; 51 syscallarg(int) options; 52 syscallarg(struct osf1_rusage *) rusage; 53 }; 54 check_syscall_args(linux_sys_osf1_wait4) 55 56 struct linux_sys_creat_args { 57 syscallarg(const char *) path; 58 syscallarg(linux_umode_t) mode; 59 }; 60 check_syscall_args(linux_sys_creat) 61 62 struct sys_link_args; 63 64 struct linux_sys_unlink_args { 65 syscallarg(const char *) path; 66 }; 67 check_syscall_args(linux_sys_unlink) 68 69 struct sys_chdir_args; 70 71 struct sys_fchdir_args; 72 73 struct linux_sys_mknod_args { 74 syscallarg(const char *) path; 75 syscallarg(linux_umode_t) mode; 76 syscallarg(unsigned) dev; 77 }; 78 check_syscall_args(linux_sys_mknod) 79 80 struct sys_chmod_args; 81 82 struct sys___posix_chown_args; 83 84 struct linux_sys_brk_args { 85 syscallarg(char *) nsize; 86 }; 87 check_syscall_args(linux_sys_brk) 88 89 struct compat_43_sys_lseek_args; 90 91 struct linux_sys_osf1_mount_args { 92 syscallarg(int) type; 93 syscallarg(const char *) path; 94 syscallarg(int) flags; 95 syscallarg(void *) data; 96 }; 97 check_syscall_args(linux_sys_osf1_mount) 98 99 struct sys_setuid_args; 100 101 struct linux_sys_ptrace_args { 102 syscallarg(long) request; 103 syscallarg(long) pid; 104 syscallarg(long) addr; 105 syscallarg(long) data; 106 }; 107 check_syscall_args(linux_sys_ptrace) 108 109 struct sys_access_args; 110 111 struct linux_sys_kill_args { 112 syscallarg(int) pid; 113 syscallarg(int) signum; 114 }; 115 check_syscall_args(linux_sys_kill) 116 117 struct sys_setpgid_args; 118 119 struct sys_dup_args; 120 121 struct linux_sys_osf1_set_program_attributes_args { 122 syscallarg(void *) taddr; 123 syscallarg(unsigned long) tsize; 124 syscallarg(void *) daddr; 125 syscallarg(unsigned long) dsize; 126 }; 127 check_syscall_args(linux_sys_osf1_set_program_attributes) 128 129 struct linux_sys_open_args { 130 syscallarg(const char *) path; 131 syscallarg(int) flags; 132 syscallarg(linux_umode_t) mode; 133 }; 134 check_syscall_args(linux_sys_open) 135 136 struct compat_13_sys_sigprocmask_args; 137 138 struct sys_acct_args; 139 140 struct linux_sys_sigpending_args { 141 syscallarg(linux_old_sigset_t *) set; 142 }; 143 check_syscall_args(linux_sys_sigpending) 144 145 struct linux_sys_ioctl_args { 146 syscallarg(int) fd; 147 syscallarg(u_long) com; 148 syscallarg(void *) data; 149 }; 150 check_syscall_args(linux_sys_ioctl) 151 152 struct sys_symlink_args; 153 154 struct sys_readlink_args; 155 156 struct sys_execve_args; 157 158 struct sys_umask_args; 159 160 struct sys_chroot_args; 161 162 struct linux_sys_stat_args { 163 syscallarg(const char *) path; 164 syscallarg(struct linux_stat *) sp; 165 }; 166 check_syscall_args(linux_sys_stat) 167 168 struct linux_sys_lstat_args { 169 syscallarg(const char *) path; 170 syscallarg(struct linux_stat *) sp; 171 }; 172 check_syscall_args(linux_sys_lstat) 173 174 struct linux_sys_mmap_args; 175 176 struct sys_munmap_args; 177 178 struct linux_sys_mprotect_args { 179 syscallarg(const void *) start; 180 syscallarg(unsigned long) len; 181 syscallarg(int) prot; 182 }; 183 check_syscall_args(linux_sys_mprotect) 184 185 struct sys_madvise_args; 186 187 struct sys_getgroups_args; 188 189 struct sys_setgroups_args; 190 191 struct linux_sys_osf1_setitimer_args { 192 syscallarg(int) which; 193 syscallarg(struct osf1_itimerval *) itv; 194 syscallarg(struct osf1_itimerval *) oitv; 195 }; 196 check_syscall_args(linux_sys_osf1_setitimer) 197 198 struct compat_43_sys_gethostname_args; 199 200 struct compat_43_sys_sethostname_args; 201 202 struct sys_dup2_args; 203 204 struct linux_sys_fstat_args { 205 syscallarg(int) fd; 206 syscallarg(struct linux_stat *) sp; 207 }; 208 check_syscall_args(linux_sys_fstat) 209 210 struct linux_sys_fcntl_args { 211 syscallarg(int) fd; 212 syscallarg(int) cmd; 213 syscallarg(void *) arg; 214 }; 215 check_syscall_args(linux_sys_fcntl) 216 217 struct linux_sys_osf1_select_args { 218 syscallarg(u_int) nd; 219 syscallarg(fd_set *) in; 220 syscallarg(fd_set *) ou; 221 syscallarg(fd_set *) ex; 222 syscallarg(struct osf1_timeval *) tv; 223 }; 224 check_syscall_args(linux_sys_osf1_select) 225 226 struct sys_poll_args; 227 228 struct sys_fsync_args; 229 230 struct sys_setpriority_args; 231 232 struct linux_sys_socket_args { 233 syscallarg(int) domain; 234 syscallarg(int) type; 235 syscallarg(int) protocol; 236 }; 237 check_syscall_args(linux_sys_socket) 238 239 struct linux_sys_connect_args { 240 syscallarg(int) s; 241 syscallarg(const struct osockaddr *) name; 242 syscallarg(unsigned int) namelen; 243 }; 244 check_syscall_args(linux_sys_connect) 245 246 struct linux_sys_accept_args { 247 syscallarg(int) s; 248 syscallarg(struct osockaddr *) name; 249 syscallarg(int *) anamelen; 250 }; 251 check_syscall_args(linux_sys_accept) 252 253 struct linux_sys_getpriority_args { 254 syscallarg(int) which; 255 syscallarg(int) who; 256 }; 257 check_syscall_args(linux_sys_getpriority) 258 259 struct linux_sys_send_args { 260 syscallarg(int) s; 261 syscallarg(void *) buf; 262 syscallarg(int) len; 263 syscallarg(int) flags; 264 }; 265 check_syscall_args(linux_sys_send) 266 267 struct linux_sys_recv_args { 268 syscallarg(int) s; 269 syscallarg(void *) buf; 270 syscallarg(int) len; 271 syscallarg(int) flags; 272 }; 273 check_syscall_args(linux_sys_recv) 274 275 struct linux_sys_sigreturn_args { 276 syscallarg(struct linux_sigframe *) sfp; 277 }; 278 check_syscall_args(linux_sys_sigreturn) 279 280 struct linux_sys_bind_args { 281 syscallarg(int) s; 282 syscallarg(const struct osockaddr *) name; 283 syscallarg(unsigned int) namelen; 284 }; 285 check_syscall_args(linux_sys_bind) 286 287 struct linux_sys_setsockopt_args { 288 syscallarg(int) s; 289 syscallarg(int) level; 290 syscallarg(int) optname; 291 syscallarg(void *) optval; 292 syscallarg(int) optlen; 293 }; 294 check_syscall_args(linux_sys_setsockopt) 295 296 struct sys_listen_args; 297 298 struct linux_sys_sigsuspend_args { 299 syscallarg(void *) restart; 300 syscallarg(int) oldmask; 301 syscallarg(int) mask; 302 }; 303 check_syscall_args(linux_sys_sigsuspend) 304 305 struct compat_43_sys_sigstack_args; 306 307 struct linux_sys_recvmsg_args { 308 syscallarg(int) s; 309 syscallarg(struct linux_msghdr *) msg; 310 syscallarg(int) flags; 311 }; 312 check_syscall_args(linux_sys_recvmsg) 313 314 struct linux_sys_sendmsg_args { 315 syscallarg(int) s; 316 syscallarg(const struct linux_msghdr *) msg; 317 syscallarg(int) flags; 318 }; 319 check_syscall_args(linux_sys_sendmsg) 320 321 struct linux_sys_osf1_gettimeofday_args { 322 syscallarg(struct osf1_timeval *) tv; 323 syscallarg(struct osf1_timezone *) tzp; 324 }; 325 check_syscall_args(linux_sys_osf1_gettimeofday) 326 327 struct linux_sys_osf1_getrusage_args { 328 syscallarg(int) who; 329 syscallarg(struct osf1_rusage *) rusage; 330 }; 331 check_syscall_args(linux_sys_osf1_getrusage) 332 333 struct linux_sys_getsockopt_args { 334 syscallarg(int) s; 335 syscallarg(int) level; 336 syscallarg(int) optname; 337 syscallarg(void *) optval; 338 syscallarg(int *) optlen; 339 }; 340 check_syscall_args(linux_sys_getsockopt) 341 342 struct sys_readv_args; 343 344 struct sys_writev_args; 345 346 struct linux_sys_osf1_settimeofday_args { 347 syscallarg(struct osf1_timeval *) tv; 348 syscallarg(struct osf1_timezone *) tzp; 349 }; 350 check_syscall_args(linux_sys_osf1_settimeofday) 351 352 struct sys___posix_fchown_args; 353 354 struct sys_fchmod_args; 355 356 struct linux_sys_recvfrom_args { 357 syscallarg(int) s; 358 syscallarg(void *) buf; 359 syscallarg(int) len; 360 syscallarg(int) flags; 361 syscallarg(struct osockaddr *) from; 362 syscallarg(int *) fromlenaddr; 363 }; 364 check_syscall_args(linux_sys_recvfrom) 365 366 struct sys_setreuid_args; 367 368 struct sys_setregid_args; 369 370 struct sys___posix_rename_args; 371 372 struct compat_43_sys_truncate_args; 373 374 struct compat_43_sys_ftruncate_args; 375 376 struct sys_flock_args; 377 378 struct sys_setgid_args; 379 380 struct linux_sys_sendto_args { 381 syscallarg(int) s; 382 syscallarg(void *) msg; 383 syscallarg(int) len; 384 syscallarg(int) flags; 385 syscallarg(struct osockaddr *) to; 386 syscallarg(int) tolen; 387 }; 388 check_syscall_args(linux_sys_sendto) 389 390 struct sys_shutdown_args; 391 392 struct linux_sys_socketpair_args { 393 syscallarg(int) domain; 394 syscallarg(int) type; 395 syscallarg(int) protocol; 396 syscallarg(int *) rsv; 397 }; 398 check_syscall_args(linux_sys_socketpair) 399 400 struct sys_mkdir_args; 401 402 struct sys_rmdir_args; 403 404 struct linux_sys_osf1_utimes_args { 405 syscallarg(const char *) path; 406 syscallarg(const struct osf1_timeval *) tptr; 407 }; 408 check_syscall_args(linux_sys_osf1_utimes) 409 410 struct linux_sys_getpeername_args { 411 syscallarg(int) fdes; 412 syscallarg(void *) asa; 413 syscallarg(int *) alen; 414 }; 415 check_syscall_args(linux_sys_getpeername) 416 417 struct linux_sys_getrlimit_args { 418 syscallarg(int) which; 419 syscallarg(struct orlimit *) rlp; 420 }; 421 check_syscall_args(linux_sys_getrlimit) 422 423 struct linux_sys_setrlimit_args { 424 syscallarg(int) which; 425 syscallarg(const struct orlimit *) rlp; 426 }; 427 check_syscall_args(linux_sys_setrlimit) 428 429 struct linux_sys_getsockname_args { 430 syscallarg(int) fdec; 431 syscallarg(void *) asa; 432 syscallarg(int *) alen; 433 }; 434 check_syscall_args(linux_sys_getsockname) 435 436 struct linux_sys_sigaction_args { 437 syscallarg(int) signum; 438 syscallarg(const struct linux_old_sigaction *) nsa; 439 syscallarg(struct linux_old_sigaction *) osa; 440 }; 441 check_syscall_args(linux_sys_sigaction) 442 443 struct compat_43_sys_getdirentries_args; 444 445 struct linux_sys_osf1_statfs_args { 446 syscallarg(const char *) path; 447 syscallarg(struct osf1_statfs *) buf; 448 syscallarg(int) len; 449 }; 450 check_syscall_args(linux_sys_osf1_statfs) 451 452 struct linux_sys_osf1_fstatfs_args { 453 syscallarg(int) fd; 454 syscallarg(struct osf1_statfs *) buf; 455 syscallarg(int) len; 456 }; 457 check_syscall_args(linux_sys_osf1_fstatfs) 458 459 struct compat_09_sys_getdomainname_args; 460 461 struct linux_sys_setdomainname_args { 462 syscallarg(char *) domainname; 463 syscallarg(int) len; 464 }; 465 check_syscall_args(linux_sys_setdomainname) 466 467 struct linux_sys_ugetrlimit_args { 468 syscallarg(int) which; 469 syscallarg(struct rlimit *) rlp; 470 }; 471 check_syscall_args(linux_sys_ugetrlimit) 472 #ifdef SYSVMSG 473 474 struct linux_sys_msgctl_args; 475 476 struct sys_msgget_args; 477 478 struct sys_msgrcv_args; 479 480 struct sys_msgsnd_args; 481 #else 482 #endif 483 #ifdef SYSVSEM 484 485 struct linux_sys_semctl_args; 486 487 struct sys_semget_args; 488 489 struct sys_semop_args; 490 #else 491 #endif 492 493 struct linux_sys_olduname_args { 494 syscallarg(struct linux_old_utsname *) up; 495 }; 496 check_syscall_args(linux_sys_olduname) 497 498 struct sys___posix_lchown_args; 499 #ifdef SYSVSHM 500 501 struct linux_sys_shmat_args; 502 503 struct linux_sys_shmctl_args; 504 505 struct sys_shmdt_args; 506 507 struct linux_sys_shmget_args; 508 #else 509 #endif 510 511 struct sys___msync13_args; 512 513 struct sys_getpgid_args; 514 515 struct sys_getsid_args; 516 517 struct linux_sys_osf1_sysinfo_args { 518 syscallarg(int) cmd; 519 syscallarg(char *) buf; 520 syscallarg(long) len; 521 }; 522 check_syscall_args(linux_sys_osf1_sysinfo) 523 524 struct linux_sys_osf1_usleep_thread_args { 525 syscallarg(struct osf1_timeval *) sleep; 526 syscallarg(struct osf1_timeval *) slept; 527 }; 528 check_syscall_args(linux_sys_osf1_usleep_thread) 529 530 struct linux_sys_osf1_getsysinfo_args { 531 syscallarg(u_long) op; 532 syscallarg(void *) buffer; 533 syscallarg(u_long) nbytes; 534 syscallarg(void *) arg; 535 syscallarg(u_long) flag; 536 }; 537 check_syscall_args(linux_sys_osf1_getsysinfo) 538 539 struct linux_sys_osf1_setsysinfo_args { 540 syscallarg(u_long) op; 541 syscallarg(void *) buffer; 542 syscallarg(u_long) nbytes; 543 syscallarg(void *) arg; 544 syscallarg(u_long) flag; 545 }; 546 check_syscall_args(linux_sys_osf1_setsysinfo) 547 548 struct linux_sys_fdatasync_args { 549 syscallarg(int) fd; 550 }; 551 check_syscall_args(linux_sys_fdatasync) 552 553 struct linux_sys_swapoff_args { 554 syscallarg(const char *) path; 555 }; 556 check_syscall_args(linux_sys_swapoff) 557 558 struct linux_sys_getdents_args { 559 syscallarg(int) fd; 560 syscallarg(struct linux_dirent *) dent; 561 syscallarg(unsigned int) count; 562 }; 563 check_syscall_args(linux_sys_getdents) 564 565 struct linux_sys_reboot_args { 566 syscallarg(int) magic1; 567 syscallarg(int) magic2; 568 syscallarg(int) cmd; 569 syscallarg(void *) arg; 570 }; 571 check_syscall_args(linux_sys_reboot) 572 573 struct linux_sys_clone_args { 574 syscallarg(int) flags; 575 syscallarg(void *) stack; 576 syscallarg(void *) parent_tidptr; 577 syscallarg(void *) child_tidptr; 578 syscallarg(void *) tls; 579 }; 580 check_syscall_args(linux_sys_clone) 581 #ifdef EXEC_AOUT 582 583 struct linux_sys_uselib_args { 584 syscallarg(const char *) path; 585 }; 586 check_syscall_args(linux_sys_uselib) 587 #else 588 #endif 589 590 struct sys_mlock_args; 591 592 struct sys_munlock_args; 593 594 struct sys_mlockall_args; 595 596 struct linux_sys_sysinfo_args { 597 syscallarg(struct linux_sysinfo *) arg; 598 }; 599 check_syscall_args(linux_sys_sysinfo) 600 601 struct linux_sys___sysctl_args { 602 syscallarg(struct linux___sysctl *) lsp; 603 }; 604 check_syscall_args(linux_sys___sysctl) 605 606 struct linux_sys_swapon_args { 607 syscallarg(const char *) name; 608 }; 609 check_syscall_args(linux_sys_swapon) 610 611 struct linux_sys_times_args { 612 syscallarg(struct times *) tms; 613 }; 614 check_syscall_args(linux_sys_times) 615 616 struct linux_sys_personality_args { 617 syscallarg(unsigned long) per; 618 }; 619 check_syscall_args(linux_sys_personality) 620 621 struct linux_sys_setfsuid_args { 622 syscallarg(uid_t) uid; 623 }; 624 check_syscall_args(linux_sys_setfsuid) 625 626 struct linux_sys_setfsgid_args { 627 syscallarg(gid_t) gid; 628 }; 629 check_syscall_args(linux_sys_setfsgid) 630 631 struct linux_sys_statfs_args { 632 syscallarg(const char *) path; 633 syscallarg(struct linux_statfs *) sp; 634 }; 635 check_syscall_args(linux_sys_statfs) 636 637 struct linux_sys_fstatfs_args { 638 syscallarg(int) fd; 639 syscallarg(struct linux_statfs *) sp; 640 }; 641 check_syscall_args(linux_sys_fstatfs) 642 643 struct linux_sys_sched_setparam_args { 644 syscallarg(pid_t) pid; 645 syscallarg(const struct linux_sched_param *) sp; 646 }; 647 check_syscall_args(linux_sys_sched_setparam) 648 649 struct linux_sys_sched_getparam_args { 650 syscallarg(pid_t) pid; 651 syscallarg(struct linux_sched_param *) sp; 652 }; 653 check_syscall_args(linux_sys_sched_getparam) 654 655 struct linux_sys_sched_setscheduler_args { 656 syscallarg(pid_t) pid; 657 syscallarg(int) policy; 658 syscallarg(const struct linux_sched_param *) sp; 659 }; 660 check_syscall_args(linux_sys_sched_setscheduler) 661 662 struct linux_sys_sched_getscheduler_args { 663 syscallarg(pid_t) pid; 664 }; 665 check_syscall_args(linux_sys_sched_getscheduler) 666 667 struct linux_sys_sched_get_priority_max_args { 668 syscallarg(int) policy; 669 }; 670 check_syscall_args(linux_sys_sched_get_priority_max) 671 672 struct linux_sys_sched_get_priority_min_args { 673 syscallarg(int) policy; 674 }; 675 check_syscall_args(linux_sys_sched_get_priority_min) 676 677 struct linux_sys_uname_args { 678 syscallarg(struct linux_utsname *) up; 679 }; 680 check_syscall_args(linux_sys_uname) 681 682 struct linux_sys_nanosleep_args { 683 syscallarg(const struct linux_timespec *) rqtp; 684 syscallarg(struct linux_timespec *) rmtp; 685 }; 686 check_syscall_args(linux_sys_nanosleep) 687 688 struct linux_sys_mremap_args { 689 syscallarg(void *) old_address; 690 syscallarg(size_t) old_size; 691 syscallarg(size_t) new_size; 692 syscallarg(u_long) flags; 693 }; 694 check_syscall_args(linux_sys_mremap) 695 696 struct linux_sys_setresuid_args { 697 syscallarg(uid_t) ruid; 698 syscallarg(uid_t) euid; 699 syscallarg(uid_t) suid; 700 }; 701 check_syscall_args(linux_sys_setresuid) 702 703 struct linux_sys_getresuid_args { 704 syscallarg(uid_t *) ruid; 705 syscallarg(uid_t *) euid; 706 syscallarg(uid_t *) suid; 707 }; 708 check_syscall_args(linux_sys_getresuid) 709 710 struct linux_sys_pread_args { 711 syscallarg(int) fd; 712 syscallarg(char *) buf; 713 syscallarg(size_t) nbyte; 714 syscallarg(off_t) offset; 715 }; 716 check_syscall_args(linux_sys_pread) 717 718 struct linux_sys_pwrite_args { 719 syscallarg(int) fd; 720 syscallarg(char *) buf; 721 syscallarg(size_t) nbyte; 722 syscallarg(off_t) offset; 723 }; 724 check_syscall_args(linux_sys_pwrite) 725 726 struct linux_sys_rt_sigreturn_args { 727 syscallarg(struct linux_rt_sigframe *) sfp; 728 }; 729 check_syscall_args(linux_sys_rt_sigreturn) 730 731 struct linux_sys_rt_sigaction_args { 732 syscallarg(int) signum; 733 syscallarg(const struct linux_sigaction *) nsa; 734 syscallarg(struct linux_sigaction *) osa; 735 syscallarg(size_t) sigsetsize; 736 }; 737 check_syscall_args(linux_sys_rt_sigaction) 738 739 struct linux_sys_rt_sigprocmask_args { 740 syscallarg(int) how; 741 syscallarg(const linux_sigset_t *) set; 742 syscallarg(linux_sigset_t *) oset; 743 syscallarg(size_t) sigsetsize; 744 }; 745 check_syscall_args(linux_sys_rt_sigprocmask) 746 747 struct linux_sys_rt_sigpending_args { 748 syscallarg(linux_sigset_t *) set; 749 syscallarg(size_t) sigsetsize; 750 }; 751 check_syscall_args(linux_sys_rt_sigpending) 752 753 struct linux_sys_rt_sigtimedwait_args { 754 syscallarg(const linux_sigset_t *) set; 755 syscallarg(linux_siginfo_t *) info; 756 syscallarg(const struct linux_timespec *) timeout; 757 }; 758 check_syscall_args(linux_sys_rt_sigtimedwait) 759 760 struct linux_sys_rt_queueinfo_args { 761 syscallarg(int) pid; 762 syscallarg(int) signum; 763 syscallarg(linux_siginfo_t *) uinfo; 764 }; 765 check_syscall_args(linux_sys_rt_queueinfo) 766 767 struct linux_sys_rt_sigsuspend_args { 768 syscallarg(linux_sigset_t *) unewset; 769 syscallarg(size_t) sigsetsize; 770 }; 771 check_syscall_args(linux_sys_rt_sigsuspend) 772 773 struct linux_sys_select_args { 774 syscallarg(int) nfds; 775 syscallarg(fd_set *) readfds; 776 syscallarg(fd_set *) writefds; 777 syscallarg(fd_set *) exceptfds; 778 syscallarg(struct timeval50 *) timeout; 779 }; 780 check_syscall_args(linux_sys_select) 781 782 struct linux_sys_gettimeofday_args { 783 syscallarg(struct timeval50 *) tp; 784 syscallarg(struct timezone *) tzp; 785 }; 786 check_syscall_args(linux_sys_gettimeofday) 787 788 struct linux_sys_settimeofday_args { 789 syscallarg(struct timeval50 *) tp; 790 syscallarg(struct timezone *) tzp; 791 }; 792 check_syscall_args(linux_sys_settimeofday) 793 794 struct compat_50_sys_getitimer_args; 795 796 struct compat_50_sys_setitimer_args; 797 798 struct compat_50_sys_utimes_args; 799 800 struct compat_50_sys_getrusage_args; 801 802 struct linux_sys_wait4_args { 803 syscallarg(int) pid; 804 syscallarg(int *) status; 805 syscallarg(int) options; 806 syscallarg(struct rusage50 *) rusage; 807 }; 808 check_syscall_args(linux_sys_wait4) 809 810 struct sys___getcwd_args; 811 812 struct sys_mincore_args; 813 814 struct linux_sys_getdents64_args { 815 syscallarg(int) fd; 816 syscallarg(struct linux_dirent64 *) dent; 817 syscallarg(unsigned int) count; 818 }; 819 check_syscall_args(linux_sys_getdents64) 820 821 struct linux_sys_tkill_args { 822 syscallarg(int) tid; 823 syscallarg(int) sig; 824 }; 825 check_syscall_args(linux_sys_tkill) 826 827 struct linux_sys_setxattr_args { 828 syscallarg(char *) path; 829 syscallarg(char *) name; 830 syscallarg(void *) value; 831 syscallarg(size_t) size; 832 syscallarg(int) flags; 833 }; 834 check_syscall_args(linux_sys_setxattr) 835 836 struct linux_sys_lsetxattr_args { 837 syscallarg(char *) path; 838 syscallarg(char *) name; 839 syscallarg(void *) value; 840 syscallarg(size_t) size; 841 syscallarg(int) flags; 842 }; 843 check_syscall_args(linux_sys_lsetxattr) 844 845 struct linux_sys_fsetxattr_args { 846 syscallarg(int) fd; 847 syscallarg(char *) name; 848 syscallarg(void *) value; 849 syscallarg(size_t) size; 850 syscallarg(int) flags; 851 }; 852 check_syscall_args(linux_sys_fsetxattr) 853 854 struct linux_sys_getxattr_args { 855 syscallarg(char *) path; 856 syscallarg(char *) name; 857 syscallarg(void *) value; 858 syscallarg(size_t) size; 859 }; 860 check_syscall_args(linux_sys_getxattr) 861 862 struct linux_sys_lgetxattr_args { 863 syscallarg(char *) path; 864 syscallarg(char *) name; 865 syscallarg(void *) value; 866 syscallarg(size_t) size; 867 }; 868 check_syscall_args(linux_sys_lgetxattr) 869 870 struct linux_sys_fgetxattr_args { 871 syscallarg(int) fd; 872 syscallarg(char *) name; 873 syscallarg(void *) value; 874 syscallarg(size_t) size; 875 }; 876 check_syscall_args(linux_sys_fgetxattr) 877 878 struct linux_sys_listxattr_args { 879 syscallarg(char *) path; 880 syscallarg(char *) list; 881 syscallarg(size_t) size; 882 }; 883 check_syscall_args(linux_sys_listxattr) 884 885 struct linux_sys_llistxattr_args { 886 syscallarg(char *) path; 887 syscallarg(char *) list; 888 syscallarg(size_t) size; 889 }; 890 check_syscall_args(linux_sys_llistxattr) 891 892 struct linux_sys_flistxattr_args { 893 syscallarg(int) fd; 894 syscallarg(char *) list; 895 syscallarg(size_t) size; 896 }; 897 check_syscall_args(linux_sys_flistxattr) 898 899 struct linux_sys_removexattr_args { 900 syscallarg(char *) path; 901 syscallarg(char *) name; 902 }; 903 check_syscall_args(linux_sys_removexattr) 904 905 struct linux_sys_lremovexattr_args { 906 syscallarg(char *) path; 907 syscallarg(char *) name; 908 }; 909 check_syscall_args(linux_sys_lremovexattr) 910 911 struct linux_sys_fremovexattr_args { 912 syscallarg(int) fd; 913 syscallarg(char *) name; 914 }; 915 check_syscall_args(linux_sys_fremovexattr) 916 917 struct linux_sys_futex_args { 918 syscallarg(int *) uaddr; 919 syscallarg(int) op; 920 syscallarg(int) val; 921 syscallarg(const struct linux_timespec *) timeout; 922 syscallarg(int *) uaddr2; 923 syscallarg(int) val3; 924 }; 925 check_syscall_args(linux_sys_futex) 926 927 struct linux_sys_sched_setaffinity_args { 928 syscallarg(pid_t) pid; 929 syscallarg(unsigned int) len; 930 syscallarg(unsigned long *) mask; 931 }; 932 check_syscall_args(linux_sys_sched_setaffinity) 933 934 struct linux_sys_sched_getaffinity_args { 935 syscallarg(pid_t) pid; 936 syscallarg(unsigned int) len; 937 syscallarg(unsigned long *) mask; 938 }; 939 check_syscall_args(linux_sys_sched_getaffinity) 940 941 struct linux_sys_exit_group_args { 942 syscallarg(int) error_code; 943 }; 944 check_syscall_args(linux_sys_exit_group) 945 946 struct linux_sys_set_tid_address_args { 947 syscallarg(int *) tid; 948 }; 949 check_syscall_args(linux_sys_set_tid_address) 950 951 struct linux_sys_fadvise64_args { 952 syscallarg(int) fd; 953 syscallarg(off_t) offset; 954 syscallarg(size_t) len; 955 syscallarg(int) advice; 956 }; 957 check_syscall_args(linux_sys_fadvise64) 958 959 struct linux_sys_clock_settime_args { 960 syscallarg(clockid_t) which; 961 syscallarg(struct linux_timespec *) tp; 962 }; 963 check_syscall_args(linux_sys_clock_settime) 964 965 struct linux_sys_clock_gettime_args { 966 syscallarg(clockid_t) which; 967 syscallarg(struct linux_timespec *) tp; 968 }; 969 check_syscall_args(linux_sys_clock_gettime) 970 971 struct linux_sys_clock_getres_args { 972 syscallarg(clockid_t) which; 973 syscallarg(struct linux_timespec *) tp; 974 }; 975 check_syscall_args(linux_sys_clock_getres) 976 977 struct linux_sys_clock_nanosleep_args { 978 syscallarg(clockid_t) which; 979 syscallarg(int) flags; 980 syscallarg(struct linux_timespec *) rqtp; 981 syscallarg(struct linux_timespec *) rmtp; 982 }; 983 check_syscall_args(linux_sys_clock_nanosleep) 984 985 struct linux_sys_tgkill_args { 986 syscallarg(int) tgid; 987 syscallarg(int) tid; 988 syscallarg(int) sig; 989 }; 990 check_syscall_args(linux_sys_tgkill) 991 992 struct linux_sys_stat64_args { 993 syscallarg(const char *) path; 994 syscallarg(struct linux_stat64 *) sp; 995 }; 996 check_syscall_args(linux_sys_stat64) 997 998 struct linux_sys_lstat64_args { 999 syscallarg(const char *) path; 1000 syscallarg(struct linux_stat64 *) sp; 1001 }; 1002 check_syscall_args(linux_sys_lstat64) 1003 1004 struct linux_sys_fstat64_args { 1005 syscallarg(int) fd; 1006 syscallarg(struct linux_stat64 *) sp; 1007 }; 1008 check_syscall_args(linux_sys_fstat64) 1009 1010 struct linux_sys_openat_args { 1011 syscallarg(int) fd; 1012 syscallarg(const char *) path; 1013 syscallarg(int) flags; 1014 syscallarg(linux_umode_t) mode; 1015 }; 1016 check_syscall_args(linux_sys_openat) 1017 1018 struct sys_mkdirat_args; 1019 1020 struct linux_sys_mknodat_args { 1021 syscallarg(int) fd; 1022 syscallarg(const char *) path; 1023 syscallarg(linux_umode_t) mode; 1024 syscallarg(unsigned) dev; 1025 }; 1026 check_syscall_args(linux_sys_mknodat) 1027 1028 struct linux_sys_fchownat_args { 1029 syscallarg(int) fd; 1030 syscallarg(const char *) path; 1031 syscallarg(uid_t) owner; 1032 syscallarg(gid_t) group; 1033 syscallarg(int) flag; 1034 }; 1035 check_syscall_args(linux_sys_fchownat) 1036 1037 struct linux_sys_fstatat64_args { 1038 syscallarg(int) fd; 1039 syscallarg(const char *) path; 1040 syscallarg(struct linux_stat64 *) sp; 1041 syscallarg(int) flag; 1042 }; 1043 check_syscall_args(linux_sys_fstatat64) 1044 1045 struct linux_sys_unlinkat_args { 1046 syscallarg(int) fd; 1047 syscallarg(const char *) path; 1048 syscallarg(int) flag; 1049 }; 1050 check_syscall_args(linux_sys_unlinkat) 1051 1052 struct sys_renameat_args; 1053 1054 struct linux_sys_linkat_args { 1055 syscallarg(int) fd1; 1056 syscallarg(const char *) name1; 1057 syscallarg(int) fd2; 1058 syscallarg(const char *) name2; 1059 syscallarg(int) flags; 1060 }; 1061 check_syscall_args(linux_sys_linkat) 1062 1063 struct sys_symlinkat_args; 1064 1065 struct sys_readlinkat_args; 1066 1067 struct linux_sys_fchmodat_args { 1068 syscallarg(int) fd; 1069 syscallarg(const char *) path; 1070 syscallarg(linux_umode_t) mode; 1071 }; 1072 check_syscall_args(linux_sys_fchmodat) 1073 1074 struct linux_sys_faccessat_args { 1075 syscallarg(int) fd; 1076 syscallarg(const char *) path; 1077 syscallarg(int) amode; 1078 }; 1079 check_syscall_args(linux_sys_faccessat) 1080 1081 struct linux_sys_pselect6_args { 1082 syscallarg(int) nfds; 1083 syscallarg(fd_set *) readfds; 1084 syscallarg(fd_set *) writefds; 1085 syscallarg(fd_set *) exceptfds; 1086 syscallarg(struct linux_timespec *) timeout; 1087 syscallarg(linux_sized_sigset_t *) ss; 1088 }; 1089 check_syscall_args(linux_sys_pselect6) 1090 1091 struct linux_sys_ppoll_args { 1092 syscallarg(struct pollfd *) fds; 1093 syscallarg(u_int) nfds; 1094 syscallarg(struct linux_timespec *) timeout; 1095 syscallarg(linux_sigset_t *) sigset; 1096 }; 1097 check_syscall_args(linux_sys_ppoll) 1098 1099 struct sys___futex_set_robust_list_args; 1100 1101 struct sys___futex_get_robust_list_args; 1102 1103 struct linux_sys_utimensat_args { 1104 syscallarg(int) fd; 1105 syscallarg(const char *) path; 1106 syscallarg(struct linux_timespec *) times; 1107 syscallarg(int) flag; 1108 }; 1109 check_syscall_args(linux_sys_utimensat) 1110 1111 struct linux_sys_recvmmsg_args { 1112 syscallarg(int) s; 1113 syscallarg(struct linux_mmsghdr *) msgvec; 1114 syscallarg(unsigned int) vlen; 1115 syscallarg(unsigned int) flags; 1116 syscallarg(struct timespec *) timeout; 1117 }; 1118 check_syscall_args(linux_sys_recvmmsg) 1119 1120 struct linux_sys_fallocate_args { 1121 syscallarg(int) fd; 1122 syscallarg(int) mode; 1123 syscallarg(off_t) offset; 1124 syscallarg(off_t) len; 1125 }; 1126 check_syscall_args(linux_sys_fallocate) 1127 1128 struct linux_sys_dup3_args { 1129 syscallarg(int) from; 1130 syscallarg(int) to; 1131 syscallarg(int) flags; 1132 }; 1133 check_syscall_args(linux_sys_dup3) 1134 1135 struct linux_sys_pipe2_args { 1136 syscallarg(int *) pfds; 1137 syscallarg(int) flags; 1138 }; 1139 check_syscall_args(linux_sys_pipe2) 1140 1141 struct linux_sys_accept4_args { 1142 syscallarg(int) s; 1143 syscallarg(struct osockaddr *) name; 1144 syscallarg(int *) anamelen; 1145 syscallarg(int) flags; 1146 }; 1147 check_syscall_args(linux_sys_accept4) 1148 1149 struct linux_sys_sendmmsg_args { 1150 syscallarg(int) s; 1151 syscallarg(struct linux_mmsghdr *) msgvec; 1152 syscallarg(unsigned int) vlen; 1153 syscallarg(unsigned int) flags; 1154 }; 1155 check_syscall_args(linux_sys_sendmmsg) 1156 1157 /* 1158 * System call prototypes. 1159 */ 1160 1161 int linux_sys_nosys(struct lwp *, const void *, register_t *); 1162 1163 int linux_sys_exit(struct lwp *, const struct linux_sys_exit_args *, register_t *); 1164 1165 int sys_fork(struct lwp *, const void *, register_t *); 1166 1167 int sys_read(struct lwp *, const struct sys_read_args *, register_t *); 1168 1169 int sys_write(struct lwp *, const struct sys_write_args *, register_t *); 1170 1171 int sys_close(struct lwp *, const struct sys_close_args *, register_t *); 1172 1173 int linux_sys_osf1_wait4(struct lwp *, const struct linux_sys_osf1_wait4_args *, register_t *); 1174 1175 int linux_sys_creat(struct lwp *, const struct linux_sys_creat_args *, register_t *); 1176 1177 int sys_link(struct lwp *, const struct sys_link_args *, register_t *); 1178 1179 int linux_sys_unlink(struct lwp *, const struct linux_sys_unlink_args *, register_t *); 1180 1181 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *); 1182 1183 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *); 1184 1185 int linux_sys_mknod(struct lwp *, const struct linux_sys_mknod_args *, register_t *); 1186 1187 int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *); 1188 1189 int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *); 1190 1191 int linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *); 1192 1193 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *); 1194 1195 int sys_getpid_with_ppid(struct lwp *, const void *, register_t *); 1196 1197 int linux_sys_osf1_mount(struct lwp *, const struct linux_sys_osf1_mount_args *, register_t *); 1198 1199 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *); 1200 1201 int sys_getuid_with_euid(struct lwp *, const void *, register_t *); 1202 1203 int linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *); 1204 1205 int sys_access(struct lwp *, const struct sys_access_args *, register_t *); 1206 1207 int sys_sync(struct lwp *, const void *, register_t *); 1208 1209 int linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *); 1210 1211 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *); 1212 1213 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *); 1214 1215 int linux_sys_pipe(struct lwp *, const void *, register_t *); 1216 1217 int linux_sys_osf1_set_program_attributes(struct lwp *, const struct linux_sys_osf1_set_program_attributes_args *, register_t *); 1218 1219 int linux_sys_open(struct lwp *, const struct linux_sys_open_args *, register_t *); 1220 1221 int sys_getgid_with_egid(struct lwp *, const void *, register_t *); 1222 1223 int compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *); 1224 1225 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *); 1226 1227 int linux_sys_sigpending(struct lwp *, const struct linux_sys_sigpending_args *, register_t *); 1228 1229 int linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *); 1230 1231 int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *); 1232 1233 int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *); 1234 1235 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *); 1236 1237 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *); 1238 1239 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *); 1240 1241 int sys_getpgrp(struct lwp *, const void *, register_t *); 1242 1243 int compat_43_sys_getpagesize(struct lwp *, const void *, register_t *); 1244 1245 int sys___vfork14(struct lwp *, const void *, register_t *); 1246 1247 int linux_sys_stat(struct lwp *, const struct linux_sys_stat_args *, register_t *); 1248 1249 int linux_sys_lstat(struct lwp *, const struct linux_sys_lstat_args *, register_t *); 1250 1251 int linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *); 1252 1253 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); 1254 1255 int linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *); 1256 1257 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *); 1258 1259 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *); 1260 1261 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *); 1262 1263 int linux_sys_osf1_setitimer(struct lwp *, const struct linux_sys_osf1_setitimer_args *, register_t *); 1264 1265 int compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *); 1266 1267 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *); 1268 1269 int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *); 1270 1271 int linux_sys_fstat(struct lwp *, const struct linux_sys_fstat_args *, register_t *); 1272 1273 int linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *); 1274 1275 int linux_sys_osf1_select(struct lwp *, const struct linux_sys_osf1_select_args *, register_t *); 1276 1277 int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *); 1278 1279 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *); 1280 1281 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *); 1282 1283 int linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *); 1284 1285 int linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *); 1286 1287 int linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *); 1288 1289 int linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *); 1290 1291 int linux_sys_send(struct lwp *, const struct linux_sys_send_args *, register_t *); 1292 1293 int linux_sys_recv(struct lwp *, const struct linux_sys_recv_args *, register_t *); 1294 1295 int linux_sys_sigreturn(struct lwp *, const struct linux_sys_sigreturn_args *, register_t *); 1296 1297 int linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *); 1298 1299 int linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *); 1300 1301 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); 1302 1303 int linux_sys_sigsuspend(struct lwp *, const struct linux_sys_sigsuspend_args *, register_t *); 1304 1305 int compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *); 1306 1307 int linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *); 1308 1309 int linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *); 1310 1311 int linux_sys_osf1_gettimeofday(struct lwp *, const struct linux_sys_osf1_gettimeofday_args *, register_t *); 1312 1313 int linux_sys_osf1_getrusage(struct lwp *, const struct linux_sys_osf1_getrusage_args *, register_t *); 1314 1315 int linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *); 1316 1317 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *); 1318 1319 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *); 1320 1321 int linux_sys_osf1_settimeofday(struct lwp *, const struct linux_sys_osf1_settimeofday_args *, register_t *); 1322 1323 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *); 1324 1325 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *); 1326 1327 int linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *); 1328 1329 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *); 1330 1331 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *); 1332 1333 int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *); 1334 1335 int compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *); 1336 1337 int compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *); 1338 1339 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *); 1340 1341 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *); 1342 1343 int linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *); 1344 1345 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *); 1346 1347 int linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *); 1348 1349 int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *); 1350 1351 int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *); 1352 1353 int linux_sys_osf1_utimes(struct lwp *, const struct linux_sys_osf1_utimes_args *, register_t *); 1354 1355 int linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *); 1356 1357 int linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *); 1358 1359 int linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *); 1360 1361 int sys_setsid(struct lwp *, const void *, register_t *); 1362 1363 int linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *); 1364 1365 int linux_sys_sigaction(struct lwp *, const struct linux_sys_sigaction_args *, register_t *); 1366 1367 int compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *); 1368 1369 int linux_sys_osf1_statfs(struct lwp *, const struct linux_sys_osf1_statfs_args *, register_t *); 1370 1371 int linux_sys_osf1_fstatfs(struct lwp *, const struct linux_sys_osf1_fstatfs_args *, register_t *); 1372 1373 int compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *); 1374 1375 int linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *); 1376 1377 int linux_sys_ugetrlimit(struct lwp *, const struct linux_sys_ugetrlimit_args *, register_t *); 1378 1379 #ifdef SYSVMSG 1380 int linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *); 1381 1382 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *); 1383 1384 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *); 1385 1386 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *); 1387 1388 #else 1389 #endif 1390 #ifdef SYSVSEM 1391 int linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *); 1392 1393 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *); 1394 1395 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *); 1396 1397 #else 1398 #endif 1399 int linux_sys_olduname(struct lwp *, const struct linux_sys_olduname_args *, register_t *); 1400 1401 int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *); 1402 1403 #ifdef SYSVSHM 1404 int linux_sys_shmat(struct lwp *, const struct linux_sys_shmat_args *, register_t *); 1405 1406 int linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *); 1407 1408 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *); 1409 1410 int linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *); 1411 1412 #else 1413 #endif 1414 int sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *); 1415 1416 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *); 1417 1418 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); 1419 1420 int linux_sys_osf1_sysinfo(struct lwp *, const struct linux_sys_osf1_sysinfo_args *, register_t *); 1421 1422 int linux_sys_osf1_usleep_thread(struct lwp *, const struct linux_sys_osf1_usleep_thread_args *, register_t *); 1423 1424 int linux_sys_osf1_getsysinfo(struct lwp *, const struct linux_sys_osf1_getsysinfo_args *, register_t *); 1425 1426 int linux_sys_osf1_setsysinfo(struct lwp *, const struct linux_sys_osf1_setsysinfo_args *, register_t *); 1427 1428 int linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *); 1429 1430 int linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *); 1431 1432 int linux_sys_getdents(struct lwp *, const struct linux_sys_getdents_args *, register_t *); 1433 1434 int linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *); 1435 1436 int linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *); 1437 1438 #ifdef EXEC_AOUT 1439 int linux_sys_uselib(struct lwp *, const struct linux_sys_uselib_args *, register_t *); 1440 1441 #else 1442 #endif 1443 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *); 1444 1445 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *); 1446 1447 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *); 1448 1449 int sys_munlockall(struct lwp *, const void *, register_t *); 1450 1451 int linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *); 1452 1453 int linux_sys___sysctl(struct lwp *, const struct linux_sys___sysctl_args *, register_t *); 1454 1455 int linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *); 1456 1457 int linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *); 1458 1459 int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *); 1460 1461 int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); 1462 1463 int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *); 1464 1465 int linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *); 1466 1467 int linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *); 1468 1469 int linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *); 1470 1471 int linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *); 1472 1473 int linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *); 1474 1475 int linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *); 1476 1477 int linux_sys_sched_yield(struct lwp *, const void *, register_t *); 1478 1479 int linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *); 1480 1481 int linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *); 1482 1483 int linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *); 1484 1485 int linux_sys_nanosleep(struct lwp *, const struct linux_sys_nanosleep_args *, register_t *); 1486 1487 int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *); 1488 1489 int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *); 1490 1491 int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *); 1492 1493 int linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *); 1494 1495 int linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *); 1496 1497 int linux_sys_rt_sigreturn(struct lwp *, const struct linux_sys_rt_sigreturn_args *, register_t *); 1498 1499 int linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *); 1500 1501 int linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *); 1502 1503 int linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *); 1504 1505 int linux_sys_rt_sigtimedwait(struct lwp *, const struct linux_sys_rt_sigtimedwait_args *, register_t *); 1506 1507 int linux_sys_rt_queueinfo(struct lwp *, const struct linux_sys_rt_queueinfo_args *, register_t *); 1508 1509 int linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *); 1510 1511 int linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *); 1512 1513 int linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *); 1514 1515 int linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *); 1516 1517 int compat_50_sys_getitimer(struct lwp *, const struct compat_50_sys_getitimer_args *, register_t *); 1518 1519 int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *); 1520 1521 int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *); 1522 1523 int compat_50_sys_getrusage(struct lwp *, const struct compat_50_sys_getrusage_args *, register_t *); 1524 1525 int linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *); 1526 1527 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *); 1528 1529 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *); 1530 1531 int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *); 1532 1533 int linux_sys_gettid(struct lwp *, const void *, register_t *); 1534 1535 int linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *); 1536 1537 int linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *); 1538 1539 int linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *); 1540 1541 int linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *); 1542 1543 int linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *); 1544 1545 int linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *); 1546 1547 int linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *); 1548 1549 int linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *); 1550 1551 int linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *); 1552 1553 int linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *); 1554 1555 int linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *); 1556 1557 int linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *); 1558 1559 int linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *); 1560 1561 int linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *); 1562 1563 int linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *); 1564 1565 int linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *); 1566 1567 int linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *); 1568 1569 int linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *); 1570 1571 int linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *); 1572 1573 int linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *); 1574 1575 int linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *); 1576 1577 int linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *); 1578 1579 int linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *); 1580 1581 int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); 1582 1583 int linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *); 1584 1585 int linux_sys_lstat64(struct lwp *, const struct linux_sys_lstat64_args *, register_t *); 1586 1587 int linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *); 1588 1589 int linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *); 1590 1591 int sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *); 1592 1593 int linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *); 1594 1595 int linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *); 1596 1597 int linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *); 1598 1599 int linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *); 1600 1601 int sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *); 1602 1603 int linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *); 1604 1605 int sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *); 1606 1607 int sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *); 1608 1609 int linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *); 1610 1611 int linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_args *, register_t *); 1612 1613 int linux_sys_pselect6(struct lwp *, const struct linux_sys_pselect6_args *, register_t *); 1614 1615 int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *); 1616 1617 int sys___futex_set_robust_list(struct lwp *, const struct sys___futex_set_robust_list_args *, register_t *); 1618 1619 int sys___futex_get_robust_list(struct lwp *, const struct sys___futex_get_robust_list_args *, register_t *); 1620 1621 int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *); 1622 1623 int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); 1624 1625 int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); 1626 1627 int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); 1628 1629 int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); 1630 1631 int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); 1632 1633 int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); 1634 1635 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ 1636