1 /* $NetBSD: linux_syscallargs.h,v 1.36 2007/11/16 12:54:02 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.32 2007/11/16 12:51:56 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 linux_sys_open_args { 35 syscallarg(const char *) path; 36 syscallarg(int) flags; 37 syscallarg(int) mode; 38 }; 39 check_syscall_args(linux_sys_open) 40 41 struct linux_sys_waitpid_args { 42 syscallarg(int) pid; 43 syscallarg(int *) status; 44 syscallarg(int) options; 45 }; 46 check_syscall_args(linux_sys_waitpid) 47 48 struct linux_sys_creat_args { 49 syscallarg(const char *) path; 50 syscallarg(int) mode; 51 }; 52 check_syscall_args(linux_sys_creat) 53 54 struct linux_sys_unlink_args { 55 syscallarg(const char *) path; 56 }; 57 check_syscall_args(linux_sys_unlink) 58 59 struct linux_sys_time_args { 60 syscallarg(linux_time_t *) t; 61 }; 62 check_syscall_args(linux_sys_time) 63 64 struct linux_sys_mknod_args { 65 syscallarg(const char *) path; 66 syscallarg(int) mode; 67 syscallarg(int) dev; 68 }; 69 check_syscall_args(linux_sys_mknod) 70 71 struct linux_sys_stime_args { 72 syscallarg(linux_time_t *) t; 73 }; 74 check_syscall_args(linux_sys_stime) 75 76 struct linux_sys_ptrace_args { 77 syscallarg(int) request; 78 syscallarg(int) pid; 79 syscallarg(int) addr; 80 syscallarg(int) data; 81 }; 82 check_syscall_args(linux_sys_ptrace) 83 84 struct linux_sys_alarm_args { 85 syscallarg(unsigned int) secs; 86 }; 87 check_syscall_args(linux_sys_alarm) 88 89 struct linux_sys_utime_args { 90 syscallarg(const char *) path; 91 syscallarg(struct linux_utimbuf *) times; 92 }; 93 check_syscall_args(linux_sys_utime) 94 95 struct linux_sys_nice_args { 96 syscallarg(int) incr; 97 }; 98 check_syscall_args(linux_sys_nice) 99 100 struct linux_sys_kill_args { 101 syscallarg(int) pid; 102 syscallarg(int) signum; 103 }; 104 check_syscall_args(linux_sys_kill) 105 106 struct linux_sys_pipe_args { 107 syscallarg(int *) pfds; 108 }; 109 check_syscall_args(linux_sys_pipe) 110 111 struct linux_sys_times_args { 112 syscallarg(struct times *) tms; 113 }; 114 check_syscall_args(linux_sys_times) 115 116 struct linux_sys_brk_args { 117 syscallarg(char *) nsize; 118 }; 119 check_syscall_args(linux_sys_brk) 120 121 struct linux_sys_signal_args { 122 syscallarg(int) signum; 123 syscallarg(linux_handler_t) handler; 124 }; 125 check_syscall_args(linux_sys_signal) 126 127 struct linux_sys_ioctl_args { 128 syscallarg(int) fd; 129 syscallarg(u_long) com; 130 syscallarg(void *) data; 131 }; 132 check_syscall_args(linux_sys_ioctl) 133 134 struct linux_sys_fcntl_args { 135 syscallarg(int) fd; 136 syscallarg(int) cmd; 137 syscallarg(void *) arg; 138 }; 139 check_syscall_args(linux_sys_fcntl) 140 141 struct linux_sys_olduname_args { 142 syscallarg(struct linux_old_utsname *) up; 143 }; 144 check_syscall_args(linux_sys_olduname) 145 146 struct linux_sys_sigaction_args { 147 syscallarg(int) signum; 148 syscallarg(const struct linux_old_sigaction *) nsa; 149 syscallarg(struct linux_old_sigaction *) osa; 150 }; 151 check_syscall_args(linux_sys_sigaction) 152 153 struct linux_sys_sigsetmask_args { 154 syscallarg(linux_old_sigset_t) mask; 155 }; 156 check_syscall_args(linux_sys_sigsetmask) 157 158 struct linux_sys_sigsuspend_args { 159 syscallarg(void *) restart; 160 syscallarg(int) oldmask; 161 syscallarg(int) mask; 162 }; 163 check_syscall_args(linux_sys_sigsuspend) 164 165 struct linux_sys_sigpending_args { 166 syscallarg(linux_old_sigset_t *) set; 167 }; 168 check_syscall_args(linux_sys_sigpending) 169 170 struct linux_sys_setrlimit_args { 171 syscallarg(u_int) which; 172 syscallarg(struct orlimit *) rlp; 173 }; 174 check_syscall_args(linux_sys_setrlimit) 175 176 struct linux_sys_getrlimit_args { 177 syscallarg(u_int) which; 178 syscallarg(struct orlimit *) rlp; 179 }; 180 check_syscall_args(linux_sys_getrlimit) 181 182 struct linux_sys_gettimeofday_args { 183 syscallarg(struct timeval *) tp; 184 syscallarg(struct timezone *) tzp; 185 }; 186 check_syscall_args(linux_sys_gettimeofday) 187 188 struct linux_sys_settimeofday_args { 189 syscallarg(struct timeval *) tp; 190 syscallarg(struct timezone *) tzp; 191 }; 192 check_syscall_args(linux_sys_settimeofday) 193 194 struct linux_sys_select_args { 195 syscallarg(int) nfds; 196 syscallarg(fd_set *) readfds; 197 syscallarg(fd_set *) writefds; 198 syscallarg(fd_set *) exceptfds; 199 syscallarg(struct timeval *) timeout; 200 }; 201 check_syscall_args(linux_sys_select) 202 #ifdef EXEC_AOUT 203 204 struct linux_sys_uselib_args { 205 syscallarg(const char *) path; 206 }; 207 check_syscall_args(linux_sys_uselib) 208 #else 209 #endif 210 211 struct linux_sys_swapon_args { 212 syscallarg(char *) name; 213 }; 214 check_syscall_args(linux_sys_swapon) 215 216 struct linux_sys_reboot_args { 217 syscallarg(int) magic1; 218 syscallarg(int) magic2; 219 syscallarg(int) cmd; 220 syscallarg(void *) arg; 221 }; 222 check_syscall_args(linux_sys_reboot) 223 224 struct linux_sys_readdir_args { 225 syscallarg(int) fd; 226 syscallarg(void *) dent; 227 syscallarg(unsigned int) count; 228 }; 229 check_syscall_args(linux_sys_readdir) 230 231 struct linux_sys_getpriority_args { 232 syscallarg(int) which; 233 syscallarg(int) who; 234 }; 235 check_syscall_args(linux_sys_getpriority) 236 237 struct linux_sys_statfs_args { 238 syscallarg(const char *) path; 239 syscallarg(struct linux_statfs *) sp; 240 }; 241 check_syscall_args(linux_sys_statfs) 242 243 struct linux_sys_fstatfs_args { 244 syscallarg(int) fd; 245 syscallarg(struct linux_statfs *) sp; 246 }; 247 check_syscall_args(linux_sys_fstatfs) 248 249 struct linux_sys_ioperm_args { 250 syscallarg(unsigned int) lo; 251 syscallarg(unsigned int) hi; 252 syscallarg(int) val; 253 }; 254 check_syscall_args(linux_sys_ioperm) 255 256 struct linux_sys_socketcall_args { 257 syscallarg(int) what; 258 syscallarg(void *) args; 259 }; 260 check_syscall_args(linux_sys_socketcall) 261 262 struct linux_sys_stat_args { 263 syscallarg(const char *) path; 264 syscallarg(struct linux_stat *) sp; 265 }; 266 check_syscall_args(linux_sys_stat) 267 268 struct linux_sys_lstat_args { 269 syscallarg(const char *) path; 270 syscallarg(struct linux_stat *) sp; 271 }; 272 check_syscall_args(linux_sys_lstat) 273 274 struct linux_sys_fstat_args { 275 syscallarg(int) fd; 276 syscallarg(struct linux_stat *) sp; 277 }; 278 check_syscall_args(linux_sys_fstat) 279 280 struct linux_sys_uname_args { 281 syscallarg(struct linux_utsname *) up; 282 }; 283 check_syscall_args(linux_sys_uname) 284 285 struct linux_sys_wait4_args { 286 syscallarg(int) pid; 287 syscallarg(int *) status; 288 syscallarg(int) options; 289 syscallarg(struct rusage *) rusage; 290 }; 291 check_syscall_args(linux_sys_wait4) 292 293 struct linux_sys_swapoff_args { 294 syscallarg(const char *) path; 295 }; 296 check_syscall_args(linux_sys_swapoff) 297 298 struct linux_sys_sysinfo_args { 299 syscallarg(struct linux_sysinfo *) arg; 300 }; 301 check_syscall_args(linux_sys_sysinfo) 302 303 struct linux_sys_ipc_args { 304 syscallarg(int) what; 305 syscallarg(int) a1; 306 syscallarg(int) a2; 307 syscallarg(int) a3; 308 syscallarg(void *) ptr; 309 }; 310 check_syscall_args(linux_sys_ipc) 311 312 struct linux_sys_sigreturn_args { 313 syscallarg(struct linux_sigcontext *) scp; 314 }; 315 check_syscall_args(linux_sys_sigreturn) 316 317 struct linux_sys_clone_args { 318 syscallarg(int) flags; 319 syscallarg(void *) stack; 320 }; 321 check_syscall_args(linux_sys_clone) 322 323 struct linux_sys_setdomainname_args { 324 syscallarg(char *) domainname; 325 syscallarg(int) len; 326 }; 327 check_syscall_args(linux_sys_setdomainname) 328 329 struct linux_sys_new_uname_args { 330 syscallarg(struct linux_utsname *) up; 331 }; 332 check_syscall_args(linux_sys_new_uname) 333 334 struct linux_sys_mprotect_args { 335 syscallarg(const void *) start; 336 syscallarg(unsigned long) len; 337 syscallarg(int) prot; 338 }; 339 check_syscall_args(linux_sys_mprotect) 340 341 struct linux_sys_sigprocmask_args { 342 syscallarg(int) how; 343 syscallarg(const linux_old_sigset_t *) set; 344 syscallarg(linux_old_sigset_t *) oset; 345 }; 346 check_syscall_args(linux_sys_sigprocmask) 347 348 struct linux_sys_getpgid_args { 349 syscallarg(int) pid; 350 }; 351 check_syscall_args(linux_sys_getpgid) 352 353 struct linux_sys_personality_args { 354 syscallarg(int) per; 355 }; 356 check_syscall_args(linux_sys_personality) 357 358 struct linux_sys_setfsuid_args { 359 syscallarg(uid_t) uid; 360 }; 361 check_syscall_args(linux_sys_setfsuid) 362 363 struct linux_sys_llseek_args { 364 syscallarg(int) fd; 365 syscallarg(u_int32_t) ohigh; 366 syscallarg(u_int32_t) olow; 367 syscallarg(void *) res; 368 syscallarg(int) whence; 369 }; 370 check_syscall_args(linux_sys_llseek) 371 372 struct linux_sys_getdents_args { 373 syscallarg(int) fd; 374 syscallarg(struct linux_dirent *) dent; 375 syscallarg(unsigned int) count; 376 }; 377 check_syscall_args(linux_sys_getdents) 378 379 struct linux_sys_new_select_args { 380 syscallarg(int) nfds; 381 syscallarg(fd_set *) readfds; 382 syscallarg(fd_set *) writefds; 383 syscallarg(fd_set *) exceptfds; 384 syscallarg(struct timeval *) timeout; 385 }; 386 check_syscall_args(linux_sys_new_select) 387 388 struct linux_sys_msync_args { 389 syscallarg(void *) addr; 390 syscallarg(int) len; 391 syscallarg(int) fl; 392 }; 393 check_syscall_args(linux_sys_msync) 394 395 struct linux_sys_fdatasync_args { 396 syscallarg(int) fd; 397 }; 398 check_syscall_args(linux_sys_fdatasync) 399 400 struct linux_sys___sysctl_args { 401 syscallarg(struct linux___sysctl *) lsp; 402 }; 403 check_syscall_args(linux_sys___sysctl) 404 405 struct linux_sys_sched_setparam_args { 406 syscallarg(pid_t) pid; 407 syscallarg(const struct linux_sched_param *) sp; 408 }; 409 check_syscall_args(linux_sys_sched_setparam) 410 411 struct linux_sys_sched_getparam_args { 412 syscallarg(pid_t) pid; 413 syscallarg(struct linux_sched_param *) sp; 414 }; 415 check_syscall_args(linux_sys_sched_getparam) 416 417 struct linux_sys_sched_setscheduler_args { 418 syscallarg(pid_t) pid; 419 syscallarg(int) policy; 420 syscallarg(const struct linux_sched_param *) sp; 421 }; 422 check_syscall_args(linux_sys_sched_setscheduler) 423 424 struct linux_sys_sched_getscheduler_args { 425 syscallarg(pid_t) pid; 426 }; 427 check_syscall_args(linux_sys_sched_getscheduler) 428 429 struct linux_sys_sched_get_priority_max_args { 430 syscallarg(int) policy; 431 }; 432 check_syscall_args(linux_sys_sched_get_priority_max) 433 434 struct linux_sys_sched_get_priority_min_args { 435 syscallarg(int) policy; 436 }; 437 check_syscall_args(linux_sys_sched_get_priority_min) 438 439 struct linux_sys_mremap_args { 440 syscallarg(void *) old_address; 441 syscallarg(size_t) old_size; 442 syscallarg(size_t) new_size; 443 syscallarg(u_long) flags; 444 }; 445 check_syscall_args(linux_sys_mremap) 446 447 struct linux_sys_setresuid_args { 448 syscallarg(uid_t) ruid; 449 syscallarg(uid_t) euid; 450 syscallarg(uid_t) suid; 451 }; 452 check_syscall_args(linux_sys_setresuid) 453 454 struct linux_sys_getresuid_args { 455 syscallarg(uid_t *) ruid; 456 syscallarg(uid_t *) euid; 457 syscallarg(uid_t *) suid; 458 }; 459 check_syscall_args(linux_sys_getresuid) 460 461 struct linux_sys_setresgid_args { 462 syscallarg(gid_t) rgid; 463 syscallarg(gid_t) egid; 464 syscallarg(gid_t) sgid; 465 }; 466 check_syscall_args(linux_sys_setresgid) 467 468 struct linux_sys_getresgid_args { 469 syscallarg(gid_t *) rgid; 470 syscallarg(gid_t *) egid; 471 syscallarg(gid_t *) sgid; 472 }; 473 check_syscall_args(linux_sys_getresgid) 474 475 struct linux_sys_rt_sigreturn_args { 476 syscallarg(struct linux_rt_sigframe *) sfp; 477 }; 478 check_syscall_args(linux_sys_rt_sigreturn) 479 480 struct linux_sys_rt_sigaction_args { 481 syscallarg(int) signum; 482 syscallarg(const struct linux_sigaction *) nsa; 483 syscallarg(struct linux_sigaction *) osa; 484 syscallarg(size_t) sigsetsize; 485 }; 486 check_syscall_args(linux_sys_rt_sigaction) 487 488 struct linux_sys_rt_sigprocmask_args { 489 syscallarg(int) how; 490 syscallarg(const linux_sigset_t *) set; 491 syscallarg(linux_sigset_t *) oset; 492 syscallarg(size_t) sigsetsize; 493 }; 494 check_syscall_args(linux_sys_rt_sigprocmask) 495 496 struct linux_sys_rt_sigpending_args { 497 syscallarg(linux_sigset_t *) set; 498 syscallarg(size_t) sigsetsize; 499 }; 500 check_syscall_args(linux_sys_rt_sigpending) 501 502 struct linux_sys_rt_queueinfo_args { 503 syscallarg(int) pid; 504 syscallarg(int) signum; 505 syscallarg(void *) uinfo; 506 }; 507 check_syscall_args(linux_sys_rt_queueinfo) 508 509 struct linux_sys_rt_sigsuspend_args { 510 syscallarg(linux_sigset_t *) unewset; 511 syscallarg(size_t) sigsetsize; 512 }; 513 check_syscall_args(linux_sys_rt_sigsuspend) 514 515 struct linux_sys_pread_args { 516 syscallarg(int) fd; 517 syscallarg(char *) buf; 518 syscallarg(size_t) nbyte; 519 syscallarg(linux_off_t) offset; 520 }; 521 check_syscall_args(linux_sys_pread) 522 523 struct linux_sys_pwrite_args { 524 syscallarg(int) fd; 525 syscallarg(char *) buf; 526 syscallarg(size_t) nbyte; 527 syscallarg(linux_off_t) offset; 528 }; 529 check_syscall_args(linux_sys_pwrite) 530 531 struct linux_sys_sigaltstack_args { 532 syscallarg(const struct linux_sigaltstack *) ss; 533 syscallarg(struct linux_sigaltstack *) oss; 534 }; 535 check_syscall_args(linux_sys_sigaltstack) 536 537 struct linux_sys_ugetrlimit_args { 538 syscallarg(int) which; 539 syscallarg(struct rlimit *) rlp; 540 }; 541 check_syscall_args(linux_sys_ugetrlimit) 542 543 struct linux_sys_truncate64_args { 544 syscallarg(const char *) path; 545 syscallarg(off_t) length; 546 }; 547 check_syscall_args(linux_sys_truncate64) 548 549 struct linux_sys_ftruncate64_args { 550 syscallarg(unsigned int) fd; 551 syscallarg(off_t) length; 552 }; 553 check_syscall_args(linux_sys_ftruncate64) 554 555 struct linux_sys_stat64_args { 556 syscallarg(const char *) path; 557 syscallarg(struct linux_stat64 *) sp; 558 }; 559 check_syscall_args(linux_sys_stat64) 560 561 struct linux_sys_lstat64_args { 562 syscallarg(const char *) path; 563 syscallarg(struct linux_stat64 *) sp; 564 }; 565 check_syscall_args(linux_sys_lstat64) 566 567 struct linux_sys_fstat64_args { 568 syscallarg(int) fd; 569 syscallarg(struct linux_stat64 *) sp; 570 }; 571 check_syscall_args(linux_sys_fstat64) 572 573 struct linux_sys_getdents64_args { 574 syscallarg(int) fd; 575 syscallarg(struct linux_dirent64 *) dent; 576 syscallarg(unsigned int) count; 577 }; 578 check_syscall_args(linux_sys_getdents64) 579 580 struct linux_sys_fcntl64_args { 581 syscallarg(int) fd; 582 syscallarg(int) cmd; 583 syscallarg(void *) arg; 584 }; 585 check_syscall_args(linux_sys_fcntl64) 586 587 struct linux_sys_setxattr_args { 588 syscallarg(char *) path; 589 syscallarg(char *) name; 590 syscallarg(void *) value; 591 syscallarg(size_t) size; 592 syscallarg(int) flags; 593 }; 594 check_syscall_args(linux_sys_setxattr) 595 596 struct linux_sys_lsetxattr_args { 597 syscallarg(char *) path; 598 syscallarg(char *) name; 599 syscallarg(void *) value; 600 syscallarg(size_t) size; 601 syscallarg(int) flags; 602 }; 603 check_syscall_args(linux_sys_lsetxattr) 604 605 struct linux_sys_fsetxattr_args { 606 syscallarg(int) fd; 607 syscallarg(char *) name; 608 syscallarg(void *) value; 609 syscallarg(size_t) size; 610 syscallarg(int) flags; 611 }; 612 check_syscall_args(linux_sys_fsetxattr) 613 614 struct linux_sys_getxattr_args { 615 syscallarg(char *) path; 616 syscallarg(char *) name; 617 syscallarg(void *) value; 618 syscallarg(size_t) size; 619 }; 620 check_syscall_args(linux_sys_getxattr) 621 622 struct linux_sys_lgetxattr_args { 623 syscallarg(char *) path; 624 syscallarg(char *) name; 625 syscallarg(void *) value; 626 syscallarg(size_t) size; 627 }; 628 check_syscall_args(linux_sys_lgetxattr) 629 630 struct linux_sys_fgetxattr_args { 631 syscallarg(int) fd; 632 syscallarg(char *) name; 633 syscallarg(void *) value; 634 syscallarg(size_t) size; 635 }; 636 check_syscall_args(linux_sys_fgetxattr) 637 638 struct linux_sys_listxattr_args { 639 syscallarg(char *) path; 640 syscallarg(char *) list; 641 syscallarg(size_t) size; 642 }; 643 check_syscall_args(linux_sys_listxattr) 644 645 struct linux_sys_llistxattr_args { 646 syscallarg(char *) path; 647 syscallarg(char *) list; 648 syscallarg(size_t) size; 649 }; 650 check_syscall_args(linux_sys_llistxattr) 651 652 struct linux_sys_flistxattr_args { 653 syscallarg(int) fd; 654 syscallarg(char *) list; 655 syscallarg(size_t) size; 656 }; 657 check_syscall_args(linux_sys_flistxattr) 658 659 struct linux_sys_removexattr_args { 660 syscallarg(char *) path; 661 syscallarg(char *) name; 662 }; 663 check_syscall_args(linux_sys_removexattr) 664 665 struct linux_sys_lremovexattr_args { 666 syscallarg(char *) path; 667 syscallarg(char *) name; 668 }; 669 check_syscall_args(linux_sys_lremovexattr) 670 671 struct linux_sys_fremovexattr_args { 672 syscallarg(int) fd; 673 syscallarg(char *) name; 674 }; 675 check_syscall_args(linux_sys_fremovexattr) 676 677 struct linux_sys_exit_group_args { 678 syscallarg(int) error_code; 679 }; 680 check_syscall_args(linux_sys_exit_group) 681 682 struct linux_sys_clock_settime_args { 683 syscallarg(clockid_t) which; 684 syscallarg(struct linux_timespec *) tp; 685 }; 686 check_syscall_args(linux_sys_clock_settime) 687 688 struct linux_sys_clock_gettime_args { 689 syscallarg(clockid_t) which; 690 syscallarg(struct linux_timespec *) tp; 691 }; 692 check_syscall_args(linux_sys_clock_gettime) 693 694 struct linux_sys_clock_getres_args { 695 syscallarg(clockid_t) which; 696 syscallarg(struct linux_timespec *) tp; 697 }; 698 check_syscall_args(linux_sys_clock_getres) 699 700 struct linux_sys_clock_nanosleep_args { 701 syscallarg(clockid_t) which; 702 syscallarg(int) flags; 703 syscallarg(struct linux_timespec *) rqtp; 704 syscallarg(struct linux_timespec *) rmtp; 705 }; 706 check_syscall_args(linux_sys_clock_nanosleep) 707 708 struct linux_sys_statfs64_args { 709 syscallarg(const char *) path; 710 syscallarg(size_t) sz; 711 syscallarg(struct linux_statfs64 *) sp; 712 }; 713 check_syscall_args(linux_sys_statfs64) 714 715 struct linux_sys_fstatfs64_args { 716 syscallarg(int) fd; 717 syscallarg(size_t) sz; 718 syscallarg(struct linux_statfs64 *) sp; 719 }; 720 check_syscall_args(linux_sys_fstatfs64) 721 722 /* 723 * System call prototypes. 724 */ 725 726 int linux_sys_nosys(struct lwp *, void *, register_t *); 727 728 int sys_exit(struct lwp *, void *, register_t *); 729 730 int sys_fork(struct lwp *, void *, register_t *); 731 732 int sys_read(struct lwp *, void *, register_t *); 733 734 int sys_write(struct lwp *, void *, register_t *); 735 736 int linux_sys_open(struct lwp *, void *, register_t *); 737 738 int sys_close(struct lwp *, void *, register_t *); 739 740 int linux_sys_waitpid(struct lwp *, void *, register_t *); 741 742 int linux_sys_creat(struct lwp *, void *, register_t *); 743 744 int sys_link(struct lwp *, void *, register_t *); 745 746 int linux_sys_unlink(struct lwp *, void *, register_t *); 747 748 int sys_execve(struct lwp *, void *, register_t *); 749 750 int sys_chdir(struct lwp *, void *, register_t *); 751 752 int linux_sys_time(struct lwp *, void *, register_t *); 753 754 int linux_sys_mknod(struct lwp *, void *, register_t *); 755 756 int sys_chmod(struct lwp *, void *, register_t *); 757 758 int sys___posix_lchown(struct lwp *, void *, register_t *); 759 760 int compat_43_sys_lseek(struct lwp *, void *, register_t *); 761 762 int sys_getpid(struct lwp *, void *, register_t *); 763 764 int sys_setuid(struct lwp *, void *, register_t *); 765 766 int sys_getuid(struct lwp *, void *, register_t *); 767 768 int linux_sys_stime(struct lwp *, void *, register_t *); 769 770 int linux_sys_ptrace(struct lwp *, void *, register_t *); 771 772 int linux_sys_alarm(struct lwp *, void *, register_t *); 773 774 int linux_sys_pause(struct lwp *, void *, register_t *); 775 776 int linux_sys_utime(struct lwp *, void *, register_t *); 777 778 int sys_access(struct lwp *, void *, register_t *); 779 780 int linux_sys_nice(struct lwp *, void *, register_t *); 781 782 int sys_sync(struct lwp *, void *, register_t *); 783 784 int linux_sys_kill(struct lwp *, void *, register_t *); 785 786 int sys___posix_rename(struct lwp *, void *, register_t *); 787 788 int sys_mkdir(struct lwp *, void *, register_t *); 789 790 int sys_rmdir(struct lwp *, void *, register_t *); 791 792 int sys_dup(struct lwp *, void *, register_t *); 793 794 int linux_sys_pipe(struct lwp *, void *, register_t *); 795 796 int linux_sys_times(struct lwp *, void *, register_t *); 797 798 int linux_sys_brk(struct lwp *, void *, register_t *); 799 800 int sys_setgid(struct lwp *, void *, register_t *); 801 802 int sys_getgid(struct lwp *, void *, register_t *); 803 804 int linux_sys_signal(struct lwp *, void *, register_t *); 805 806 int sys_geteuid(struct lwp *, void *, register_t *); 807 808 int sys_getegid(struct lwp *, void *, register_t *); 809 810 int sys_acct(struct lwp *, void *, register_t *); 811 812 int linux_sys_ioctl(struct lwp *, void *, register_t *); 813 814 int linux_sys_fcntl(struct lwp *, void *, register_t *); 815 816 int sys_setpgid(struct lwp *, void *, register_t *); 817 818 int linux_sys_olduname(struct lwp *, void *, register_t *); 819 820 int sys_umask(struct lwp *, void *, register_t *); 821 822 int sys_chroot(struct lwp *, void *, register_t *); 823 824 int sys_dup2(struct lwp *, void *, register_t *); 825 826 int sys_getppid(struct lwp *, void *, register_t *); 827 828 int sys_getpgrp(struct lwp *, void *, register_t *); 829 830 int sys_setsid(struct lwp *, void *, register_t *); 831 832 int linux_sys_sigaction(struct lwp *, void *, register_t *); 833 834 int linux_sys_siggetmask(struct lwp *, void *, register_t *); 835 836 int linux_sys_sigsetmask(struct lwp *, void *, register_t *); 837 838 int sys_setreuid(struct lwp *, void *, register_t *); 839 840 int sys_setregid(struct lwp *, void *, register_t *); 841 842 int linux_sys_sigsuspend(struct lwp *, void *, register_t *); 843 844 int linux_sys_sigpending(struct lwp *, void *, register_t *); 845 846 int compat_43_sys_sethostname(struct lwp *, void *, register_t *); 847 848 int linux_sys_setrlimit(struct lwp *, void *, register_t *); 849 850 int linux_sys_getrlimit(struct lwp *, void *, register_t *); 851 852 int sys_getrusage(struct lwp *, void *, register_t *); 853 854 int linux_sys_gettimeofday(struct lwp *, void *, register_t *); 855 856 int linux_sys_settimeofday(struct lwp *, void *, register_t *); 857 858 int sys_getgroups(struct lwp *, void *, register_t *); 859 860 int sys_setgroups(struct lwp *, void *, register_t *); 861 862 int linux_sys_select(struct lwp *, void *, register_t *); 863 864 int sys_symlink(struct lwp *, void *, register_t *); 865 866 int compat_43_sys_lstat(struct lwp *, void *, register_t *); 867 868 int sys_readlink(struct lwp *, void *, register_t *); 869 870 #ifdef EXEC_AOUT 871 int linux_sys_uselib(struct lwp *, void *, register_t *); 872 873 #else 874 #endif 875 int linux_sys_swapon(struct lwp *, void *, register_t *); 876 877 int linux_sys_reboot(struct lwp *, void *, register_t *); 878 879 int linux_sys_readdir(struct lwp *, void *, register_t *); 880 881 int linux_sys_mmap(struct lwp *, void *, register_t *); 882 883 int sys_munmap(struct lwp *, void *, register_t *); 884 885 int compat_43_sys_truncate(struct lwp *, void *, register_t *); 886 887 int compat_43_sys_ftruncate(struct lwp *, void *, register_t *); 888 889 int sys_fchmod(struct lwp *, void *, register_t *); 890 891 int sys___posix_fchown(struct lwp *, void *, register_t *); 892 893 int linux_sys_getpriority(struct lwp *, void *, register_t *); 894 895 int sys_setpriority(struct lwp *, void *, register_t *); 896 897 int sys_profil(struct lwp *, void *, register_t *); 898 899 int linux_sys_statfs(struct lwp *, void *, register_t *); 900 901 int linux_sys_fstatfs(struct lwp *, void *, register_t *); 902 903 int linux_sys_ioperm(struct lwp *, void *, register_t *); 904 905 int linux_sys_socketcall(struct lwp *, void *, register_t *); 906 907 int sys_setitimer(struct lwp *, void *, register_t *); 908 909 int sys_getitimer(struct lwp *, void *, register_t *); 910 911 int linux_sys_stat(struct lwp *, void *, register_t *); 912 913 int linux_sys_lstat(struct lwp *, void *, register_t *); 914 915 int linux_sys_fstat(struct lwp *, void *, register_t *); 916 917 int linux_sys_uname(struct lwp *, void *, register_t *); 918 919 int linux_sys_wait4(struct lwp *, void *, register_t *); 920 921 int linux_sys_swapoff(struct lwp *, void *, register_t *); 922 923 int linux_sys_sysinfo(struct lwp *, void *, register_t *); 924 925 int linux_sys_ipc(struct lwp *, void *, register_t *); 926 927 int sys_fsync(struct lwp *, void *, register_t *); 928 929 int linux_sys_sigreturn(struct lwp *, void *, register_t *); 930 931 int linux_sys_clone(struct lwp *, void *, register_t *); 932 933 int linux_sys_setdomainname(struct lwp *, void *, register_t *); 934 935 int linux_sys_new_uname(struct lwp *, void *, register_t *); 936 937 int linux_sys_mprotect(struct lwp *, void *, register_t *); 938 939 int linux_sys_sigprocmask(struct lwp *, void *, register_t *); 940 941 int linux_sys_getpgid(struct lwp *, void *, register_t *); 942 943 int sys_fchdir(struct lwp *, void *, register_t *); 944 945 int linux_sys_personality(struct lwp *, void *, register_t *); 946 947 int linux_sys_setfsuid(struct lwp *, void *, register_t *); 948 949 int linux_sys_getfsuid(struct lwp *, void *, register_t *); 950 951 int linux_sys_llseek(struct lwp *, void *, register_t *); 952 953 int linux_sys_getdents(struct lwp *, void *, register_t *); 954 955 int linux_sys_new_select(struct lwp *, void *, register_t *); 956 957 int sys_flock(struct lwp *, void *, register_t *); 958 959 int linux_sys_msync(struct lwp *, void *, register_t *); 960 961 int sys_readv(struct lwp *, void *, register_t *); 962 963 int sys_writev(struct lwp *, void *, register_t *); 964 965 int sys_getsid(struct lwp *, void *, register_t *); 966 967 int linux_sys_fdatasync(struct lwp *, void *, register_t *); 968 969 int linux_sys___sysctl(struct lwp *, void *, register_t *); 970 971 int sys_mlock(struct lwp *, void *, register_t *); 972 973 int sys_munlock(struct lwp *, void *, register_t *); 974 975 int sys_mlockall(struct lwp *, void *, register_t *); 976 977 int sys_munlockall(struct lwp *, void *, register_t *); 978 979 int linux_sys_sched_setparam(struct lwp *, void *, register_t *); 980 981 int linux_sys_sched_getparam(struct lwp *, void *, register_t *); 982 983 int linux_sys_sched_setscheduler(struct lwp *, void *, register_t *); 984 985 int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *); 986 987 int linux_sys_sched_yield(struct lwp *, void *, register_t *); 988 989 int linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *); 990 991 int linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *); 992 993 int sys_nanosleep(struct lwp *, void *, register_t *); 994 995 int linux_sys_mremap(struct lwp *, void *, register_t *); 996 997 int linux_sys_setresuid(struct lwp *, void *, register_t *); 998 999 int linux_sys_getresuid(struct lwp *, void *, register_t *); 1000 1001 int sys_poll(struct lwp *, void *, register_t *); 1002 1003 int linux_sys_setresgid(struct lwp *, void *, register_t *); 1004 1005 int linux_sys_getresgid(struct lwp *, void *, register_t *); 1006 1007 int linux_sys_rt_sigreturn(struct lwp *, void *, register_t *); 1008 1009 int linux_sys_rt_sigaction(struct lwp *, void *, register_t *); 1010 1011 int linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *); 1012 1013 int linux_sys_rt_sigpending(struct lwp *, void *, register_t *); 1014 1015 int linux_sys_rt_queueinfo(struct lwp *, void *, register_t *); 1016 1017 int linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *); 1018 1019 int linux_sys_pread(struct lwp *, void *, register_t *); 1020 1021 int linux_sys_pwrite(struct lwp *, void *, register_t *); 1022 1023 int sys___posix_chown(struct lwp *, void *, register_t *); 1024 1025 int sys___getcwd(struct lwp *, void *, register_t *); 1026 1027 int linux_sys_sigaltstack(struct lwp *, void *, register_t *); 1028 1029 int sys___vfork14(struct lwp *, void *, register_t *); 1030 1031 int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); 1032 1033 int linux_sys_mmap2(struct lwp *, void *, register_t *); 1034 1035 int linux_sys_truncate64(struct lwp *, void *, register_t *); 1036 1037 int linux_sys_ftruncate64(struct lwp *, void *, register_t *); 1038 1039 int linux_sys_stat64(struct lwp *, void *, register_t *); 1040 1041 int linux_sys_lstat64(struct lwp *, void *, register_t *); 1042 1043 int linux_sys_fstat64(struct lwp *, void *, register_t *); 1044 1045 int linux_sys_getdents64(struct lwp *, void *, register_t *); 1046 1047 int linux_sys_fcntl64(struct lwp *, void *, register_t *); 1048 1049 int sys_mincore(struct lwp *, void *, register_t *); 1050 1051 int sys_madvise(struct lwp *, void *, register_t *); 1052 1053 int linux_sys_setxattr(struct lwp *, void *, register_t *); 1054 1055 int linux_sys_lsetxattr(struct lwp *, void *, register_t *); 1056 1057 int linux_sys_fsetxattr(struct lwp *, void *, register_t *); 1058 1059 int linux_sys_getxattr(struct lwp *, void *, register_t *); 1060 1061 int linux_sys_lgetxattr(struct lwp *, void *, register_t *); 1062 1063 int linux_sys_fgetxattr(struct lwp *, void *, register_t *); 1064 1065 int linux_sys_listxattr(struct lwp *, void *, register_t *); 1066 1067 int linux_sys_llistxattr(struct lwp *, void *, register_t *); 1068 1069 int linux_sys_flistxattr(struct lwp *, void *, register_t *); 1070 1071 int linux_sys_removexattr(struct lwp *, void *, register_t *); 1072 1073 int linux_sys_lremovexattr(struct lwp *, void *, register_t *); 1074 1075 int linux_sys_fremovexattr(struct lwp *, void *, register_t *); 1076 1077 int linux_sys_exit_group(struct lwp *, void *, register_t *); 1078 1079 int linux_sys_clock_settime(struct lwp *, void *, register_t *); 1080 1081 int linux_sys_clock_gettime(struct lwp *, void *, register_t *); 1082 1083 int linux_sys_clock_getres(struct lwp *, void *, register_t *); 1084 1085 int linux_sys_clock_nanosleep(struct lwp *, void *, register_t *); 1086 1087 int linux_sys_statfs64(struct lwp *, void *, register_t *); 1088 1089 int linux_sys_fstatfs64(struct lwp *, void *, register_t *); 1090 1091 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ 1092