Home | History | Annotate | Line # | Download | only in amd64
linux32_syscallargs.h revision 1.23
      1  1.15  christos /* $NetBSD: linux32_syscallargs.h,v 1.23 2007/11/16 12:58:12 njoly Exp $ */
      2   1.1      manu 
      3   1.1      manu /*
      4   1.1      manu  * System call argument lists.
      5   1.1      manu  *
      6   1.1      manu  * DO NOT EDIT-- this file is automatically generated.
      7  1.23     njoly  * created from	NetBSD: syscalls.master,v 1.20 2007/11/16 12:56:50 njoly Exp
      8   1.1      manu  */
      9   1.1      manu 
     10   1.1      manu #ifndef _LINUX32_SYS_SYSCALLARGS_H_
     11   1.1      manu #define	_LINUX32_SYS_SYSCALLARGS_H_
     12   1.1      manu 
     13  1.22  christos #define	LINUX32_SYS_MAXSYSARGS	8
     14  1.22  christos 
     15   1.1      manu #undef	syscallarg
     16   1.1      manu #define	syscallarg(x)							\
     17   1.1      manu 	union {								\
     18   1.1      manu 		register32_t pad;						\
     19   1.1      manu 		struct { x datum; } le;					\
     20   1.1      manu 		struct { /* LINTED zero array dimension */		\
     21   1.1      manu 			int8_t pad[  /* CONSTCOND */			\
     22   1.1      manu 				(sizeof (register32_t) < sizeof (x))	\
     23   1.1      manu 				? 0					\
     24   1.1      manu 				: sizeof (register32_t) - sizeof (x)];	\
     25   1.1      manu 			x datum;					\
     26   1.1      manu 		} be;							\
     27   1.1      manu 	}
     28   1.1      manu 
     29  1.22  christos #undef check_syscall_args
     30  1.22  christos #define check_syscall_args(call) \
     31  1.22  christos 	typedef char call##_check_args[sizeof (struct call##_args) \
     32  1.22  christos 		<= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1];
     33  1.22  christos 
     34   1.1      manu struct linux32_sys_open_args {
     35   1.1      manu 	syscallarg(const netbsd32_charp) path;
     36   1.1      manu 	syscallarg(int) flags;
     37   1.1      manu 	syscallarg(int) mode;
     38   1.1      manu };
     39  1.22  christos check_syscall_args(linux32_sys_open)
     40   1.1      manu 
     41   1.1      manu struct linux32_sys_waitpid_args {
     42   1.1      manu 	syscallarg(int) pid;
     43   1.1      manu 	syscallarg(netbsd32_intp) status;
     44   1.1      manu 	syscallarg(int) options;
     45   1.1      manu };
     46  1.22  christos check_syscall_args(linux32_sys_waitpid)
     47   1.1      manu 
     48   1.1      manu struct linux32_sys_creat_args {
     49   1.1      manu 	syscallarg(const netbsd32_charp) path;
     50   1.1      manu 	syscallarg(int) mode;
     51   1.1      manu };
     52  1.22  christos check_syscall_args(linux32_sys_creat)
     53   1.1      manu 
     54   1.1      manu struct linux32_sys_unlink_args {
     55   1.1      manu 	syscallarg(const netbsd32_charp) path;
     56   1.1      manu };
     57  1.22  christos check_syscall_args(linux32_sys_unlink)
     58   1.1      manu 
     59   1.1      manu struct linux32_sys_time_args {
     60   1.1      manu 	syscallarg(linux32_timep_t) t;
     61   1.1      manu };
     62  1.22  christos check_syscall_args(linux32_sys_time)
     63   1.1      manu 
     64   1.1      manu struct linux32_sys_mknod_args {
     65   1.1      manu 	syscallarg(const netbsd32_charp) path;
     66   1.1      manu 	syscallarg(int) mode;
     67   1.1      manu 	syscallarg(int) dev;
     68   1.1      manu };
     69  1.22  christos check_syscall_args(linux32_sys_mknod)
     70   1.1      manu 
     71   1.1      manu struct linux32_sys_lchown16_args {
     72   1.1      manu 	syscallarg(const netbsd32_charp) path;
     73   1.1      manu 	syscallarg(int) uid;
     74   1.1      manu 	syscallarg(int) gid;
     75   1.1      manu };
     76  1.22  christos check_syscall_args(linux32_sys_lchown16)
     77   1.1      manu 
     78   1.1      manu struct linux32_sys_break_args {
     79   1.1      manu 	syscallarg(netbsd32_charp) nsize;
     80   1.1      manu };
     81  1.22  christos check_syscall_args(linux32_sys_break)
     82   1.1      manu 
     83   1.1      manu struct linux32_sys_stime_args {
     84   1.1      manu 	syscallarg(linux32_timep_t) t;
     85   1.1      manu };
     86  1.22  christos check_syscall_args(linux32_sys_stime)
     87   1.1      manu 
     88  1.21     njoly struct linux32_sys_alarm_args {
     89  1.21     njoly 	syscallarg(unsigned int) secs;
     90  1.21     njoly };
     91  1.22  christos check_syscall_args(linux32_sys_alarm)
     92  1.21     njoly 
     93   1.1      manu struct linux32_sys_utime_args {
     94   1.1      manu 	syscallarg(const netbsd32_charp) path;
     95   1.1      manu 	syscallarg(linux32_utimbufp_t) times;
     96   1.1      manu };
     97  1.22  christos check_syscall_args(linux32_sys_utime)
     98   1.1      manu 
     99  1.21     njoly struct linux32_sys_nice_args {
    100  1.21     njoly 	syscallarg(int) incr;
    101  1.21     njoly };
    102  1.22  christos check_syscall_args(linux32_sys_nice)
    103  1.21     njoly 
    104   1.1      manu struct linux32_sys_kill_args {
    105   1.1      manu 	syscallarg(int) pid;
    106   1.1      manu 	syscallarg(int) signum;
    107   1.1      manu };
    108  1.22  christos check_syscall_args(linux32_sys_kill)
    109   1.1      manu 
    110   1.1      manu struct linux32_sys_rename_args {
    111   1.1      manu 	syscallarg(const netbsd32_charp) from;
    112   1.1      manu 	syscallarg(const netbsd32_charp) to;
    113   1.1      manu };
    114  1.22  christos check_syscall_args(linux32_sys_rename)
    115   1.1      manu 
    116   1.1      manu struct linux32_sys_pipe_args {
    117   1.1      manu 	syscallarg(netbsd32_intp) fd;
    118   1.1      manu };
    119  1.22  christos check_syscall_args(linux32_sys_pipe)
    120   1.1      manu 
    121   1.1      manu struct linux32_sys_times_args {
    122   1.1      manu 	syscallarg(linux32_tmsp_t) tms;
    123   1.1      manu };
    124  1.22  christos check_syscall_args(linux32_sys_times)
    125   1.1      manu 
    126   1.1      manu struct linux32_sys_brk_args {
    127   1.1      manu 	syscallarg(netbsd32_charp) nsize;
    128   1.1      manu };
    129  1.22  christos check_syscall_args(linux32_sys_brk)
    130   1.1      manu 
    131   1.1      manu struct linux32_sys_signal_args {
    132   1.1      manu 	syscallarg(int) signum;
    133   1.1      manu 	syscallarg(linux32_handler_t) handler;
    134   1.1      manu };
    135  1.22  christos check_syscall_args(linux32_sys_signal)
    136   1.1      manu 
    137   1.1      manu struct linux32_sys_ioctl_args {
    138   1.1      manu 	syscallarg(int) fd;
    139   1.1      manu 	syscallarg(netbsd32_u_long) com;
    140   1.1      manu 	syscallarg(netbsd32_charp) data;
    141   1.1      manu };
    142  1.22  christos check_syscall_args(linux32_sys_ioctl)
    143   1.1      manu 
    144   1.1      manu struct linux32_sys_fcntl_args {
    145   1.1      manu 	syscallarg(int) fd;
    146   1.1      manu 	syscallarg(int) cmd;
    147   1.1      manu 	syscallarg(netbsd32_voidp) arg;
    148   1.1      manu };
    149  1.22  christos check_syscall_args(linux32_sys_fcntl)
    150   1.1      manu 
    151   1.1      manu struct linux32_sys_oldolduname_args {
    152   1.1      manu 	syscallarg(linux32_oldold_utsnamep_t) up;
    153   1.1      manu };
    154  1.22  christos check_syscall_args(linux32_sys_oldolduname)
    155   1.1      manu 
    156  1.21     njoly struct linux32_sys_setreuid16_args {
    157   1.1      manu 	syscallarg(int) ruid;
    158   1.1      manu 	syscallarg(int) euid;
    159   1.1      manu };
    160  1.22  christos check_syscall_args(linux32_sys_setreuid16)
    161   1.1      manu 
    162  1.21     njoly struct linux32_sys_setregid16_args {
    163   1.1      manu 	syscallarg(int) rgid;
    164   1.1      manu 	syscallarg(int) egid;
    165   1.1      manu };
    166  1.22  christos check_syscall_args(linux32_sys_setregid16)
    167   1.1      manu 
    168   1.1      manu struct linux32_sys_setrlimit_args {
    169   1.1      manu 	syscallarg(u_int) which;
    170   1.1      manu 	syscallarg(netbsd32_orlimitp_t) rlp;
    171   1.1      manu };
    172  1.22  christos check_syscall_args(linux32_sys_setrlimit)
    173   1.1      manu 
    174   1.1      manu struct linux32_sys_getrlimit_args {
    175   1.1      manu 	syscallarg(u_int) which;
    176   1.1      manu 	syscallarg(netbsd32_orlimitp_t) rlp;
    177   1.1      manu };
    178  1.22  christos check_syscall_args(linux32_sys_getrlimit)
    179   1.1      manu 
    180   1.1      manu struct linux32_sys_gettimeofday_args {
    181   1.1      manu 	syscallarg(netbsd32_timevalp_t) tp;
    182   1.1      manu 	syscallarg(netbsd32_timezonep_t) tzp;
    183   1.1      manu };
    184  1.22  christos check_syscall_args(linux32_sys_gettimeofday)
    185   1.1      manu 
    186   1.1      manu struct linux32_sys_settimeofday_args {
    187   1.1      manu 	syscallarg(netbsd32_timevalp_t) tp;
    188   1.1      manu 	syscallarg(netbsd32_timezonep_t) tzp;
    189   1.1      manu };
    190  1.22  christos check_syscall_args(linux32_sys_settimeofday)
    191   1.1      manu 
    192   1.1      manu struct linux32_sys_getgroups16_args {
    193   1.1      manu 	syscallarg(int) gidsetsize;
    194   1.1      manu 	syscallarg(linux32_gidp_t) gidset;
    195   1.1      manu };
    196  1.22  christos check_syscall_args(linux32_sys_getgroups16)
    197   1.1      manu 
    198   1.1      manu struct linux32_sys_setgroups16_args {
    199   1.1      manu 	syscallarg(int) gidsetsize;
    200   1.1      manu 	syscallarg(linux32_gidp_t) gidset;
    201   1.1      manu };
    202  1.22  christos check_syscall_args(linux32_sys_setgroups16)
    203   1.1      manu 
    204   1.1      manu struct linux32_sys_oldselect_args {
    205   1.1      manu 	syscallarg(linux32_oldselectp_t) lsp;
    206   1.1      manu };
    207  1.22  christos check_syscall_args(linux32_sys_oldselect)
    208   1.1      manu 
    209   1.1      manu struct linux32_sys_swapon_args {
    210   1.1      manu 	syscallarg(netbsd32_charp) name;
    211   1.1      manu };
    212  1.22  christos check_syscall_args(linux32_sys_swapon)
    213   1.1      manu 
    214   1.1      manu struct linux32_sys_reboot_args {
    215   1.1      manu 	syscallarg(int) magic1;
    216   1.1      manu 	syscallarg(int) magic2;
    217   1.1      manu 	syscallarg(int) cmd;
    218   1.1      manu 	syscallarg(netbsd32_voidp) arg;
    219   1.1      manu };
    220  1.22  christos check_syscall_args(linux32_sys_reboot)
    221   1.1      manu 
    222   1.1      manu struct linux32_sys_old_mmap_args {
    223   1.1      manu 	syscallarg(linux32_oldmmapp) lmp;
    224   1.1      manu };
    225  1.22  christos check_syscall_args(linux32_sys_old_mmap)
    226   1.1      manu 
    227   1.1      manu struct linux32_sys_truncate_args {
    228   1.1      manu 	syscallarg(const netbsd32_charp) path;
    229   1.1      manu 	syscallarg(netbsd32_long) length;
    230   1.1      manu };
    231  1.22  christos check_syscall_args(linux32_sys_truncate)
    232   1.1      manu 
    233   1.1      manu struct linux32_sys_fchown16_args {
    234   1.1      manu 	syscallarg(int) fd;
    235   1.1      manu 	syscallarg(int) uid;
    236   1.1      manu 	syscallarg(int) gid;
    237   1.1      manu };
    238  1.22  christos check_syscall_args(linux32_sys_fchown16)
    239   1.1      manu 
    240   1.4      manu struct linux32_sys_getpriority_args {
    241   1.4      manu 	syscallarg(int) which;
    242   1.4      manu 	syscallarg(int) who;
    243   1.4      manu };
    244  1.22  christos check_syscall_args(linux32_sys_getpriority)
    245   1.4      manu 
    246   1.4      manu struct linux32_sys_setpriority_args {
    247   1.4      manu 	syscallarg(int) which;
    248   1.4      manu 	syscallarg(int) who;
    249   1.4      manu 	syscallarg(int) prio;
    250   1.4      manu };
    251  1.22  christos check_syscall_args(linux32_sys_setpriority)
    252   1.4      manu 
    253  1.16     njoly struct linux32_sys_statfs_args {
    254  1.16     njoly 	syscallarg(const netbsd32_charp) path;
    255  1.16     njoly 	syscallarg(linux32_statfsp) sp;
    256  1.16     njoly };
    257  1.22  christos check_syscall_args(linux32_sys_statfs)
    258  1.16     njoly 
    259   1.1      manu struct linux32_sys_socketcall_args {
    260   1.1      manu 	syscallarg(int) what;
    261   1.1      manu 	syscallarg(netbsd32_voidp) args;
    262   1.1      manu };
    263  1.22  christos check_syscall_args(linux32_sys_socketcall)
    264   1.1      manu 
    265   1.1      manu struct linux32_sys_wait4_args {
    266   1.1      manu 	syscallarg(int) pid;
    267   1.1      manu 	syscallarg(netbsd32_intp) status;
    268   1.1      manu 	syscallarg(int) options;
    269   1.1      manu 	syscallarg(netbsd32_rusagep_t) rusage;
    270   1.1      manu };
    271  1.22  christos check_syscall_args(linux32_sys_wait4)
    272   1.1      manu 
    273   1.1      manu struct linux32_sys_swapoff_args {
    274   1.1      manu 	syscallarg(const netbsd32_charp) path;
    275   1.1      manu };
    276  1.22  christos check_syscall_args(linux32_sys_swapoff)
    277   1.1      manu 
    278  1.10      manu struct linux32_sys_sysinfo_args {
    279  1.10      manu 	syscallarg(linux32_sysinfop_t) arg;
    280  1.10      manu };
    281  1.22  christos check_syscall_args(linux32_sys_sysinfo)
    282  1.10      manu 
    283   1.1      manu struct linux32_sys_sigreturn_args {
    284   1.1      manu 	syscallarg(linux32_sigcontextp_t) scp;
    285   1.1      manu };
    286  1.22  christos check_syscall_args(linux32_sys_sigreturn)
    287   1.1      manu 
    288   1.1      manu struct linux32_sys_clone_args {
    289   1.1      manu 	syscallarg(int) flags;
    290   1.1      manu 	syscallarg(netbsd32_voidp) stack;
    291   1.1      manu };
    292  1.22  christos check_syscall_args(linux32_sys_clone)
    293   1.1      manu 
    294   1.1      manu struct linux32_sys_uname_args {
    295   1.1      manu 	syscallarg(linux32_utsnamep) up;
    296   1.1      manu };
    297  1.22  christos check_syscall_args(linux32_sys_uname)
    298   1.1      manu 
    299   1.1      manu struct linux32_sys_mprotect_args {
    300   1.1      manu 	syscallarg(netbsd32_voidp) addr;
    301   1.1      manu 	syscallarg(netbsd32_size_t) len;
    302   1.1      manu 	syscallarg(int) prot;
    303   1.1      manu };
    304  1.22  christos check_syscall_args(linux32_sys_mprotect)
    305   1.1      manu 
    306   1.1      manu struct linux32_sys_llseek_args {
    307   1.1      manu 	syscallarg(int) fd;
    308   1.1      manu 	syscallarg(u_int32_t) ohigh;
    309   1.1      manu 	syscallarg(u_int32_t) olow;
    310  1.15  christos 	syscallarg(netbsd32_caddr_t) res;
    311   1.1      manu 	syscallarg(int) whence;
    312   1.1      manu };
    313  1.22  christos check_syscall_args(linux32_sys_llseek)
    314   1.1      manu 
    315   1.1      manu struct linux32_sys_getdents_args {
    316   1.1      manu 	syscallarg(int) fd;
    317   1.1      manu 	syscallarg(linux32_direntp_t) dent;
    318   1.1      manu 	syscallarg(unsigned int) count;
    319   1.1      manu };
    320  1.22  christos check_syscall_args(linux32_sys_getdents)
    321   1.1      manu 
    322   1.1      manu struct linux32_sys_select_args {
    323   1.1      manu 	syscallarg(int) nfds;
    324   1.1      manu 	syscallarg(netbsd32_fd_setp_t) readfds;
    325   1.1      manu 	syscallarg(netbsd32_fd_setp_t) writefds;
    326   1.1      manu 	syscallarg(netbsd32_fd_setp_t) exceptfds;
    327   1.1      manu 	syscallarg(netbsd32_timevalp_t) timeout;
    328   1.1      manu };
    329  1.22  christos check_syscall_args(linux32_sys_select)
    330   1.1      manu 
    331  1.21     njoly struct linux32_sys_fdatasync_args {
    332  1.21     njoly 	syscallarg(int) fd;
    333  1.21     njoly };
    334  1.22  christos check_syscall_args(linux32_sys_fdatasync)
    335  1.21     njoly 
    336   1.1      manu struct linux32_sys___sysctl_args {
    337   1.1      manu 	syscallarg(linux32___sysctlp_t) lsp;
    338   1.1      manu };
    339  1.22  christos check_syscall_args(linux32_sys___sysctl)
    340   1.1      manu 
    341  1.10      manu struct linux32_sys_sched_getparam_args {
    342  1.10      manu 	syscallarg(pid_t) pid;
    343  1.10      manu 	syscallarg(linux32_sched_paramp_t) sp;
    344  1.10      manu };
    345  1.22  christos check_syscall_args(linux32_sys_sched_getparam)
    346  1.10      manu 
    347   1.1      manu struct linux32_sys_sched_setscheduler_args {
    348   1.1      manu 	syscallarg(pid_t) pid;
    349   1.1      manu 	syscallarg(int) policy;
    350   1.1      manu 	syscallarg(const linux32_sched_paramp_t) sp;
    351   1.1      manu };
    352  1.22  christos check_syscall_args(linux32_sys_sched_setscheduler)
    353   1.1      manu 
    354  1.21     njoly struct linux32_sys_sched_getscheduler_args {
    355  1.21     njoly 	syscallarg(pid_t) pid;
    356  1.21     njoly };
    357  1.22  christos check_syscall_args(linux32_sys_sched_getscheduler)
    358  1.21     njoly 
    359  1.10      manu struct linux32_sys_mremap_args {
    360  1.10      manu 	syscallarg(netbsd32_voidp) old_address;
    361  1.10      manu 	syscallarg(netbsd32_size_t) old_size;
    362  1.10      manu 	syscallarg(netbsd32_size_t) new_size;
    363  1.10      manu 	syscallarg(netbsd32_u_long) flags;
    364  1.10      manu };
    365  1.22  christos check_syscall_args(linux32_sys_mremap)
    366  1.10      manu 
    367  1.21     njoly struct linux32_sys_setresuid16_args {
    368  1.21     njoly 	syscallarg(uid_t) ruid;
    369  1.21     njoly 	syscallarg(uid_t) euid;
    370  1.21     njoly 	syscallarg(uid_t) suid;
    371  1.21     njoly };
    372  1.22  christos check_syscall_args(linux32_sys_setresuid16)
    373  1.21     njoly 
    374  1.21     njoly struct linux32_sys_setresgid16_args {
    375  1.21     njoly 	syscallarg(gid_t) rgid;
    376  1.21     njoly 	syscallarg(gid_t) egid;
    377  1.21     njoly 	syscallarg(gid_t) sgid;
    378  1.21     njoly };
    379  1.22  christos check_syscall_args(linux32_sys_setresgid16)
    380  1.21     njoly 
    381   1.1      manu struct linux32_sys_rt_sigreturn_args {
    382   1.1      manu 	syscallarg(linux32_ucontextp_t) ucp;
    383   1.1      manu };
    384  1.22  christos check_syscall_args(linux32_sys_rt_sigreturn)
    385   1.1      manu 
    386   1.1      manu struct linux32_sys_rt_sigaction_args {
    387   1.1      manu 	syscallarg(int) signum;
    388   1.1      manu 	syscallarg(const linux32_sigactionp_t) nsa;
    389   1.1      manu 	syscallarg(linux32_sigactionp_t) osa;
    390   1.1      manu 	syscallarg(netbsd32_size_t) sigsetsize;
    391   1.1      manu };
    392  1.22  christos check_syscall_args(linux32_sys_rt_sigaction)
    393   1.1      manu 
    394   1.1      manu struct linux32_sys_rt_sigprocmask_args {
    395   1.1      manu 	syscallarg(int) how;
    396   1.1      manu 	syscallarg(const linux32_sigsetp_t) set;
    397   1.1      manu 	syscallarg(linux32_sigsetp_t) oset;
    398   1.1      manu 	syscallarg(netbsd32_size_t) sigsetsize;
    399   1.1      manu };
    400  1.22  christos check_syscall_args(linux32_sys_rt_sigprocmask)
    401   1.1      manu 
    402   1.1      manu struct linux32_sys_rt_sigsuspend_args {
    403   1.1      manu 	syscallarg(linux32_sigsetp_t) unewset;
    404   1.1      manu 	syscallarg(netbsd32_size_t) sigsetsize;
    405   1.1      manu };
    406  1.22  christos check_syscall_args(linux32_sys_rt_sigsuspend)
    407   1.1      manu 
    408  1.18     njoly struct linux32_sys_chown16_args {
    409  1.18     njoly 	syscallarg(const netbsd32_charp) path;
    410  1.18     njoly 	syscallarg(int) uid;
    411  1.18     njoly 	syscallarg(int) gid;
    412  1.18     njoly };
    413  1.22  christos check_syscall_args(linux32_sys_chown16)
    414  1.18     njoly 
    415   1.1      manu struct linux32_sys_ugetrlimit_args {
    416   1.1      manu 	syscallarg(int) which;
    417   1.1      manu 	syscallarg(netbsd32_orlimitp_t) rlp;
    418   1.1      manu };
    419  1.22  christos check_syscall_args(linux32_sys_ugetrlimit)
    420   1.1      manu 
    421  1.10      manu struct linux32_sys_mmap2_args {
    422  1.10      manu 	syscallarg(netbsd32_u_long) addr;
    423  1.10      manu 	syscallarg(netbsd32_size_t) len;
    424  1.10      manu 	syscallarg(int) prot;
    425  1.10      manu 	syscallarg(int) flags;
    426  1.10      manu 	syscallarg(int) fd;
    427  1.10      manu 	syscallarg(linux32_off_t) offset;
    428  1.10      manu };
    429  1.22  christos check_syscall_args(linux32_sys_mmap2)
    430  1.10      manu 
    431   1.1      manu struct linux32_sys_stat64_args {
    432   1.1      manu 	syscallarg(const netbsd32_charp) path;
    433   1.1      manu 	syscallarg(linux32_stat64p) sp;
    434   1.1      manu };
    435  1.22  christos check_syscall_args(linux32_sys_stat64)
    436   1.1      manu 
    437   1.1      manu struct linux32_sys_lstat64_args {
    438   1.1      manu 	syscallarg(const netbsd32_charp) path;
    439   1.1      manu 	syscallarg(linux32_stat64p) sp;
    440   1.1      manu };
    441  1.22  christos check_syscall_args(linux32_sys_lstat64)
    442   1.1      manu 
    443   1.1      manu struct linux32_sys_fstat64_args {
    444   1.1      manu 	syscallarg(int) fd;
    445   1.1      manu 	syscallarg(linux32_stat64p) sp;
    446   1.1      manu };
    447  1.22  christos check_syscall_args(linux32_sys_fstat64)
    448   1.1      manu 
    449   1.8      manu struct linux32_sys_setresuid_args {
    450   1.8      manu 	syscallarg(uid_t) ruid;
    451   1.8      manu 	syscallarg(uid_t) euid;
    452   1.8      manu 	syscallarg(uid_t) suid;
    453   1.8      manu };
    454  1.22  christos check_syscall_args(linux32_sys_setresuid)
    455   1.8      manu 
    456   1.8      manu struct linux32_sys_setresgid_args {
    457   1.8      manu 	syscallarg(gid_t) rgid;
    458   1.8      manu 	syscallarg(gid_t) egid;
    459   1.8      manu 	syscallarg(gid_t) sgid;
    460   1.8      manu };
    461  1.22  christos check_syscall_args(linux32_sys_setresgid)
    462   1.8      manu 
    463  1.21     njoly struct linux32_sys_setfsuid_args {
    464  1.21     njoly 	syscallarg(uid_t) uid;
    465  1.21     njoly };
    466  1.22  christos check_syscall_args(linux32_sys_setfsuid)
    467  1.21     njoly 
    468   1.1      manu struct linux32_sys_getdents64_args {
    469   1.1      manu 	syscallarg(int) fd;
    470   1.1      manu 	syscallarg(linux32_dirent64p_t) dent;
    471   1.1      manu 	syscallarg(unsigned int) count;
    472   1.1      manu };
    473  1.22  christos check_syscall_args(linux32_sys_getdents64)
    474   1.1      manu 
    475   1.1      manu struct linux32_sys_fcntl64_args {
    476   1.1      manu 	syscallarg(int) fd;
    477   1.1      manu 	syscallarg(int) cmd;
    478   1.1      manu 	syscallarg(netbsd32_voidp) arg;
    479   1.1      manu };
    480  1.22  christos check_syscall_args(linux32_sys_fcntl64)
    481   1.1      manu 
    482  1.21     njoly struct linux32_sys_exit_group_args {
    483  1.21     njoly 	syscallarg(int) error_code;
    484  1.21     njoly };
    485  1.22  christos check_syscall_args(linux32_sys_exit_group)
    486  1.21     njoly 
    487   1.1      manu /*
    488   1.1      manu  * System call prototypes.
    489   1.1      manu  */
    490   1.1      manu 
    491   1.1      manu int	linux_sys_nosys(struct lwp *, void *, register_t *);
    492   1.1      manu 
    493  1.20       dsl int	netbsd32_exit(struct lwp *, void *, register_t *);
    494   1.1      manu 
    495   1.1      manu int	sys_fork(struct lwp *, void *, register_t *);
    496   1.1      manu 
    497   1.1      manu int	netbsd32_read(struct lwp *, void *, register_t *);
    498   1.1      manu 
    499   1.1      manu int	netbsd32_write(struct lwp *, void *, register_t *);
    500   1.1      manu 
    501   1.1      manu int	linux32_sys_open(struct lwp *, void *, register_t *);
    502   1.1      manu 
    503  1.20       dsl int	netbsd32_close(struct lwp *, void *, register_t *);
    504   1.1      manu 
    505   1.1      manu int	linux32_sys_waitpid(struct lwp *, void *, register_t *);
    506   1.1      manu 
    507   1.1      manu int	linux32_sys_creat(struct lwp *, void *, register_t *);
    508   1.1      manu 
    509  1.19     njoly int	netbsd32_link(struct lwp *, void *, register_t *);
    510   1.1      manu 
    511   1.1      manu int	linux32_sys_unlink(struct lwp *, void *, register_t *);
    512   1.1      manu 
    513   1.1      manu int	netbsd32_execve(struct lwp *, void *, register_t *);
    514   1.1      manu 
    515  1.19     njoly int	netbsd32_chdir(struct lwp *, void *, register_t *);
    516   1.1      manu 
    517   1.1      manu int	linux32_sys_time(struct lwp *, void *, register_t *);
    518   1.1      manu 
    519   1.1      manu int	linux32_sys_mknod(struct lwp *, void *, register_t *);
    520   1.1      manu 
    521  1.19     njoly int	netbsd32_chmod(struct lwp *, void *, register_t *);
    522   1.1      manu 
    523   1.1      manu int	linux32_sys_lchown16(struct lwp *, void *, register_t *);
    524   1.1      manu 
    525   1.1      manu int	linux32_sys_break(struct lwp *, void *, register_t *);
    526   1.1      manu 
    527   1.1      manu int	compat_43_netbsd32_olseek(struct lwp *, void *, register_t *);
    528   1.1      manu 
    529   1.4      manu int	linux_sys_getpid(struct lwp *, void *, register_t *);
    530   1.1      manu 
    531  1.20       dsl int	netbsd32_setuid(struct lwp *, void *, register_t *);
    532   1.1      manu 
    533   1.1      manu int	sys_getuid(struct lwp *, void *, register_t *);
    534   1.1      manu 
    535   1.1      manu int	linux32_sys_stime(struct lwp *, void *, register_t *);
    536   1.1      manu 
    537  1.21     njoly int	linux32_sys_alarm(struct lwp *, void *, register_t *);
    538   1.1      manu 
    539   1.1      manu int	linux_sys_pause(struct lwp *, void *, register_t *);
    540   1.1      manu 
    541   1.1      manu int	linux32_sys_utime(struct lwp *, void *, register_t *);
    542   1.1      manu 
    543  1.19     njoly int	netbsd32_access(struct lwp *, void *, register_t *);
    544   1.1      manu 
    545  1.21     njoly int	linux32_sys_nice(struct lwp *, void *, register_t *);
    546   1.1      manu 
    547   1.1      manu int	sys_sync(struct lwp *, void *, register_t *);
    548   1.1      manu 
    549   1.1      manu int	linux32_sys_kill(struct lwp *, void *, register_t *);
    550   1.1      manu 
    551   1.1      manu int	linux32_sys_rename(struct lwp *, void *, register_t *);
    552   1.1      manu 
    553  1.19     njoly int	netbsd32_mkdir(struct lwp *, void *, register_t *);
    554   1.1      manu 
    555  1.19     njoly int	netbsd32_rmdir(struct lwp *, void *, register_t *);
    556   1.1      manu 
    557   1.3      manu int	netbsd32_dup(struct lwp *, void *, register_t *);
    558   1.1      manu 
    559   1.1      manu int	linux32_sys_pipe(struct lwp *, void *, register_t *);
    560   1.1      manu 
    561   1.1      manu int	linux32_sys_times(struct lwp *, void *, register_t *);
    562   1.1      manu 
    563   1.1      manu int	linux32_sys_brk(struct lwp *, void *, register_t *);
    564   1.1      manu 
    565  1.20       dsl int	netbsd32_setgid(struct lwp *, void *, register_t *);
    566   1.1      manu 
    567   1.1      manu int	sys_getgid(struct lwp *, void *, register_t *);
    568   1.1      manu 
    569   1.1      manu int	linux32_sys_signal(struct lwp *, void *, register_t *);
    570   1.1      manu 
    571   1.1      manu int	sys_geteuid(struct lwp *, void *, register_t *);
    572   1.1      manu 
    573   1.1      manu int	sys_getegid(struct lwp *, void *, register_t *);
    574   1.1      manu 
    575   1.1      manu int	netbsd32_acct(struct lwp *, void *, register_t *);
    576   1.1      manu 
    577   1.1      manu int	linux32_sys_ioctl(struct lwp *, void *, register_t *);
    578   1.1      manu 
    579   1.1      manu int	linux32_sys_fcntl(struct lwp *, void *, register_t *);
    580   1.1      manu 
    581  1.20       dsl int	netbsd32_setpgid(struct lwp *, void *, register_t *);
    582   1.1      manu 
    583   1.1      manu int	linux32_sys_oldolduname(struct lwp *, void *, register_t *);
    584   1.1      manu 
    585  1.20       dsl int	netbsd32_umask(struct lwp *, void *, register_t *);
    586   1.1      manu 
    587   1.1      manu int	netbsd32_chroot(struct lwp *, void *, register_t *);
    588   1.1      manu 
    589   1.3      manu int	netbsd32_dup2(struct lwp *, void *, register_t *);
    590   1.1      manu 
    591   1.4      manu int	linux_sys_getppid(struct lwp *, void *, register_t *);
    592   1.1      manu 
    593   1.1      manu int	sys_getpgrp(struct lwp *, void *, register_t *);
    594   1.1      manu 
    595   1.1      manu int	sys_setsid(struct lwp *, void *, register_t *);
    596   1.1      manu 
    597  1.21     njoly int	linux32_sys_setreuid16(struct lwp *, void *, register_t *);
    598   1.1      manu 
    599  1.21     njoly int	linux32_sys_setregid16(struct lwp *, void *, register_t *);
    600   1.1      manu 
    601   1.1      manu int	compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *);
    602   1.1      manu 
    603   1.1      manu int	linux32_sys_setrlimit(struct lwp *, void *, register_t *);
    604   1.1      manu 
    605   1.1      manu int	linux32_sys_getrlimit(struct lwp *, void *, register_t *);
    606   1.1      manu 
    607   1.1      manu int	netbsd32_getrusage(struct lwp *, void *, register_t *);
    608   1.1      manu 
    609   1.1      manu int	linux32_sys_gettimeofday(struct lwp *, void *, register_t *);
    610   1.1      manu 
    611   1.1      manu int	linux32_sys_settimeofday(struct lwp *, void *, register_t *);
    612   1.1      manu 
    613   1.1      manu int	linux32_sys_getgroups16(struct lwp *, void *, register_t *);
    614   1.1      manu 
    615   1.1      manu int	linux32_sys_setgroups16(struct lwp *, void *, register_t *);
    616   1.1      manu 
    617   1.1      manu int	linux32_sys_oldselect(struct lwp *, void *, register_t *);
    618   1.1      manu 
    619  1.19     njoly int	netbsd32_symlink(struct lwp *, void *, register_t *);
    620   1.1      manu 
    621   1.1      manu int	compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *);
    622   1.1      manu 
    623  1.23     njoly int	netbsd32_readlink(struct lwp *, void *, register_t *);
    624   1.1      manu 
    625   1.1      manu int	linux32_sys_swapon(struct lwp *, void *, register_t *);
    626   1.1      manu 
    627   1.1      manu int	linux32_sys_reboot(struct lwp *, void *, register_t *);
    628   1.1      manu 
    629   1.1      manu int	linux32_sys_old_mmap(struct lwp *, void *, register_t *);
    630   1.1      manu 
    631   1.1      manu int	netbsd32_munmap(struct lwp *, void *, register_t *);
    632   1.1      manu 
    633   1.1      manu int	linux32_sys_truncate(struct lwp *, void *, register_t *);
    634   1.1      manu 
    635  1.17     njoly int	compat_43_netbsd32_oftruncate(struct lwp *, void *, register_t *);
    636   1.1      manu 
    637  1.20       dsl int	netbsd32_fchmod(struct lwp *, void *, register_t *);
    638   1.1      manu 
    639   1.1      manu int	linux32_sys_fchown16(struct lwp *, void *, register_t *);
    640   1.1      manu 
    641   1.4      manu int	linux32_sys_getpriority(struct lwp *, void *, register_t *);
    642   1.1      manu 
    643   1.4      manu int	linux32_sys_setpriority(struct lwp *, void *, register_t *);
    644   1.1      manu 
    645  1.16     njoly int	linux32_sys_statfs(struct lwp *, void *, register_t *);
    646  1.16     njoly 
    647   1.1      manu int	linux32_sys_socketcall(struct lwp *, void *, register_t *);
    648   1.1      manu 
    649   1.1      manu int	netbsd32_setitimer(struct lwp *, void *, register_t *);
    650   1.1      manu 
    651   1.1      manu int	netbsd32_getitimer(struct lwp *, void *, register_t *);
    652   1.1      manu 
    653   1.1      manu int	linux32_sys_wait4(struct lwp *, void *, register_t *);
    654   1.1      manu 
    655   1.1      manu int	linux32_sys_swapoff(struct lwp *, void *, register_t *);
    656   1.1      manu 
    657  1.10      manu int	linux32_sys_sysinfo(struct lwp *, void *, register_t *);
    658  1.10      manu 
    659  1.20       dsl int	netbsd32_fsync(struct lwp *, void *, register_t *);
    660   1.1      manu 
    661   1.1      manu int	linux32_sys_sigreturn(struct lwp *, void *, register_t *);
    662   1.1      manu 
    663   1.1      manu int	linux32_sys_clone(struct lwp *, void *, register_t *);
    664   1.1      manu 
    665   1.1      manu int	linux32_sys_uname(struct lwp *, void *, register_t *);
    666   1.1      manu 
    667   1.1      manu int	linux32_sys_mprotect(struct lwp *, void *, register_t *);
    668   1.1      manu 
    669  1.20       dsl int	netbsd32_fchdir(struct lwp *, void *, register_t *);
    670   1.1      manu 
    671  1.21     njoly int	linux32_sys_setfsuid(struct lwp *, void *, register_t *);
    672  1.13     njoly 
    673  1.13     njoly int	linux_sys_getfsuid(struct lwp *, void *, register_t *);
    674  1.13     njoly 
    675   1.1      manu int	linux32_sys_llseek(struct lwp *, void *, register_t *);
    676   1.1      manu 
    677   1.1      manu int	linux32_sys_getdents(struct lwp *, void *, register_t *);
    678   1.1      manu 
    679   1.1      manu int	linux32_sys_select(struct lwp *, void *, register_t *);
    680   1.1      manu 
    681  1.20       dsl int	netbsd32_flock(struct lwp *, void *, register_t *);
    682   1.1      manu 
    683   1.1      manu int	netbsd32_readv(struct lwp *, void *, register_t *);
    684   1.1      manu 
    685   1.1      manu int	netbsd32_writev(struct lwp *, void *, register_t *);
    686   1.1      manu 
    687  1.20       dsl int	netbsd32_getsid(struct lwp *, void *, register_t *);
    688   1.1      manu 
    689  1.21     njoly int	linux32_sys_fdatasync(struct lwp *, void *, register_t *);
    690   1.9      manu 
    691   1.1      manu int	linux32_sys___sysctl(struct lwp *, void *, register_t *);
    692   1.1      manu 
    693  1.20       dsl int	netbsd32_mlockall(struct lwp *, void *, register_t *);
    694   1.1      manu 
    695   1.1      manu int	sys_munlockall(struct lwp *, void *, register_t *);
    696   1.1      manu 
    697  1.10      manu int	linux32_sys_sched_getparam(struct lwp *, void *, register_t *);
    698  1.10      manu 
    699   1.1      manu int	linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *);
    700   1.1      manu 
    701  1.21     njoly int	linux32_sys_sched_getscheduler(struct lwp *, void *, register_t *);
    702  1.10      manu 
    703  1.13     njoly int	linux_sys_sched_yield(struct lwp *, void *, register_t *);
    704  1.13     njoly 
    705   1.1      manu int	netbsd32_nanosleep(struct lwp *, void *, register_t *);
    706   1.1      manu 
    707  1.10      manu int	linux32_sys_mremap(struct lwp *, void *, register_t *);
    708  1.10      manu 
    709  1.21     njoly int	linux32_sys_setresuid16(struct lwp *, void *, register_t *);
    710   1.1      manu 
    711   1.1      manu int	netbsd32_poll(struct lwp *, void *, register_t *);
    712   1.1      manu 
    713  1.21     njoly int	linux32_sys_setresgid16(struct lwp *, void *, register_t *);
    714   1.1      manu 
    715   1.1      manu int	linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *);
    716   1.1      manu 
    717   1.1      manu int	linux32_sys_rt_sigaction(struct lwp *, void *, register_t *);
    718   1.1      manu 
    719   1.1      manu int	linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
    720   1.1      manu 
    721   1.1      manu int	linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
    722   1.1      manu 
    723  1.18     njoly int	linux32_sys_chown16(struct lwp *, void *, register_t *);
    724  1.18     njoly 
    725   1.2      manu int	netbsd32___getcwd(struct lwp *, void *, register_t *);
    726   1.2      manu 
    727   1.1      manu int	sys___vfork14(struct lwp *, void *, register_t *);
    728   1.1      manu 
    729   1.1      manu int	linux32_sys_ugetrlimit(struct lwp *, void *, register_t *);
    730   1.1      manu 
    731  1.10      manu int	linux32_sys_mmap2(struct lwp *, void *, register_t *);
    732  1.10      manu 
    733   1.1      manu int	linux32_sys_stat64(struct lwp *, void *, register_t *);
    734   1.1      manu 
    735   1.1      manu int	linux32_sys_lstat64(struct lwp *, void *, register_t *);
    736   1.1      manu 
    737   1.1      manu int	linux32_sys_fstat64(struct lwp *, void *, register_t *);
    738   1.1      manu 
    739  1.18     njoly int	netbsd32___posix_lchown(struct lwp *, void *, register_t *);
    740  1.18     njoly 
    741  1.20       dsl int	netbsd32_setreuid(struct lwp *, void *, register_t *);
    742   1.1      manu 
    743  1.20       dsl int	netbsd32_setregid(struct lwp *, void *, register_t *);
    744   1.1      manu 
    745   1.3      manu int	netbsd32_getgroups(struct lwp *, void *, register_t *);
    746   1.3      manu 
    747   1.3      manu int	netbsd32_setgroups(struct lwp *, void *, register_t *);
    748   1.3      manu 
    749  1.20       dsl int	netbsd32___posix_fchown(struct lwp *, void *, register_t *);
    750   1.1      manu 
    751   1.8      manu int	linux32_sys_setresuid(struct lwp *, void *, register_t *);
    752   1.1      manu 
    753   1.8      manu int	linux32_sys_setresgid(struct lwp *, void *, register_t *);
    754   1.1      manu 
    755  1.18     njoly int	netbsd32___posix_chown(struct lwp *, void *, register_t *);
    756  1.18     njoly 
    757  1.10      manu int	netbsd32_madvise(struct lwp *, void *, register_t *);
    758  1.10      manu 
    759   1.1      manu int	linux32_sys_getdents64(struct lwp *, void *, register_t *);
    760   1.1      manu 
    761   1.1      manu int	linux32_sys_fcntl64(struct lwp *, void *, register_t *);
    762   1.1      manu 
    763   1.4      manu int	linux_sys_gettid(struct lwp *, void *, register_t *);
    764   1.4      manu 
    765  1.21     njoly int	linux32_sys_exit_group(struct lwp *, void *, register_t *);
    766   1.1      manu 
    767   1.1      manu #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
    768