1 /* $NetBSD: linux_syscallargs.h,v 1.22 2007/12/24 14:21:41 njoly 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.22 2007/12/24 14:17:17 njoly Exp 8 */ 9 10 #ifndef _LINUX_SYS_SYSCALLARGS_H_ 11 #define _LINUX_SYS_SYSCALLARGS_H_ 12 13 #define LINUX_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) \ 31 typedef char call##_check_args[sizeof (struct call##_args) \ 32 <= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1]; 33 34 struct sys_read_args; 35 36 struct sys_write_args; 37 38 struct linux_sys_open_args { 39 syscallarg(const char *) path; 40 syscallarg(int) flags; 41 syscallarg(int) mode; 42 }; 43 check_syscall_args(linux_sys_open) 44 45 struct sys_close_args; 46 47 struct linux_sys_stat64_args { 48 syscallarg(const char *) path; 49 syscallarg(struct linux_stat *) sp; 50 }; 51 check_syscall_args(linux_sys_stat64) 52 53 struct linux_sys_fstat64_args { 54 syscallarg(int) fd; 55 syscallarg(struct linux_stat *) sp; 56 }; 57 check_syscall_args(linux_sys_fstat64) 58 59 struct linux_sys_lstat64_args { 60 syscallarg(const char *) path; 61 syscallarg(struct linux_stat *) sp; 62 }; 63 check_syscall_args(linux_sys_lstat64) 64 65 struct sys_poll_args; 66 67 struct compat_43_sys_lseek_args; 68 69 struct linux_sys_mmap_args; 70 71 struct linux_sys_mprotect_args { 72 syscallarg(const void *) start; 73 syscallarg(unsigned long) len; 74 syscallarg(int) prot; 75 }; 76 check_syscall_args(linux_sys_mprotect) 77 78 struct sys_munmap_args; 79 80 struct linux_sys_brk_args { 81 syscallarg(char *) nsize; 82 }; 83 check_syscall_args(linux_sys_brk) 84 85 struct linux_sys_rt_sigaction_args { 86 syscallarg(int) signum; 87 syscallarg(const struct linux_sigaction *) nsa; 88 syscallarg(struct linux_sigaction *) osa; 89 syscallarg(size_t) sigsetsize; 90 }; 91 check_syscall_args(linux_sys_rt_sigaction) 92 93 struct linux_sys_rt_sigprocmask_args { 94 syscallarg(int) how; 95 syscallarg(const linux_sigset_t *) set; 96 syscallarg(linux_sigset_t *) oset; 97 syscallarg(size_t) sigsetsize; 98 }; 99 check_syscall_args(linux_sys_rt_sigprocmask) 100 101 struct linux_sys_ioctl_args { 102 syscallarg(int) fd; 103 syscallarg(u_long) com; 104 syscallarg(void *) data; 105 }; 106 check_syscall_args(linux_sys_ioctl) 107 108 struct linux_sys_pread_args { 109 syscallarg(int) fd; 110 syscallarg(char *) buf; 111 syscallarg(size_t) nbyte; 112 syscallarg(linux_off_t) offset; 113 }; 114 check_syscall_args(linux_sys_pread) 115 116 struct linux_sys_pwrite_args { 117 syscallarg(int) fd; 118 syscallarg(char *) buf; 119 syscallarg(size_t) nbyte; 120 syscallarg(linux_off_t) offset; 121 }; 122 check_syscall_args(linux_sys_pwrite) 123 124 struct sys_readv_args; 125 126 struct sys_writev_args; 127 128 struct sys_access_args; 129 130 struct linux_sys_pipe_args { 131 syscallarg(int *) pfds; 132 }; 133 check_syscall_args(linux_sys_pipe) 134 135 struct linux_sys_select_args { 136 syscallarg(int) nfds; 137 syscallarg(fd_set *) readfds; 138 syscallarg(fd_set *) writefds; 139 syscallarg(fd_set *) exceptfds; 140 syscallarg(struct timeval *) timeout; 141 }; 142 check_syscall_args(linux_sys_select) 143 144 struct linux_sys_mremap_args { 145 syscallarg(void *) old_address; 146 syscallarg(size_t) old_size; 147 syscallarg(size_t) new_size; 148 syscallarg(u_long) flags; 149 }; 150 check_syscall_args(linux_sys_mremap) 151 152 struct linux_sys_msync_args { 153 syscallarg(void *) addr; 154 syscallarg(int) len; 155 syscallarg(int) fl; 156 }; 157 check_syscall_args(linux_sys_msync) 158 159 struct sys_mincore_args; 160 161 struct sys_madvise_args; 162 #ifdef SYSVSHM 163 164 struct linux_sys_shmget_args; 165 166 struct sys_shmat_args; 167 168 struct linux_sys_shmctl_args; 169 #else 170 #endif 171 172 struct sys_dup_args; 173 174 struct sys_dup2_args; 175 176 struct sys_nanosleep_args; 177 178 struct sys_getitimer_args; 179 180 struct linux_sys_alarm_args { 181 syscallarg(unsigned int) secs; 182 }; 183 check_syscall_args(linux_sys_alarm) 184 185 struct sys_setitimer_args; 186 187 struct linux_sys_socket_args { 188 syscallarg(int) domain; 189 syscallarg(int) type; 190 syscallarg(int) protocol; 191 }; 192 check_syscall_args(linux_sys_socket) 193 194 struct linux_sys_connect_args { 195 syscallarg(int) s; 196 syscallarg(const struct osockaddr *) name; 197 syscallarg(unsigned int) namelen; 198 }; 199 check_syscall_args(linux_sys_connect) 200 201 struct linux_sys_accept_args { 202 syscallarg(int) s; 203 syscallarg(struct osockaddr *) name; 204 syscallarg(int *) anamelen; 205 }; 206 check_syscall_args(linux_sys_accept) 207 208 struct linux_sys_sendto_args { 209 syscallarg(int) s; 210 syscallarg(void *) msg; 211 syscallarg(int) len; 212 syscallarg(int) flags; 213 syscallarg(struct osockaddr *) to; 214 syscallarg(int) tolen; 215 }; 216 check_syscall_args(linux_sys_sendto) 217 218 struct linux_sys_recvfrom_args { 219 syscallarg(int) s; 220 syscallarg(void *) buf; 221 syscallarg(size_t) len; 222 syscallarg(int) flags; 223 syscallarg(struct osockaddr *) from; 224 syscallarg(unsigned int *) fromlenaddr; 225 }; 226 check_syscall_args(linux_sys_recvfrom) 227 228 struct linux_sys_sendmsg_args { 229 syscallarg(int) s; 230 syscallarg(const struct msghdr *) msg; 231 syscallarg(int) flags; 232 }; 233 check_syscall_args(linux_sys_sendmsg) 234 235 struct linux_sys_recvmsg_args { 236 syscallarg(int) s; 237 syscallarg(struct msghdr *) msg; 238 syscallarg(int) flags; 239 }; 240 check_syscall_args(linux_sys_recvmsg) 241 242 struct sys_shutdown_args; 243 244 struct linux_sys_bind_args { 245 syscallarg(int) s; 246 syscallarg(const struct osockaddr *) name; 247 syscallarg(unsigned int) namelen; 248 }; 249 check_syscall_args(linux_sys_bind) 250 251 struct sys_listen_args; 252 253 struct linux_sys_getsockname_args { 254 syscallarg(int) fdec; 255 syscallarg(void *) asa; 256 syscallarg(int *) alen; 257 }; 258 check_syscall_args(linux_sys_getsockname) 259 260 struct linux_sys_getpeername_args { 261 syscallarg(int) fdes; 262 syscallarg(struct sockaddr *) asa; 263 syscallarg(unsigned int *) alen; 264 }; 265 check_syscall_args(linux_sys_getpeername) 266 267 struct linux_sys_socketpair_args { 268 syscallarg(int) domain; 269 syscallarg(int) type; 270 syscallarg(int) protocol; 271 syscallarg(int *) rsv; 272 }; 273 check_syscall_args(linux_sys_socketpair) 274 275 struct linux_sys_setsockopt_args { 276 syscallarg(int) s; 277 syscallarg(int) level; 278 syscallarg(int) optname; 279 syscallarg(void *) optval; 280 syscallarg(int) optlen; 281 }; 282 check_syscall_args(linux_sys_setsockopt) 283 284 struct linux_sys_getsockopt_args { 285 syscallarg(int) s; 286 syscallarg(int) level; 287 syscallarg(int) optname; 288 syscallarg(void *) optval; 289 syscallarg(int *) optlen; 290 }; 291 check_syscall_args(linux_sys_getsockopt) 292 293 struct linux_sys_clone_args { 294 syscallarg(int) flags; 295 syscallarg(void *) stack; 296 syscallarg(void *) parent_tidptr; 297 syscallarg(void *) child_tidptr; 298 }; 299 check_syscall_args(linux_sys_clone) 300 301 struct sys_execve_args; 302 303 struct sys_exit_args; 304 305 struct linux_sys_wait4_args { 306 syscallarg(int) pid; 307 syscallarg(int *) status; 308 syscallarg(int) options; 309 syscallarg(struct rusage *) rusage; 310 }; 311 check_syscall_args(linux_sys_wait4) 312 313 struct linux_sys_kill_args { 314 syscallarg(int) pid; 315 syscallarg(int) signum; 316 }; 317 check_syscall_args(linux_sys_kill) 318 319 struct linux_sys_uname_args { 320 syscallarg(struct linux_utsname *) up; 321 }; 322 check_syscall_args(linux_sys_uname) 323 #ifdef SYSVSEM 324 325 struct sys_semget_args; 326 327 struct sys_semop_args; 328 329 struct linux_sys_semctl_args { 330 syscallarg(int) semid; 331 syscallarg(int) semnum; 332 syscallarg(int) cmd; 333 syscallarg(union linux_semun) arg; 334 }; 335 check_syscall_args(linux_sys_semctl) 336 #else 337 #endif 338 #ifdef SYSVSHM 339 340 struct sys_shmdt_args; 341 #else 342 #endif 343 #ifdef SYSVMSG 344 345 struct sys_msgget_args; 346 347 struct sys_msgsnd_args; 348 349 struct sys_msgrcv_args; 350 351 struct linux_sys_msgctl_args; 352 #else 353 #endif 354 355 struct linux_sys_fcntl_args { 356 syscallarg(int) fd; 357 syscallarg(int) cmd; 358 syscallarg(void *) arg; 359 }; 360 check_syscall_args(linux_sys_fcntl) 361 362 struct sys_flock_args; 363 364 struct sys_fsync_args; 365 366 struct linux_sys_fdatasync_args { 367 syscallarg(int) fd; 368 }; 369 check_syscall_args(linux_sys_fdatasync) 370 371 struct linux_sys_truncate64_args { 372 syscallarg(const char *) path; 373 syscallarg(off_t) length; 374 }; 375 check_syscall_args(linux_sys_truncate64) 376 377 struct linux_sys_ftruncate64_args { 378 syscallarg(unsigned int) fd; 379 syscallarg(off_t) length; 380 }; 381 check_syscall_args(linux_sys_ftruncate64) 382 383 struct linux_sys_getdents_args { 384 syscallarg(int) fd; 385 syscallarg(struct linux_dirent *) dent; 386 syscallarg(unsigned int) count; 387 }; 388 check_syscall_args(linux_sys_getdents) 389 390 struct sys___getcwd_args; 391 392 struct sys_chdir_args; 393 394 struct sys_fchdir_args; 395 396 struct sys___posix_rename_args; 397 398 struct sys_mkdir_args; 399 400 struct sys_rmdir_args; 401 402 struct linux_sys_creat_args { 403 syscallarg(const char *) path; 404 syscallarg(int) mode; 405 }; 406 check_syscall_args(linux_sys_creat) 407 408 struct sys_link_args; 409 410 struct linux_sys_unlink_args { 411 syscallarg(const char *) path; 412 }; 413 check_syscall_args(linux_sys_unlink) 414 415 struct sys_symlink_args; 416 417 struct sys_readlink_args; 418 419 struct sys_chmod_args; 420 421 struct sys_fchmod_args; 422 423 struct sys___posix_chown_args; 424 425 struct sys___posix_fchown_args; 426 427 struct sys___posix_lchown_args; 428 429 struct sys_umask_args; 430 431 struct linux_sys_gettimeofday_args { 432 syscallarg(struct timeval *) tp; 433 syscallarg(struct timezone *) tzp; 434 }; 435 check_syscall_args(linux_sys_gettimeofday) 436 437 struct linux_sys_getrlimit_args { 438 syscallarg(int) which; 439 syscallarg(struct rlimit *) rlp; 440 }; 441 check_syscall_args(linux_sys_getrlimit) 442 443 struct sys_getrusage_args; 444 445 struct linux_sys_sysinfo_args { 446 syscallarg(struct linux_sysinfo *) arg; 447 }; 448 check_syscall_args(linux_sys_sysinfo) 449 450 struct linux_sys_times_args { 451 syscallarg(struct times *) tms; 452 }; 453 check_syscall_args(linux_sys_times) 454 455 struct linux_sys_ptrace_args { 456 syscallarg(long) request; 457 syscallarg(long) pid; 458 syscallarg(long) addr; 459 syscallarg(long) data; 460 }; 461 check_syscall_args(linux_sys_ptrace) 462 463 struct sys_setuid_args; 464 465 struct sys_setgid_args; 466 467 struct sys_setpgid_args; 468 469 struct sys_setreuid_args; 470 471 struct sys_setregid_args; 472 473 struct sys_getgroups_args; 474 475 struct sys_setgroups_args; 476 477 struct linux_sys_setresuid_args { 478 syscallarg(uid_t) ruid; 479 syscallarg(uid_t) euid; 480 syscallarg(uid_t) suid; 481 }; 482 check_syscall_args(linux_sys_setresuid) 483 484 struct linux_sys_getresuid_args { 485 syscallarg(uid_t *) ruid; 486 syscallarg(uid_t *) euid; 487 syscallarg(uid_t *) suid; 488 }; 489 check_syscall_args(linux_sys_getresuid) 490 491 struct linux_sys_setresgid_args { 492 syscallarg(gid_t) rgid; 493 syscallarg(gid_t) egid; 494 syscallarg(gid_t) sgid; 495 }; 496 check_syscall_args(linux_sys_setresgid) 497 498 struct linux_sys_getresgid_args { 499 syscallarg(gid_t *) rgid; 500 syscallarg(gid_t *) egid; 501 syscallarg(gid_t *) sgid; 502 }; 503 check_syscall_args(linux_sys_getresgid) 504 505 struct sys_getpgid_args; 506 507 struct linux_sys_setfsuid_args { 508 syscallarg(uid_t) uid; 509 }; 510 check_syscall_args(linux_sys_setfsuid) 511 512 struct linux_sys_setfsgid_args { 513 syscallarg(gid_t) gid; 514 }; 515 check_syscall_args(linux_sys_setfsgid) 516 517 struct sys_getsid_args; 518 519 struct linux_sys_rt_sigpending_args { 520 syscallarg(linux_sigset_t *) set; 521 syscallarg(size_t) sigsetsize; 522 }; 523 check_syscall_args(linux_sys_rt_sigpending) 524 525 struct linux_sys_rt_queueinfo_args { 526 syscallarg(int) pid; 527 syscallarg(int) signum; 528 syscallarg(siginfo_t *) uinfo; 529 }; 530 check_syscall_args(linux_sys_rt_queueinfo) 531 532 struct linux_sys_rt_sigsuspend_args { 533 syscallarg(linux_sigset_t *) unewset; 534 syscallarg(size_t) sigsetsize; 535 }; 536 check_syscall_args(linux_sys_rt_sigsuspend) 537 538 struct linux_sys_sigaltstack_args { 539 syscallarg(const struct linux_sigaltstack *) ss; 540 syscallarg(struct linux_sigaltstack *) oss; 541 }; 542 check_syscall_args(linux_sys_sigaltstack) 543 544 struct linux_sys_utime_args { 545 syscallarg(const char *) path; 546 syscallarg(struct linux_utimbuf *) times; 547 }; 548 check_syscall_args(linux_sys_utime) 549 550 struct linux_sys_mknod_args { 551 syscallarg(const char *) path; 552 syscallarg(int) mode; 553 syscallarg(int) dev; 554 }; 555 check_syscall_args(linux_sys_mknod) 556 #ifdef EXEC_AOUT 557 558 struct linux_sys_uselib_args { 559 syscallarg(const char *) path; 560 }; 561 check_syscall_args(linux_sys_uselib) 562 #else 563 #endif 564 565 struct linux_sys_personality_args { 566 syscallarg(int) per; 567 }; 568 check_syscall_args(linux_sys_personality) 569 570 struct linux_sys_statfs_args { 571 syscallarg(const char *) path; 572 syscallarg(struct linux_statfs *) sp; 573 }; 574 check_syscall_args(linux_sys_statfs) 575 576 struct linux_sys_fstatfs_args { 577 syscallarg(int) fd; 578 syscallarg(struct linux_statfs *) sp; 579 }; 580 check_syscall_args(linux_sys_fstatfs) 581 582 struct linux_sys_getpriority_args { 583 syscallarg(int) which; 584 syscallarg(int) who; 585 }; 586 check_syscall_args(linux_sys_getpriority) 587 588 struct sys_setpriority_args; 589 590 struct linux_sys_sched_setparam_args { 591 syscallarg(pid_t) pid; 592 syscallarg(const struct linux_sched_param *) sp; 593 }; 594 check_syscall_args(linux_sys_sched_setparam) 595 596 struct linux_sys_sched_getparam_args { 597 syscallarg(pid_t) pid; 598 syscallarg(struct linux_sched_param *) sp; 599 }; 600 check_syscall_args(linux_sys_sched_getparam) 601 602 struct linux_sys_sched_setscheduler_args { 603 syscallarg(pid_t) pid; 604 syscallarg(int) policy; 605 syscallarg(const struct linux_sched_param *) sp; 606 }; 607 check_syscall_args(linux_sys_sched_setscheduler) 608 609 struct linux_sys_sched_getscheduler_args { 610 syscallarg(pid_t) pid; 611 }; 612 check_syscall_args(linux_sys_sched_getscheduler) 613 614 struct linux_sys_sched_get_priority_max_args { 615 syscallarg(int) policy; 616 }; 617 check_syscall_args(linux_sys_sched_get_priority_max) 618 619 struct linux_sys_sched_get_priority_min_args { 620 syscallarg(int) policy; 621 }; 622 check_syscall_args(linux_sys_sched_get_priority_min) 623 624 struct sys_mlock_args; 625 626 struct sys_munlock_args; 627 628 struct sys_mlockall_args; 629 630 struct linux_sys_modify_ldt_args { 631 syscallarg(int) func; 632 syscallarg(void *) ptr; 633 syscallarg(size_t) bytecount; 634 }; 635 check_syscall_args(linux_sys_modify_ldt) 636 637 struct linux_sys___sysctl_args { 638 syscallarg(struct linux___sysctl *) lsp; 639 }; 640 check_syscall_args(linux_sys___sysctl) 641 642 struct linux_sys_arch_prctl_args { 643 syscallarg(int) code; 644 syscallarg(unsigned long) addr; 645 }; 646 check_syscall_args(linux_sys_arch_prctl) 647 648 struct linux_sys_setrlimit_args { 649 syscallarg(u_int) which; 650 syscallarg(struct rlimit *) rlp; 651 }; 652 check_syscall_args(linux_sys_setrlimit) 653 654 struct sys_chroot_args; 655 656 struct sys_acct_args; 657 658 struct linux_sys_settimeofday_args { 659 syscallarg(struct timeval *) tp; 660 syscallarg(struct timezone *) tzp; 661 }; 662 check_syscall_args(linux_sys_settimeofday) 663 664 struct linux_sys_swapon_args { 665 syscallarg(char *) name; 666 }; 667 check_syscall_args(linux_sys_swapon) 668 669 struct linux_sys_swapoff_args { 670 syscallarg(const char *) path; 671 }; 672 check_syscall_args(linux_sys_swapoff) 673 674 struct linux_sys_reboot_args { 675 syscallarg(int) magic1; 676 syscallarg(int) magic2; 677 syscallarg(int) cmd; 678 syscallarg(void *) arg; 679 }; 680 check_syscall_args(linux_sys_reboot) 681 682 struct compat_43_sys_sethostname_args; 683 684 struct linux_sys_setdomainname_args { 685 syscallarg(char *) domainname; 686 syscallarg(int) len; 687 }; 688 check_syscall_args(linux_sys_setdomainname) 689 690 struct linux_sys_iopl_args { 691 syscallarg(int) level; 692 }; 693 check_syscall_args(linux_sys_iopl) 694 695 struct linux_sys_ioperm_args { 696 syscallarg(unsigned int) lo; 697 syscallarg(unsigned int) hi; 698 syscallarg(int) val; 699 }; 700 check_syscall_args(linux_sys_ioperm) 701 702 struct linux_sys_setxattr_args { 703 syscallarg(char *) path; 704 syscallarg(char *) name; 705 syscallarg(void *) value; 706 syscallarg(size_t) size; 707 syscallarg(int) flags; 708 }; 709 check_syscall_args(linux_sys_setxattr) 710 711 struct linux_sys_lsetxattr_args { 712 syscallarg(char *) path; 713 syscallarg(char *) name; 714 syscallarg(void *) value; 715 syscallarg(size_t) size; 716 syscallarg(int) flags; 717 }; 718 check_syscall_args(linux_sys_lsetxattr) 719 720 struct linux_sys_fsetxattr_args { 721 syscallarg(int) fd; 722 syscallarg(char *) name; 723 syscallarg(void *) value; 724 syscallarg(size_t) size; 725 syscallarg(int) flags; 726 }; 727 check_syscall_args(linux_sys_fsetxattr) 728 729 struct linux_sys_getxattr_args { 730 syscallarg(char *) path; 731 syscallarg(char *) name; 732 syscallarg(void *) value; 733 syscallarg(size_t) size; 734 }; 735 check_syscall_args(linux_sys_getxattr) 736 737 struct linux_sys_lgetxattr_args { 738 syscallarg(char *) path; 739 syscallarg(char *) name; 740 syscallarg(void *) value; 741 syscallarg(size_t) size; 742 }; 743 check_syscall_args(linux_sys_lgetxattr) 744 745 struct linux_sys_fgetxattr_args { 746 syscallarg(int) fd; 747 syscallarg(char *) name; 748 syscallarg(void *) value; 749 syscallarg(size_t) size; 750 }; 751 check_syscall_args(linux_sys_fgetxattr) 752 753 struct linux_sys_listxattr_args { 754 syscallarg(char *) path; 755 syscallarg(char *) list; 756 syscallarg(size_t) size; 757 }; 758 check_syscall_args(linux_sys_listxattr) 759 760 struct linux_sys_llistxattr_args { 761 syscallarg(char *) path; 762 syscallarg(char *) list; 763 syscallarg(size_t) size; 764 }; 765 check_syscall_args(linux_sys_llistxattr) 766 767 struct linux_sys_flistxattr_args { 768 syscallarg(int) fd; 769 syscallarg(char *) list; 770 syscallarg(size_t) size; 771 }; 772 check_syscall_args(linux_sys_flistxattr) 773 774 struct linux_sys_removexattr_args { 775 syscallarg(char *) path; 776 syscallarg(char *) name; 777 }; 778 check_syscall_args(linux_sys_removexattr) 779 780 struct linux_sys_lremovexattr_args { 781 syscallarg(char *) path; 782 syscallarg(char *) name; 783 }; 784 check_syscall_args(linux_sys_lremovexattr) 785 786 struct linux_sys_fremovexattr_args { 787 syscallarg(int) fd; 788 syscallarg(char *) name; 789 }; 790 check_syscall_args(linux_sys_fremovexattr) 791 792 struct linux_sys_tkill_args { 793 syscallarg(int) tid; 794 syscallarg(int) sig; 795 }; 796 check_syscall_args(linux_sys_tkill) 797 798 struct linux_sys_time_args { 799 syscallarg(linux_time_t *) t; 800 }; 801 check_syscall_args(linux_sys_time) 802 803 struct linux_sys_futex_args { 804 syscallarg(int *) uaddr; 805 syscallarg(int) op; 806 syscallarg(int) val; 807 syscallarg(const struct timespec *) timeout; 808 syscallarg(int *) uaddr2; 809 syscallarg(int) val3; 810 }; 811 check_syscall_args(linux_sys_futex) 812 813 struct linux_sys_sched_setaffinity_args { 814 syscallarg(pid_t) pid; 815 syscallarg(unsigned int) len; 816 syscallarg(unsigned long *) mask; 817 }; 818 check_syscall_args(linux_sys_sched_setaffinity) 819 820 struct linux_sys_sched_getaffinity_args { 821 syscallarg(pid_t) pid; 822 syscallarg(unsigned int) len; 823 syscallarg(unsigned long *) mask; 824 }; 825 check_syscall_args(linux_sys_sched_getaffinity) 826 827 struct linux_sys_getdents64_args { 828 syscallarg(int) fd; 829 syscallarg(struct linux_dirent64 *) dent; 830 syscallarg(unsigned int) count; 831 }; 832 check_syscall_args(linux_sys_getdents64) 833 834 struct linux_sys_set_tid_address_args { 835 syscallarg(int *) tid; 836 }; 837 check_syscall_args(linux_sys_set_tid_address) 838 839 struct linux_sys_clock_settime_args { 840 syscallarg(clockid_t) which; 841 syscallarg(struct linux_timespec *) tp; 842 }; 843 check_syscall_args(linux_sys_clock_settime) 844 845 struct linux_sys_clock_gettime_args { 846 syscallarg(clockid_t) which; 847 syscallarg(struct linux_timespec *) tp; 848 }; 849 check_syscall_args(linux_sys_clock_gettime) 850 851 struct linux_sys_clock_getres_args { 852 syscallarg(clockid_t) which; 853 syscallarg(struct linux_timespec *) tp; 854 }; 855 check_syscall_args(linux_sys_clock_getres) 856 857 struct linux_sys_clock_nanosleep_args { 858 syscallarg(clockid_t) which; 859 syscallarg(int) flags; 860 syscallarg(struct linux_timespec *) rqtp; 861 syscallarg(struct linux_timespec *) rmtp; 862 }; 863 check_syscall_args(linux_sys_clock_nanosleep) 864 865 struct linux_sys_exit_group_args { 866 syscallarg(int) error_code; 867 }; 868 check_syscall_args(linux_sys_exit_group) 869 870 struct linux_sys_tgkill_args { 871 syscallarg(int) tgid; 872 syscallarg(int) tid; 873 syscallarg(int) sig; 874 }; 875 check_syscall_args(linux_sys_tgkill) 876 877 /* 878 * System call prototypes. 879 */ 880 881 int sys_read(struct lwp *, const struct sys_read_args *, register_t *); 882 883 int sys_write(struct lwp *, const struct sys_write_args *, register_t *); 884 885 int linux_sys_open(struct lwp *, const struct linux_sys_open_args *, register_t *); 886 887 int sys_close(struct lwp *, const struct sys_close_args *, register_t *); 888 889 int linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *); 890 891 int linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *); 892 893 int linux_sys_lstat64(struct lwp *, const struct linux_sys_lstat64_args *, register_t *); 894 895 int sys_poll(struct lwp *, const struct sys_poll_args *, register_t *); 896 897 int compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *); 898 899 int linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *); 900 901 int linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *); 902 903 int sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *); 904 905 int linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *); 906 907 int linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *); 908 909 int linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *); 910 911 int linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *); 912 913 int linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *); 914 915 int linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *); 916 917 int linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *); 918 919 int sys_readv(struct lwp *, const struct sys_readv_args *, register_t *); 920 921 int sys_writev(struct lwp *, const struct sys_writev_args *, register_t *); 922 923 int sys_access(struct lwp *, const struct sys_access_args *, register_t *); 924 925 int linux_sys_pipe(struct lwp *, const struct linux_sys_pipe_args *, register_t *); 926 927 int linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *); 928 929 int linux_sys_sched_yield(struct lwp *, const void *, register_t *); 930 931 int linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *); 932 933 int linux_sys_msync(struct lwp *, const struct linux_sys_msync_args *, register_t *); 934 935 int sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *); 936 937 int sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *); 938 939 #ifdef SYSVSHM 940 int linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *); 941 942 int sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *); 943 944 int linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *); 945 946 #else 947 #endif 948 int sys_dup(struct lwp *, const struct sys_dup_args *, register_t *); 949 950 int sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *); 951 952 int linux_sys_pause(struct lwp *, const void *, register_t *); 953 954 int sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *); 955 956 int sys_getitimer(struct lwp *, const struct sys_getitimer_args *, register_t *); 957 958 int linux_sys_alarm(struct lwp *, const struct linux_sys_alarm_args *, register_t *); 959 960 int sys_setitimer(struct lwp *, const struct sys_setitimer_args *, register_t *); 961 962 int linux_sys_getpid(struct lwp *, const void *, register_t *); 963 964 int linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *); 965 966 int linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *); 967 968 int linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *); 969 970 int linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *); 971 972 int linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *); 973 974 int linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *); 975 976 int linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *); 977 978 int sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *); 979 980 int linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *); 981 982 int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); 983 984 int linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *); 985 986 int linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *); 987 988 int linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *); 989 990 int linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *); 991 992 int linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *); 993 994 int linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *); 995 996 int sys_fork(struct lwp *, const void *, register_t *); 997 998 int sys___vfork14(struct lwp *, const void *, register_t *); 999 1000 int sys_execve(struct lwp *, const struct sys_execve_args *, register_t *); 1001 1002 int sys_exit(struct lwp *, const struct sys_exit_args *, register_t *); 1003 1004 int linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *); 1005 1006 int linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *); 1007 1008 int linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *); 1009 1010 #ifdef SYSVSEM 1011 int sys_semget(struct lwp *, const struct sys_semget_args *, register_t *); 1012 1013 int sys_semop(struct lwp *, const struct sys_semop_args *, register_t *); 1014 1015 int linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *); 1016 1017 #else 1018 #endif 1019 #ifdef SYSVSHM 1020 int sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *); 1021 1022 #else 1023 #endif 1024 #ifdef SYSVMSG 1025 int sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *); 1026 1027 int sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *); 1028 1029 int sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *); 1030 1031 int linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *); 1032 1033 #else 1034 #endif 1035 int linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *); 1036 1037 int sys_flock(struct lwp *, const struct sys_flock_args *, register_t *); 1038 1039 int sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *); 1040 1041 int linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *); 1042 1043 int linux_sys_truncate64(struct lwp *, const struct linux_sys_truncate64_args *, register_t *); 1044 1045 int linux_sys_ftruncate64(struct lwp *, const struct linux_sys_ftruncate64_args *, register_t *); 1046 1047 int linux_sys_getdents(struct lwp *, const struct linux_sys_getdents_args *, register_t *); 1048 1049 int sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *); 1050 1051 int sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *); 1052 1053 int sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *); 1054 1055 int sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *); 1056 1057 int sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *); 1058 1059 int sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *); 1060 1061 int linux_sys_creat(struct lwp *, const struct linux_sys_creat_args *, register_t *); 1062 1063 int sys_link(struct lwp *, const struct sys_link_args *, register_t *); 1064 1065 int linux_sys_unlink(struct lwp *, const struct linux_sys_unlink_args *, register_t *); 1066 1067 int sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *); 1068 1069 int sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *); 1070 1071 int sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *); 1072 1073 int sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *); 1074 1075 int sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *); 1076 1077 int sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *); 1078 1079 int sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *); 1080 1081 int sys_umask(struct lwp *, const struct sys_umask_args *, register_t *); 1082 1083 int linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *); 1084 1085 int linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *); 1086 1087 int sys_getrusage(struct lwp *, const struct sys_getrusage_args *, register_t *); 1088 1089 int linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *); 1090 1091 int linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *); 1092 1093 int linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *); 1094 1095 int sys_getuid(struct lwp *, const void *, register_t *); 1096 1097 int sys_getgid(struct lwp *, const void *, register_t *); 1098 1099 int sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *); 1100 1101 int sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *); 1102 1103 int sys_geteuid(struct lwp *, const void *, register_t *); 1104 1105 int sys_getegid(struct lwp *, const void *, register_t *); 1106 1107 int sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *); 1108 1109 int linux_sys_getppid(struct lwp *, const void *, register_t *); 1110 1111 int sys_getpgrp(struct lwp *, const void *, register_t *); 1112 1113 int sys_setsid(struct lwp *, const void *, register_t *); 1114 1115 int sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *); 1116 1117 int sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *); 1118 1119 int sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *); 1120 1121 int sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *); 1122 1123 int linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *); 1124 1125 int linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *); 1126 1127 int linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *); 1128 1129 int linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *); 1130 1131 int sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *); 1132 1133 int linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *); 1134 1135 int linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *); 1136 1137 int sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *); 1138 1139 int linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *); 1140 1141 int linux_sys_rt_queueinfo(struct lwp *, const struct linux_sys_rt_queueinfo_args *, register_t *); 1142 1143 int linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *); 1144 1145 int linux_sys_sigaltstack(struct lwp *, const struct linux_sys_sigaltstack_args *, register_t *); 1146 1147 int linux_sys_utime(struct lwp *, const struct linux_sys_utime_args *, register_t *); 1148 1149 int linux_sys_mknod(struct lwp *, const struct linux_sys_mknod_args *, register_t *); 1150 1151 #ifdef EXEC_AOUT 1152 int linux_sys_uselib(struct lwp *, const struct linux_sys_uselib_args *, register_t *); 1153 1154 #else 1155 #endif 1156 int linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *); 1157 1158 int linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *); 1159 1160 int linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *); 1161 1162 int linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *); 1163 1164 int sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *); 1165 1166 int linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *); 1167 1168 int linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *); 1169 1170 int linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *); 1171 1172 int linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *); 1173 1174 int linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *); 1175 1176 int linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *); 1177 1178 int sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *); 1179 1180 int sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *); 1181 1182 int sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *); 1183 1184 int sys_munlockall(struct lwp *, const void *, register_t *); 1185 1186 int linux_sys_modify_ldt(struct lwp *, const struct linux_sys_modify_ldt_args *, register_t *); 1187 1188 int linux_sys___sysctl(struct lwp *, const struct linux_sys___sysctl_args *, register_t *); 1189 1190 int linux_sys_arch_prctl(struct lwp *, const struct linux_sys_arch_prctl_args *, register_t *); 1191 1192 int linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *); 1193 1194 int sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *); 1195 1196 int sys_sync(struct lwp *, const void *, register_t *); 1197 1198 int sys_acct(struct lwp *, const struct sys_acct_args *, register_t *); 1199 1200 int linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *); 1201 1202 int linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *); 1203 1204 int linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *); 1205 1206 int linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *); 1207 1208 int compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *); 1209 1210 int linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *); 1211 1212 int linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *); 1213 1214 int linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *); 1215 1216 int linux_sys_gettid(struct lwp *, const void *, register_t *); 1217 1218 int linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *); 1219 1220 int linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *); 1221 1222 int linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *); 1223 1224 int linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *); 1225 1226 int linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *); 1227 1228 int linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *); 1229 1230 int linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *); 1231 1232 int linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *); 1233 1234 int linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *); 1235 1236 int linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *); 1237 1238 int linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *); 1239 1240 int linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *); 1241 1242 int linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *); 1243 1244 int linux_sys_time(struct lwp *, const struct linux_sys_time_args *, register_t *); 1245 1246 int linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *); 1247 1248 int linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *); 1249 1250 int linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *); 1251 1252 int linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *); 1253 1254 int linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *); 1255 1256 int linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *); 1257 1258 int linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *); 1259 1260 int linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *); 1261 1262 int linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *); 1263 1264 int linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *); 1265 1266 int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); 1267 1268 int linux_sys_nosys(struct lwp *, const void *, register_t *); 1269 1270 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ 1271