Home | History | Annotate | Line # | Download | only in alpha
linux_syscallargs.h revision 1.12.2.4
      1  1.12.2.2   bouyer /* $NetBSD: linux_syscallargs.h,v 1.12.2.4 2000/12/13 15:49:45 bouyer 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.12.2.4   bouyer  * created from	NetBSD: syscalls.master,v 1.28 2000/12/11 04:55:50 mycroft Exp
      8       1.1      erh  */
      9       1.1      erh 
     10       1.7  thorpej #ifndef _LINUX_SYS__SYSCALLARGS_H_
     11       1.7  thorpej #define _LINUX_SYS__SYSCALLARGS_H_
     12       1.7  thorpej 
     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.12     tron 		struct {						\
     22      1.12     tron 			int8_t pad[ (sizeof (register_t) < sizeof (x))	\
     23      1.12     tron 				? 0					\
     24      1.12     tron 				: sizeof (register_t) - sizeof (x)];	\
     25      1.12     tron 			x datum;					\
     26      1.12     tron 		} be;							\
     27      1.12     tron 	}
     28       1.1      erh 
     29  1.12.2.2   bouyer struct osf1_sys_wait4_args {
     30  1.12.2.2   bouyer 	syscallarg(int) pid;
     31  1.12.2.2   bouyer 	syscallarg(int *) status;
     32  1.12.2.2   bouyer 	syscallarg(int) options;
     33  1.12.2.2   bouyer 	syscallarg(struct osf1_rusage *) rusage;
     34  1.12.2.2   bouyer };
     35  1.12.2.2   bouyer 
     36       1.1      erh struct linux_sys_creat_args {
     37  1.12.2.1   bouyer 	syscallarg(const char *) path;
     38  1.12.2.1   bouyer 	syscallarg(mode_t) mode;
     39       1.1      erh };
     40       1.1      erh 
     41       1.1      erh struct linux_sys_unlink_args {
     42  1.12.2.1   bouyer 	syscallarg(const char *) path;
     43       1.1      erh };
     44       1.1      erh 
     45       1.1      erh struct linux_sys_chdir_args {
     46  1.12.2.1   bouyer 	syscallarg(const char *) path;
     47       1.1      erh };
     48       1.1      erh 
     49       1.1      erh struct linux_sys_mknod_args {
     50  1.12.2.1   bouyer 	syscallarg(const char *) path;
     51       1.1      erh 	syscallarg(int) mode;
     52       1.1      erh 	syscallarg(int) dev;
     53       1.1      erh };
     54       1.1      erh 
     55       1.1      erh struct linux_sys_chmod_args {
     56  1.12.2.1   bouyer 	syscallarg(const char *) path;
     57       1.1      erh 	syscallarg(int) mode;
     58       1.1      erh };
     59       1.1      erh 
     60       1.1      erh struct linux_sys_chown_args {
     61  1.12.2.1   bouyer 	syscallarg(const char *) path;
     62       1.1      erh 	syscallarg(int) uid;
     63       1.1      erh 	syscallarg(int) gid;
     64       1.1      erh };
     65       1.1      erh 
     66       1.1      erh struct linux_sys_brk_args {
     67       1.1      erh 	syscallarg(char *) nsize;
     68       1.1      erh };
     69       1.1      erh 
     70  1.12.2.2   bouyer struct osf1_sys_mount_args {
     71  1.12.2.2   bouyer 	syscallarg(int) type;
     72  1.12.2.2   bouyer 	syscallarg(const char *) path;
     73  1.12.2.2   bouyer 	syscallarg(int) flags;
     74  1.12.2.2   bouyer 	syscallarg(caddr_t) data;
     75  1.12.2.2   bouyer };
     76  1.12.2.2   bouyer 
     77  1.12.2.1   bouyer struct linux_sys_ptrace_args {
     78  1.12.2.1   bouyer 	syscallarg(long) request;
     79  1.12.2.1   bouyer 	syscallarg(long) pid;
     80  1.12.2.1   bouyer 	syscallarg(long) addr;
     81  1.12.2.1   bouyer 	syscallarg(long) data;
     82  1.12.2.1   bouyer };
     83  1.12.2.1   bouyer 
     84       1.1      erh struct linux_sys_access_args {
     85  1.12.2.1   bouyer 	syscallarg(const char *) path;
     86       1.1      erh 	syscallarg(int) flags;
     87       1.1      erh };
     88       1.1      erh 
     89       1.1      erh struct linux_sys_kill_args {
     90       1.1      erh 	syscallarg(int) pid;
     91       1.1      erh 	syscallarg(int) signum;
     92       1.1      erh };
     93       1.1      erh 
     94  1.12.2.2   bouyer struct osf1_sys_set_program_attributes_args {
     95  1.12.2.2   bouyer 	syscallarg(caddr_t) taddr;
     96  1.12.2.2   bouyer 	syscallarg(unsigned long) tsize;
     97  1.12.2.2   bouyer 	syscallarg(caddr_t) daddr;
     98  1.12.2.2   bouyer 	syscallarg(unsigned long) dsize;
     99  1.12.2.2   bouyer };
    100  1.12.2.2   bouyer 
    101       1.1      erh struct linux_sys_open_args {
    102  1.12.2.1   bouyer 	syscallarg(const char *) path;
    103       1.1      erh 	syscallarg(int) flags;
    104       1.1      erh 	syscallarg(int) mode;
    105       1.1      erh };
    106       1.1      erh 
    107       1.1      erh struct linux_sys_sigpending_args {
    108       1.1      erh 	syscallarg(linux_old_sigset_t *) set;
    109       1.1      erh };
    110       1.1      erh 
    111       1.1      erh struct linux_sys_ioctl_args {
    112       1.1      erh 	syscallarg(int) fd;
    113       1.1      erh 	syscallarg(u_long) com;
    114       1.1      erh 	syscallarg(caddr_t) data;
    115       1.1      erh };
    116       1.1      erh 
    117       1.1      erh struct linux_sys_symlink_args {
    118  1.12.2.1   bouyer 	syscallarg(const char *) path;
    119  1.12.2.1   bouyer 	syscallarg(const char *) to;
    120       1.1      erh };
    121       1.1      erh 
    122       1.1      erh struct linux_sys_readlink_args {
    123  1.12.2.1   bouyer 	syscallarg(const char *) name;
    124       1.1      erh 	syscallarg(char *) buf;
    125       1.1      erh 	syscallarg(int) count;
    126       1.1      erh };
    127       1.1      erh 
    128       1.1      erh struct linux_sys_execve_args {
    129  1.12.2.1   bouyer 	syscallarg(const char *) path;
    130       1.1      erh 	syscallarg(char **) argp;
    131       1.1      erh 	syscallarg(char **) envp;
    132       1.1      erh };
    133       1.1      erh 
    134       1.1      erh struct linux_sys_stat_args {
    135  1.12.2.1   bouyer 	syscallarg(const char *) path;
    136       1.1      erh 	syscallarg(struct linux_stat *) sp;
    137       1.1      erh };
    138       1.1      erh 
    139       1.1      erh struct linux_sys_lstat_args {
    140  1.12.2.1   bouyer 	syscallarg(const char *) path;
    141       1.1      erh 	syscallarg(struct linux_stat *) sp;
    142       1.1      erh };
    143       1.1      erh 
    144  1.12.2.2   bouyer struct osf1_sys_setitimer_args {
    145  1.12.2.2   bouyer 	syscallarg(u_int) which;
    146  1.12.2.2   bouyer 	syscallarg(struct osf1_itimerval *) itv;
    147  1.12.2.2   bouyer 	syscallarg(struct osf1_itimerval *) oitv;
    148  1.12.2.2   bouyer };
    149  1.12.2.2   bouyer 
    150       1.1      erh struct linux_sys_fstat_args {
    151       1.1      erh 	syscallarg(int) fd;
    152       1.1      erh 	syscallarg(struct linux_stat *) sp;
    153       1.1      erh };
    154       1.1      erh 
    155       1.1      erh struct linux_sys_fcntl_args {
    156       1.1      erh 	syscallarg(int) fd;
    157       1.1      erh 	syscallarg(int) cmd;
    158       1.1      erh 	syscallarg(void *) arg;
    159       1.1      erh };
    160       1.1      erh 
    161  1.12.2.2   bouyer struct osf1_sys_select_args {
    162  1.12.2.2   bouyer 	syscallarg(u_int) nd;
    163  1.12.2.2   bouyer 	syscallarg(fd_set *) in;
    164  1.12.2.2   bouyer 	syscallarg(fd_set *) ou;
    165  1.12.2.2   bouyer 	syscallarg(fd_set *) ex;
    166  1.12.2.2   bouyer 	syscallarg(struct osf1_timeval *) tv;
    167  1.12.2.2   bouyer };
    168  1.12.2.2   bouyer 
    169       1.1      erh struct linux_sys_socket_args {
    170       1.1      erh 	syscallarg(int) domain;
    171       1.1      erh 	syscallarg(int) type;
    172       1.1      erh 	syscallarg(int) protocol;
    173       1.1      erh };
    174       1.1      erh 
    175  1.12.2.1   bouyer struct linux_sys_connect_args {
    176  1.12.2.1   bouyer 	syscallarg(int) s;
    177  1.12.2.1   bouyer 	syscallarg(const struct sockaddr *) name;
    178  1.12.2.1   bouyer 	syscallarg(unsigned int) namelen;
    179  1.12.2.1   bouyer };
    180  1.12.2.1   bouyer 
    181       1.1      erh struct linux_sys_sigreturn_args {
    182       1.1      erh 	syscallarg(struct linux_sigframe *) sfp;
    183       1.1      erh };
    184       1.1      erh 
    185       1.1      erh struct linux_sys_setsockopt_args {
    186       1.1      erh 	syscallarg(int) s;
    187       1.1      erh 	syscallarg(int) level;
    188       1.1      erh 	syscallarg(int) optname;
    189       1.1      erh 	syscallarg(void *) optval;
    190       1.1      erh 	syscallarg(int) optlen;
    191       1.1      erh };
    192       1.1      erh 
    193       1.1      erh struct linux_sys_sigsuspend_args {
    194       1.1      erh 	syscallarg(caddr_t) restart;
    195       1.1      erh 	syscallarg(int) oldmask;
    196       1.1      erh 	syscallarg(int) mask;
    197       1.1      erh };
    198       1.1      erh 
    199  1.12.2.2   bouyer struct osf1_sys_gettimeofday_args {
    200  1.12.2.2   bouyer 	syscallarg(struct osf1_timeval *) tv;
    201  1.12.2.2   bouyer 	syscallarg(struct osf1_timezone *) tzp;
    202  1.12.2.2   bouyer };
    203  1.12.2.2   bouyer 
    204  1.12.2.2   bouyer struct osf1_sys_getrusage_args {
    205  1.12.2.2   bouyer 	syscallarg(int) who;
    206  1.12.2.2   bouyer 	syscallarg(struct osf1_rusage *) rusage;
    207  1.12.2.2   bouyer };
    208  1.12.2.2   bouyer 
    209       1.1      erh struct linux_sys_getsockopt_args {
    210       1.1      erh 	syscallarg(int) s;
    211       1.1      erh 	syscallarg(int) level;
    212       1.1      erh 	syscallarg(int) optname;
    213       1.1      erh 	syscallarg(void *) optval;
    214       1.1      erh 	syscallarg(int *) optlen;
    215       1.1      erh };
    216       1.1      erh 
    217  1.12.2.2   bouyer struct osf1_sys_settimeofday_args {
    218  1.12.2.2   bouyer 	syscallarg(struct osf1_timeval *) tv;
    219  1.12.2.2   bouyer 	syscallarg(struct osf1_timezone *) tzp;
    220  1.12.2.2   bouyer };
    221  1.12.2.2   bouyer 
    222       1.1      erh struct linux_sys_fchown_args {
    223       1.1      erh 	syscallarg(int) fd;
    224       1.1      erh 	syscallarg(int) uid;
    225       1.1      erh 	syscallarg(int) gid;
    226       1.1      erh };
    227       1.1      erh 
    228       1.1      erh struct linux_sys_recvfrom_args {
    229       1.1      erh 	syscallarg(int) s;
    230       1.1      erh 	syscallarg(void *) buf;
    231       1.1      erh 	syscallarg(int) len;
    232       1.1      erh 	syscallarg(int) flags;
    233       1.1      erh 	syscallarg(struct sockaddr *) from;
    234       1.1      erh 	syscallarg(int *) fromlen;
    235       1.1      erh };
    236       1.1      erh 
    237       1.1      erh struct linux_sys_setreuid_args {
    238       1.1      erh 	syscallarg(int) ruid;
    239       1.1      erh 	syscallarg(int) euid;
    240       1.1      erh };
    241       1.1      erh 
    242       1.1      erh struct linux_sys_setregid_args {
    243       1.1      erh 	syscallarg(int) rgid;
    244       1.1      erh 	syscallarg(int) egid;
    245       1.1      erh };
    246       1.1      erh 
    247       1.1      erh struct linux_sys_rename_args {
    248  1.12.2.1   bouyer 	syscallarg(const char *) from;
    249  1.12.2.1   bouyer 	syscallarg(const char *) to;
    250       1.1      erh };
    251       1.1      erh 
    252       1.1      erh struct linux_sys_truncate_args {
    253  1.12.2.1   bouyer 	syscallarg(const char *) path;
    254       1.1      erh 	syscallarg(long) length;
    255       1.1      erh };
    256       1.1      erh 
    257       1.1      erh struct linux_sys_sendto_args {
    258       1.1      erh 	syscallarg(int) s;
    259       1.1      erh 	syscallarg(void *) msg;
    260       1.1      erh 	syscallarg(int) len;
    261       1.1      erh 	syscallarg(int) flags;
    262       1.1      erh 	syscallarg(struct sockaddr *) to;
    263       1.1      erh 	syscallarg(int) tolen;
    264       1.1      erh };
    265       1.1      erh 
    266       1.1      erh struct linux_sys_socketpair_args {
    267       1.1      erh 	syscallarg(int) domain;
    268       1.1      erh 	syscallarg(int) type;
    269       1.1      erh 	syscallarg(int) protocol;
    270       1.1      erh 	syscallarg(int *) rsv;
    271       1.1      erh };
    272       1.1      erh 
    273       1.1      erh struct linux_sys_mkdir_args {
    274  1.12.2.1   bouyer 	syscallarg(const char *) path;
    275       1.1      erh 	syscallarg(int) mode;
    276       1.1      erh };
    277       1.1      erh 
    278       1.1      erh struct linux_sys_rmdir_args {
    279  1.12.2.1   bouyer 	syscallarg(const char *) path;
    280       1.1      erh };
    281       1.1      erh 
    282  1.12.2.2   bouyer struct osf1_sys_utimes_args {
    283  1.12.2.2   bouyer 	syscallarg(const char *) path;
    284  1.12.2.2   bouyer 	syscallarg(const struct osf1_timeval *) tptr;
    285  1.12.2.2   bouyer };
    286  1.12.2.2   bouyer 
    287       1.1      erh struct linux_sys_sigaction_args {
    288       1.1      erh 	syscallarg(int) signum;
    289       1.1      erh 	syscallarg(const struct linux_old_sigaction *) nsa;
    290       1.1      erh 	syscallarg(struct linux_old_sigaction *) osa;
    291       1.1      erh };
    292       1.1      erh 
    293  1.12.2.2   bouyer struct osf1_sys_statfs_args {
    294  1.12.2.2   bouyer 	syscallarg(const char *) path;
    295  1.12.2.2   bouyer 	syscallarg(struct osf1_statfs *) buf;
    296  1.12.2.2   bouyer 	syscallarg(int) len;
    297  1.12.2.2   bouyer };
    298  1.12.2.2   bouyer 
    299  1.12.2.2   bouyer struct osf1_sys_fstatfs_args {
    300  1.12.2.2   bouyer 	syscallarg(int) fd;
    301  1.12.2.2   bouyer 	syscallarg(struct osf1_statfs *) buf;
    302  1.12.2.2   bouyer 	syscallarg(int) len;
    303  1.12.2.2   bouyer };
    304  1.12.2.2   bouyer 
    305  1.12.2.3   bouyer struct linux_sys_setdomainname_args {
    306  1.12.2.3   bouyer 	syscallarg(char *) domainname;
    307  1.12.2.3   bouyer 	syscallarg(int) len;
    308  1.12.2.3   bouyer };
    309  1.12.2.3   bouyer 
    310       1.1      erh struct linux_sys_olduname_args {
    311       1.1      erh 	syscallarg(struct linux_old_utsname *) up;
    312       1.1      erh };
    313       1.1      erh 
    314       1.1      erh struct linux_sys_lchown_args {
    315       1.1      erh 	syscallarg(char *) path;
    316       1.1      erh 	syscallarg(int) uid;
    317       1.1      erh 	syscallarg(int) gid;
    318       1.1      erh };
    319       1.1      erh 
    320       1.1      erh struct linux_sys_msync_args {
    321       1.1      erh 	syscallarg(caddr_t) addr;
    322       1.1      erh 	syscallarg(int) len;
    323       1.1      erh 	syscallarg(int) fl;
    324       1.1      erh };
    325       1.1      erh 
    326       1.1      erh struct linux_sys_getpgid_args {
    327       1.1      erh 	syscallarg(int) pid;
    328       1.1      erh };
    329       1.1      erh 
    330  1.12.2.2   bouyer struct osf1_sys_sysinfo_args {
    331  1.12.2.2   bouyer 	syscallarg(int) cmd;
    332  1.12.2.2   bouyer 	syscallarg(char) buf;
    333  1.12.2.2   bouyer 	syscallarg(long) len;
    334  1.12.2.2   bouyer };
    335  1.12.2.2   bouyer 
    336  1.12.2.2   bouyer struct osf1_sys_usleep_thread_args {
    337  1.12.2.2   bouyer 	syscallarg(struct osf1_timeval *) sleep;
    338  1.12.2.2   bouyer 	syscallarg(struct osf1_timeval *) slept;
    339  1.12.2.2   bouyer };
    340  1.12.2.2   bouyer 
    341  1.12.2.2   bouyer struct osf1_sys_getsysinfo_args {
    342  1.12.2.2   bouyer 	syscallarg(u_long) op;
    343  1.12.2.2   bouyer 	syscallarg(caddr_t) buffer;
    344  1.12.2.2   bouyer 	syscallarg(u_long) nbytes;
    345  1.12.2.2   bouyer 	syscallarg(caddr_t) arg;
    346  1.12.2.2   bouyer 	syscallarg(u_long) flag;
    347  1.12.2.2   bouyer };
    348  1.12.2.2   bouyer 
    349  1.12.2.2   bouyer struct osf1_sys_setsysinfo_args {
    350  1.12.2.2   bouyer 	syscallarg(u_long) op;
    351  1.12.2.2   bouyer 	syscallarg(caddr_t) buffer;
    352  1.12.2.2   bouyer 	syscallarg(u_long) nbytes;
    353  1.12.2.2   bouyer 	syscallarg(caddr_t) arg;
    354  1.12.2.2   bouyer 	syscallarg(u_long) flag;
    355  1.12.2.2   bouyer };
    356  1.12.2.2   bouyer 
    357       1.1      erh struct linux_sys_fdatasync_args {
    358       1.1      erh 	syscallarg(int) fd;
    359       1.1      erh };
    360       1.1      erh 
    361  1.12.2.3   bouyer struct linux_sys_swapoff_args {
    362  1.12.2.3   bouyer 	syscallarg(const char *) path;
    363  1.12.2.3   bouyer };
    364  1.12.2.3   bouyer 
    365       1.1      erh struct linux_sys_getdents_args {
    366       1.1      erh 	syscallarg(int) fd;
    367       1.1      erh 	syscallarg(struct linux_dirent *) dent;
    368       1.1      erh 	syscallarg(unsigned int) count;
    369       1.1      erh };
    370       1.1      erh 
    371  1.12.2.1   bouyer struct linux_sys_reboot_args {
    372  1.12.2.1   bouyer 	syscallarg(int) magic1;
    373  1.12.2.1   bouyer 	syscallarg(int) magic2;
    374  1.12.2.1   bouyer 	syscallarg(int) cmd;
    375  1.12.2.1   bouyer 	syscallarg(void *) arg;
    376  1.12.2.1   bouyer };
    377  1.12.2.1   bouyer 
    378  1.12.2.1   bouyer struct linux_sys_clone_args {
    379  1.12.2.1   bouyer 	syscallarg(int) flags;
    380  1.12.2.1   bouyer 	syscallarg(void *) stack;
    381  1.12.2.1   bouyer };
    382  1.12.2.1   bouyer 
    383       1.1      erh struct linux_sys_uselib_args {
    384  1.12.2.3   bouyer 	syscallarg(const char *) path;
    385       1.1      erh };
    386       1.1      erh 
    387       1.1      erh struct linux_sys___sysctl_args {
    388       1.1      erh 	syscallarg(struct linux___sysctl *) lsp;
    389       1.1      erh };
    390       1.1      erh 
    391  1.12.2.3   bouyer struct linux_sys_swapon_args {
    392  1.12.2.3   bouyer 	syscallarg(const char *) name;
    393  1.12.2.3   bouyer };
    394  1.12.2.3   bouyer 
    395       1.1      erh struct linux_sys_times_args {
    396       1.1      erh 	syscallarg(struct times *) tms;
    397       1.1      erh };
    398       1.1      erh 
    399       1.1      erh struct linux_sys_personality_args {
    400       1.1      erh 	syscallarg(int) per;
    401       1.1      erh };
    402       1.1      erh 
    403  1.12.2.1   bouyer struct linux_sys_setfsuid_args {
    404  1.12.2.1   bouyer 	syscallarg(uid_t) uid;
    405  1.12.2.1   bouyer };
    406  1.12.2.1   bouyer 
    407       1.1      erh struct linux_sys_statfs_args {
    408  1.12.2.1   bouyer 	syscallarg(const char *) path;
    409       1.1      erh 	syscallarg(struct linux_statfs *) sp;
    410       1.1      erh };
    411       1.1      erh 
    412       1.1      erh struct linux_sys_fstatfs_args {
    413       1.1      erh 	syscallarg(int) fd;
    414       1.1      erh 	syscallarg(struct linux_statfs *) sp;
    415       1.1      erh };
    416       1.1      erh 
    417      1.12     tron struct linux_sys_sched_setparam_args {
    418      1.12     tron 	syscallarg(pid_t) pid;
    419      1.12     tron 	syscallarg(const struct linux_sched_param *) sp;
    420      1.12     tron };
    421      1.12     tron 
    422      1.12     tron struct linux_sys_sched_getparam_args {
    423      1.12     tron 	syscallarg(pid_t) pid;
    424      1.12     tron 	syscallarg(struct linux_sched_param *) sp;
    425      1.12     tron };
    426      1.12     tron 
    427      1.12     tron struct linux_sys_sched_setscheduler_args {
    428      1.12     tron 	syscallarg(pid_t) pid;
    429      1.12     tron 	syscallarg(int) policy;
    430      1.12     tron 	syscallarg(const struct linux_sched_param *) sp;
    431      1.12     tron };
    432      1.12     tron 
    433      1.12     tron struct linux_sys_sched_getscheduler_args {
    434      1.12     tron 	syscallarg(pid_t) pid;
    435      1.12     tron };
    436      1.12     tron 
    437      1.12     tron struct linux_sys_sched_get_priority_max_args {
    438      1.12     tron 	syscallarg(int) policy;
    439      1.12     tron };
    440      1.12     tron 
    441      1.12     tron struct linux_sys_sched_get_priority_min_args {
    442      1.12     tron 	syscallarg(int) policy;
    443      1.12     tron };
    444      1.12     tron 
    445       1.1      erh struct linux_sys_uname_args {
    446       1.1      erh 	syscallarg(struct linux_utsname *) up;
    447       1.1      erh };
    448       1.1      erh 
    449       1.1      erh struct linux_sys_mremap_args {
    450       1.1      erh 	syscallarg(void *) old_address;
    451       1.1      erh 	syscallarg(size_t) old_size;
    452       1.1      erh 	syscallarg(size_t) new_size;
    453       1.1      erh 	syscallarg(u_long) flags;
    454       1.1      erh };
    455       1.1      erh 
    456      1.11  thorpej struct linux_sys_setresuid_args {
    457      1.11  thorpej 	syscallarg(uid_t) ruid;
    458      1.11  thorpej 	syscallarg(uid_t) euid;
    459      1.11  thorpej 	syscallarg(uid_t) suid;
    460      1.11  thorpej };
    461      1.11  thorpej 
    462      1.11  thorpej struct linux_sys_getresuid_args {
    463      1.11  thorpej 	syscallarg(uid_t *) ruid;
    464      1.11  thorpej 	syscallarg(uid_t *) euid;
    465      1.11  thorpej 	syscallarg(uid_t *) suid;
    466      1.11  thorpej };
    467      1.11  thorpej 
    468  1.12.2.1   bouyer struct linux_sys_pread_args {
    469  1.12.2.1   bouyer 	syscallarg(int) fd;
    470  1.12.2.1   bouyer 	syscallarg(char *) buf;
    471  1.12.2.1   bouyer 	syscallarg(size_t) nbyte;
    472  1.12.2.1   bouyer 	syscallarg(linux_off_t) offset;
    473  1.12.2.1   bouyer };
    474  1.12.2.1   bouyer 
    475  1.12.2.1   bouyer struct linux_sys_pwrite_args {
    476  1.12.2.1   bouyer 	syscallarg(int) fd;
    477  1.12.2.1   bouyer 	syscallarg(char *) buf;
    478  1.12.2.1   bouyer 	syscallarg(size_t) nbyte;
    479  1.12.2.1   bouyer 	syscallarg(linux_off_t) offset;
    480  1.12.2.1   bouyer };
    481  1.12.2.1   bouyer 
    482       1.1      erh struct linux_sys_rt_sigreturn_args {
    483       1.1      erh 	syscallarg(struct linux_rt_sigframe *) sfp;
    484       1.1      erh };
    485       1.1      erh 
    486       1.1      erh struct linux_sys_rt_sigaction_args {
    487       1.1      erh 	syscallarg(int) signum;
    488       1.1      erh 	syscallarg(const struct linux_sigaction *) nsa;
    489       1.1      erh 	syscallarg(struct linux_sigaction *) osa;
    490       1.1      erh 	syscallarg(size_t) sigsetsize;
    491       1.1      erh };
    492       1.1      erh 
    493       1.1      erh struct linux_sys_rt_sigprocmask_args {
    494       1.1      erh 	syscallarg(int) how;
    495       1.1      erh 	syscallarg(const linux_sigset_t *) set;
    496       1.1      erh 	syscallarg(linux_sigset_t *) oset;
    497       1.1      erh 	syscallarg(size_t) sigsetsize;
    498       1.1      erh };
    499       1.1      erh 
    500       1.1      erh struct linux_sys_rt_sigpending_args {
    501       1.1      erh 	syscallarg(linux_sigset_t *) set;
    502       1.1      erh 	syscallarg(size_t) sigsetsize;
    503       1.1      erh };
    504       1.1      erh 
    505       1.1      erh struct linux_sys_rt_queueinfo_args {
    506       1.1      erh 	syscallarg(int) pid;
    507       1.1      erh 	syscallarg(int) signum;
    508       1.4      erh 	syscallarg(linux_siginfo_t *) uinfo;
    509       1.1      erh };
    510       1.1      erh 
    511       1.1      erh struct linux_sys_rt_sigsuspend_args {
    512       1.1      erh 	syscallarg(linux_sigset_t *) unewset;
    513       1.1      erh 	syscallarg(size_t) sigsetsize;
    514       1.1      erh };
    515       1.1      erh 
    516       1.1      erh struct linux_sys_select_args {
    517       1.1      erh 	syscallarg(int) nfds;
    518       1.1      erh 	syscallarg(fd_set *) readfds;
    519       1.1      erh 	syscallarg(fd_set *) writefds;
    520       1.1      erh 	syscallarg(fd_set *) exceptfds;
    521       1.1      erh 	syscallarg(struct timeval *) timeout;
    522       1.1      erh };
    523       1.1      erh 
    524       1.1      erh struct linux_sys_wait4_args {
    525       1.1      erh 	syscallarg(int) pid;
    526       1.1      erh 	syscallarg(int *) status;
    527       1.1      erh 	syscallarg(int) options;
    528       1.1      erh 	syscallarg(struct rusage *) rusage;
    529       1.1      erh };
    530       1.1      erh 
    531       1.1      erh /*
    532       1.1      erh  * System call prototypes.
    533       1.1      erh  */
    534       1.1      erh 
    535  1.12.2.1   bouyer int	sys_nosys(struct proc *, void *, register_t *);
    536  1.12.2.1   bouyer int	sys_exit(struct proc *, void *, register_t *);
    537  1.12.2.1   bouyer int	sys_fork(struct proc *, void *, register_t *);
    538  1.12.2.1   bouyer int	sys_read(struct proc *, void *, register_t *);
    539  1.12.2.1   bouyer int	sys_write(struct proc *, void *, register_t *);
    540  1.12.2.1   bouyer int	sys_close(struct proc *, void *, register_t *);
    541  1.12.2.2   bouyer int	osf1_sys_wait4(struct proc *, void *, register_t *);
    542  1.12.2.1   bouyer int	linux_sys_creat(struct proc *, void *, register_t *);
    543  1.12.2.1   bouyer int	sys_link(struct proc *, void *, register_t *);
    544  1.12.2.1   bouyer int	linux_sys_unlink(struct proc *, void *, register_t *);
    545  1.12.2.1   bouyer int	linux_sys_chdir(struct proc *, void *, register_t *);
    546  1.12.2.1   bouyer int	sys_fchdir(struct proc *, void *, register_t *);
    547  1.12.2.1   bouyer int	linux_sys_mknod(struct proc *, void *, register_t *);
    548  1.12.2.1   bouyer int	linux_sys_chmod(struct proc *, void *, register_t *);
    549  1.12.2.1   bouyer int	linux_sys_chown(struct proc *, void *, register_t *);
    550  1.12.2.1   bouyer int	linux_sys_brk(struct proc *, void *, register_t *);
    551  1.12.2.1   bouyer int	compat_43_sys_lseek(struct proc *, void *, register_t *);
    552  1.12.2.4   bouyer int	sys_getpid_with_ppid(struct proc *, void *, register_t *);
    553  1.12.2.2   bouyer int	osf1_sys_mount(struct proc *, void *, register_t *);
    554  1.12.2.1   bouyer int	sys_setuid(struct proc *, void *, register_t *);
    555  1.12.2.4   bouyer int	sys_getuid_with_euid(struct proc *, void *, register_t *);
    556  1.12.2.1   bouyer int	linux_sys_ptrace(struct proc *, void *, register_t *);
    557  1.12.2.1   bouyer int	linux_sys_access(struct proc *, void *, register_t *);
    558  1.12.2.1   bouyer int	sys_sync(struct proc *, void *, register_t *);
    559  1.12.2.1   bouyer int	linux_sys_kill(struct proc *, void *, register_t *);
    560  1.12.2.1   bouyer int	sys_setpgid(struct proc *, void *, register_t *);
    561  1.12.2.1   bouyer int	sys_dup(struct proc *, void *, register_t *);
    562  1.12.2.1   bouyer int	linux_sys_pipe(struct proc *, void *, register_t *);
    563  1.12.2.2   bouyer int	osf1_sys_set_program_attributes(struct proc *, void *, register_t *);
    564  1.12.2.1   bouyer int	linux_sys_open(struct proc *, void *, register_t *);
    565  1.12.2.4   bouyer int	sys_getgid_with_egid(struct proc *, void *, register_t *);
    566  1.12.2.2   bouyer int	compat_13_sys_sigprocmask(struct proc *, void *, register_t *);
    567  1.12.2.1   bouyer int	sys_acct(struct proc *, void *, register_t *);
    568  1.12.2.1   bouyer int	linux_sys_sigpending(struct proc *, void *, register_t *);
    569  1.12.2.1   bouyer int	linux_sys_ioctl(struct proc *, void *, register_t *);
    570  1.12.2.1   bouyer int	linux_sys_symlink(struct proc *, void *, register_t *);
    571  1.12.2.1   bouyer int	linux_sys_readlink(struct proc *, void *, register_t *);
    572  1.12.2.1   bouyer int	linux_sys_execve(struct proc *, void *, register_t *);
    573  1.12.2.1   bouyer int	sys_umask(struct proc *, void *, register_t *);
    574  1.12.2.1   bouyer int	sys_chroot(struct proc *, void *, register_t *);
    575  1.12.2.1   bouyer int	sys_getpgrp(struct proc *, void *, register_t *);
    576  1.12.2.1   bouyer int	compat_43_sys_getpagesize(struct proc *, void *, register_t *);
    577  1.12.2.1   bouyer int	sys___vfork14(struct proc *, void *, register_t *);
    578  1.12.2.1   bouyer int	linux_sys_stat(struct proc *, void *, register_t *);
    579  1.12.2.1   bouyer int	linux_sys_lstat(struct proc *, void *, register_t *);
    580  1.12.2.1   bouyer int	linux_sys_mmap(struct proc *, void *, register_t *);
    581  1.12.2.1   bouyer int	sys_munmap(struct proc *, void *, register_t *);
    582  1.12.2.1   bouyer int	sys_mprotect(struct proc *, void *, register_t *);
    583  1.12.2.1   bouyer int	sys_getgroups(struct proc *, void *, register_t *);
    584  1.12.2.1   bouyer int	sys_setgroups(struct proc *, void *, register_t *);
    585  1.12.2.2   bouyer int	osf1_sys_setitimer(struct proc *, void *, register_t *);
    586  1.12.2.1   bouyer int	compat_43_sys_gethostname(struct proc *, void *, register_t *);
    587  1.12.2.1   bouyer int	compat_43_sys_sethostname(struct proc *, void *, register_t *);
    588  1.12.2.1   bouyer int	sys_dup2(struct proc *, void *, register_t *);
    589  1.12.2.1   bouyer int	linux_sys_fstat(struct proc *, void *, register_t *);
    590  1.12.2.1   bouyer int	linux_sys_fcntl(struct proc *, void *, register_t *);
    591  1.12.2.2   bouyer int	osf1_sys_select(struct proc *, void *, register_t *);
    592  1.12.2.1   bouyer int	sys_poll(struct proc *, void *, register_t *);
    593  1.12.2.1   bouyer int	sys_fsync(struct proc *, void *, register_t *);
    594  1.12.2.1   bouyer int	sys_setpriority(struct proc *, void *, register_t *);
    595  1.12.2.1   bouyer int	linux_sys_socket(struct proc *, void *, register_t *);
    596  1.12.2.1   bouyer int	linux_sys_connect(struct proc *, void *, register_t *);
    597  1.12.2.1   bouyer int	compat_43_sys_accept(struct proc *, void *, register_t *);
    598  1.12.2.1   bouyer int	sys_getpriority(struct proc *, void *, register_t *);
    599  1.12.2.1   bouyer int	compat_43_sys_send(struct proc *, void *, register_t *);
    600  1.12.2.1   bouyer int	compat_43_sys_recv(struct proc *, void *, register_t *);
    601  1.12.2.1   bouyer int	linux_sys_sigreturn(struct proc *, void *, register_t *);
    602  1.12.2.1   bouyer int	sys_bind(struct proc *, void *, register_t *);
    603  1.12.2.1   bouyer int	linux_sys_setsockopt(struct proc *, void *, register_t *);
    604  1.12.2.1   bouyer int	sys_listen(struct proc *, void *, register_t *);
    605  1.12.2.1   bouyer int	linux_sys_sigsuspend(struct proc *, void *, register_t *);
    606  1.12.2.2   bouyer int	compat_43_sys_sigstack(struct proc *, void *, register_t *);
    607  1.12.2.1   bouyer int	sys_recvmsg(struct proc *, void *, register_t *);
    608  1.12.2.1   bouyer int	sys_sendmsg(struct proc *, void *, register_t *);
    609  1.12.2.2   bouyer int	osf1_sys_gettimeofday(struct proc *, void *, register_t *);
    610  1.12.2.2   bouyer int	osf1_sys_getrusage(struct proc *, void *, register_t *);
    611  1.12.2.1   bouyer int	linux_sys_getsockopt(struct proc *, void *, register_t *);
    612  1.12.2.1   bouyer int	sys_readv(struct proc *, void *, register_t *);
    613  1.12.2.1   bouyer int	sys_writev(struct proc *, void *, register_t *);
    614  1.12.2.2   bouyer int	osf1_sys_settimeofday(struct proc *, void *, register_t *);
    615  1.12.2.1   bouyer int	linux_sys_fchown(struct proc *, void *, register_t *);
    616  1.12.2.1   bouyer int	sys_fchmod(struct proc *, void *, register_t *);
    617  1.12.2.1   bouyer int	linux_sys_recvfrom(struct proc *, void *, register_t *);
    618  1.12.2.1   bouyer int	linux_sys_setreuid(struct proc *, void *, register_t *);
    619  1.12.2.1   bouyer int	linux_sys_setregid(struct proc *, void *, register_t *);
    620  1.12.2.1   bouyer int	linux_sys_rename(struct proc *, void *, register_t *);
    621  1.12.2.1   bouyer int	linux_sys_truncate(struct proc *, void *, register_t *);
    622  1.12.2.1   bouyer int	compat_43_sys_ftruncate(struct proc *, void *, register_t *);
    623  1.12.2.1   bouyer int	sys_flock(struct proc *, void *, register_t *);
    624  1.12.2.1   bouyer int	sys_setgid(struct proc *, void *, register_t *);
    625  1.12.2.1   bouyer int	linux_sys_sendto(struct proc *, void *, register_t *);
    626  1.12.2.1   bouyer int	sys_shutdown(struct proc *, void *, register_t *);
    627  1.12.2.1   bouyer int	linux_sys_socketpair(struct proc *, void *, register_t *);
    628  1.12.2.1   bouyer int	linux_sys_mkdir(struct proc *, void *, register_t *);
    629  1.12.2.1   bouyer int	linux_sys_rmdir(struct proc *, void *, register_t *);
    630  1.12.2.2   bouyer int	osf1_sys_utimes(struct proc *, void *, register_t *);
    631  1.12.2.1   bouyer int	compat_43_sys_getpeername(struct proc *, void *, register_t *);
    632  1.12.2.1   bouyer int	compat_43_sys_getrlimit(struct proc *, void *, register_t *);
    633  1.12.2.1   bouyer int	compat_43_sys_setrlimit(struct proc *, void *, register_t *);
    634  1.12.2.1   bouyer int	sys_setsid(struct proc *, void *, register_t *);
    635  1.12.2.1   bouyer int	compat_43_sys_getsockname(struct proc *, void *, register_t *);
    636  1.12.2.1   bouyer int	linux_sys_sigaction(struct proc *, void *, register_t *);
    637  1.12.2.2   bouyer int	compat_43_sys_getdirentries(struct proc *, void *, register_t *);
    638  1.12.2.2   bouyer int	osf1_sys_statfs(struct proc *, void *, register_t *);
    639  1.12.2.2   bouyer int	osf1_sys_fstatfs(struct proc *, void *, register_t *);
    640  1.12.2.2   bouyer int	compat_09_sys_getdomainname(struct proc *, void *, register_t *);
    641  1.12.2.3   bouyer int	linux_sys_setdomainname(struct proc *, void *, register_t *);
    642       1.1      erh #ifdef SYSVMSG
    643  1.12.2.1   bouyer int	linux_sys_msgctl(struct proc *, void *, register_t *);
    644  1.12.2.1   bouyer int	sys_msgget(struct proc *, void *, register_t *);
    645  1.12.2.1   bouyer int	sys_msgrcv(struct proc *, void *, register_t *);
    646  1.12.2.1   bouyer int	sys_msgsnd(struct proc *, void *, register_t *);
    647       1.1      erh #else
    648       1.1      erh #endif
    649       1.1      erh #ifdef SYSVSEM
    650  1.12.2.1   bouyer int	linux_sys_semctl(struct proc *, void *, register_t *);
    651  1.12.2.1   bouyer int	sys_semget(struct proc *, void *, register_t *);
    652  1.12.2.1   bouyer int	sys_semop(struct proc *, void *, register_t *);
    653       1.1      erh #else
    654       1.1      erh #endif
    655  1.12.2.1   bouyer int	linux_sys_olduname(struct proc *, void *, register_t *);
    656  1.12.2.1   bouyer int	linux_sys_lchown(struct proc *, void *, register_t *);
    657       1.1      erh #ifdef SYSVSHM
    658  1.12.2.1   bouyer int	linux_sys_shmat(struct proc *, void *, register_t *);
    659  1.12.2.1   bouyer int	linux_sys_shmctl(struct proc *, void *, register_t *);
    660  1.12.2.1   bouyer int	sys_shmdt(struct proc *, void *, register_t *);
    661  1.12.2.1   bouyer int	sys_shmget(struct proc *, void *, register_t *);
    662       1.1      erh #else
    663       1.1      erh #endif
    664  1.12.2.1   bouyer int	linux_sys_msync(struct proc *, void *, register_t *);
    665  1.12.2.1   bouyer int	linux_sys_getpgid(struct proc *, void *, register_t *);
    666  1.12.2.1   bouyer int	sys_getsid(struct proc *, void *, register_t *);
    667  1.12.2.2   bouyer int	osf1_sys_sysinfo(struct proc *, void *, register_t *);
    668  1.12.2.2   bouyer int	osf1_sys_usleep_thread(struct proc *, void *, register_t *);
    669  1.12.2.2   bouyer int	osf1_sys_getsysinfo(struct proc *, void *, register_t *);
    670  1.12.2.2   bouyer int	osf1_sys_setsysinfo(struct proc *, void *, register_t *);
    671  1.12.2.1   bouyer int	linux_sys_fdatasync(struct proc *, void *, register_t *);
    672  1.12.2.3   bouyer int	linux_sys_swapoff(struct proc *, void *, register_t *);
    673  1.12.2.1   bouyer int	linux_sys_getdents(struct proc *, void *, register_t *);
    674  1.12.2.1   bouyer int	linux_sys_reboot(struct proc *, void *, register_t *);
    675  1.12.2.1   bouyer int	linux_sys_clone(struct proc *, void *, register_t *);
    676       1.1      erh #ifdef EXEC_AOUT
    677  1.12.2.1   bouyer int	linux_sys_uselib(struct proc *, void *, register_t *);
    678       1.1      erh #else
    679       1.1      erh #endif
    680  1.12.2.1   bouyer int	sys_mlock(struct proc *, void *, register_t *);
    681  1.12.2.1   bouyer int	sys_munlock(struct proc *, void *, register_t *);
    682  1.12.2.2   bouyer int	sys_mlockall(struct proc *, void *, register_t *);
    683  1.12.2.2   bouyer int	sys_munlockall(struct proc *, void *, register_t *);
    684  1.12.2.1   bouyer int	linux_sys___sysctl(struct proc *, void *, register_t *);
    685  1.12.2.3   bouyer int	linux_sys_swapon(struct proc *, void *, register_t *);
    686  1.12.2.1   bouyer int	linux_sys_times(struct proc *, void *, register_t *);
    687  1.12.2.1   bouyer int	linux_sys_personality(struct proc *, void *, register_t *);
    688  1.12.2.1   bouyer int	linux_sys_setfsuid(struct proc *, void *, register_t *);
    689  1.12.2.1   bouyer int	linux_sys_statfs(struct proc *, void *, register_t *);
    690  1.12.2.1   bouyer int	linux_sys_fstatfs(struct proc *, void *, register_t *);
    691  1.12.2.1   bouyer int	linux_sys_sched_setparam(struct proc *, void *, register_t *);
    692  1.12.2.1   bouyer int	linux_sys_sched_getparam(struct proc *, void *, register_t *);
    693  1.12.2.1   bouyer int	linux_sys_sched_setscheduler(struct proc *, void *, register_t *);
    694  1.12.2.1   bouyer int	linux_sys_sched_getscheduler(struct proc *, void *, register_t *);
    695  1.12.2.1   bouyer int	linux_sys_sched_yield(struct proc *, void *, register_t *);
    696  1.12.2.1   bouyer int	linux_sys_sched_get_priority_max(struct proc *, void *, register_t *);
    697  1.12.2.1   bouyer int	linux_sys_sched_get_priority_min(struct proc *, void *, register_t *);
    698  1.12.2.1   bouyer int	linux_sys_uname(struct proc *, void *, register_t *);
    699  1.12.2.1   bouyer int	sys_nanosleep(struct proc *, void *, register_t *);
    700  1.12.2.1   bouyer int	linux_sys_mremap(struct proc *, void *, register_t *);
    701  1.12.2.1   bouyer int	linux_sys_setresuid(struct proc *, void *, register_t *);
    702  1.12.2.1   bouyer int	linux_sys_getresuid(struct proc *, void *, register_t *);
    703  1.12.2.1   bouyer int	linux_sys_pread(struct proc *, void *, register_t *);
    704  1.12.2.1   bouyer int	linux_sys_pwrite(struct proc *, void *, register_t *);
    705  1.12.2.1   bouyer int	linux_sys_rt_sigreturn(struct proc *, void *, register_t *);
    706  1.12.2.1   bouyer int	linux_sys_rt_sigaction(struct proc *, void *, register_t *);
    707  1.12.2.1   bouyer int	linux_sys_rt_sigprocmask(struct proc *, void *, register_t *);
    708  1.12.2.1   bouyer int	linux_sys_rt_sigpending(struct proc *, void *, register_t *);
    709  1.12.2.1   bouyer int	linux_sys_rt_queueinfo(struct proc *, void *, register_t *);
    710  1.12.2.1   bouyer int	linux_sys_rt_sigsuspend(struct proc *, void *, register_t *);
    711  1.12.2.1   bouyer int	linux_sys_select(struct proc *, void *, register_t *);
    712  1.12.2.1   bouyer int	sys_gettimeofday(struct proc *, void *, register_t *);
    713  1.12.2.1   bouyer int	sys_settimeofday(struct proc *, void *, register_t *);
    714  1.12.2.1   bouyer int	sys_getitimer(struct proc *, void *, register_t *);
    715  1.12.2.1   bouyer int	sys_setitimer(struct proc *, void *, register_t *);
    716  1.12.2.1   bouyer int	sys_utimes(struct proc *, void *, register_t *);
    717  1.12.2.1   bouyer int	sys_getrusage(struct proc *, void *, register_t *);
    718  1.12.2.1   bouyer int	linux_sys_wait4(struct proc *, void *, register_t *);
    719  1.12.2.1   bouyer int	sys___getcwd(struct proc *, void *, register_t *);
    720       1.7  thorpej #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
    721