Home | History | Annotate | Line # | Download | only in i386
linux_syscallargs.h revision 1.44.4.3
      1      1.19       cgd /* $NetBSD: linux_syscallargs.h,v 1.44.4.3 2004/06/14 02:42:07 jmc Exp $ */
      2       1.1       erh 
      3       1.1       erh /*
      4       1.1       erh  * System call argument lists.
      5       1.1       erh  *
      6       1.1       erh  * DO NOT EDIT-- this file is automatically generated.
      7  1.44.4.3       jmc  * created from	NetBSD: syscalls.master,v 1.63.4.3 2004/06/14 02:36:56 jmc Exp
      8       1.1       erh  */
      9       1.1       erh 
     10       1.5  christos #ifndef _LINUX_SYS__SYSCALLARGS_H_
     11      1.37      manu #define	_LINUX_SYS__SYSCALLARGS_H_
     12       1.5  christos 
     13       1.3      fvdl #ifdef	syscallarg
     14       1.3      fvdl #undef	syscallarg
     15       1.3      fvdl #endif
     16       1.3      fvdl 
     17      1.12      tron #define	syscallarg(x)							\
     18      1.12      tron 	union {								\
     19      1.12      tron 		register_t pad;						\
     20      1.12      tron 		struct { x datum; } le;					\
     21      1.40     lukem 		struct { /* LINTED zero array dimension */		\
     22      1.40     lukem 			int8_t pad[  /* CONSTCOND */			\
     23      1.40     lukem 				(sizeof (register_t) < sizeof (x))	\
     24      1.12      tron 				? 0					\
     25      1.12      tron 				: sizeof (register_t) - sizeof (x)];	\
     26      1.12      tron 			x datum;					\
     27      1.12      tron 		} be;							\
     28      1.12      tron 	}
     29       1.1       erh 
     30       1.1       erh struct linux_sys_open_args {
     31       1.5  christos 	syscallarg(const char *) path;
     32       1.1       erh 	syscallarg(int) flags;
     33       1.1       erh 	syscallarg(int) mode;
     34       1.1       erh };
     35       1.1       erh 
     36       1.1       erh struct linux_sys_waitpid_args {
     37       1.1       erh 	syscallarg(int) pid;
     38       1.1       erh 	syscallarg(int *) status;
     39       1.1       erh 	syscallarg(int) options;
     40       1.1       erh };
     41       1.1       erh 
     42       1.1       erh struct linux_sys_creat_args {
     43       1.5  christos 	syscallarg(const char *) path;
     44       1.1       erh 	syscallarg(int) mode;
     45       1.1       erh };
     46       1.1       erh 
     47      1.32      fvdl struct linux_sys_link_args {
     48      1.32      fvdl 	syscallarg(const char *) path;
     49      1.32      fvdl 	syscallarg(const char *) link;
     50      1.32      fvdl };
     51      1.32      fvdl 
     52       1.1       erh struct linux_sys_unlink_args {
     53       1.5  christos 	syscallarg(const char *) path;
     54       1.1       erh };
     55       1.1       erh 
     56       1.1       erh struct linux_sys_execve_args {
     57       1.5  christos 	syscallarg(const char *) path;
     58       1.1       erh 	syscallarg(char **) argp;
     59       1.1       erh 	syscallarg(char **) envp;
     60       1.1       erh };
     61       1.1       erh 
     62       1.1       erh struct linux_sys_chdir_args {
     63       1.5  christos 	syscallarg(const char *) path;
     64       1.1       erh };
     65       1.1       erh 
     66       1.1       erh struct linux_sys_time_args {
     67       1.1       erh 	syscallarg(linux_time_t *) t;
     68       1.1       erh };
     69       1.1       erh 
     70       1.1       erh struct linux_sys_mknod_args {
     71       1.5  christos 	syscallarg(const char *) path;
     72       1.1       erh 	syscallarg(int) mode;
     73       1.1       erh 	syscallarg(int) dev;
     74       1.1       erh };
     75       1.1       erh 
     76       1.1       erh struct linux_sys_chmod_args {
     77       1.5  christos 	syscallarg(const char *) path;
     78       1.1       erh 	syscallarg(int) mode;
     79       1.1       erh };
     80       1.1       erh 
     81      1.30      fvdl struct linux_sys_lchown16_args {
     82       1.5  christos 	syscallarg(const char *) path;
     83       1.1       erh 	syscallarg(int) uid;
     84       1.1       erh 	syscallarg(int) gid;
     85       1.1       erh };
     86       1.1       erh 
     87       1.1       erh struct linux_sys_break_args {
     88       1.1       erh 	syscallarg(char *) nsize;
     89       1.1       erh };
     90       1.1       erh 
     91      1.11      tron struct linux_sys_stime_args {
     92      1.11      tron 	syscallarg(linux_time_t *) t;
     93      1.11      tron };
     94      1.11      tron 
     95      1.15      tron struct linux_sys_ptrace_args {
     96      1.15      tron 	syscallarg(int) request;
     97      1.15      tron 	syscallarg(int) pid;
     98      1.15      tron 	syscallarg(int) addr;
     99      1.15      tron 	syscallarg(int) data;
    100      1.15      tron };
    101      1.15      tron 
    102       1.1       erh struct linux_sys_alarm_args {
    103       1.1       erh 	syscallarg(unsigned int) secs;
    104       1.1       erh };
    105       1.1       erh 
    106       1.1       erh struct linux_sys_utime_args {
    107       1.5  christos 	syscallarg(const char *) path;
    108       1.1       erh 	syscallarg(struct linux_utimbuf *) times;
    109       1.1       erh };
    110       1.1       erh 
    111       1.1       erh struct linux_sys_access_args {
    112       1.5  christos 	syscallarg(const char *) path;
    113       1.1       erh 	syscallarg(int) flags;
    114       1.1       erh };
    115       1.1       erh 
    116       1.1       erh struct linux_sys_nice_args {
    117       1.1       erh 	syscallarg(int) incr;
    118       1.1       erh };
    119       1.1       erh 
    120       1.1       erh struct linux_sys_kill_args {
    121       1.1       erh 	syscallarg(int) pid;
    122       1.1       erh 	syscallarg(int) signum;
    123       1.1       erh };
    124       1.1       erh 
    125       1.1       erh struct linux_sys_rename_args {
    126       1.5  christos 	syscallarg(const char *) from;
    127       1.5  christos 	syscallarg(const char *) to;
    128       1.1       erh };
    129       1.1       erh 
    130       1.1       erh struct linux_sys_mkdir_args {
    131       1.5  christos 	syscallarg(const char *) path;
    132       1.1       erh 	syscallarg(int) mode;
    133       1.1       erh };
    134       1.1       erh 
    135       1.1       erh struct linux_sys_rmdir_args {
    136       1.5  christos 	syscallarg(const char *) path;
    137       1.1       erh };
    138       1.1       erh 
    139       1.1       erh struct linux_sys_pipe_args {
    140       1.1       erh 	syscallarg(int *) pfds;
    141       1.1       erh };
    142       1.1       erh 
    143       1.1       erh struct linux_sys_times_args {
    144       1.1       erh 	syscallarg(struct times *) tms;
    145       1.1       erh };
    146       1.1       erh 
    147       1.1       erh struct linux_sys_brk_args {
    148       1.1       erh 	syscallarg(char *) nsize;
    149       1.1       erh };
    150       1.1       erh 
    151       1.1       erh struct linux_sys_signal_args {
    152      1.13      tron 	syscallarg(int) signum;
    153       1.1       erh 	syscallarg(linux_handler_t) handler;
    154       1.1       erh };
    155       1.1       erh 
    156       1.1       erh struct linux_sys_ioctl_args {
    157       1.1       erh 	syscallarg(int) fd;
    158       1.1       erh 	syscallarg(u_long) com;
    159       1.1       erh 	syscallarg(caddr_t) data;
    160       1.1       erh };
    161       1.1       erh 
    162       1.1       erh struct linux_sys_fcntl_args {
    163       1.1       erh 	syscallarg(int) fd;
    164       1.1       erh 	syscallarg(int) cmd;
    165       1.1       erh 	syscallarg(void *) arg;
    166       1.1       erh };
    167       1.1       erh 
    168       1.1       erh struct linux_sys_oldolduname_args {
    169       1.1       erh 	syscallarg(struct linux_oldold_utsname *) up;
    170       1.1       erh };
    171       1.1       erh 
    172       1.1       erh struct linux_sys_sigaction_args {
    173       1.1       erh 	syscallarg(int) signum;
    174       1.1       erh 	syscallarg(const struct linux_old_sigaction *) nsa;
    175       1.1       erh 	syscallarg(struct linux_old_sigaction *) osa;
    176       1.1       erh };
    177       1.1       erh 
    178       1.1       erh struct linux_sys_sigsetmask_args {
    179       1.1       erh 	syscallarg(linux_old_sigset_t) mask;
    180       1.1       erh };
    181       1.1       erh 
    182      1.30      fvdl struct linux_sys_setreuid16_args {
    183       1.1       erh 	syscallarg(int) ruid;
    184       1.1       erh 	syscallarg(int) euid;
    185       1.1       erh };
    186       1.1       erh 
    187      1.30      fvdl struct linux_sys_setregid16_args {
    188       1.1       erh 	syscallarg(int) rgid;
    189       1.1       erh 	syscallarg(int) egid;
    190       1.1       erh };
    191       1.1       erh 
    192       1.1       erh struct linux_sys_sigsuspend_args {
    193       1.1       erh 	syscallarg(caddr_t) restart;
    194       1.1       erh 	syscallarg(int) oldmask;
    195       1.1       erh 	syscallarg(int) mask;
    196       1.1       erh };
    197       1.1       erh 
    198       1.1       erh struct linux_sys_sigpending_args {
    199       1.1       erh 	syscallarg(linux_old_sigset_t *) set;
    200       1.1       erh };
    201       1.1       erh 
    202      1.41  christos struct linux_sys_setrlimit_args {
    203      1.41  christos 	syscallarg(u_int) which;
    204      1.41  christos 	syscallarg(struct orlimit *) rlp;
    205      1.41  christos };
    206      1.41  christos 
    207      1.41  christos struct linux_sys_getrlimit_args {
    208      1.41  christos 	syscallarg(u_int) which;
    209      1.41  christos 	syscallarg(struct orlimit *) rlp;
    210      1.41  christos };
    211      1.41  christos 
    212      1.37      manu struct linux_sys_gettimeofday_args {
    213      1.37      manu 	syscallarg(struct timeval *) tp;
    214      1.37      manu 	syscallarg(struct timezone *) tzp;
    215      1.37      manu };
    216      1.37      manu 
    217      1.37      manu struct linux_sys_settimeofday_args {
    218      1.37      manu 	syscallarg(struct timeval *) tp;
    219      1.37      manu 	syscallarg(struct timezone *) tzp;
    220      1.37      manu };
    221      1.37      manu 
    222      1.31      fvdl struct linux_sys_getgroups16_args {
    223      1.31      fvdl 	syscallarg(int) gidsetsize;
    224      1.31      fvdl 	syscallarg(linux_gid_t *) gidset;
    225      1.31      fvdl };
    226      1.31      fvdl 
    227      1.31      fvdl struct linux_sys_setgroups16_args {
    228      1.31      fvdl 	syscallarg(int) gidsetsize;
    229      1.31      fvdl 	syscallarg(linux_gid_t *) gidset;
    230      1.31      fvdl };
    231      1.31      fvdl 
    232       1.1       erh struct linux_sys_oldselect_args {
    233       1.1       erh 	syscallarg(struct linux_oldselect *) lsp;
    234       1.1       erh };
    235       1.1       erh 
    236       1.1       erh struct linux_sys_symlink_args {
    237       1.5  christos 	syscallarg(const char *) path;
    238       1.5  christos 	syscallarg(const char *) to;
    239       1.1       erh };
    240       1.1       erh 
    241       1.1       erh struct linux_sys_readlink_args {
    242       1.5  christos 	syscallarg(const char *) name;
    243       1.1       erh 	syscallarg(char *) buf;
    244       1.1       erh 	syscallarg(int) count;
    245       1.1       erh };
    246       1.1       erh 
    247       1.1       erh struct linux_sys_uselib_args {
    248       1.5  christos 	syscallarg(const char *) path;
    249       1.1       erh };
    250       1.1       erh 
    251      1.22  jdolecek struct linux_sys_swapon_args {
    252      1.22  jdolecek 	syscallarg(char *) name;
    253      1.22  jdolecek };
    254      1.22  jdolecek 
    255      1.17       erh struct linux_sys_reboot_args {
    256      1.17       erh 	syscallarg(int) magic1;
    257      1.17       erh 	syscallarg(int) magic2;
    258      1.17       erh 	syscallarg(int) cmd;
    259      1.17       erh 	syscallarg(void *) arg;
    260      1.17       erh };
    261      1.17       erh 
    262       1.1       erh struct linux_sys_readdir_args {
    263       1.1       erh 	syscallarg(int) fd;
    264       1.1       erh 	syscallarg(caddr_t) dent;
    265       1.1       erh 	syscallarg(unsigned int) count;
    266       1.1       erh };
    267       1.1       erh 
    268       1.1       erh struct linux_sys_old_mmap_args {
    269       1.1       erh 	syscallarg(struct linux_oldmmap *) lmp;
    270       1.1       erh };
    271       1.1       erh 
    272       1.1       erh struct linux_sys_truncate_args {
    273       1.5  christos 	syscallarg(const char *) path;
    274       1.1       erh 	syscallarg(long) length;
    275       1.1       erh };
    276       1.1       erh 
    277      1.30      fvdl struct linux_sys_fchown16_args {
    278       1.1       erh 	syscallarg(int) fd;
    279       1.1       erh 	syscallarg(int) uid;
    280       1.1       erh 	syscallarg(int) gid;
    281       1.1       erh };
    282       1.1       erh 
    283       1.1       erh struct linux_sys_statfs_args {
    284       1.5  christos 	syscallarg(const char *) path;
    285       1.1       erh 	syscallarg(struct linux_statfs *) sp;
    286       1.1       erh };
    287       1.1       erh 
    288       1.1       erh struct linux_sys_fstatfs_args {
    289       1.1       erh 	syscallarg(int) fd;
    290       1.1       erh 	syscallarg(struct linux_statfs *) sp;
    291       1.1       erh };
    292       1.1       erh 
    293       1.1       erh struct linux_sys_ioperm_args {
    294       1.1       erh 	syscallarg(unsigned int) lo;
    295       1.1       erh 	syscallarg(unsigned int) hi;
    296       1.1       erh 	syscallarg(int) val;
    297       1.1       erh };
    298       1.1       erh 
    299       1.1       erh struct linux_sys_socketcall_args {
    300       1.1       erh 	syscallarg(int) what;
    301       1.1       erh 	syscallarg(void *) args;
    302       1.1       erh };
    303       1.1       erh 
    304       1.1       erh struct linux_sys_stat_args {
    305       1.5  christos 	syscallarg(const char *) path;
    306       1.1       erh 	syscallarg(struct linux_stat *) sp;
    307       1.1       erh };
    308       1.1       erh 
    309       1.1       erh struct linux_sys_lstat_args {
    310       1.5  christos 	syscallarg(const char *) path;
    311       1.1       erh 	syscallarg(struct linux_stat *) sp;
    312       1.1       erh };
    313       1.1       erh 
    314       1.1       erh struct linux_sys_fstat_args {
    315       1.1       erh 	syscallarg(int) fd;
    316       1.1       erh 	syscallarg(struct linux_stat *) sp;
    317       1.1       erh };
    318       1.1       erh 
    319       1.1       erh struct linux_sys_olduname_args {
    320       1.1       erh 	syscallarg(struct linux_old_utsname *) up;
    321       1.1       erh };
    322       1.1       erh 
    323       1.1       erh struct linux_sys_iopl_args {
    324       1.1       erh 	syscallarg(int) level;
    325       1.1       erh };
    326       1.1       erh 
    327       1.1       erh struct linux_sys_wait4_args {
    328       1.1       erh 	syscallarg(int) pid;
    329       1.1       erh 	syscallarg(int *) status;
    330       1.1       erh 	syscallarg(int) options;
    331       1.1       erh 	syscallarg(struct rusage *) rusage;
    332       1.1       erh };
    333       1.1       erh 
    334      1.23  jdolecek struct linux_sys_swapoff_args {
    335      1.23  jdolecek 	syscallarg(const char *) path;
    336      1.23  jdolecek };
    337      1.23  jdolecek 
    338      1.29  augustss struct linux_sys_sysinfo_args {
    339      1.29  augustss 	syscallarg(struct linux_sysinfo *) arg;
    340      1.29  augustss };
    341      1.29  augustss 
    342       1.1       erh struct linux_sys_ipc_args {
    343       1.1       erh 	syscallarg(int) what;
    344       1.1       erh 	syscallarg(int) a1;
    345       1.1       erh 	syscallarg(int) a2;
    346       1.1       erh 	syscallarg(int) a3;
    347       1.1       erh 	syscallarg(caddr_t) ptr;
    348       1.1       erh };
    349       1.1       erh 
    350       1.1       erh struct linux_sys_sigreturn_args {
    351       1.1       erh 	syscallarg(struct linux_sigcontext *) scp;
    352       1.1       erh };
    353       1.1       erh 
    354       1.9   thorpej struct linux_sys_clone_args {
    355       1.9   thorpej 	syscallarg(int) flags;
    356       1.9   thorpej 	syscallarg(void *) stack;
    357       1.9   thorpej };
    358       1.9   thorpej 
    359      1.22  jdolecek struct linux_sys_setdomainname_args {
    360      1.22  jdolecek 	syscallarg(char *) domainname;
    361      1.22  jdolecek 	syscallarg(int) len;
    362      1.22  jdolecek };
    363      1.22  jdolecek 
    364       1.1       erh struct linux_sys_uname_args {
    365       1.1       erh 	syscallarg(struct linux_utsname *) up;
    366       1.1       erh };
    367       1.1       erh 
    368       1.1       erh struct linux_sys_modify_ldt_args {
    369       1.1       erh 	syscallarg(int) func;
    370       1.1       erh 	syscallarg(void *) ptr;
    371       1.1       erh 	syscallarg(size_t) bytecount;
    372       1.1       erh };
    373       1.1       erh 
    374      1.43  christos struct linux_sys_mprotect_args {
    375      1.43  christos 	syscallarg(const void *) start;
    376      1.43  christos 	syscallarg(unsigned long) len;
    377      1.43  christos 	syscallarg(int) prot;
    378      1.43  christos };
    379      1.43  christos 
    380       1.1       erh struct linux_sys_sigprocmask_args {
    381       1.1       erh 	syscallarg(int) how;
    382       1.1       erh 	syscallarg(const linux_old_sigset_t *) set;
    383       1.1       erh 	syscallarg(linux_old_sigset_t *) oset;
    384       1.1       erh };
    385       1.1       erh 
    386       1.1       erh struct linux_sys_getpgid_args {
    387       1.1       erh 	syscallarg(int) pid;
    388       1.1       erh };
    389       1.1       erh 
    390       1.1       erh struct linux_sys_personality_args {
    391       1.1       erh 	syscallarg(int) per;
    392       1.1       erh };
    393       1.1       erh 
    394       1.1       erh struct linux_sys_llseek_args {
    395       1.1       erh 	syscallarg(int) fd;
    396       1.1       erh 	syscallarg(u_int32_t) ohigh;
    397       1.1       erh 	syscallarg(u_int32_t) olow;
    398       1.1       erh 	syscallarg(caddr_t) res;
    399       1.1       erh 	syscallarg(int) whence;
    400       1.1       erh };
    401       1.1       erh 
    402       1.1       erh struct linux_sys_getdents_args {
    403       1.1       erh 	syscallarg(int) fd;
    404       1.1       erh 	syscallarg(struct linux_dirent *) dent;
    405       1.1       erh 	syscallarg(unsigned int) count;
    406       1.1       erh };
    407       1.1       erh 
    408       1.1       erh struct linux_sys_select_args {
    409       1.1       erh 	syscallarg(int) nfds;
    410       1.1       erh 	syscallarg(fd_set *) readfds;
    411       1.1       erh 	syscallarg(fd_set *) writefds;
    412       1.1       erh 	syscallarg(fd_set *) exceptfds;
    413       1.1       erh 	syscallarg(struct timeval *) timeout;
    414       1.1       erh };
    415       1.1       erh 
    416       1.1       erh struct linux_sys_msync_args {
    417       1.1       erh 	syscallarg(caddr_t) addr;
    418       1.1       erh 	syscallarg(int) len;
    419       1.1       erh 	syscallarg(int) fl;
    420       1.1       erh };
    421       1.1       erh 
    422       1.1       erh struct linux_sys_fdatasync_args {
    423       1.1       erh 	syscallarg(int) fd;
    424       1.1       erh };
    425       1.1       erh 
    426       1.1       erh struct linux_sys___sysctl_args {
    427       1.1       erh 	syscallarg(struct linux___sysctl *) lsp;
    428       1.1       erh };
    429       1.1       erh 
    430      1.12      tron struct linux_sys_sched_setparam_args {
    431      1.12      tron 	syscallarg(pid_t) pid;
    432      1.12      tron 	syscallarg(const struct linux_sched_param *) sp;
    433      1.12      tron };
    434      1.12      tron 
    435      1.12      tron struct linux_sys_sched_getparam_args {
    436      1.12      tron 	syscallarg(pid_t) pid;
    437      1.12      tron 	syscallarg(struct linux_sched_param *) sp;
    438      1.12      tron };
    439      1.12      tron 
    440      1.12      tron struct linux_sys_sched_setscheduler_args {
    441      1.12      tron 	syscallarg(pid_t) pid;
    442      1.12      tron 	syscallarg(int) policy;
    443      1.12      tron 	syscallarg(const struct linux_sched_param *) sp;
    444      1.12      tron };
    445      1.12      tron 
    446      1.12      tron struct linux_sys_sched_getscheduler_args {
    447      1.12      tron 	syscallarg(pid_t) pid;
    448      1.12      tron };
    449      1.12      tron 
    450      1.12      tron struct linux_sys_sched_get_priority_max_args {
    451      1.12      tron 	syscallarg(int) policy;
    452      1.12      tron };
    453      1.12      tron 
    454      1.12      tron struct linux_sys_sched_get_priority_min_args {
    455      1.12      tron 	syscallarg(int) policy;
    456      1.12      tron };
    457      1.12      tron 
    458       1.1       erh struct linux_sys_mremap_args {
    459       1.1       erh 	syscallarg(void *) old_address;
    460       1.1       erh 	syscallarg(size_t) old_size;
    461       1.1       erh 	syscallarg(size_t) new_size;
    462       1.1       erh 	syscallarg(u_long) flags;
    463       1.1       erh };
    464       1.1       erh 
    465      1.31      fvdl struct linux_sys_setresuid16_args {
    466      1.10   thorpej 	syscallarg(uid_t) ruid;
    467      1.10   thorpej 	syscallarg(uid_t) euid;
    468      1.10   thorpej 	syscallarg(uid_t) suid;
    469      1.10   thorpej };
    470      1.10   thorpej 
    471      1.31      fvdl struct linux_sys_setresgid16_args {
    472      1.10   thorpej 	syscallarg(gid_t) rgid;
    473      1.10   thorpej 	syscallarg(gid_t) egid;
    474      1.10   thorpej 	syscallarg(gid_t) sgid;
    475      1.10   thorpej };
    476      1.10   thorpej 
    477       1.1       erh struct linux_sys_rt_sigreturn_args {
    478       1.1       erh 	syscallarg(struct linux_rt_sigframe *) sfp;
    479       1.1       erh };
    480       1.1       erh 
    481       1.1       erh struct linux_sys_rt_sigaction_args {
    482       1.1       erh 	syscallarg(int) signum;
    483       1.1       erh 	syscallarg(const struct linux_sigaction *) nsa;
    484       1.1       erh 	syscallarg(struct linux_sigaction *) osa;
    485       1.1       erh 	syscallarg(size_t) sigsetsize;
    486       1.1       erh };
    487       1.1       erh 
    488       1.1       erh struct linux_sys_rt_sigprocmask_args {
    489       1.1       erh 	syscallarg(int) how;
    490       1.1       erh 	syscallarg(const linux_sigset_t *) set;
    491       1.1       erh 	syscallarg(linux_sigset_t *) oset;
    492       1.1       erh 	syscallarg(size_t) sigsetsize;
    493       1.1       erh };
    494       1.1       erh 
    495       1.1       erh struct linux_sys_rt_sigpending_args {
    496       1.1       erh 	syscallarg(linux_sigset_t *) set;
    497       1.1       erh 	syscallarg(size_t) sigsetsize;
    498       1.1       erh };
    499       1.1       erh 
    500       1.1       erh struct linux_sys_rt_queueinfo_args {
    501       1.1       erh 	syscallarg(int) pid;
    502       1.1       erh 	syscallarg(int) signum;
    503       1.1       erh 	syscallarg(void *) uinfo;
    504       1.1       erh };
    505       1.1       erh 
    506       1.1       erh struct linux_sys_rt_sigsuspend_args {
    507       1.1       erh 	syscallarg(linux_sigset_t *) unewset;
    508       1.1       erh 	syscallarg(size_t) sigsetsize;
    509       1.1       erh };
    510       1.1       erh 
    511      1.14      tron struct linux_sys_pread_args {
    512      1.14      tron 	syscallarg(int) fd;
    513      1.14      tron 	syscallarg(char *) buf;
    514      1.14      tron 	syscallarg(size_t) nbyte;
    515      1.14      tron 	syscallarg(linux_off_t) offset;
    516      1.14      tron };
    517      1.14      tron 
    518      1.14      tron struct linux_sys_pwrite_args {
    519      1.14      tron 	syscallarg(int) fd;
    520      1.14      tron 	syscallarg(char *) buf;
    521      1.14      tron 	syscallarg(size_t) nbyte;
    522      1.14      tron 	syscallarg(linux_off_t) offset;
    523      1.14      tron };
    524      1.14      tron 
    525      1.30      fvdl struct linux_sys_chown16_args {
    526       1.5  christos 	syscallarg(const char *) path;
    527       1.1       erh 	syscallarg(int) uid;
    528       1.1       erh 	syscallarg(int) gid;
    529       1.1       erh };
    530       1.1       erh 
    531      1.20  christos struct linux_sys_sigaltstack_args {
    532      1.20  christos 	syscallarg(const struct linux_sigaltstack *) ss;
    533      1.20  christos 	syscallarg(struct linux_sigaltstack *) oss;
    534      1.20  christos };
    535      1.20  christos 
    536      1.41  christos struct linux_sys_ugetrlimit_args {
    537      1.41  christos 	syscallarg(int) which;
    538      1.41  christos 	syscallarg(struct orlimit *) rlp;
    539      1.41  christos };
    540      1.41  christos 
    541      1.28  jdolecek struct linux_sys_truncate64_args {
    542      1.28  jdolecek 	syscallarg(const char *) path;
    543      1.28  jdolecek 	syscallarg(off_t) length;
    544      1.28  jdolecek };
    545      1.28  jdolecek 
    546  1.44.4.2      tron struct linux_sys_ftruncate64_args {
    547  1.44.4.3       jmc 	syscallarg(unsigned int) fd;
    548  1.44.4.2      tron 	syscallarg(off_t) length;
    549  1.44.4.2      tron };
    550  1.44.4.2      tron 
    551      1.27  jdolecek struct linux_sys_stat64_args {
    552      1.27  jdolecek 	syscallarg(const char *) path;
    553      1.27  jdolecek 	syscallarg(struct linux_stat64 *) sp;
    554      1.27  jdolecek };
    555      1.27  jdolecek 
    556      1.27  jdolecek struct linux_sys_lstat64_args {
    557      1.27  jdolecek 	syscallarg(const char *) path;
    558      1.27  jdolecek 	syscallarg(struct linux_stat64 *) sp;
    559      1.27  jdolecek };
    560      1.27  jdolecek 
    561      1.27  jdolecek struct linux_sys_fstat64_args {
    562      1.27  jdolecek 	syscallarg(int) fd;
    563      1.27  jdolecek 	syscallarg(struct linux_stat64 *) sp;
    564      1.27  jdolecek };
    565      1.27  jdolecek 
    566      1.31      fvdl struct linux_sys_lchown_args {
    567      1.31      fvdl 	syscallarg(const char *) path;
    568      1.31      fvdl 	syscallarg(uid_t) uid;
    569      1.31      fvdl 	syscallarg(gid_t) gid;
    570      1.31      fvdl };
    571      1.31      fvdl 
    572      1.31      fvdl struct linux_sys_setresuid_args {
    573      1.31      fvdl 	syscallarg(uid_t) ruid;
    574      1.31      fvdl 	syscallarg(uid_t) euid;
    575      1.31      fvdl 	syscallarg(uid_t) suid;
    576      1.31      fvdl };
    577      1.31      fvdl 
    578      1.31      fvdl struct linux_sys_getresuid_args {
    579      1.31      fvdl 	syscallarg(uid_t *) ruid;
    580      1.31      fvdl 	syscallarg(uid_t *) euid;
    581      1.31      fvdl 	syscallarg(uid_t *) suid;
    582      1.31      fvdl };
    583      1.31      fvdl 
    584      1.31      fvdl struct linux_sys_setresgid_args {
    585      1.31      fvdl 	syscallarg(gid_t) rgid;
    586      1.31      fvdl 	syscallarg(gid_t) egid;
    587      1.31      fvdl 	syscallarg(gid_t) sgid;
    588      1.31      fvdl };
    589      1.31      fvdl 
    590      1.31      fvdl struct linux_sys_getresgid_args {
    591      1.31      fvdl 	syscallarg(gid_t *) rgid;
    592      1.31      fvdl 	syscallarg(gid_t *) egid;
    593      1.31      fvdl 	syscallarg(gid_t *) sgid;
    594      1.31      fvdl };
    595      1.31      fvdl 
    596      1.31      fvdl struct linux_sys_chown_args {
    597      1.31      fvdl 	syscallarg(const char *) path;
    598      1.31      fvdl 	syscallarg(uid_t) uid;
    599      1.31      fvdl 	syscallarg(gid_t) gid;
    600      1.31      fvdl };
    601      1.31      fvdl 
    602      1.31      fvdl struct linux_sys_setfsuid_args {
    603      1.31      fvdl 	syscallarg(uid_t) uid;
    604      1.31      fvdl };
    605      1.31      fvdl 
    606      1.44  christos struct linux_sys_getdents64_args {
    607      1.44  christos 	syscallarg(int) fd;
    608      1.44  christos 	syscallarg(struct linux_dirent64 *) dent;
    609      1.44  christos 	syscallarg(unsigned int) count;
    610      1.44  christos };
    611      1.44  christos 
    612      1.43  christos struct linux_sys_fcntl64_args {
    613      1.43  christos 	syscallarg(int) fd;
    614      1.43  christos 	syscallarg(int) cmd;
    615      1.43  christos 	syscallarg(void *) arg;
    616      1.43  christos };
    617      1.43  christos 
    618       1.1       erh /*
    619       1.1       erh  * System call prototypes.
    620       1.1       erh  */
    621       1.1       erh 
    622      1.35  jdolecek int	linux_sys_nosys(struct proc *, void *, register_t *);
    623      1.18       cgd int	sys_exit(struct proc *, void *, register_t *);
    624      1.18       cgd int	sys_fork(struct proc *, void *, register_t *);
    625      1.18       cgd int	sys_read(struct proc *, void *, register_t *);
    626      1.18       cgd int	sys_write(struct proc *, void *, register_t *);
    627      1.18       cgd int	linux_sys_open(struct proc *, void *, register_t *);
    628      1.18       cgd int	sys_close(struct proc *, void *, register_t *);
    629      1.18       cgd int	linux_sys_waitpid(struct proc *, void *, register_t *);
    630      1.18       cgd int	linux_sys_creat(struct proc *, void *, register_t *);
    631      1.32      fvdl int	linux_sys_link(struct proc *, void *, register_t *);
    632      1.18       cgd int	linux_sys_unlink(struct proc *, void *, register_t *);
    633      1.18       cgd int	linux_sys_execve(struct proc *, void *, register_t *);
    634      1.18       cgd int	linux_sys_chdir(struct proc *, void *, register_t *);
    635      1.18       cgd int	linux_sys_time(struct proc *, void *, register_t *);
    636      1.18       cgd int	linux_sys_mknod(struct proc *, void *, register_t *);
    637      1.18       cgd int	linux_sys_chmod(struct proc *, void *, register_t *);
    638      1.30      fvdl int	linux_sys_lchown16(struct proc *, void *, register_t *);
    639      1.18       cgd int	linux_sys_break(struct proc *, void *, register_t *);
    640      1.18       cgd int	compat_43_sys_lseek(struct proc *, void *, register_t *);
    641      1.18       cgd int	sys_getpid(struct proc *, void *, register_t *);
    642      1.31      fvdl int	sys_setuid(struct proc *, void *, register_t *);
    643      1.31      fvdl int	sys_getuid(struct proc *, void *, register_t *);
    644      1.18       cgd int	linux_sys_stime(struct proc *, void *, register_t *);
    645      1.18       cgd int	linux_sys_ptrace(struct proc *, void *, register_t *);
    646      1.18       cgd int	linux_sys_alarm(struct proc *, void *, register_t *);
    647      1.18       cgd int	linux_sys_pause(struct proc *, void *, register_t *);
    648      1.18       cgd int	linux_sys_utime(struct proc *, void *, register_t *);
    649      1.18       cgd int	linux_sys_access(struct proc *, void *, register_t *);
    650      1.18       cgd int	linux_sys_nice(struct proc *, void *, register_t *);
    651      1.18       cgd int	sys_sync(struct proc *, void *, register_t *);
    652      1.18       cgd int	linux_sys_kill(struct proc *, void *, register_t *);
    653      1.18       cgd int	linux_sys_rename(struct proc *, void *, register_t *);
    654      1.18       cgd int	linux_sys_mkdir(struct proc *, void *, register_t *);
    655      1.18       cgd int	linux_sys_rmdir(struct proc *, void *, register_t *);
    656      1.18       cgd int	sys_dup(struct proc *, void *, register_t *);
    657      1.18       cgd int	linux_sys_pipe(struct proc *, void *, register_t *);
    658      1.18       cgd int	linux_sys_times(struct proc *, void *, register_t *);
    659      1.18       cgd int	linux_sys_brk(struct proc *, void *, register_t *);
    660      1.31      fvdl int	sys_setgid(struct proc *, void *, register_t *);
    661      1.31      fvdl int	sys_getgid(struct proc *, void *, register_t *);
    662      1.18       cgd int	linux_sys_signal(struct proc *, void *, register_t *);
    663      1.31      fvdl int	sys_geteuid(struct proc *, void *, register_t *);
    664      1.31      fvdl int	sys_getegid(struct proc *, void *, register_t *);
    665      1.18       cgd int	sys_acct(struct proc *, void *, register_t *);
    666      1.18       cgd int	linux_sys_ioctl(struct proc *, void *, register_t *);
    667      1.18       cgd int	linux_sys_fcntl(struct proc *, void *, register_t *);
    668      1.18       cgd int	sys_setpgid(struct proc *, void *, register_t *);
    669      1.18       cgd int	linux_sys_oldolduname(struct proc *, void *, register_t *);
    670      1.18       cgd int	sys_umask(struct proc *, void *, register_t *);
    671      1.18       cgd int	sys_chroot(struct proc *, void *, register_t *);
    672      1.18       cgd int	sys_dup2(struct proc *, void *, register_t *);
    673      1.18       cgd int	sys_getppid(struct proc *, void *, register_t *);
    674      1.18       cgd int	sys_getpgrp(struct proc *, void *, register_t *);
    675      1.18       cgd int	sys_setsid(struct proc *, void *, register_t *);
    676      1.18       cgd int	linux_sys_sigaction(struct proc *, void *, register_t *);
    677      1.18       cgd int	linux_sys_siggetmask(struct proc *, void *, register_t *);
    678      1.18       cgd int	linux_sys_sigsetmask(struct proc *, void *, register_t *);
    679      1.30      fvdl int	linux_sys_setreuid16(struct proc *, void *, register_t *);
    680      1.30      fvdl int	linux_sys_setregid16(struct proc *, void *, register_t *);
    681      1.18       cgd int	linux_sys_sigsuspend(struct proc *, void *, register_t *);
    682      1.18       cgd int	linux_sys_sigpending(struct proc *, void *, register_t *);
    683      1.18       cgd int	compat_43_sys_sethostname(struct proc *, void *, register_t *);
    684      1.41  christos int	linux_sys_setrlimit(struct proc *, void *, register_t *);
    685      1.41  christos int	linux_sys_getrlimit(struct proc *, void *, register_t *);
    686      1.18       cgd int	sys_getrusage(struct proc *, void *, register_t *);
    687      1.37      manu int	linux_sys_gettimeofday(struct proc *, void *, register_t *);
    688      1.37      manu int	linux_sys_settimeofday(struct proc *, void *, register_t *);
    689      1.31      fvdl int	linux_sys_getgroups16(struct proc *, void *, register_t *);
    690      1.31      fvdl int	linux_sys_setgroups16(struct proc *, void *, register_t *);
    691      1.18       cgd int	linux_sys_oldselect(struct proc *, void *, register_t *);
    692      1.18       cgd int	linux_sys_symlink(struct proc *, void *, register_t *);
    693      1.18       cgd int	compat_43_sys_lstat(struct proc *, void *, register_t *);
    694      1.18       cgd int	linux_sys_readlink(struct proc *, void *, register_t *);
    695      1.18       cgd int	linux_sys_uselib(struct proc *, void *, register_t *);
    696      1.22  jdolecek int	linux_sys_swapon(struct proc *, void *, register_t *);
    697      1.18       cgd int	linux_sys_reboot(struct proc *, void *, register_t *);
    698      1.18       cgd int	linux_sys_readdir(struct proc *, void *, register_t *);
    699      1.18       cgd int	linux_sys_old_mmap(struct proc *, void *, register_t *);
    700      1.18       cgd int	sys_munmap(struct proc *, void *, register_t *);
    701      1.18       cgd int	linux_sys_truncate(struct proc *, void *, register_t *);
    702      1.18       cgd int	compat_43_sys_ftruncate(struct proc *, void *, register_t *);
    703      1.18       cgd int	sys_fchmod(struct proc *, void *, register_t *);
    704      1.30      fvdl int	linux_sys_fchown16(struct proc *, void *, register_t *);
    705      1.18       cgd int	sys_getpriority(struct proc *, void *, register_t *);
    706      1.18       cgd int	sys_setpriority(struct proc *, void *, register_t *);
    707      1.18       cgd int	sys_profil(struct proc *, void *, register_t *);
    708      1.18       cgd int	linux_sys_statfs(struct proc *, void *, register_t *);
    709      1.18       cgd int	linux_sys_fstatfs(struct proc *, void *, register_t *);
    710      1.18       cgd int	linux_sys_ioperm(struct proc *, void *, register_t *);
    711      1.18       cgd int	linux_sys_socketcall(struct proc *, void *, register_t *);
    712      1.18       cgd int	sys_setitimer(struct proc *, void *, register_t *);
    713      1.18       cgd int	sys_getitimer(struct proc *, void *, register_t *);
    714      1.18       cgd int	linux_sys_stat(struct proc *, void *, register_t *);
    715      1.18       cgd int	linux_sys_lstat(struct proc *, void *, register_t *);
    716      1.18       cgd int	linux_sys_fstat(struct proc *, void *, register_t *);
    717      1.18       cgd int	linux_sys_olduname(struct proc *, void *, register_t *);
    718      1.18       cgd int	linux_sys_iopl(struct proc *, void *, register_t *);
    719      1.18       cgd int	linux_sys_wait4(struct proc *, void *, register_t *);
    720      1.23  jdolecek int	linux_sys_swapoff(struct proc *, void *, register_t *);
    721      1.29  augustss int	linux_sys_sysinfo(struct proc *, void *, register_t *);
    722      1.18       cgd int	linux_sys_ipc(struct proc *, void *, register_t *);
    723      1.18       cgd int	sys_fsync(struct proc *, void *, register_t *);
    724      1.18       cgd int	linux_sys_sigreturn(struct proc *, void *, register_t *);
    725      1.18       cgd int	linux_sys_clone(struct proc *, void *, register_t *);
    726      1.22  jdolecek int	linux_sys_setdomainname(struct proc *, void *, register_t *);
    727      1.18       cgd int	linux_sys_uname(struct proc *, void *, register_t *);
    728      1.18       cgd int	linux_sys_modify_ldt(struct proc *, void *, register_t *);
    729      1.43  christos int	linux_sys_mprotect(struct proc *, void *, register_t *);
    730      1.18       cgd int	linux_sys_sigprocmask(struct proc *, void *, register_t *);
    731      1.18       cgd int	linux_sys_getpgid(struct proc *, void *, register_t *);
    732      1.18       cgd int	sys_fchdir(struct proc *, void *, register_t *);
    733      1.18       cgd int	linux_sys_personality(struct proc *, void *, register_t *);
    734      1.18       cgd int	linux_sys_setfsuid(struct proc *, void *, register_t *);
    735      1.18       cgd int	linux_sys_getfsuid(struct proc *, void *, register_t *);
    736      1.18       cgd int	linux_sys_llseek(struct proc *, void *, register_t *);
    737      1.18       cgd int	linux_sys_getdents(struct proc *, void *, register_t *);
    738      1.18       cgd int	linux_sys_select(struct proc *, void *, register_t *);
    739      1.18       cgd int	sys_flock(struct proc *, void *, register_t *);
    740      1.18       cgd int	linux_sys_msync(struct proc *, void *, register_t *);
    741      1.18       cgd int	sys_readv(struct proc *, void *, register_t *);
    742      1.18       cgd int	sys_writev(struct proc *, void *, register_t *);
    743      1.18       cgd int	sys_getsid(struct proc *, void *, register_t *);
    744      1.18       cgd int	linux_sys_fdatasync(struct proc *, void *, register_t *);
    745      1.18       cgd int	linux_sys___sysctl(struct proc *, void *, register_t *);
    746      1.18       cgd int	sys_mlock(struct proc *, void *, register_t *);
    747      1.18       cgd int	sys_munlock(struct proc *, void *, register_t *);
    748      1.21  jdolecek int	sys_mlockall(struct proc *, void *, register_t *);
    749      1.21  jdolecek int	sys_munlockall(struct proc *, void *, register_t *);
    750      1.18       cgd int	linux_sys_sched_setparam(struct proc *, void *, register_t *);
    751      1.18       cgd int	linux_sys_sched_getparam(struct proc *, void *, register_t *);
    752      1.18       cgd int	linux_sys_sched_setscheduler(struct proc *, void *, register_t *);
    753      1.18       cgd int	linux_sys_sched_getscheduler(struct proc *, void *, register_t *);
    754      1.18       cgd int	linux_sys_sched_yield(struct proc *, void *, register_t *);
    755      1.18       cgd int	linux_sys_sched_get_priority_max(struct proc *, void *, register_t *);
    756      1.18       cgd int	linux_sys_sched_get_priority_min(struct proc *, void *, register_t *);
    757      1.18       cgd int	sys_nanosleep(struct proc *, void *, register_t *);
    758      1.18       cgd int	linux_sys_mremap(struct proc *, void *, register_t *);
    759      1.31      fvdl int	linux_sys_setresuid16(struct proc *, void *, register_t *);
    760      1.18       cgd int	linux_sys_getresuid(struct proc *, void *, register_t *);
    761      1.18       cgd int	sys_poll(struct proc *, void *, register_t *);
    762      1.31      fvdl int	linux_sys_setresgid16(struct proc *, void *, register_t *);
    763      1.18       cgd int	linux_sys_getresgid(struct proc *, void *, register_t *);
    764      1.18       cgd int	linux_sys_rt_sigreturn(struct proc *, void *, register_t *);
    765      1.18       cgd int	linux_sys_rt_sigaction(struct proc *, void *, register_t *);
    766      1.18       cgd int	linux_sys_rt_sigprocmask(struct proc *, void *, register_t *);
    767      1.18       cgd int	linux_sys_rt_sigpending(struct proc *, void *, register_t *);
    768      1.18       cgd int	linux_sys_rt_queueinfo(struct proc *, void *, register_t *);
    769      1.18       cgd int	linux_sys_rt_sigsuspend(struct proc *, void *, register_t *);
    770      1.18       cgd int	linux_sys_pread(struct proc *, void *, register_t *);
    771      1.18       cgd int	linux_sys_pwrite(struct proc *, void *, register_t *);
    772      1.30      fvdl int	linux_sys_chown16(struct proc *, void *, register_t *);
    773      1.18       cgd int	sys___getcwd(struct proc *, void *, register_t *);
    774      1.20  christos int	linux_sys_sigaltstack(struct proc *, void *, register_t *);
    775      1.18       cgd int	sys___vfork14(struct proc *, void *, register_t *);
    776      1.41  christos int	linux_sys_ugetrlimit(struct proc *, void *, register_t *);
    777  1.44.4.1       jmc int	linux_sys_mmap2(struct proc *, void *, register_t *);
    778      1.28  jdolecek int	linux_sys_truncate64(struct proc *, void *, register_t *);
    779  1.44.4.2      tron int	linux_sys_ftruncate64(struct proc *, void *, register_t *);
    780      1.27  jdolecek int	linux_sys_stat64(struct proc *, void *, register_t *);
    781      1.27  jdolecek int	linux_sys_lstat64(struct proc *, void *, register_t *);
    782      1.27  jdolecek int	linux_sys_fstat64(struct proc *, void *, register_t *);
    783      1.31      fvdl int	linux_sys_lchown(struct proc *, void *, register_t *);
    784      1.30      fvdl int	sys_getuid(struct proc *, void *, register_t *);
    785      1.30      fvdl int	sys_getgid(struct proc *, void *, register_t *);
    786      1.30      fvdl int	sys_geteuid(struct proc *, void *, register_t *);
    787      1.30      fvdl int	sys_getegid(struct proc *, void *, register_t *);
    788      1.30      fvdl int	sys_setreuid(struct proc *, void *, register_t *);
    789      1.30      fvdl int	sys_setregid(struct proc *, void *, register_t *);
    790      1.31      fvdl int	sys_getgroups(struct proc *, void *, register_t *);
    791      1.31      fvdl int	sys_setgroups(struct proc *, void *, register_t *);
    792      1.30      fvdl int	sys___posix_fchown(struct proc *, void *, register_t *);
    793      1.31      fvdl int	linux_sys_setresuid(struct proc *, void *, register_t *);
    794      1.31      fvdl int	linux_sys_getresuid(struct proc *, void *, register_t *);
    795      1.31      fvdl int	linux_sys_setresgid(struct proc *, void *, register_t *);
    796      1.31      fvdl int	linux_sys_getresgid(struct proc *, void *, register_t *);
    797      1.31      fvdl int	linux_sys_chown(struct proc *, void *, register_t *);
    798      1.30      fvdl int	sys_setuid(struct proc *, void *, register_t *);
    799      1.30      fvdl int	sys_setgid(struct proc *, void *, register_t *);
    800      1.31      fvdl int	linux_sys_setfsuid(struct proc *, void *, register_t *);
    801      1.31      fvdl int	linux_sys_getfsuid(struct proc *, void *, register_t *);
    802      1.44  christos int	linux_sys_getdents64(struct proc *, void *, register_t *);
    803      1.43  christos int	linux_sys_fcntl64(struct proc *, void *, register_t *);
    804       1.5  christos #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
    805