Home | History | Annotate | Line # | Download | only in i386
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:47 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.49 2000/12/12 22:23:02 jdolecek Exp
      8       1.1       erh  */
      9       1.1       erh 
     10       1.5  christos #ifndef _LINUX_SYS__SYSCALLARGS_H_
     11       1.5  christos #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.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.1       erh struct linux_sys_open_args {
     30       1.5  christos 	syscallarg(const char *) path;
     31       1.1       erh 	syscallarg(int) flags;
     32       1.1       erh 	syscallarg(int) mode;
     33       1.1       erh };
     34       1.1       erh 
     35       1.1       erh struct linux_sys_waitpid_args {
     36       1.1       erh 	syscallarg(int) pid;
     37       1.1       erh 	syscallarg(int *) status;
     38       1.1       erh 	syscallarg(int) options;
     39       1.1       erh };
     40       1.1       erh 
     41       1.1       erh struct linux_sys_creat_args {
     42       1.5  christos 	syscallarg(const char *) path;
     43       1.1       erh 	syscallarg(int) mode;
     44       1.1       erh };
     45       1.1       erh 
     46       1.1       erh struct linux_sys_unlink_args {
     47       1.5  christos 	syscallarg(const char *) path;
     48       1.1       erh };
     49       1.1       erh 
     50       1.1       erh struct linux_sys_execve_args {
     51       1.5  christos 	syscallarg(const char *) path;
     52       1.1       erh 	syscallarg(char **) argp;
     53       1.1       erh 	syscallarg(char **) envp;
     54       1.1       erh };
     55       1.1       erh 
     56       1.1       erh struct linux_sys_chdir_args {
     57       1.5  christos 	syscallarg(const char *) path;
     58       1.1       erh };
     59       1.1       erh 
     60       1.1       erh struct linux_sys_time_args {
     61       1.1       erh 	syscallarg(linux_time_t *) t;
     62       1.1       erh };
     63       1.1       erh 
     64       1.1       erh struct linux_sys_mknod_args {
     65       1.5  christos 	syscallarg(const char *) path;
     66       1.1       erh 	syscallarg(int) mode;
     67       1.1       erh 	syscallarg(int) dev;
     68       1.1       erh };
     69       1.1       erh 
     70       1.1       erh struct linux_sys_chmod_args {
     71       1.5  christos 	syscallarg(const char *) path;
     72       1.1       erh 	syscallarg(int) mode;
     73       1.1       erh };
     74       1.1       erh 
     75       1.1       erh struct linux_sys_lchown_args {
     76       1.5  christos 	syscallarg(const char *) path;
     77       1.1       erh 	syscallarg(int) uid;
     78       1.1       erh 	syscallarg(int) gid;
     79       1.1       erh };
     80       1.1       erh 
     81       1.1       erh struct linux_sys_break_args {
     82       1.1       erh 	syscallarg(char *) nsize;
     83       1.1       erh };
     84       1.1       erh 
     85      1.11      tron struct linux_sys_stime_args {
     86      1.11      tron 	syscallarg(linux_time_t *) t;
     87      1.11      tron };
     88      1.11      tron 
     89  1.12.2.1    bouyer struct linux_sys_ptrace_args {
     90  1.12.2.1    bouyer 	syscallarg(int) request;
     91  1.12.2.1    bouyer 	syscallarg(int) pid;
     92  1.12.2.1    bouyer 	syscallarg(int) addr;
     93  1.12.2.1    bouyer 	syscallarg(int) data;
     94  1.12.2.1    bouyer };
     95  1.12.2.1    bouyer 
     96       1.1       erh struct linux_sys_alarm_args {
     97       1.1       erh 	syscallarg(unsigned int) secs;
     98       1.1       erh };
     99       1.1       erh 
    100       1.1       erh struct linux_sys_utime_args {
    101       1.5  christos 	syscallarg(const char *) path;
    102       1.1       erh 	syscallarg(struct linux_utimbuf *) times;
    103       1.1       erh };
    104       1.1       erh 
    105       1.1       erh struct linux_sys_access_args {
    106       1.5  christos 	syscallarg(const char *) path;
    107       1.1       erh 	syscallarg(int) flags;
    108       1.1       erh };
    109       1.1       erh 
    110       1.1       erh struct linux_sys_nice_args {
    111       1.1       erh 	syscallarg(int) incr;
    112       1.1       erh };
    113       1.1       erh 
    114       1.1       erh struct linux_sys_kill_args {
    115       1.1       erh 	syscallarg(int) pid;
    116       1.1       erh 	syscallarg(int) signum;
    117       1.1       erh };
    118       1.1       erh 
    119       1.1       erh struct linux_sys_rename_args {
    120       1.5  christos 	syscallarg(const char *) from;
    121       1.5  christos 	syscallarg(const char *) to;
    122       1.1       erh };
    123       1.1       erh 
    124       1.1       erh struct linux_sys_mkdir_args {
    125       1.5  christos 	syscallarg(const char *) path;
    126       1.1       erh 	syscallarg(int) mode;
    127       1.1       erh };
    128       1.1       erh 
    129       1.1       erh struct linux_sys_rmdir_args {
    130       1.5  christos 	syscallarg(const char *) path;
    131       1.1       erh };
    132       1.1       erh 
    133       1.1       erh struct linux_sys_pipe_args {
    134       1.1       erh 	syscallarg(int *) pfds;
    135       1.1       erh };
    136       1.1       erh 
    137       1.1       erh struct linux_sys_times_args {
    138       1.1       erh 	syscallarg(struct times *) tms;
    139       1.1       erh };
    140       1.1       erh 
    141       1.1       erh struct linux_sys_brk_args {
    142       1.1       erh 	syscallarg(char *) nsize;
    143       1.1       erh };
    144       1.1       erh 
    145       1.1       erh struct linux_sys_signal_args {
    146  1.12.2.1    bouyer 	syscallarg(int) signum;
    147       1.1       erh 	syscallarg(linux_handler_t) handler;
    148       1.1       erh };
    149       1.1       erh 
    150       1.1       erh struct linux_sys_ioctl_args {
    151       1.1       erh 	syscallarg(int) fd;
    152       1.1       erh 	syscallarg(u_long) com;
    153       1.1       erh 	syscallarg(caddr_t) data;
    154       1.1       erh };
    155       1.1       erh 
    156       1.1       erh struct linux_sys_fcntl_args {
    157       1.1       erh 	syscallarg(int) fd;
    158       1.1       erh 	syscallarg(int) cmd;
    159       1.1       erh 	syscallarg(void *) arg;
    160       1.1       erh };
    161       1.1       erh 
    162       1.1       erh struct linux_sys_oldolduname_args {
    163       1.1       erh 	syscallarg(struct linux_oldold_utsname *) up;
    164       1.1       erh };
    165       1.1       erh 
    166       1.1       erh struct linux_sys_sigaction_args {
    167       1.1       erh 	syscallarg(int) signum;
    168       1.1       erh 	syscallarg(const struct linux_old_sigaction *) nsa;
    169       1.1       erh 	syscallarg(struct linux_old_sigaction *) osa;
    170       1.1       erh };
    171       1.1       erh 
    172       1.1       erh struct linux_sys_sigsetmask_args {
    173       1.1       erh 	syscallarg(linux_old_sigset_t) mask;
    174       1.1       erh };
    175       1.1       erh 
    176       1.1       erh struct linux_sys_setreuid_args {
    177       1.1       erh 	syscallarg(int) ruid;
    178       1.1       erh 	syscallarg(int) euid;
    179       1.1       erh };
    180       1.1       erh 
    181       1.1       erh struct linux_sys_setregid_args {
    182       1.1       erh 	syscallarg(int) rgid;
    183       1.1       erh 	syscallarg(int) egid;
    184       1.1       erh };
    185       1.1       erh 
    186       1.1       erh struct linux_sys_sigsuspend_args {
    187       1.1       erh 	syscallarg(caddr_t) restart;
    188       1.1       erh 	syscallarg(int) oldmask;
    189       1.1       erh 	syscallarg(int) mask;
    190       1.1       erh };
    191       1.1       erh 
    192       1.1       erh struct linux_sys_sigpending_args {
    193       1.1       erh 	syscallarg(linux_old_sigset_t *) set;
    194       1.1       erh };
    195       1.1       erh 
    196       1.1       erh struct linux_sys_oldselect_args {
    197       1.1       erh 	syscallarg(struct linux_oldselect *) lsp;
    198       1.1       erh };
    199       1.1       erh 
    200       1.1       erh struct linux_sys_symlink_args {
    201       1.5  christos 	syscallarg(const char *) path;
    202       1.5  christos 	syscallarg(const char *) to;
    203       1.1       erh };
    204       1.1       erh 
    205       1.1       erh struct linux_sys_readlink_args {
    206       1.5  christos 	syscallarg(const char *) name;
    207       1.1       erh 	syscallarg(char *) buf;
    208       1.1       erh 	syscallarg(int) count;
    209       1.1       erh };
    210       1.1       erh 
    211       1.1       erh struct linux_sys_uselib_args {
    212       1.5  christos 	syscallarg(const char *) path;
    213       1.1       erh };
    214       1.1       erh 
    215  1.12.2.3    bouyer struct linux_sys_swapon_args {
    216  1.12.2.3    bouyer 	syscallarg(char *) name;
    217  1.12.2.3    bouyer };
    218  1.12.2.3    bouyer 
    219  1.12.2.1    bouyer struct linux_sys_reboot_args {
    220  1.12.2.1    bouyer 	syscallarg(int) magic1;
    221  1.12.2.1    bouyer 	syscallarg(int) magic2;
    222  1.12.2.1    bouyer 	syscallarg(int) cmd;
    223  1.12.2.1    bouyer 	syscallarg(void *) arg;
    224  1.12.2.1    bouyer };
    225  1.12.2.1    bouyer 
    226       1.1       erh struct linux_sys_readdir_args {
    227       1.1       erh 	syscallarg(int) fd;
    228       1.1       erh 	syscallarg(caddr_t) dent;
    229       1.1       erh 	syscallarg(unsigned int) count;
    230       1.1       erh };
    231       1.1       erh 
    232       1.1       erh struct linux_sys_old_mmap_args {
    233       1.1       erh 	syscallarg(struct linux_oldmmap *) lmp;
    234       1.1       erh };
    235       1.1       erh 
    236       1.1       erh struct linux_sys_truncate_args {
    237       1.5  christos 	syscallarg(const char *) path;
    238       1.1       erh 	syscallarg(long) length;
    239       1.1       erh };
    240       1.1       erh 
    241       1.1       erh struct linux_sys_fchown_args {
    242       1.1       erh 	syscallarg(int) fd;
    243       1.1       erh 	syscallarg(int) uid;
    244       1.1       erh 	syscallarg(int) gid;
    245       1.1       erh };
    246       1.1       erh 
    247       1.1       erh struct linux_sys_statfs_args {
    248       1.5  christos 	syscallarg(const char *) path;
    249       1.1       erh 	syscallarg(struct linux_statfs *) sp;
    250       1.1       erh };
    251       1.1       erh 
    252       1.1       erh struct linux_sys_fstatfs_args {
    253       1.1       erh 	syscallarg(int) fd;
    254       1.1       erh 	syscallarg(struct linux_statfs *) sp;
    255       1.1       erh };
    256       1.1       erh 
    257       1.1       erh struct linux_sys_ioperm_args {
    258       1.1       erh 	syscallarg(unsigned int) lo;
    259       1.1       erh 	syscallarg(unsigned int) hi;
    260       1.1       erh 	syscallarg(int) val;
    261       1.1       erh };
    262       1.1       erh 
    263       1.1       erh struct linux_sys_socketcall_args {
    264       1.1       erh 	syscallarg(int) what;
    265       1.1       erh 	syscallarg(void *) args;
    266       1.1       erh };
    267       1.1       erh 
    268       1.1       erh struct linux_sys_stat_args {
    269       1.5  christos 	syscallarg(const char *) path;
    270       1.1       erh 	syscallarg(struct linux_stat *) sp;
    271       1.1       erh };
    272       1.1       erh 
    273       1.1       erh struct linux_sys_lstat_args {
    274       1.5  christos 	syscallarg(const char *) path;
    275       1.1       erh 	syscallarg(struct linux_stat *) sp;
    276       1.1       erh };
    277       1.1       erh 
    278       1.1       erh struct linux_sys_fstat_args {
    279       1.1       erh 	syscallarg(int) fd;
    280       1.1       erh 	syscallarg(struct linux_stat *) sp;
    281       1.1       erh };
    282       1.1       erh 
    283       1.1       erh struct linux_sys_olduname_args {
    284       1.1       erh 	syscallarg(struct linux_old_utsname *) up;
    285       1.1       erh };
    286       1.1       erh 
    287       1.1       erh struct linux_sys_iopl_args {
    288       1.1       erh 	syscallarg(int) level;
    289       1.1       erh };
    290       1.1       erh 
    291       1.1       erh struct linux_sys_wait4_args {
    292       1.1       erh 	syscallarg(int) pid;
    293       1.1       erh 	syscallarg(int *) status;
    294       1.1       erh 	syscallarg(int) options;
    295       1.1       erh 	syscallarg(struct rusage *) rusage;
    296       1.1       erh };
    297       1.1       erh 
    298  1.12.2.3    bouyer struct linux_sys_swapoff_args {
    299  1.12.2.3    bouyer 	syscallarg(const char *) path;
    300  1.12.2.3    bouyer };
    301  1.12.2.3    bouyer 
    302       1.1       erh struct linux_sys_ipc_args {
    303       1.1       erh 	syscallarg(int) what;
    304       1.1       erh 	syscallarg(int) a1;
    305       1.1       erh 	syscallarg(int) a2;
    306       1.1       erh 	syscallarg(int) a3;
    307       1.1       erh 	syscallarg(caddr_t) ptr;
    308       1.1       erh };
    309       1.1       erh 
    310       1.1       erh struct linux_sys_sigreturn_args {
    311       1.1       erh 	syscallarg(struct linux_sigcontext *) scp;
    312       1.1       erh };
    313       1.1       erh 
    314       1.9   thorpej struct linux_sys_clone_args {
    315       1.9   thorpej 	syscallarg(int) flags;
    316       1.9   thorpej 	syscallarg(void *) stack;
    317       1.9   thorpej };
    318       1.9   thorpej 
    319  1.12.2.3    bouyer struct linux_sys_setdomainname_args {
    320  1.12.2.3    bouyer 	syscallarg(char *) domainname;
    321  1.12.2.3    bouyer 	syscallarg(int) len;
    322  1.12.2.3    bouyer };
    323  1.12.2.3    bouyer 
    324       1.1       erh struct linux_sys_uname_args {
    325       1.1       erh 	syscallarg(struct linux_utsname *) up;
    326       1.1       erh };
    327       1.1       erh 
    328       1.1       erh struct linux_sys_modify_ldt_args {
    329       1.1       erh 	syscallarg(int) func;
    330       1.1       erh 	syscallarg(void *) ptr;
    331       1.1       erh 	syscallarg(size_t) bytecount;
    332       1.1       erh };
    333       1.1       erh 
    334       1.1       erh struct linux_sys_sigprocmask_args {
    335       1.1       erh 	syscallarg(int) how;
    336       1.1       erh 	syscallarg(const linux_old_sigset_t *) set;
    337       1.1       erh 	syscallarg(linux_old_sigset_t *) oset;
    338       1.1       erh };
    339       1.1       erh 
    340       1.1       erh struct linux_sys_getpgid_args {
    341       1.1       erh 	syscallarg(int) pid;
    342       1.1       erh };
    343       1.1       erh 
    344       1.1       erh struct linux_sys_personality_args {
    345       1.1       erh 	syscallarg(int) per;
    346       1.1       erh };
    347       1.1       erh 
    348  1.12.2.1    bouyer struct linux_sys_setfsuid_args {
    349  1.12.2.1    bouyer 	syscallarg(uid_t) uid;
    350  1.12.2.1    bouyer };
    351  1.12.2.1    bouyer 
    352       1.1       erh struct linux_sys_llseek_args {
    353       1.1       erh 	syscallarg(int) fd;
    354       1.1       erh 	syscallarg(u_int32_t) ohigh;
    355       1.1       erh 	syscallarg(u_int32_t) olow;
    356       1.1       erh 	syscallarg(caddr_t) res;
    357       1.1       erh 	syscallarg(int) whence;
    358       1.1       erh };
    359       1.1       erh 
    360       1.1       erh struct linux_sys_getdents_args {
    361       1.1       erh 	syscallarg(int) fd;
    362       1.1       erh 	syscallarg(struct linux_dirent *) dent;
    363       1.1       erh 	syscallarg(unsigned int) count;
    364       1.1       erh };
    365       1.1       erh 
    366       1.1       erh struct linux_sys_select_args {
    367       1.1       erh 	syscallarg(int) nfds;
    368       1.1       erh 	syscallarg(fd_set *) readfds;
    369       1.1       erh 	syscallarg(fd_set *) writefds;
    370       1.1       erh 	syscallarg(fd_set *) exceptfds;
    371       1.1       erh 	syscallarg(struct timeval *) timeout;
    372       1.1       erh };
    373       1.1       erh 
    374       1.1       erh struct linux_sys_msync_args {
    375       1.1       erh 	syscallarg(caddr_t) addr;
    376       1.1       erh 	syscallarg(int) len;
    377       1.1       erh 	syscallarg(int) fl;
    378       1.1       erh };
    379       1.1       erh 
    380       1.1       erh struct linux_sys_fdatasync_args {
    381       1.1       erh 	syscallarg(int) fd;
    382       1.1       erh };
    383       1.1       erh 
    384       1.1       erh struct linux_sys___sysctl_args {
    385       1.1       erh 	syscallarg(struct linux___sysctl *) lsp;
    386       1.1       erh };
    387       1.1       erh 
    388      1.12      tron struct linux_sys_sched_setparam_args {
    389      1.12      tron 	syscallarg(pid_t) pid;
    390      1.12      tron 	syscallarg(const struct linux_sched_param *) sp;
    391      1.12      tron };
    392      1.12      tron 
    393      1.12      tron struct linux_sys_sched_getparam_args {
    394      1.12      tron 	syscallarg(pid_t) pid;
    395      1.12      tron 	syscallarg(struct linux_sched_param *) sp;
    396      1.12      tron };
    397      1.12      tron 
    398      1.12      tron struct linux_sys_sched_setscheduler_args {
    399      1.12      tron 	syscallarg(pid_t) pid;
    400      1.12      tron 	syscallarg(int) policy;
    401      1.12      tron 	syscallarg(const struct linux_sched_param *) sp;
    402      1.12      tron };
    403      1.12      tron 
    404      1.12      tron struct linux_sys_sched_getscheduler_args {
    405      1.12      tron 	syscallarg(pid_t) pid;
    406      1.12      tron };
    407      1.12      tron 
    408      1.12      tron struct linux_sys_sched_get_priority_max_args {
    409      1.12      tron 	syscallarg(int) policy;
    410      1.12      tron };
    411      1.12      tron 
    412      1.12      tron struct linux_sys_sched_get_priority_min_args {
    413      1.12      tron 	syscallarg(int) policy;
    414      1.12      tron };
    415      1.12      tron 
    416       1.1       erh struct linux_sys_mremap_args {
    417       1.1       erh 	syscallarg(void *) old_address;
    418       1.1       erh 	syscallarg(size_t) old_size;
    419       1.1       erh 	syscallarg(size_t) new_size;
    420       1.1       erh 	syscallarg(u_long) flags;
    421       1.1       erh };
    422       1.1       erh 
    423      1.10   thorpej struct linux_sys_setresuid_args {
    424      1.10   thorpej 	syscallarg(uid_t) ruid;
    425      1.10   thorpej 	syscallarg(uid_t) euid;
    426      1.10   thorpej 	syscallarg(uid_t) suid;
    427      1.10   thorpej };
    428      1.10   thorpej 
    429      1.10   thorpej struct linux_sys_getresuid_args {
    430      1.10   thorpej 	syscallarg(uid_t *) ruid;
    431      1.10   thorpej 	syscallarg(uid_t *) euid;
    432      1.10   thorpej 	syscallarg(uid_t *) suid;
    433      1.10   thorpej };
    434      1.10   thorpej 
    435      1.10   thorpej struct linux_sys_setresgid_args {
    436      1.10   thorpej 	syscallarg(gid_t) rgid;
    437      1.10   thorpej 	syscallarg(gid_t) egid;
    438      1.10   thorpej 	syscallarg(gid_t) sgid;
    439      1.10   thorpej };
    440      1.10   thorpej 
    441      1.10   thorpej struct linux_sys_getresgid_args {
    442      1.10   thorpej 	syscallarg(gid_t *) rgid;
    443      1.10   thorpej 	syscallarg(gid_t *) egid;
    444      1.10   thorpej 	syscallarg(gid_t *) sgid;
    445      1.10   thorpej };
    446      1.10   thorpej 
    447       1.1       erh struct linux_sys_rt_sigreturn_args {
    448       1.1       erh 	syscallarg(struct linux_rt_sigframe *) sfp;
    449       1.1       erh };
    450       1.1       erh 
    451       1.1       erh struct linux_sys_rt_sigaction_args {
    452       1.1       erh 	syscallarg(int) signum;
    453       1.1       erh 	syscallarg(const struct linux_sigaction *) nsa;
    454       1.1       erh 	syscallarg(struct linux_sigaction *) osa;
    455       1.1       erh 	syscallarg(size_t) sigsetsize;
    456       1.1       erh };
    457       1.1       erh 
    458       1.1       erh struct linux_sys_rt_sigprocmask_args {
    459       1.1       erh 	syscallarg(int) how;
    460       1.1       erh 	syscallarg(const linux_sigset_t *) set;
    461       1.1       erh 	syscallarg(linux_sigset_t *) oset;
    462       1.1       erh 	syscallarg(size_t) sigsetsize;
    463       1.1       erh };
    464       1.1       erh 
    465       1.1       erh struct linux_sys_rt_sigpending_args {
    466       1.1       erh 	syscallarg(linux_sigset_t *) set;
    467       1.1       erh 	syscallarg(size_t) sigsetsize;
    468       1.1       erh };
    469       1.1       erh 
    470       1.1       erh struct linux_sys_rt_queueinfo_args {
    471       1.1       erh 	syscallarg(int) pid;
    472       1.1       erh 	syscallarg(int) signum;
    473       1.1       erh 	syscallarg(void *) uinfo;
    474       1.1       erh };
    475       1.1       erh 
    476       1.1       erh struct linux_sys_rt_sigsuspend_args {
    477       1.1       erh 	syscallarg(linux_sigset_t *) unewset;
    478       1.1       erh 	syscallarg(size_t) sigsetsize;
    479       1.1       erh };
    480       1.1       erh 
    481  1.12.2.1    bouyer struct linux_sys_pread_args {
    482  1.12.2.1    bouyer 	syscallarg(int) fd;
    483  1.12.2.1    bouyer 	syscallarg(char *) buf;
    484  1.12.2.1    bouyer 	syscallarg(size_t) nbyte;
    485  1.12.2.1    bouyer 	syscallarg(linux_off_t) offset;
    486  1.12.2.1    bouyer };
    487  1.12.2.1    bouyer 
    488  1.12.2.1    bouyer struct linux_sys_pwrite_args {
    489  1.12.2.1    bouyer 	syscallarg(int) fd;
    490  1.12.2.1    bouyer 	syscallarg(char *) buf;
    491  1.12.2.1    bouyer 	syscallarg(size_t) nbyte;
    492  1.12.2.1    bouyer 	syscallarg(linux_off_t) offset;
    493  1.12.2.1    bouyer };
    494  1.12.2.1    bouyer 
    495       1.1       erh struct linux_sys_chown_args {
    496       1.5  christos 	syscallarg(const char *) path;
    497       1.1       erh 	syscallarg(int) uid;
    498       1.1       erh 	syscallarg(int) gid;
    499       1.1       erh };
    500       1.1       erh 
    501  1.12.2.1    bouyer struct linux_sys_sigaltstack_args {
    502  1.12.2.1    bouyer 	syscallarg(const struct linux_sigaltstack *) ss;
    503  1.12.2.1    bouyer 	syscallarg(struct linux_sigaltstack *) oss;
    504  1.12.2.1    bouyer };
    505  1.12.2.1    bouyer 
    506  1.12.2.4    bouyer struct linux_sys_truncate64_args {
    507  1.12.2.4    bouyer 	syscallarg(const char *) path;
    508  1.12.2.4    bouyer 	syscallarg(off_t) length;
    509  1.12.2.4    bouyer };
    510  1.12.2.4    bouyer 
    511  1.12.2.4    bouyer struct linux_sys_stat64_args {
    512  1.12.2.4    bouyer 	syscallarg(const char *) path;
    513  1.12.2.4    bouyer 	syscallarg(struct linux_stat64 *) sp;
    514  1.12.2.4    bouyer };
    515  1.12.2.4    bouyer 
    516  1.12.2.4    bouyer struct linux_sys_lstat64_args {
    517  1.12.2.4    bouyer 	syscallarg(const char *) path;
    518  1.12.2.4    bouyer 	syscallarg(struct linux_stat64 *) sp;
    519  1.12.2.4    bouyer };
    520  1.12.2.4    bouyer 
    521  1.12.2.4    bouyer struct linux_sys_fstat64_args {
    522  1.12.2.4    bouyer 	syscallarg(int) fd;
    523  1.12.2.4    bouyer 	syscallarg(struct linux_stat64 *) sp;
    524  1.12.2.4    bouyer };
    525  1.12.2.4    bouyer 
    526       1.1       erh /*
    527       1.1       erh  * System call prototypes.
    528       1.1       erh  */
    529       1.1       erh 
    530  1.12.2.1    bouyer int	sys_nosys(struct proc *, void *, register_t *);
    531  1.12.2.1    bouyer int	sys_exit(struct proc *, void *, register_t *);
    532  1.12.2.1    bouyer int	sys_fork(struct proc *, void *, register_t *);
    533  1.12.2.1    bouyer int	sys_read(struct proc *, void *, register_t *);
    534  1.12.2.1    bouyer int	sys_write(struct proc *, void *, register_t *);
    535  1.12.2.1    bouyer int	linux_sys_open(struct proc *, void *, register_t *);
    536  1.12.2.1    bouyer int	sys_close(struct proc *, void *, register_t *);
    537  1.12.2.1    bouyer int	linux_sys_waitpid(struct proc *, void *, register_t *);
    538  1.12.2.1    bouyer int	linux_sys_creat(struct proc *, void *, register_t *);
    539  1.12.2.1    bouyer int	sys_link(struct proc *, void *, register_t *);
    540  1.12.2.1    bouyer int	linux_sys_unlink(struct proc *, void *, register_t *);
    541  1.12.2.1    bouyer int	linux_sys_execve(struct proc *, void *, register_t *);
    542  1.12.2.1    bouyer int	linux_sys_chdir(struct proc *, void *, register_t *);
    543  1.12.2.1    bouyer int	linux_sys_time(struct proc *, void *, register_t *);
    544  1.12.2.1    bouyer int	linux_sys_mknod(struct proc *, void *, register_t *);
    545  1.12.2.1    bouyer int	linux_sys_chmod(struct proc *, void *, register_t *);
    546  1.12.2.1    bouyer int	linux_sys_lchown(struct proc *, void *, register_t *);
    547  1.12.2.1    bouyer int	linux_sys_break(struct proc *, void *, register_t *);
    548  1.12.2.1    bouyer int	compat_43_sys_lseek(struct proc *, void *, register_t *);
    549  1.12.2.1    bouyer int	sys_getpid(struct proc *, void *, register_t *);
    550  1.12.2.1    bouyer int	sys_setuid(struct proc *, void *, register_t *);
    551  1.12.2.1    bouyer int	sys_getuid(struct proc *, void *, register_t *);
    552  1.12.2.1    bouyer int	linux_sys_stime(struct proc *, void *, register_t *);
    553  1.12.2.1    bouyer int	linux_sys_ptrace(struct proc *, void *, register_t *);
    554  1.12.2.1    bouyer int	linux_sys_alarm(struct proc *, void *, register_t *);
    555  1.12.2.1    bouyer int	linux_sys_pause(struct proc *, void *, register_t *);
    556  1.12.2.1    bouyer int	linux_sys_utime(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	linux_sys_nice(struct proc *, void *, register_t *);
    559  1.12.2.1    bouyer int	sys_sync(struct proc *, void *, register_t *);
    560  1.12.2.1    bouyer int	linux_sys_kill(struct proc *, void *, register_t *);
    561  1.12.2.1    bouyer int	linux_sys_rename(struct proc *, void *, register_t *);
    562  1.12.2.1    bouyer int	linux_sys_mkdir(struct proc *, void *, register_t *);
    563  1.12.2.1    bouyer int	linux_sys_rmdir(struct proc *, void *, register_t *);
    564  1.12.2.1    bouyer int	sys_dup(struct proc *, void *, register_t *);
    565  1.12.2.1    bouyer int	linux_sys_pipe(struct proc *, void *, register_t *);
    566  1.12.2.1    bouyer int	linux_sys_times(struct proc *, void *, register_t *);
    567  1.12.2.1    bouyer int	linux_sys_brk(struct proc *, void *, register_t *);
    568  1.12.2.1    bouyer int	sys_setgid(struct proc *, void *, register_t *);
    569  1.12.2.1    bouyer int	sys_getgid(struct proc *, void *, register_t *);
    570  1.12.2.1    bouyer int	linux_sys_signal(struct proc *, void *, register_t *);
    571  1.12.2.1    bouyer int	sys_geteuid(struct proc *, void *, register_t *);
    572  1.12.2.1    bouyer int	sys_getegid(struct proc *, void *, register_t *);
    573  1.12.2.1    bouyer int	sys_acct(struct proc *, void *, register_t *);
    574  1.12.2.1    bouyer int	linux_sys_ioctl(struct proc *, void *, register_t *);
    575  1.12.2.1    bouyer int	linux_sys_fcntl(struct proc *, void *, register_t *);
    576  1.12.2.1    bouyer int	sys_setpgid(struct proc *, void *, register_t *);
    577  1.12.2.1    bouyer int	linux_sys_oldolduname(struct proc *, void *, register_t *);
    578  1.12.2.1    bouyer int	sys_umask(struct proc *, void *, register_t *);
    579  1.12.2.1    bouyer int	sys_chroot(struct proc *, void *, register_t *);
    580  1.12.2.1    bouyer int	sys_dup2(struct proc *, void *, register_t *);
    581  1.12.2.1    bouyer int	sys_getppid(struct proc *, void *, register_t *);
    582  1.12.2.1    bouyer int	sys_getpgrp(struct proc *, void *, register_t *);
    583  1.12.2.1    bouyer int	sys_setsid(struct proc *, void *, register_t *);
    584  1.12.2.1    bouyer int	linux_sys_sigaction(struct proc *, void *, register_t *);
    585  1.12.2.1    bouyer int	linux_sys_siggetmask(struct proc *, void *, register_t *);
    586  1.12.2.1    bouyer int	linux_sys_sigsetmask(struct proc *, void *, register_t *);
    587  1.12.2.1    bouyer int	linux_sys_setreuid(struct proc *, void *, register_t *);
    588  1.12.2.1    bouyer int	linux_sys_setregid(struct proc *, void *, register_t *);
    589  1.12.2.1    bouyer int	linux_sys_sigsuspend(struct proc *, void *, register_t *);
    590  1.12.2.1    bouyer int	linux_sys_sigpending(struct proc *, void *, register_t *);
    591  1.12.2.1    bouyer int	compat_43_sys_sethostname(struct proc *, void *, register_t *);
    592  1.12.2.1    bouyer int	compat_43_sys_setrlimit(struct proc *, void *, register_t *);
    593  1.12.2.1    bouyer int	compat_43_sys_getrlimit(struct proc *, void *, register_t *);
    594  1.12.2.1    bouyer int	sys_getrusage(struct proc *, void *, register_t *);
    595  1.12.2.1    bouyer int	sys_gettimeofday(struct proc *, void *, register_t *);
    596  1.12.2.1    bouyer int	sys_settimeofday(struct proc *, void *, register_t *);
    597  1.12.2.1    bouyer int	sys_getgroups(struct proc *, void *, register_t *);
    598  1.12.2.1    bouyer int	sys_setgroups(struct proc *, void *, register_t *);
    599  1.12.2.1    bouyer int	linux_sys_oldselect(struct proc *, void *, register_t *);
    600  1.12.2.1    bouyer int	linux_sys_symlink(struct proc *, void *, register_t *);
    601  1.12.2.1    bouyer int	compat_43_sys_lstat(struct proc *, void *, register_t *);
    602  1.12.2.1    bouyer int	linux_sys_readlink(struct proc *, void *, register_t *);
    603  1.12.2.1    bouyer int	linux_sys_uselib(struct proc *, void *, register_t *);
    604  1.12.2.3    bouyer int	linux_sys_swapon(struct proc *, void *, register_t *);
    605  1.12.2.1    bouyer int	linux_sys_reboot(struct proc *, void *, register_t *);
    606  1.12.2.1    bouyer int	linux_sys_readdir(struct proc *, void *, register_t *);
    607  1.12.2.1    bouyer int	linux_sys_old_mmap(struct proc *, void *, register_t *);
    608  1.12.2.1    bouyer int	sys_munmap(struct proc *, void *, register_t *);
    609  1.12.2.1    bouyer int	linux_sys_truncate(struct proc *, void *, register_t *);
    610  1.12.2.1    bouyer int	compat_43_sys_ftruncate(struct proc *, void *, register_t *);
    611  1.12.2.1    bouyer int	sys_fchmod(struct proc *, void *, register_t *);
    612  1.12.2.1    bouyer int	linux_sys_fchown(struct proc *, void *, register_t *);
    613  1.12.2.1    bouyer int	sys_getpriority(struct proc *, void *, register_t *);
    614  1.12.2.1    bouyer int	sys_setpriority(struct proc *, void *, register_t *);
    615  1.12.2.1    bouyer int	sys_profil(struct proc *, void *, register_t *);
    616  1.12.2.1    bouyer int	linux_sys_statfs(struct proc *, void *, register_t *);
    617  1.12.2.1    bouyer int	linux_sys_fstatfs(struct proc *, void *, register_t *);
    618  1.12.2.1    bouyer int	linux_sys_ioperm(struct proc *, void *, register_t *);
    619  1.12.2.1    bouyer int	linux_sys_socketcall(struct proc *, void *, register_t *);
    620  1.12.2.1    bouyer int	sys_setitimer(struct proc *, void *, register_t *);
    621  1.12.2.1    bouyer int	sys_getitimer(struct proc *, void *, register_t *);
    622  1.12.2.1    bouyer int	linux_sys_stat(struct proc *, void *, register_t *);
    623  1.12.2.1    bouyer int	linux_sys_lstat(struct proc *, void *, register_t *);
    624  1.12.2.1    bouyer int	linux_sys_fstat(struct proc *, void *, register_t *);
    625  1.12.2.1    bouyer int	linux_sys_olduname(struct proc *, void *, register_t *);
    626  1.12.2.1    bouyer int	linux_sys_iopl(struct proc *, void *, register_t *);
    627  1.12.2.1    bouyer int	linux_sys_wait4(struct proc *, void *, register_t *);
    628  1.12.2.3    bouyer int	linux_sys_swapoff(struct proc *, void *, register_t *);
    629  1.12.2.1    bouyer int	linux_sys_ipc(struct proc *, void *, register_t *);
    630  1.12.2.1    bouyer int	sys_fsync(struct proc *, void *, register_t *);
    631  1.12.2.1    bouyer int	linux_sys_sigreturn(struct proc *, void *, register_t *);
    632  1.12.2.1    bouyer int	linux_sys_clone(struct proc *, void *, register_t *);
    633  1.12.2.3    bouyer int	linux_sys_setdomainname(struct proc *, void *, register_t *);
    634  1.12.2.1    bouyer int	linux_sys_uname(struct proc *, void *, register_t *);
    635  1.12.2.1    bouyer int	linux_sys_modify_ldt(struct proc *, void *, register_t *);
    636  1.12.2.1    bouyer int	sys_mprotect(struct proc *, void *, register_t *);
    637  1.12.2.1    bouyer int	linux_sys_sigprocmask(struct proc *, void *, register_t *);
    638  1.12.2.1    bouyer int	linux_sys_getpgid(struct proc *, void *, register_t *);
    639  1.12.2.1    bouyer int	sys_fchdir(struct proc *, void *, register_t *);
    640  1.12.2.1    bouyer int	linux_sys_personality(struct proc *, void *, register_t *);
    641  1.12.2.1    bouyer int	linux_sys_setfsuid(struct proc *, void *, register_t *);
    642  1.12.2.1    bouyer int	linux_sys_getfsuid(struct proc *, void *, register_t *);
    643  1.12.2.1    bouyer int	linux_sys_llseek(struct proc *, void *, register_t *);
    644  1.12.2.1    bouyer int	linux_sys_getdents(struct proc *, void *, register_t *);
    645  1.12.2.1    bouyer int	linux_sys_select(struct proc *, void *, register_t *);
    646  1.12.2.1    bouyer int	sys_flock(struct proc *, void *, register_t *);
    647  1.12.2.1    bouyer int	linux_sys_msync(struct proc *, void *, register_t *);
    648  1.12.2.1    bouyer int	sys_readv(struct proc *, void *, register_t *);
    649  1.12.2.1    bouyer int	sys_writev(struct proc *, void *, register_t *);
    650  1.12.2.1    bouyer int	sys_getsid(struct proc *, void *, register_t *);
    651  1.12.2.1    bouyer int	linux_sys_fdatasync(struct proc *, void *, register_t *);
    652  1.12.2.1    bouyer int	linux_sys___sysctl(struct proc *, void *, register_t *);
    653  1.12.2.1    bouyer int	sys_mlock(struct proc *, void *, register_t *);
    654  1.12.2.1    bouyer int	sys_munlock(struct proc *, void *, register_t *);
    655  1.12.2.2    bouyer int	sys_mlockall(struct proc *, void *, register_t *);
    656  1.12.2.2    bouyer int	sys_munlockall(struct proc *, void *, register_t *);
    657  1.12.2.1    bouyer int	linux_sys_sched_setparam(struct proc *, void *, register_t *);
    658  1.12.2.1    bouyer int	linux_sys_sched_getparam(struct proc *, void *, register_t *);
    659  1.12.2.1    bouyer int	linux_sys_sched_setscheduler(struct proc *, void *, register_t *);
    660  1.12.2.1    bouyer int	linux_sys_sched_getscheduler(struct proc *, void *, register_t *);
    661  1.12.2.1    bouyer int	linux_sys_sched_yield(struct proc *, void *, register_t *);
    662  1.12.2.1    bouyer int	linux_sys_sched_get_priority_max(struct proc *, void *, register_t *);
    663  1.12.2.1    bouyer int	linux_sys_sched_get_priority_min(struct proc *, void *, register_t *);
    664  1.12.2.1    bouyer int	sys_nanosleep(struct proc *, void *, register_t *);
    665  1.12.2.1    bouyer int	linux_sys_mremap(struct proc *, void *, register_t *);
    666  1.12.2.1    bouyer int	linux_sys_setresuid(struct proc *, void *, register_t *);
    667  1.12.2.1    bouyer int	linux_sys_getresuid(struct proc *, void *, register_t *);
    668  1.12.2.1    bouyer int	sys_poll(struct proc *, void *, register_t *);
    669  1.12.2.1    bouyer int	linux_sys_setresgid(struct proc *, void *, register_t *);
    670  1.12.2.1    bouyer int	linux_sys_getresgid(struct proc *, void *, register_t *);
    671  1.12.2.1    bouyer int	linux_sys_rt_sigreturn(struct proc *, void *, register_t *);
    672  1.12.2.1    bouyer int	linux_sys_rt_sigaction(struct proc *, void *, register_t *);
    673  1.12.2.1    bouyer int	linux_sys_rt_sigprocmask(struct proc *, void *, register_t *);
    674  1.12.2.1    bouyer int	linux_sys_rt_sigpending(struct proc *, void *, register_t *);
    675  1.12.2.1    bouyer int	linux_sys_rt_queueinfo(struct proc *, void *, register_t *);
    676  1.12.2.1    bouyer int	linux_sys_rt_sigsuspend(struct proc *, void *, register_t *);
    677  1.12.2.1    bouyer int	linux_sys_pread(struct proc *, void *, register_t *);
    678  1.12.2.1    bouyer int	linux_sys_pwrite(struct proc *, void *, register_t *);
    679  1.12.2.1    bouyer int	linux_sys_chown(struct proc *, void *, register_t *);
    680  1.12.2.1    bouyer int	sys___getcwd(struct proc *, void *, register_t *);
    681  1.12.2.1    bouyer int	linux_sys_sigaltstack(struct proc *, void *, register_t *);
    682  1.12.2.1    bouyer int	sys___vfork14(struct proc *, void *, register_t *);
    683  1.12.2.4    bouyer int	linux_sys_truncate64(struct proc *, void *, register_t *);
    684  1.12.2.4    bouyer int	sys_ftruncate(struct proc *, void *, register_t *);
    685  1.12.2.4    bouyer int	linux_sys_stat64(struct proc *, void *, register_t *);
    686  1.12.2.4    bouyer int	linux_sys_lstat64(struct proc *, void *, register_t *);
    687  1.12.2.4    bouyer int	linux_sys_fstat64(struct proc *, void *, register_t *);
    688       1.5  christos #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
    689