1 /* $NetBSD: linux32_syscallargs.h,v 1.10 2006/09/13 19:55:49 manu 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.6 2006/09/06 12:01:23 manu Exp 8 */ 9 10 #ifndef _LINUX32_SYS_SYSCALLARGS_H_ 11 #define _LINUX32_SYS_SYSCALLARGS_H_ 12 13 #ifdef syscallarg 14 #undef syscallarg 15 #endif 16 17 #define syscallarg(x) \ 18 union { \ 19 register32_t pad; \ 20 struct { x datum; } le; \ 21 struct { /* LINTED zero array dimension */ \ 22 int8_t pad[ /* CONSTCOND */ \ 23 (sizeof (register32_t) < sizeof (x)) \ 24 ? 0 \ 25 : sizeof (register32_t) - sizeof (x)]; \ 26 x datum; \ 27 } be; \ 28 } 29 30 struct linux32_sys_open_args { 31 syscallarg(const netbsd32_charp) path; 32 syscallarg(int) flags; 33 syscallarg(int) mode; 34 }; 35 36 struct linux32_sys_waitpid_args { 37 syscallarg(int) pid; 38 syscallarg(netbsd32_intp) status; 39 syscallarg(int) options; 40 }; 41 42 struct linux32_sys_creat_args { 43 syscallarg(const netbsd32_charp) path; 44 syscallarg(int) mode; 45 }; 46 47 struct linux32_sys_link_args { 48 syscallarg(const netbsd32_charp) path; 49 syscallarg(const netbsd32_charp) link; 50 }; 51 52 struct linux32_sys_unlink_args { 53 syscallarg(const netbsd32_charp) path; 54 }; 55 56 struct linux32_sys_chdir_args { 57 syscallarg(const netbsd32_charp) path; 58 }; 59 60 struct linux32_sys_time_args { 61 syscallarg(linux32_timep_t) t; 62 }; 63 64 struct linux32_sys_mknod_args { 65 syscallarg(const netbsd32_charp) path; 66 syscallarg(int) mode; 67 syscallarg(int) dev; 68 }; 69 70 struct linux32_sys_chmod_args { 71 syscallarg(const netbsd32_charp) path; 72 syscallarg(int) mode; 73 }; 74 75 struct linux32_sys_lchown16_args { 76 syscallarg(const netbsd32_charp) path; 77 syscallarg(int) uid; 78 syscallarg(int) gid; 79 }; 80 81 struct linux32_sys_break_args { 82 syscallarg(netbsd32_charp) nsize; 83 }; 84 85 struct linux32_sys_stime_args { 86 syscallarg(linux32_timep_t) t; 87 }; 88 89 struct linux32_sys_utime_args { 90 syscallarg(const netbsd32_charp) path; 91 syscallarg(linux32_utimbufp_t) times; 92 }; 93 94 struct linux32_sys_access_args { 95 syscallarg(const netbsd32_charp) path; 96 syscallarg(int) flags; 97 }; 98 99 struct linux32_sys_kill_args { 100 syscallarg(int) pid; 101 syscallarg(int) signum; 102 }; 103 104 struct linux32_sys_rename_args { 105 syscallarg(const netbsd32_charp) from; 106 syscallarg(const netbsd32_charp) to; 107 }; 108 109 struct linux32_sys_mkdir_args { 110 syscallarg(const netbsd32_charp) path; 111 syscallarg(int) mode; 112 }; 113 114 struct linux32_sys_rmdir_args { 115 syscallarg(const netbsd32_charp) path; 116 }; 117 118 struct linux32_sys_pipe_args { 119 syscallarg(netbsd32_intp) fd; 120 }; 121 122 struct linux32_sys_times_args { 123 syscallarg(linux32_tmsp_t) tms; 124 }; 125 126 struct linux32_sys_brk_args { 127 syscallarg(netbsd32_charp) nsize; 128 }; 129 130 struct linux32_sys_signal_args { 131 syscallarg(int) signum; 132 syscallarg(linux32_handler_t) handler; 133 }; 134 135 struct linux32_sys_ioctl_args { 136 syscallarg(int) fd; 137 syscallarg(netbsd32_u_long) com; 138 syscallarg(netbsd32_charp) data; 139 }; 140 141 struct linux32_sys_fcntl_args { 142 syscallarg(int) fd; 143 syscallarg(int) cmd; 144 syscallarg(netbsd32_voidp) arg; 145 }; 146 147 struct linux32_sys_oldolduname_args { 148 syscallarg(linux32_oldold_utsnamep_t) up; 149 }; 150 151 struct linux_sys_setreuid16_args { 152 syscallarg(int) ruid; 153 syscallarg(int) euid; 154 }; 155 156 struct linux_sys_setregid16_args { 157 syscallarg(int) rgid; 158 syscallarg(int) egid; 159 }; 160 161 struct linux32_sys_setrlimit_args { 162 syscallarg(u_int) which; 163 syscallarg(netbsd32_orlimitp_t) rlp; 164 }; 165 166 struct linux32_sys_getrlimit_args { 167 syscallarg(u_int) which; 168 syscallarg(netbsd32_orlimitp_t) rlp; 169 }; 170 171 struct linux32_sys_gettimeofday_args { 172 syscallarg(netbsd32_timevalp_t) tp; 173 syscallarg(netbsd32_timezonep_t) tzp; 174 }; 175 176 struct linux32_sys_settimeofday_args { 177 syscallarg(netbsd32_timevalp_t) tp; 178 syscallarg(netbsd32_timezonep_t) tzp; 179 }; 180 181 struct linux32_sys_getgroups16_args { 182 syscallarg(int) gidsetsize; 183 syscallarg(linux32_gidp_t) gidset; 184 }; 185 186 struct linux32_sys_setgroups16_args { 187 syscallarg(int) gidsetsize; 188 syscallarg(linux32_gidp_t) gidset; 189 }; 190 191 struct linux32_sys_oldselect_args { 192 syscallarg(linux32_oldselectp_t) lsp; 193 }; 194 195 struct linux32_sys_symlink_args { 196 syscallarg(netbsd32_charp) path; 197 syscallarg(const netbsd32_charp) link; 198 }; 199 200 struct linux32_sys_readlink_args { 201 syscallarg(const netbsd32_charp) name; 202 syscallarg(netbsd32_charp) buf; 203 syscallarg(int) count; 204 }; 205 206 struct linux32_sys_swapon_args { 207 syscallarg(netbsd32_charp) name; 208 }; 209 210 struct linux32_sys_reboot_args { 211 syscallarg(int) magic1; 212 syscallarg(int) magic2; 213 syscallarg(int) cmd; 214 syscallarg(netbsd32_voidp) arg; 215 }; 216 217 struct linux32_sys_old_mmap_args { 218 syscallarg(linux32_oldmmapp) lmp; 219 }; 220 221 struct linux32_sys_truncate_args { 222 syscallarg(const netbsd32_charp) path; 223 syscallarg(netbsd32_long) length; 224 }; 225 226 struct linux32_sys_fchown16_args { 227 syscallarg(int) fd; 228 syscallarg(int) uid; 229 syscallarg(int) gid; 230 }; 231 232 struct linux32_sys_getpriority_args { 233 syscallarg(int) which; 234 syscallarg(int) who; 235 }; 236 237 struct linux32_sys_setpriority_args { 238 syscallarg(int) which; 239 syscallarg(int) who; 240 syscallarg(int) prio; 241 }; 242 243 struct linux32_sys_socketcall_args { 244 syscallarg(int) what; 245 syscallarg(netbsd32_voidp) args; 246 }; 247 248 struct linux32_sys_wait4_args { 249 syscallarg(int) pid; 250 syscallarg(netbsd32_intp) status; 251 syscallarg(int) options; 252 syscallarg(netbsd32_rusagep_t) rusage; 253 }; 254 255 struct linux32_sys_swapoff_args { 256 syscallarg(const netbsd32_charp) path; 257 }; 258 259 struct linux32_sys_sysinfo_args { 260 syscallarg(linux32_sysinfop_t) arg; 261 }; 262 263 struct linux32_sys_sigreturn_args { 264 syscallarg(linux32_sigcontextp_t) scp; 265 }; 266 267 struct linux32_sys_clone_args { 268 syscallarg(int) flags; 269 syscallarg(netbsd32_voidp) stack; 270 }; 271 272 struct linux32_sys_uname_args { 273 syscallarg(linux32_utsnamep) up; 274 }; 275 276 struct linux32_sys_mprotect_args { 277 syscallarg(netbsd32_voidp) addr; 278 syscallarg(netbsd32_size_t) len; 279 syscallarg(int) prot; 280 }; 281 282 struct linux32_sys_llseek_args { 283 syscallarg(int) fd; 284 syscallarg(u_int32_t) ohigh; 285 syscallarg(u_int32_t) olow; 286 syscallarg(netbsd32_caddr_t) res; 287 syscallarg(int) whence; 288 }; 289 290 struct linux32_sys_getdents_args { 291 syscallarg(int) fd; 292 syscallarg(linux32_direntp_t) dent; 293 syscallarg(unsigned int) count; 294 }; 295 296 struct linux32_sys_select_args { 297 syscallarg(int) nfds; 298 syscallarg(netbsd32_fd_setp_t) readfds; 299 syscallarg(netbsd32_fd_setp_t) writefds; 300 syscallarg(netbsd32_fd_setp_t) exceptfds; 301 syscallarg(netbsd32_timevalp_t) timeout; 302 }; 303 304 struct linux32_sys___sysctl_args { 305 syscallarg(linux32___sysctlp_t) lsp; 306 }; 307 308 struct linux32_sys_sched_getparam_args { 309 syscallarg(pid_t) pid; 310 syscallarg(linux32_sched_paramp_t) sp; 311 }; 312 313 struct linux32_sys_sched_setscheduler_args { 314 syscallarg(pid_t) pid; 315 syscallarg(int) policy; 316 syscallarg(const linux32_sched_paramp_t) sp; 317 }; 318 319 struct linux32_sys_mremap_args { 320 syscallarg(netbsd32_voidp) old_address; 321 syscallarg(netbsd32_size_t) old_size; 322 syscallarg(netbsd32_size_t) new_size; 323 syscallarg(netbsd32_u_long) flags; 324 }; 325 326 struct linux32_sys_rt_sigreturn_args { 327 syscallarg(linux32_ucontextp_t) ucp; 328 }; 329 330 struct linux32_sys_rt_sigaction_args { 331 syscallarg(int) signum; 332 syscallarg(const linux32_sigactionp_t) nsa; 333 syscallarg(linux32_sigactionp_t) osa; 334 syscallarg(netbsd32_size_t) sigsetsize; 335 }; 336 337 struct linux32_sys_rt_sigprocmask_args { 338 syscallarg(int) how; 339 syscallarg(const linux32_sigsetp_t) set; 340 syscallarg(linux32_sigsetp_t) oset; 341 syscallarg(netbsd32_size_t) sigsetsize; 342 }; 343 344 struct linux32_sys_rt_sigsuspend_args { 345 syscallarg(linux32_sigsetp_t) unewset; 346 syscallarg(netbsd32_size_t) sigsetsize; 347 }; 348 349 struct linux32_sys_ugetrlimit_args { 350 syscallarg(int) which; 351 syscallarg(netbsd32_orlimitp_t) rlp; 352 }; 353 354 struct linux32_sys_mmap2_args { 355 syscallarg(netbsd32_u_long) addr; 356 syscallarg(netbsd32_size_t) len; 357 syscallarg(int) prot; 358 syscallarg(int) flags; 359 syscallarg(int) fd; 360 syscallarg(linux32_off_t) offset; 361 }; 362 363 struct linux32_sys_stat64_args { 364 syscallarg(const netbsd32_charp) path; 365 syscallarg(linux32_stat64p) sp; 366 }; 367 368 struct linux32_sys_lstat64_args { 369 syscallarg(const netbsd32_charp) path; 370 syscallarg(linux32_stat64p) sp; 371 }; 372 373 struct linux32_sys_fstat64_args { 374 syscallarg(int) fd; 375 syscallarg(linux32_stat64p) sp; 376 }; 377 378 struct linux32_sys_setresuid_args { 379 syscallarg(uid_t) ruid; 380 syscallarg(uid_t) euid; 381 syscallarg(uid_t) suid; 382 }; 383 384 struct linux32_sys_setresgid_args { 385 syscallarg(gid_t) rgid; 386 syscallarg(gid_t) egid; 387 syscallarg(gid_t) sgid; 388 }; 389 390 struct linux32_sys_getdents64_args { 391 syscallarg(int) fd; 392 syscallarg(linux32_dirent64p_t) dent; 393 syscallarg(unsigned int) count; 394 }; 395 396 struct linux32_sys_fcntl64_args { 397 syscallarg(int) fd; 398 syscallarg(int) cmd; 399 syscallarg(netbsd32_voidp) arg; 400 }; 401 402 /* 403 * System call prototypes. 404 */ 405 406 int linux_sys_nosys(struct lwp *, void *, register_t *); 407 408 int sys_exit(struct lwp *, void *, register_t *); 409 410 int sys_fork(struct lwp *, void *, register_t *); 411 412 int netbsd32_read(struct lwp *, void *, register_t *); 413 414 int netbsd32_write(struct lwp *, void *, register_t *); 415 416 int linux32_sys_open(struct lwp *, void *, register_t *); 417 418 int sys_close(struct lwp *, void *, register_t *); 419 420 int linux32_sys_waitpid(struct lwp *, void *, register_t *); 421 422 int linux32_sys_creat(struct lwp *, void *, register_t *); 423 424 int linux32_sys_link(struct lwp *, void *, register_t *); 425 426 int linux32_sys_unlink(struct lwp *, void *, register_t *); 427 428 int netbsd32_execve(struct lwp *, void *, register_t *); 429 430 int linux32_sys_chdir(struct lwp *, void *, register_t *); 431 432 int linux32_sys_time(struct lwp *, void *, register_t *); 433 434 int linux32_sys_mknod(struct lwp *, void *, register_t *); 435 436 int linux32_sys_chmod(struct lwp *, void *, register_t *); 437 438 int linux32_sys_lchown16(struct lwp *, void *, register_t *); 439 440 int linux32_sys_break(struct lwp *, void *, register_t *); 441 442 int compat_43_netbsd32_olseek(struct lwp *, void *, register_t *); 443 444 int linux_sys_getpid(struct lwp *, void *, register_t *); 445 446 int sys_setuid(struct lwp *, void *, register_t *); 447 448 int sys_getuid(struct lwp *, void *, register_t *); 449 450 int linux32_sys_stime(struct lwp *, void *, register_t *); 451 452 int linux_sys_alarm(struct lwp *, void *, register_t *); 453 454 int linux_sys_pause(struct lwp *, void *, register_t *); 455 456 int linux32_sys_utime(struct lwp *, void *, register_t *); 457 458 int linux32_sys_access(struct lwp *, void *, register_t *); 459 460 int linux_sys_nice(struct lwp *, void *, register_t *); 461 462 int sys_sync(struct lwp *, void *, register_t *); 463 464 int linux32_sys_kill(struct lwp *, void *, register_t *); 465 466 int linux32_sys_rename(struct lwp *, void *, register_t *); 467 468 int linux32_sys_mkdir(struct lwp *, void *, register_t *); 469 470 int linux32_sys_rmdir(struct lwp *, void *, register_t *); 471 472 int netbsd32_dup(struct lwp *, void *, register_t *); 473 474 int linux32_sys_pipe(struct lwp *, void *, register_t *); 475 476 int linux32_sys_times(struct lwp *, void *, register_t *); 477 478 int linux32_sys_brk(struct lwp *, void *, register_t *); 479 480 int sys_setgid(struct lwp *, void *, register_t *); 481 482 int sys_getgid(struct lwp *, void *, register_t *); 483 484 int linux32_sys_signal(struct lwp *, void *, register_t *); 485 486 int sys_geteuid(struct lwp *, void *, register_t *); 487 488 int sys_getegid(struct lwp *, void *, register_t *); 489 490 int netbsd32_acct(struct lwp *, void *, register_t *); 491 492 int linux32_sys_ioctl(struct lwp *, void *, register_t *); 493 494 int linux32_sys_fcntl(struct lwp *, void *, register_t *); 495 496 int sys_setpgid(struct lwp *, void *, register_t *); 497 498 int linux32_sys_oldolduname(struct lwp *, void *, register_t *); 499 500 int sys_umask(struct lwp *, void *, register_t *); 501 502 int netbsd32_chroot(struct lwp *, void *, register_t *); 503 504 int netbsd32_dup2(struct lwp *, void *, register_t *); 505 506 int linux_sys_getppid(struct lwp *, void *, register_t *); 507 508 int sys_getpgrp(struct lwp *, void *, register_t *); 509 510 int sys_setsid(struct lwp *, void *, register_t *); 511 512 int linux_sys_setreuid16(struct lwp *, void *, register_t *); 513 514 int linux_sys_setregid16(struct lwp *, void *, register_t *); 515 516 int compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *); 517 518 int linux32_sys_setrlimit(struct lwp *, void *, register_t *); 519 520 int linux32_sys_getrlimit(struct lwp *, void *, register_t *); 521 522 int netbsd32_getrusage(struct lwp *, void *, register_t *); 523 524 int linux32_sys_gettimeofday(struct lwp *, void *, register_t *); 525 526 int linux32_sys_settimeofday(struct lwp *, void *, register_t *); 527 528 int linux32_sys_getgroups16(struct lwp *, void *, register_t *); 529 530 int linux32_sys_setgroups16(struct lwp *, void *, register_t *); 531 532 int linux32_sys_oldselect(struct lwp *, void *, register_t *); 533 534 int linux32_sys_symlink(struct lwp *, void *, register_t *); 535 536 int compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *); 537 538 int linux32_sys_readlink(struct lwp *, void *, register_t *); 539 540 int linux32_sys_swapon(struct lwp *, void *, register_t *); 541 542 int linux32_sys_reboot(struct lwp *, void *, register_t *); 543 544 int linux32_sys_old_mmap(struct lwp *, void *, register_t *); 545 546 int netbsd32_munmap(struct lwp *, void *, register_t *); 547 548 int linux32_sys_truncate(struct lwp *, void *, register_t *); 549 550 int compat_43_sys_ftruncate(struct lwp *, void *, register_t *); 551 552 int sys_fchmod(struct lwp *, void *, register_t *); 553 554 int linux32_sys_fchown16(struct lwp *, void *, register_t *); 555 556 int linux32_sys_getpriority(struct lwp *, void *, register_t *); 557 558 int linux32_sys_setpriority(struct lwp *, void *, register_t *); 559 560 int linux32_sys_socketcall(struct lwp *, void *, register_t *); 561 562 int netbsd32_setitimer(struct lwp *, void *, register_t *); 563 564 int netbsd32_getitimer(struct lwp *, void *, register_t *); 565 566 int linux32_sys_wait4(struct lwp *, void *, register_t *); 567 568 int linux32_sys_swapoff(struct lwp *, void *, register_t *); 569 570 int linux32_sys_sysinfo(struct lwp *, void *, register_t *); 571 572 int sys_fsync(struct lwp *, void *, register_t *); 573 574 int linux32_sys_sigreturn(struct lwp *, void *, register_t *); 575 576 int linux32_sys_clone(struct lwp *, void *, register_t *); 577 578 int linux32_sys_uname(struct lwp *, void *, register_t *); 579 580 int linux32_sys_mprotect(struct lwp *, void *, register_t *); 581 582 int sys_fchdir(struct lwp *, void *, register_t *); 583 584 int linux32_sys_llseek(struct lwp *, void *, register_t *); 585 586 int linux32_sys_getdents(struct lwp *, void *, register_t *); 587 588 int linux32_sys_select(struct lwp *, void *, register_t *); 589 590 int sys_flock(struct lwp *, void *, register_t *); 591 592 int netbsd32_readv(struct lwp *, void *, register_t *); 593 594 int netbsd32_writev(struct lwp *, void *, register_t *); 595 596 int sys_getsid(struct lwp *, void *, register_t *); 597 598 int linux_sys_fdatasync(struct lwp *, void *, register_t *); 599 600 int linux32_sys___sysctl(struct lwp *, void *, register_t *); 601 602 int sys_mlockall(struct lwp *, void *, register_t *); 603 604 int sys_munlockall(struct lwp *, void *, register_t *); 605 606 int linux32_sys_sched_getparam(struct lwp *, void *, register_t *); 607 608 int linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *); 609 610 int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *); 611 612 int netbsd32_nanosleep(struct lwp *, void *, register_t *); 613 614 int linux32_sys_mremap(struct lwp *, void *, register_t *); 615 616 int linux_sys_setresuid16(struct lwp *, void *, register_t *); 617 618 int netbsd32_poll(struct lwp *, void *, register_t *); 619 620 int linux_sys_setresgid16(struct lwp *, void *, register_t *); 621 622 int linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *); 623 624 int linux32_sys_rt_sigaction(struct lwp *, void *, register_t *); 625 626 int linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *); 627 628 int linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *); 629 630 int netbsd32___getcwd(struct lwp *, void *, register_t *); 631 632 int sys___vfork14(struct lwp *, void *, register_t *); 633 634 int linux32_sys_ugetrlimit(struct lwp *, void *, register_t *); 635 636 int linux32_sys_mmap2(struct lwp *, void *, register_t *); 637 638 int linux32_sys_stat64(struct lwp *, void *, register_t *); 639 640 int linux32_sys_lstat64(struct lwp *, void *, register_t *); 641 642 int linux32_sys_fstat64(struct lwp *, void *, register_t *); 643 644 int sys_setreuid(struct lwp *, void *, register_t *); 645 646 int sys_setregid(struct lwp *, void *, register_t *); 647 648 int netbsd32_getgroups(struct lwp *, void *, register_t *); 649 650 int netbsd32_setgroups(struct lwp *, void *, register_t *); 651 652 int sys___posix_fchown(struct lwp *, void *, register_t *); 653 654 int linux32_sys_setresuid(struct lwp *, void *, register_t *); 655 656 int linux32_sys_setresgid(struct lwp *, void *, register_t *); 657 658 int netbsd32_madvise(struct lwp *, void *, register_t *); 659 660 int linux32_sys_getdents64(struct lwp *, void *, register_t *); 661 662 int linux32_sys_fcntl64(struct lwp *, void *, register_t *); 663 664 int linux_sys_gettid(struct lwp *, void *, register_t *); 665 666 int linux_sys_exit_group(struct lwp *, void *, register_t *); 667 668 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */ 669