1 /* $NetBSD: linux_syscallargs.h,v 1.58 2006/06/10 21:16:49 christos Exp $ */ 2 3 /* 4 * System call argument lists. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.53 2006/06/10 21:15:33 christos Exp 8 */ 9 10 #ifndef _LINUX_SYS_SYSCALLARGS_H_ 11 #define _LINUX_SYS_SYSCALLARGS_H_ 12 13 #ifdef syscallarg 14 #undef syscallarg 15 #endif 16 17 #define syscallarg(x) \ 18 union { \ 19 register_t pad; \ 20 struct { x datum; } le; \ 21 struct { /* LINTED zero array dimension */ \ 22 int8_t pad[ /* CONSTCOND */ \ 23 (sizeof (register_t) < sizeof (x)) \ 24 ? 0 \ 25 : sizeof (register_t) - sizeof (x)]; \ 26 x datum; \ 27 } be; \ 28 } 29 30 struct osf1_sys_wait4_args { 31 syscallarg(int) pid; 32 syscallarg(int *) status; 33 syscallarg(int) options; 34 syscallarg(struct osf1_rusage *) rusage; 35 }; 36 37 struct linux_sys_creat_args { 38 syscallarg(const char *) path; 39 syscallarg(mode_t) mode; 40 }; 41 42 struct linux_sys_link_args { 43 syscallarg(const char *) path; 44 syscallarg(const char *) link; 45 }; 46 47 struct linux_sys_unlink_args { 48 syscallarg(const char *) path; 49 }; 50 51 struct linux_sys_chdir_args { 52 syscallarg(const char *) path; 53 }; 54 55 struct linux_sys_mknod_args { 56 syscallarg(const char *) path; 57 syscallarg(int) mode; 58 syscallarg(int) dev; 59 }; 60 61 struct linux_sys_chmod_args { 62 syscallarg(const char *) path; 63 syscallarg(int) mode; 64 }; 65 66 struct linux_sys_brk_args { 67 syscallarg(char *) nsize; 68 }; 69 70 struct osf1_sys_mount_args { 71 syscallarg(int) type; 72 syscallarg(const char *) path; 73 syscallarg(int) flags; 74 syscallarg(caddr_t) data; 75 }; 76 77 struct linux_sys_ptrace_args { 78 syscallarg(long) request; 79 syscallarg(long) pid; 80 syscallarg(long) addr; 81 syscallarg(long) data; 82 }; 83 84 struct linux_sys_access_args { 85 syscallarg(const char *) path; 86 syscallarg(int) flags; 87 }; 88 89 struct linux_sys_kill_args { 90 syscallarg(int) pid; 91 syscallarg(int) signum; 92 }; 93 94 struct osf1_sys_set_program_attributes_args { 95 syscallarg(caddr_t) taddr; 96 syscallarg(unsigned long) tsize; 97 syscallarg(caddr_t) daddr; 98 syscallarg(unsigned long) dsize; 99 }; 100 101 struct linux_sys_open_args { 102 syscallarg(const char *) path; 103 syscallarg(int) flags; 104 syscallarg(int) mode; 105 }; 106 107 struct linux_sys_sigpending_args { 108 syscallarg(linux_old_sigset_t *) set; 109 }; 110 111 struct linux_sys_ioctl_args { 112 syscallarg(int) fd; 113 syscallarg(u_long) com; 114 syscallarg(caddr_t) data; 115 }; 116 117 struct linux_sys_symlink_args { 118 syscallarg(const char *) path; 119 syscallarg(const char *) to; 120 }; 121 122 struct linux_sys_readlink_args { 123 syscallarg(const char *) name; 124 syscallarg(char *) buf; 125 syscallarg(int) count; 126 }; 127 128 struct linux_sys_execve_args { 129 syscallarg(const char *) path; 130 syscallarg(char **) argp; 131 syscallarg(char **) envp; 132 }; 133 134 struct linux_sys_stat_args { 135 syscallarg(const char *) path; 136 syscallarg(struct linux_stat *) sp; 137 }; 138 139 struct linux_sys_lstat_args { 140 syscallarg(const char *) path; 141 syscallarg(struct linux_stat *) sp; 142 }; 143 144 struct linux_sys_mprotect_args { 145 syscallarg(const void *) start; 146 syscallarg(unsigned long) len; 147 syscallarg(int) prot; 148 }; 149 150 struct osf1_sys_setitimer_args { 151 syscallarg(u_int) which; 152 syscallarg(struct osf1_itimerval *) itv; 153 syscallarg(struct osf1_itimerval *) oitv; 154 }; 155 156 struct linux_sys_fstat_args { 157 syscallarg(int) fd; 158 syscallarg(struct linux_stat *) sp; 159 }; 160 161 struct linux_sys_fcntl_args { 162 syscallarg(int) fd; 163 syscallarg(int) cmd; 164 syscallarg(void *) arg; 165 }; 166 167 struct osf1_sys_select_args { 168 syscallarg(u_int) nd; 169 syscallarg(fd_set *) in; 170 syscallarg(fd_set *) ou; 171 syscallarg(fd_set *) ex; 172 syscallarg(struct osf1_timeval *) tv; 173 }; 174 175 struct linux_sys_socket_args { 176 syscallarg(int) domain; 177 syscallarg(int) type; 178 syscallarg(int) protocol; 179 }; 180 181 struct linux_sys_connect_args { 182 syscallarg(int) s; 183 syscallarg(const struct osockaddr *) name; 184 syscallarg(unsigned int) namelen; 185 }; 186 187 struct linux_sys_accept_args { 188 syscallarg(int) s; 189 syscallarg(struct osockaddr *) name; 190 syscallarg(int *) anamelen; 191 }; 192 193 struct linux_sys_getpriority_args { 194 syscallarg(int) which; 195 syscallarg(int) who; 196 }; 197 198 struct linux_sys_send_args { 199 syscallarg(int) s; 200 syscallarg(caddr_t) buf; 201 syscallarg(int) len; 202 syscallarg(int) flags; 203 }; 204 205 struct linux_sys_recv_args { 206 syscallarg(int) s; 207 syscallarg(caddr_t) buf; 208 syscallarg(int) len; 209 syscallarg(int) flags; 210 }; 211 212 struct linux_sys_sigreturn_args { 213 syscallarg(struct linux_sigframe *) sfp; 214 }; 215 216 struct linux_sys_bind_args { 217 syscallarg(int) s; 218 syscallarg(const struct osockaddr *) name; 219 syscallarg(unsigned int) namelen; 220 }; 221 222 struct linux_sys_setsockopt_args { 223 syscallarg(int) s; 224 syscallarg(int) level; 225 syscallarg(int) optname; 226 syscallarg(void *) optval; 227 syscallarg(int) optlen; 228 }; 229 230 struct linux_sys_sigsuspend_args { 231 syscallarg(caddr_t) restart; 232 syscallarg(int) oldmask; 233 syscallarg(int) mask; 234 }; 235 236 struct linux_sys_recvmsg_args { 237 syscallarg(int) s; 238 syscallarg(struct msghdr *) msg; 239 syscallarg(int) flags; 240 }; 241 242 struct linux_sys_sendmsg_args { 243 syscallarg(int) s; 244 syscallarg(const struct msghdr *) msg; 245 syscallarg(int) flags; 246 }; 247 248 struct osf1_sys_gettimeofday_args { 249 syscallarg(struct osf1_timeval *) tv; 250 syscallarg(struct osf1_timezone *) tzp; 251 }; 252 253 struct osf1_sys_getrusage_args { 254 syscallarg(int) who; 255 syscallarg(struct osf1_rusage *) rusage; 256 }; 257 258 struct linux_sys_getsockopt_args { 259 syscallarg(int) s; 260 syscallarg(int) level; 261 syscallarg(int) optname; 262 syscallarg(void *) optval; 263 syscallarg(int *) optlen; 264 }; 265 266 struct osf1_sys_settimeofday_args { 267 syscallarg(struct osf1_timeval *) tv; 268 syscallarg(struct osf1_timezone *) tzp; 269 }; 270 271 struct linux_sys_recvfrom_args { 272 syscallarg(int) s; 273 syscallarg(void *) buf; 274 syscallarg(int) len; 275 syscallarg(int) flags; 276 syscallarg(struct osockaddr *) from; 277 syscallarg(int *) fromlenaddr; 278 }; 279 280 struct linux_sys_rename_args { 281 syscallarg(const char *) from; 282 syscallarg(const char *) to; 283 }; 284 285 struct linux_sys_truncate_args { 286 syscallarg(const char *) path; 287 syscallarg(long) length; 288 }; 289 290 struct linux_sys_sendto_args { 291 syscallarg(int) s; 292 syscallarg(void *) msg; 293 syscallarg(int) len; 294 syscallarg(int) flags; 295 syscallarg(struct osockaddr *) to; 296 syscallarg(int) tolen; 297 }; 298 299 struct linux_sys_socketpair_args { 300 syscallarg(int) domain; 301 syscallarg(int) type; 302 syscallarg(int) protocol; 303 syscallarg(int *) rsv; 304 }; 305 306 struct linux_sys_mkdir_args { 307 syscallarg(const char *) path; 308 syscallarg(int) mode; 309 }; 310 311 struct linux_sys_rmdir_args { 312 syscallarg(const char *) path; 313 }; 314 315 struct osf1_sys_utimes_args { 316 syscallarg(const char *) path; 317 syscallarg(const struct osf1_timeval *) tptr; 318 }; 319 320 struct linux_sys_getpeername_args { 321 syscallarg(int) fdes; 322 syscallarg(caddr_t) asa; 323 syscallarg(int *) alen; 324 }; 325 326 struct linux_sys_getrlimit_args { 327 syscallarg(int) which; 328 syscallarg(struct orlimit *) rlp; 329 }; 330 331 struct linux_sys_setrlimit_args { 332 syscallarg(int) which; 333 syscallarg(const struct orlimit *) rlp; 334 }; 335 336 struct linux_sys_getsockname_args { 337 syscallarg(int) fdec; 338 syscallarg(caddr_t) asa; 339 syscallarg(int *) alen; 340 }; 341 342 struct linux_sys_sigaction_args { 343 syscallarg(int) signum; 344 syscallarg(const struct linux_old_sigaction *) nsa; 345 syscallarg(struct linux_old_sigaction *) osa; 346 }; 347 348 struct osf1_sys_statfs_args { 349 syscallarg(const char *) path; 350 syscallarg(struct osf1_statfs *) buf; 351 syscallarg(int) len; 352 }; 353 354 struct osf1_sys_fstatfs_args { 355 syscallarg(int) fd; 356 syscallarg(struct osf1_statfs *) buf; 357 syscallarg(int) len; 358 }; 359 360 struct linux_sys_setdomainname_args { 361 syscallarg(char *) domainname; 362 syscallarg(int) len; 363 }; 364 365 struct linux_sys_ugetrlimit_args { 366 syscallarg(int) which; 367 syscallarg(struct rlimit *) rlp; 368 }; 369 #ifdef SYSVMSG 370 #else 371 #endif 372 #ifdef SYSVSEM 373 #else 374 #endif 375 376 struct linux_sys_olduname_args { 377 syscallarg(struct linux_old_utsname *) up; 378 }; 379 #ifdef SYSVSHM 380 381 struct linux_sys_shmget_args { 382 syscallarg(key_t) key; 383 syscallarg(size_t) size; 384 syscallarg(int) shmflg; 385 }; 386 #else 387 #endif 388 389 struct linux_sys_msync_args { 390 syscallarg(caddr_t) addr; 391 syscallarg(int) len; 392 syscallarg(int) fl; 393 }; 394 395 struct linux_sys_getpgid_args { 396 syscallarg(int) pid; 397 }; 398 399 struct osf1_sys_sysinfo_args { 400 syscallarg(int) cmd; 401 syscallarg(char) buf; 402 syscallarg(long) len; 403 }; 404 405 struct osf1_sys_usleep_thread_args { 406 syscallarg(struct osf1_timeval *) sleep; 407 syscallarg(struct osf1_timeval *) slept; 408 }; 409 410 struct osf1_sys_getsysinfo_args { 411 syscallarg(u_long) op; 412 syscallarg(caddr_t) buffer; 413 syscallarg(u_long) nbytes; 414 syscallarg(caddr_t) arg; 415 syscallarg(u_long) flag; 416 }; 417 418 struct osf1_sys_setsysinfo_args { 419 syscallarg(u_long) op; 420 syscallarg(caddr_t) buffer; 421 syscallarg(u_long) nbytes; 422 syscallarg(caddr_t) arg; 423 syscallarg(u_long) flag; 424 }; 425 426 struct linux_sys_fdatasync_args { 427 syscallarg(int) fd; 428 }; 429 430 struct linux_sys_swapoff_args { 431 syscallarg(const char *) path; 432 }; 433 434 struct linux_sys_getdents_args { 435 syscallarg(int) fd; 436 syscallarg(struct linux_dirent *) dent; 437 syscallarg(unsigned int) count; 438 }; 439 440 struct linux_sys_reboot_args { 441 syscallarg(int) magic1; 442 syscallarg(int) magic2; 443 syscallarg(int) cmd; 444 syscallarg(void *) arg; 445 }; 446 447 struct linux_sys_clone_args { 448 syscallarg(int) flags; 449 syscallarg(void *) stack; 450 }; 451 #ifdef EXEC_AOUT 452 453 struct linux_sys_uselib_args { 454 syscallarg(const char *) path; 455 }; 456 #else 457 #endif 458 459 struct linux_sys_sysinfo_args { 460 syscallarg(struct linux_sysinfo *) arg; 461 }; 462 463 struct linux_sys___sysctl_args { 464 syscallarg(struct linux___sysctl *) lsp; 465 }; 466 467 struct linux_sys_swapon_args { 468 syscallarg(const char *) name; 469 }; 470 471 struct linux_sys_times_args { 472 syscallarg(struct times *) tms; 473 }; 474 475 struct linux_sys_personality_args { 476 syscallarg(int) per; 477 }; 478 479 struct linux_sys_setfsuid_args { 480 syscallarg(uid_t) uid; 481 }; 482 483 struct linux_sys_statfs_args { 484 syscallarg(const char *) path; 485 syscallarg(struct linux_statfs *) sp; 486 }; 487 488 struct linux_sys_fstatfs_args { 489 syscallarg(int) fd; 490 syscallarg(struct linux_statfs *) sp; 491 }; 492 493 struct linux_sys_sched_setparam_args { 494 syscallarg(pid_t) pid; 495 syscallarg(const struct linux_sched_param *) sp; 496 }; 497 498 struct linux_sys_sched_getparam_args { 499 syscallarg(pid_t) pid; 500 syscallarg(struct linux_sched_param *) sp; 501 }; 502 503 struct linux_sys_sched_setscheduler_args { 504 syscallarg(pid_t) pid; 505 syscallarg(int) policy; 506 syscallarg(const struct linux_sched_param *) sp; 507 }; 508 509 struct linux_sys_sched_getscheduler_args { 510 syscallarg(pid_t) pid; 511 }; 512 513 struct linux_sys_sched_get_priority_max_args { 514 syscallarg(int) policy; 515 }; 516 517 struct linux_sys_sched_get_priority_min_args { 518 syscallarg(int) policy; 519 }; 520 521 struct linux_sys_uname_args { 522 syscallarg(struct linux_utsname *) up; 523 }; 524 525 struct linux_sys_mremap_args { 526 syscallarg(void *) old_address; 527 syscallarg(size_t) old_size; 528 syscallarg(size_t) new_size; 529 syscallarg(u_long) flags; 530 }; 531 532 struct linux_sys_setresuid_args { 533 syscallarg(uid_t) ruid; 534 syscallarg(uid_t) euid; 535 syscallarg(uid_t) suid; 536 }; 537 538 struct linux_sys_getresuid_args { 539 syscallarg(uid_t *) ruid; 540 syscallarg(uid_t *) euid; 541 syscallarg(uid_t *) suid; 542 }; 543 544 struct linux_sys_pread_args { 545 syscallarg(int) fd; 546 syscallarg(char *) buf; 547 syscallarg(size_t) nbyte; 548 syscallarg(linux_off_t) offset; 549 }; 550 551 struct linux_sys_pwrite_args { 552 syscallarg(int) fd; 553 syscallarg(char *) buf; 554 syscallarg(size_t) nbyte; 555 syscallarg(linux_off_t) offset; 556 }; 557 558 struct linux_sys_rt_sigreturn_args { 559 syscallarg(struct linux_rt_sigframe *) sfp; 560 }; 561 562 struct linux_sys_rt_sigaction_args { 563 syscallarg(int) signum; 564 syscallarg(const struct linux_sigaction *) nsa; 565 syscallarg(struct linux_sigaction *) osa; 566 syscallarg(size_t) sigsetsize; 567 }; 568 569 struct linux_sys_rt_sigprocmask_args { 570 syscallarg(int) how; 571 syscallarg(const linux_sigset_t *) set; 572 syscallarg(linux_sigset_t *) oset; 573 syscallarg(size_t) sigsetsize; 574 }; 575 576 struct linux_sys_rt_sigpending_args { 577 syscallarg(linux_sigset_t *) set; 578 syscallarg(size_t) sigsetsize; 579 }; 580 581 struct linux_sys_rt_queueinfo_args { 582 syscallarg(int) pid; 583 syscallarg(int) signum; 584 syscallarg(linux_siginfo_t *) uinfo; 585 }; 586 587 struct linux_sys_rt_sigsuspend_args { 588 syscallarg(linux_sigset_t *) unewset; 589 syscallarg(size_t) sigsetsize; 590 }; 591 592 struct linux_sys_select_args { 593 syscallarg(int) nfds; 594 syscallarg(fd_set *) readfds; 595 syscallarg(fd_set *) writefds; 596 syscallarg(fd_set *) exceptfds; 597 syscallarg(struct timeval *) timeout; 598 }; 599 600 struct linux_sys_wait4_args { 601 syscallarg(int) pid; 602 syscallarg(int *) status; 603 syscallarg(int) options; 604 syscallarg(struct rusage *) rusage; 605 }; 606 607 struct linux_sys_getdents64_args { 608 syscallarg(int) fd; 609 syscallarg(struct linux_dirent64 *) dent; 610 syscallarg(unsigned int) count; 611 }; 612 613 struct linux_sys_setxattr_args { 614 syscallarg(char *) path; 615 syscallarg(char *) name; 616 syscallarg(void *) value; 617 syscallarg(size_t) size; 618 syscallarg(int) flags; 619 }; 620 621 struct linux_sys_lsetxattr_args { 622 syscallarg(char *) path; 623 syscallarg(char *) name; 624 syscallarg(void *) value; 625 syscallarg(size_t) size; 626 syscallarg(int) flags; 627 }; 628 629 struct linux_sys_fsetxattr_args { 630 syscallarg(int) fd; 631 syscallarg(char *) name; 632 syscallarg(void *) value; 633 syscallarg(size_t) size; 634 syscallarg(int) flags; 635 }; 636 637 struct linux_sys_getxattr_args { 638 syscallarg(char *) path; 639 syscallarg(char *) name; 640 syscallarg(void *) value; 641 syscallarg(size_t) size; 642 }; 643 644 struct linux_sys_lgetxattr_args { 645 syscallarg(char *) path; 646 syscallarg(char *) name; 647 syscallarg(void *) value; 648 syscallarg(size_t) size; 649 }; 650 651 struct linux_sys_fgetxattr_args { 652 syscallarg(int) fd; 653 syscallarg(char *) name; 654 syscallarg(void *) value; 655 syscallarg(size_t) size; 656 }; 657 658 struct linux_sys_listxattr_args { 659 syscallarg(char *) path; 660 syscallarg(char *) list; 661 syscallarg(size_t) size; 662 }; 663 664 struct linux_sys_llistxattr_args { 665 syscallarg(char *) path; 666 syscallarg(char *) list; 667 syscallarg(size_t) size; 668 }; 669 670 struct linux_sys_flistxattr_args { 671 syscallarg(int) fd; 672 syscallarg(char *) list; 673 syscallarg(size_t) size; 674 }; 675 676 struct linux_sys_removexattr_args { 677 syscallarg(char *) path; 678 syscallarg(char *) name; 679 }; 680 681 struct linux_sys_lremovexattr_args { 682 syscallarg(char *) path; 683 syscallarg(char *) name; 684 }; 685 686 struct linux_sys_fremovexattr_args { 687 syscallarg(int) fd; 688 syscallarg(char *) name; 689 }; 690 691 struct linux_sys_exit_group_args { 692 syscallarg(int) error_code; 693 }; 694 695 struct linux_sys_clock_settime_args { 696 syscallarg(clockid_t) which; 697 syscallarg(struct linux_timespec *) tp; 698 }; 699 700 struct linux_sys_clock_gettime_args { 701 syscallarg(clockid_t) which; 702 syscallarg(struct linux_timespec *) tp; 703 }; 704 705 struct linux_sys_clock_getres_args { 706 syscallarg(clockid_t) which; 707 syscallarg(struct linux_timespec *) tp; 708 }; 709 710 struct linux_sys_clock_nanosleep_args { 711 syscallarg(clockid_t) which; 712 syscallarg(int) flags; 713 syscallarg(struct linux_timespec *) rqtp; 714 syscallarg(struct linux_timespec *) rmtp; 715 }; 716 717 /* 718 * System call prototypes. 719 */ 720 721 int linux_sys_nosys(struct lwp *, void *, register_t *); 722 723 int sys_exit(struct lwp *, void *, register_t *); 724 725 int sys_fork(struct lwp *, void *, register_t *); 726 727 int sys_read(struct lwp *, void *, register_t *); 728 729 int sys_write(struct lwp *, void *, register_t *); 730 731 int sys_close(struct lwp *, void *, register_t *); 732 733 int osf1_sys_wait4(struct lwp *, void *, register_t *); 734 735 int linux_sys_creat(struct lwp *, void *, register_t *); 736 737 int linux_sys_link(struct lwp *, void *, register_t *); 738 739 int linux_sys_unlink(struct lwp *, void *, register_t *); 740 741 int linux_sys_chdir(struct lwp *, void *, register_t *); 742 743 int sys_fchdir(struct lwp *, void *, register_t *); 744 745 int linux_sys_mknod(struct lwp *, void *, register_t *); 746 747 int linux_sys_chmod(struct lwp *, void *, register_t *); 748 749 int sys___posix_chown(struct lwp *, void *, register_t *); 750 751 int linux_sys_brk(struct lwp *, void *, register_t *); 752 753 int compat_43_sys_lseek(struct lwp *, void *, register_t *); 754 755 int sys_getpid_with_ppid(struct lwp *, void *, register_t *); 756 757 int osf1_sys_mount(struct lwp *, void *, register_t *); 758 759 int sys_setuid(struct lwp *, void *, register_t *); 760 761 int sys_getuid_with_euid(struct lwp *, void *, register_t *); 762 763 int linux_sys_ptrace(struct lwp *, void *, register_t *); 764 765 int linux_sys_access(struct lwp *, void *, register_t *); 766 767 int sys_sync(struct lwp *, void *, register_t *); 768 769 int linux_sys_kill(struct lwp *, void *, register_t *); 770 771 int sys_setpgid(struct lwp *, void *, register_t *); 772 773 int sys_dup(struct lwp *, void *, register_t *); 774 775 int linux_sys_pipe(struct lwp *, void *, register_t *); 776 777 int osf1_sys_set_program_attributes(struct lwp *, void *, register_t *); 778 779 int linux_sys_open(struct lwp *, void *, register_t *); 780 781 int sys_getgid_with_egid(struct lwp *, void *, register_t *); 782 783 int compat_13_sys_sigprocmask(struct lwp *, void *, register_t *); 784 785 int sys_acct(struct lwp *, void *, register_t *); 786 787 int linux_sys_sigpending(struct lwp *, void *, register_t *); 788 789 int linux_sys_ioctl(struct lwp *, void *, register_t *); 790 791 int linux_sys_symlink(struct lwp *, void *, register_t *); 792 793 int linux_sys_readlink(struct lwp *, void *, register_t *); 794 795 int linux_sys_execve(struct lwp *, void *, register_t *); 796 797 int sys_umask(struct lwp *, void *, register_t *); 798 799 int sys_chroot(struct lwp *, void *, register_t *); 800 801 int sys_getpgrp(struct lwp *, void *, register_t *); 802 803 int compat_43_sys_getpagesize(struct lwp *, void *, register_t *); 804 805 int sys___vfork14(struct lwp *, void *, register_t *); 806 807 int linux_sys_stat(struct lwp *, void *, register_t *); 808 809 int linux_sys_lstat(struct lwp *, void *, register_t *); 810 811 int linux_sys_mmap(struct lwp *, void *, register_t *); 812 813 int sys_munmap(struct lwp *, void *, register_t *); 814 815 int linux_sys_mprotect(struct lwp *, void *, register_t *); 816 817 int sys_madvise(struct lwp *, void *, register_t *); 818 819 int sys_getgroups(struct lwp *, void *, register_t *); 820 821 int sys_setgroups(struct lwp *, void *, register_t *); 822 823 int osf1_sys_setitimer(struct lwp *, void *, register_t *); 824 825 int compat_43_sys_gethostname(struct lwp *, void *, register_t *); 826 827 int compat_43_sys_sethostname(struct lwp *, void *, register_t *); 828 829 int sys_dup2(struct lwp *, void *, register_t *); 830 831 int linux_sys_fstat(struct lwp *, void *, register_t *); 832 833 int linux_sys_fcntl(struct lwp *, void *, register_t *); 834 835 int osf1_sys_select(struct lwp *, void *, register_t *); 836 837 int sys_poll(struct lwp *, void *, register_t *); 838 839 int sys_fsync(struct lwp *, void *, register_t *); 840 841 int sys_setpriority(struct lwp *, void *, register_t *); 842 843 int linux_sys_socket(struct lwp *, void *, register_t *); 844 845 int linux_sys_connect(struct lwp *, void *, register_t *); 846 847 int linux_sys_accept(struct lwp *, void *, register_t *); 848 849 int linux_sys_getpriority(struct lwp *, void *, register_t *); 850 851 int linux_sys_send(struct lwp *, void *, register_t *); 852 853 int linux_sys_recv(struct lwp *, void *, register_t *); 854 855 int linux_sys_sigreturn(struct lwp *, void *, register_t *); 856 857 int linux_sys_bind(struct lwp *, void *, register_t *); 858 859 int linux_sys_setsockopt(struct lwp *, void *, register_t *); 860 861 int sys_listen(struct lwp *, void *, register_t *); 862 863 int linux_sys_sigsuspend(struct lwp *, void *, register_t *); 864 865 int compat_43_sys_sigstack(struct lwp *, void *, register_t *); 866 867 int linux_sys_recvmsg(struct lwp *, void *, register_t *); 868 869 int linux_sys_sendmsg(struct lwp *, void *, register_t *); 870 871 int osf1_sys_gettimeofday(struct lwp *, void *, register_t *); 872 873 int osf1_sys_getrusage(struct lwp *, void *, register_t *); 874 875 int linux_sys_getsockopt(struct lwp *, void *, register_t *); 876 877 int sys_readv(struct lwp *, void *, register_t *); 878 879 int sys_writev(struct lwp *, void *, register_t *); 880 881 int osf1_sys_settimeofday(struct lwp *, void *, register_t *); 882 883 int sys___posix_fchown(struct lwp *, void *, register_t *); 884 885 int sys_fchmod(struct lwp *, void *, register_t *); 886 887 int linux_sys_recvfrom(struct lwp *, void *, register_t *); 888 889 int sys_setreuid(struct lwp *, void *, register_t *); 890 891 int sys_setregid(struct lwp *, void *, register_t *); 892 893 int linux_sys_rename(struct lwp *, void *, register_t *); 894 895 int linux_sys_truncate(struct lwp *, void *, register_t *); 896 897 int compat_43_sys_ftruncate(struct lwp *, void *, register_t *); 898 899 int sys_flock(struct lwp *, void *, register_t *); 900 901 int sys_setgid(struct lwp *, void *, register_t *); 902 903 int linux_sys_sendto(struct lwp *, void *, register_t *); 904 905 int sys_shutdown(struct lwp *, void *, register_t *); 906 907 int linux_sys_socketpair(struct lwp *, void *, register_t *); 908 909 int linux_sys_mkdir(struct lwp *, void *, register_t *); 910 911 int linux_sys_rmdir(struct lwp *, void *, register_t *); 912 913 int osf1_sys_utimes(struct lwp *, void *, register_t *); 914 915 int linux_sys_getpeername(struct lwp *, void *, register_t *); 916 917 int linux_sys_getrlimit(struct lwp *, void *, register_t *); 918 919 int linux_sys_setrlimit(struct lwp *, void *, register_t *); 920 921 int sys_setsid(struct lwp *, void *, register_t *); 922 923 int linux_sys_getsockname(struct lwp *, void *, register_t *); 924 925 int linux_sys_sigaction(struct lwp *, void *, register_t *); 926 927 int compat_43_sys_getdirentries(struct lwp *, void *, register_t *); 928 929 int osf1_sys_statfs(struct lwp *, void *, register_t *); 930 931 int osf1_sys_fstatfs(struct lwp *, void *, register_t *); 932 933 int compat_09_sys_getdomainname(struct lwp *, void *, register_t *); 934 935 int linux_sys_setdomainname(struct lwp *, void *, register_t *); 936 937 int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); 938 939 #ifdef SYSVMSG 940 int linux_sys_msgctl(struct lwp *, void *, register_t *); 941 942 int sys_msgget(struct lwp *, void *, register_t *); 943 944 int sys_msgrcv(struct lwp *, void *, register_t *); 945 946 int sys_msgsnd(struct lwp *, void *, register_t *); 947 948 #else 949 #endif 950 #ifdef SYSVSEM 951 int linux_sys_semctl(struct lwp *, void *, register_t *); 952 953 int sys_semget(struct lwp *, void *, register_t *); 954 955 int sys_semop(struct lwp *, void *, register_t *); 956 957 #else 958 #endif 959 int linux_sys_olduname(struct lwp *, void *, register_t *); 960 961 int sys___posix_lchown(struct lwp *, void *, register_t *); 962 963 #ifdef SYSVSHM 964 int linux_sys_shmat(struct lwp *, void *, register_t *); 965 966 int linux_sys_shmctl(struct lwp *, void *, register_t *); 967 968 int sys_shmdt(struct lwp *, void *, register_t *); 969 970 int linux_sys_shmget(struct lwp *, void *, register_t *); 971 972 #else 973 #endif 974 int linux_sys_msync(struct lwp *, void *, register_t *); 975 976 int linux_sys_getpgid(struct lwp *, void *, register_t *); 977 978 int sys_getsid(struct lwp *, void *, register_t *); 979 980 int osf1_sys_sysinfo(struct lwp *, void *, register_t *); 981 982 int osf1_sys_usleep_thread(struct lwp *, void *, register_t *); 983 984 int osf1_sys_getsysinfo(struct lwp *, void *, register_t *); 985 986 int osf1_sys_setsysinfo(struct lwp *, void *, register_t *); 987 988 int linux_sys_fdatasync(struct lwp *, void *, register_t *); 989 990 int linux_sys_swapoff(struct lwp *, void *, register_t *); 991 992 int linux_sys_getdents(struct lwp *, void *, register_t *); 993 994 int linux_sys_reboot(struct lwp *, void *, register_t *); 995 996 int linux_sys_clone(struct lwp *, void *, register_t *); 997 998 #ifdef EXEC_AOUT 999 int linux_sys_uselib(struct lwp *, void *, register_t *); 1000 1001 #else 1002 #endif 1003 int sys_mlock(struct lwp *, void *, register_t *); 1004 1005 int sys_munlock(struct lwp *, void *, register_t *); 1006 1007 int sys_mlockall(struct lwp *, void *, register_t *); 1008 1009 int sys_munlockall(struct lwp *, void *, register_t *); 1010 1011 int linux_sys_sysinfo(struct lwp *, void *, register_t *); 1012 1013 int linux_sys___sysctl(struct lwp *, void *, register_t *); 1014 1015 int linux_sys_swapon(struct lwp *, void *, register_t *); 1016 1017 int linux_sys_times(struct lwp *, void *, register_t *); 1018 1019 int linux_sys_personality(struct lwp *, void *, register_t *); 1020 1021 int linux_sys_setfsuid(struct lwp *, void *, register_t *); 1022 1023 int linux_sys_statfs(struct lwp *, void *, register_t *); 1024 1025 int linux_sys_fstatfs(struct lwp *, void *, register_t *); 1026 1027 int linux_sys_sched_setparam(struct lwp *, void *, register_t *); 1028 1029 int linux_sys_sched_getparam(struct lwp *, void *, register_t *); 1030 1031 int linux_sys_sched_setscheduler(struct lwp *, void *, register_t *); 1032 1033 int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *); 1034 1035 int linux_sys_sched_yield(struct lwp *, void *, register_t *); 1036 1037 int linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *); 1038 1039 int linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *); 1040 1041 int linux_sys_uname(struct lwp *, void *, register_t *); 1042 1043 int sys_nanosleep(struct lwp *, void *, register_t *); 1044 1045 int linux_sys_mremap(struct lwp *, void *, register_t *); 1046 1047 int linux_sys_setresuid(struct lwp *, void *, register_t *); 1048 1049 int linux_sys_getresuid(struct lwp *, void *, register_t *); 1050 1051 int linux_sys_pread(struct lwp *, void *, register_t *); 1052 1053 int linux_sys_pwrite(struct lwp *, void *, register_t *); 1054 1055 int linux_sys_rt_sigreturn(struct lwp *, void *, register_t *); 1056 1057 int linux_sys_rt_sigaction(struct lwp *, void *, register_t *); 1058 1059 int linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *); 1060 1061 int linux_sys_rt_sigpending(struct lwp *, void *, register_t *); 1062 1063 int linux_sys_rt_queueinfo(struct lwp *, void *, register_t *); 1064 1065 int linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *); 1066 1067 int linux_sys_select(struct lwp *, void *, register_t *); 1068 1069 int sys_gettimeofday(struct lwp *, void *, register_t *); 1070 1071 int sys_settimeofday(struct lwp *, void *, register_t *); 1072 1073 int sys_getitimer(struct lwp *, void *, register_t *); 1074 1075 int sys_setitimer(struct lwp *, void *, register_t *); 1076 1077 int sys_utimes(struct lwp *, void *, register_t *); 1078 1079 int sys_getrusage(struct lwp *, void *, register_t *); 1080 1081 int linux_sys_wait4(struct lwp *, void *, register_t *); 1082 1083 int sys___getcwd(struct lwp *, void *, register_t *); 1084 1085 int sys_mincore(struct lwp *, void *, register_t *); 1086 1087 int linux_sys_getdents64(struct lwp *, void *, register_t *); 1088 1089 int linux_sys_setxattr(struct lwp *, void *, register_t *); 1090 1091 int linux_sys_lsetxattr(struct lwp *, void *, register_t *); 1092 1093 int linux_sys_fsetxattr(struct lwp *, void *, register_t *); 1094 1095 int linux_sys_getxattr(struct lwp *, void *, register_t *); 1096 1097 int linux_sys_lgetxattr(struct lwp *, void *, register_t *); 1098 1099 int linux_sys_fgetxattr(struct lwp *, void *, register_t *); 1100 1101 int linux_sys_listxattr(struct lwp *, void *, register_t *); 1102 1103 int linux_sys_llistxattr(struct lwp *, void *, register_t *); 1104 1105 int linux_sys_flistxattr(struct lwp *, void *, register_t *); 1106 1107 int linux_sys_removexattr(struct lwp *, void *, register_t *); 1108 1109 int linux_sys_lremovexattr(struct lwp *, void *, register_t *); 1110 1111 int linux_sys_fremovexattr(struct lwp *, void *, register_t *); 1112 1113 int linux_sys_exit_group(struct lwp *, void *, register_t *); 1114 1115 int linux_sys_clock_settime(struct lwp *, void *, register_t *); 1116 1117 int linux_sys_clock_gettime(struct lwp *, void *, register_t *); 1118 1119 int linux_sys_clock_getres(struct lwp *, void *, register_t *); 1120 1121 int linux_sys_clock_nanosleep(struct lwp *, void *, register_t *); 1122 1123 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ 1124