Home | History | Annotate | Line # | Download | only in amd64
linux32_syscallargs.h revision 1.1
      1 /* $NetBSD: linux32_syscallargs.h,v 1.1 2006/02/09 19:18:57 manu Exp $ */
      2 
      3 /*
      4  * System call argument lists.
      5  *
      6  * DO NOT EDIT-- this file is automatically generated.
      7  * created from	NetBSD
      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_socketcall_args {
    233 	syscallarg(int) what;
    234 	syscallarg(netbsd32_voidp) args;
    235 };
    236 
    237 struct linux32_sys_wait4_args {
    238 	syscallarg(int) pid;
    239 	syscallarg(netbsd32_intp) status;
    240 	syscallarg(int) options;
    241 	syscallarg(netbsd32_rusagep_t) rusage;
    242 };
    243 
    244 struct linux32_sys_swapoff_args {
    245 	syscallarg(const netbsd32_charp) path;
    246 };
    247 
    248 struct linux32_sys_sigreturn_args {
    249 	syscallarg(linux32_sigcontextp_t) scp;
    250 };
    251 
    252 struct linux32_sys_clone_args {
    253 	syscallarg(int) flags;
    254 	syscallarg(netbsd32_voidp) stack;
    255 };
    256 
    257 struct linux32_sys_uname_args {
    258 	syscallarg(linux32_utsnamep) up;
    259 };
    260 
    261 struct linux32_sys_mprotect_args {
    262 	syscallarg(netbsd32_voidp) addr;
    263 	syscallarg(netbsd32_size_t) len;
    264 	syscallarg(int) prot;
    265 };
    266 
    267 struct linux32_sys_llseek_args {
    268 	syscallarg(int) fd;
    269 	syscallarg(u_int32_t) ohigh;
    270 	syscallarg(u_int32_t) olow;
    271 	syscallarg(netbsd32_caddr_t) res;
    272 	syscallarg(int) whence;
    273 };
    274 
    275 struct linux32_sys_getdents_args {
    276 	syscallarg(int) fd;
    277 	syscallarg(linux32_direntp_t) dent;
    278 	syscallarg(unsigned int) count;
    279 };
    280 
    281 struct linux32_sys_select_args {
    282 	syscallarg(int) nfds;
    283 	syscallarg(netbsd32_fd_setp_t) readfds;
    284 	syscallarg(netbsd32_fd_setp_t) writefds;
    285 	syscallarg(netbsd32_fd_setp_t) exceptfds;
    286 	syscallarg(netbsd32_timevalp_t) timeout;
    287 };
    288 
    289 struct linux32_sys___sysctl_args {
    290 	syscallarg(linux32___sysctlp_t) lsp;
    291 };
    292 
    293 struct linux32_sys_sched_setscheduler_args {
    294 	syscallarg(pid_t) pid;
    295 	syscallarg(int) policy;
    296 	syscallarg(const linux32_sched_paramp_t) sp;
    297 };
    298 
    299 struct linux32_sys_rt_sigreturn_args {
    300 	syscallarg(linux32_ucontextp_t) ucp;
    301 };
    302 
    303 struct linux32_sys_rt_sigaction_args {
    304 	syscallarg(int) signum;
    305 	syscallarg(const linux32_sigactionp_t) nsa;
    306 	syscallarg(linux32_sigactionp_t) osa;
    307 	syscallarg(netbsd32_size_t) sigsetsize;
    308 };
    309 
    310 struct linux32_sys_rt_sigprocmask_args {
    311 	syscallarg(int) how;
    312 	syscallarg(const linux32_sigsetp_t) set;
    313 	syscallarg(linux32_sigsetp_t) oset;
    314 	syscallarg(netbsd32_size_t) sigsetsize;
    315 };
    316 
    317 struct linux32_sys_rt_sigsuspend_args {
    318 	syscallarg(linux32_sigsetp_t) unewset;
    319 	syscallarg(netbsd32_size_t) sigsetsize;
    320 };
    321 
    322 struct linux32_sys_ugetrlimit_args {
    323 	syscallarg(int) which;
    324 	syscallarg(netbsd32_orlimitp_t) rlp;
    325 };
    326 
    327 struct linux32_sys_stat64_args {
    328 	syscallarg(const netbsd32_charp) path;
    329 	syscallarg(linux32_stat64p) sp;
    330 };
    331 
    332 struct linux32_sys_lstat64_args {
    333 	syscallarg(const netbsd32_charp) path;
    334 	syscallarg(linux32_stat64p) sp;
    335 };
    336 
    337 struct linux32_sys_fstat64_args {
    338 	syscallarg(int) fd;
    339 	syscallarg(linux32_stat64p) sp;
    340 };
    341 
    342 struct linux32_sys_getdents64_args {
    343 	syscallarg(int) fd;
    344 	syscallarg(linux32_dirent64p_t) dent;
    345 	syscallarg(unsigned int) count;
    346 };
    347 
    348 struct linux32_sys_fcntl64_args {
    349 	syscallarg(int) fd;
    350 	syscallarg(int) cmd;
    351 	syscallarg(netbsd32_voidp) arg;
    352 };
    353 
    354 /*
    355  * System call prototypes.
    356  */
    357 
    358 int	linux_sys_nosys(struct lwp *, void *, register_t *);
    359 
    360 int	sys_exit(struct lwp *, void *, register_t *);
    361 
    362 int	sys_fork(struct lwp *, void *, register_t *);
    363 
    364 int	netbsd32_read(struct lwp *, void *, register_t *);
    365 
    366 int	netbsd32_write(struct lwp *, void *, register_t *);
    367 
    368 int	linux32_sys_open(struct lwp *, void *, register_t *);
    369 
    370 int	sys_close(struct lwp *, void *, register_t *);
    371 
    372 int	linux32_sys_waitpid(struct lwp *, void *, register_t *);
    373 
    374 int	linux32_sys_creat(struct lwp *, void *, register_t *);
    375 
    376 int	linux32_sys_link(struct lwp *, void *, register_t *);
    377 
    378 int	linux32_sys_unlink(struct lwp *, void *, register_t *);
    379 
    380 int	netbsd32_execve(struct lwp *, void *, register_t *);
    381 
    382 int	linux32_sys_chdir(struct lwp *, void *, register_t *);
    383 
    384 int	linux32_sys_time(struct lwp *, void *, register_t *);
    385 
    386 int	linux32_sys_mknod(struct lwp *, void *, register_t *);
    387 
    388 int	linux32_sys_chmod(struct lwp *, void *, register_t *);
    389 
    390 int	linux32_sys_lchown16(struct lwp *, void *, register_t *);
    391 
    392 int	linux32_sys_break(struct lwp *, void *, register_t *);
    393 
    394 int	compat_43_netbsd32_olseek(struct lwp *, void *, register_t *);
    395 
    396 int	sys_getpid(struct lwp *, void *, register_t *);
    397 
    398 int	sys_setuid(struct lwp *, void *, register_t *);
    399 
    400 int	sys_getuid(struct lwp *, void *, register_t *);
    401 
    402 int	linux32_sys_stime(struct lwp *, void *, register_t *);
    403 
    404 int	linux_sys_alarm(struct lwp *, void *, register_t *);
    405 
    406 int	linux_sys_pause(struct lwp *, void *, register_t *);
    407 
    408 int	linux32_sys_utime(struct lwp *, void *, register_t *);
    409 
    410 int	linux32_sys_access(struct lwp *, void *, register_t *);
    411 
    412 int	linux_sys_nice(struct lwp *, void *, register_t *);
    413 
    414 int	sys_sync(struct lwp *, void *, register_t *);
    415 
    416 int	linux32_sys_kill(struct lwp *, void *, register_t *);
    417 
    418 int	linux32_sys_rename(struct lwp *, void *, register_t *);
    419 
    420 int	linux32_sys_mkdir(struct lwp *, void *, register_t *);
    421 
    422 int	linux32_sys_rmdir(struct lwp *, void *, register_t *);
    423 
    424 int	sys_dup(struct lwp *, void *, register_t *);
    425 
    426 int	linux32_sys_pipe(struct lwp *, void *, register_t *);
    427 
    428 int	linux32_sys_times(struct lwp *, void *, register_t *);
    429 
    430 int	linux32_sys_brk(struct lwp *, void *, register_t *);
    431 
    432 int	sys_setgid(struct lwp *, void *, register_t *);
    433 
    434 int	sys_getgid(struct lwp *, void *, register_t *);
    435 
    436 int	linux32_sys_signal(struct lwp *, void *, register_t *);
    437 
    438 int	sys_geteuid(struct lwp *, void *, register_t *);
    439 
    440 int	sys_getegid(struct lwp *, void *, register_t *);
    441 
    442 int	netbsd32_acct(struct lwp *, void *, register_t *);
    443 
    444 int	linux32_sys_ioctl(struct lwp *, void *, register_t *);
    445 
    446 int	linux32_sys_fcntl(struct lwp *, void *, register_t *);
    447 
    448 int	sys_setpgid(struct lwp *, void *, register_t *);
    449 
    450 int	linux32_sys_oldolduname(struct lwp *, void *, register_t *);
    451 
    452 int	sys_umask(struct lwp *, void *, register_t *);
    453 
    454 int	netbsd32_chroot(struct lwp *, void *, register_t *);
    455 
    456 int	sys_dup2(struct lwp *, void *, register_t *);
    457 
    458 int	sys_getppid(struct lwp *, void *, register_t *);
    459 
    460 int	sys_getpgrp(struct lwp *, void *, register_t *);
    461 
    462 int	sys_setsid(struct lwp *, void *, register_t *);
    463 
    464 int	linux_sys_setreuid16(struct lwp *, void *, register_t *);
    465 
    466 int	linux_sys_setregid16(struct lwp *, void *, register_t *);
    467 
    468 int	compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *);
    469 
    470 int	linux32_sys_setrlimit(struct lwp *, void *, register_t *);
    471 
    472 int	linux32_sys_getrlimit(struct lwp *, void *, register_t *);
    473 
    474 int	netbsd32_getrusage(struct lwp *, void *, register_t *);
    475 
    476 int	linux32_sys_gettimeofday(struct lwp *, void *, register_t *);
    477 
    478 int	linux32_sys_settimeofday(struct lwp *, void *, register_t *);
    479 
    480 int	linux32_sys_getgroups16(struct lwp *, void *, register_t *);
    481 
    482 int	linux32_sys_setgroups16(struct lwp *, void *, register_t *);
    483 
    484 int	linux32_sys_oldselect(struct lwp *, void *, register_t *);
    485 
    486 int	linux32_sys_symlink(struct lwp *, void *, register_t *);
    487 
    488 int	compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *);
    489 
    490 int	linux32_sys_readlink(struct lwp *, void *, register_t *);
    491 
    492 int	linux32_sys_swapon(struct lwp *, void *, register_t *);
    493 
    494 int	linux32_sys_reboot(struct lwp *, void *, register_t *);
    495 
    496 int	linux32_sys_old_mmap(struct lwp *, void *, register_t *);
    497 
    498 int	netbsd32_munmap(struct lwp *, void *, register_t *);
    499 
    500 int	linux32_sys_truncate(struct lwp *, void *, register_t *);
    501 
    502 int	compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
    503 
    504 int	sys_fchmod(struct lwp *, void *, register_t *);
    505 
    506 int	linux32_sys_fchown16(struct lwp *, void *, register_t *);
    507 
    508 int	sys_getpriority(struct lwp *, void *, register_t *);
    509 
    510 int	sys_setpriority(struct lwp *, void *, register_t *);
    511 
    512 int	linux32_sys_socketcall(struct lwp *, void *, register_t *);
    513 
    514 int	netbsd32_setitimer(struct lwp *, void *, register_t *);
    515 
    516 int	netbsd32_getitimer(struct lwp *, void *, register_t *);
    517 
    518 int	linux32_sys_wait4(struct lwp *, void *, register_t *);
    519 
    520 int	linux32_sys_swapoff(struct lwp *, void *, register_t *);
    521 
    522 int	sys_fsync(struct lwp *, void *, register_t *);
    523 
    524 int	linux32_sys_sigreturn(struct lwp *, void *, register_t *);
    525 
    526 int	linux32_sys_clone(struct lwp *, void *, register_t *);
    527 
    528 int	linux32_sys_uname(struct lwp *, void *, register_t *);
    529 
    530 int	linux32_sys_mprotect(struct lwp *, void *, register_t *);
    531 
    532 int	sys_fchdir(struct lwp *, void *, register_t *);
    533 
    534 int	linux32_sys_llseek(struct lwp *, void *, register_t *);
    535 
    536 int	linux32_sys_getdents(struct lwp *, void *, register_t *);
    537 
    538 int	linux32_sys_select(struct lwp *, void *, register_t *);
    539 
    540 int	sys_flock(struct lwp *, void *, register_t *);
    541 
    542 int	netbsd32_readv(struct lwp *, void *, register_t *);
    543 
    544 int	netbsd32_writev(struct lwp *, void *, register_t *);
    545 
    546 int	sys_getsid(struct lwp *, void *, register_t *);
    547 
    548 int	linux32_sys___sysctl(struct lwp *, void *, register_t *);
    549 
    550 int	sys_mlockall(struct lwp *, void *, register_t *);
    551 
    552 int	sys_munlockall(struct lwp *, void *, register_t *);
    553 
    554 int	linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *);
    555 
    556 int	netbsd32_nanosleep(struct lwp *, void *, register_t *);
    557 
    558 int	linux_sys_setresuid16(struct lwp *, void *, register_t *);
    559 
    560 int	netbsd32_poll(struct lwp *, void *, register_t *);
    561 
    562 int	linux_sys_setresgid16(struct lwp *, void *, register_t *);
    563 
    564 int	linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *);
    565 
    566 int	linux32_sys_rt_sigaction(struct lwp *, void *, register_t *);
    567 
    568 int	linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
    569 
    570 int	linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
    571 
    572 int	sys___vfork14(struct lwp *, void *, register_t *);
    573 
    574 int	linux32_sys_ugetrlimit(struct lwp *, void *, register_t *);
    575 
    576 int	linux32_sys_stat64(struct lwp *, void *, register_t *);
    577 
    578 int	linux32_sys_lstat64(struct lwp *, void *, register_t *);
    579 
    580 int	linux32_sys_fstat64(struct lwp *, void *, register_t *);
    581 
    582 int	sys_setreuid(struct lwp *, void *, register_t *);
    583 
    584 int	sys_setregid(struct lwp *, void *, register_t *);
    585 
    586 int	sys___posix_fchown(struct lwp *, void *, register_t *);
    587 
    588 int	linux_sys_setresuid(struct lwp *, void *, register_t *);
    589 
    590 int	linux_sys_setresgid(struct lwp *, void *, register_t *);
    591 
    592 int	linux32_sys_getdents64(struct lwp *, void *, register_t *);
    593 
    594 int	linux32_sys_fcntl64(struct lwp *, void *, register_t *);
    595 
    596 int	linux_sys_exit_group(struct lwp *, void *, register_t *);
    597 
    598 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
    599