Home | History | Annotate | Line # | Download | only in mips
syscalls.master revision 1.29.12.1
      1  1.29.12.1       snj 	$NetBSD: syscalls.master,v 1.29.12.1 2008/11/20 03:03:05 snj Exp $  
      2        1.1      manu 
      3        1.1      manu ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4        1.1      manu 
      5        1.1      manu ; Derived from NetBSD's sys/compat/linux/arch/powerpc/syscalls.master
      6        1.1      manu ; from Linux's arch/mips/kernel/syscalls.h
      7        1.1      manu 
      8        1.1      manu ; NetBSD mips COMPAT_LINUX system call name/number "master" file.
      9        1.1      manu ; (See syscalls.conf to see what it is processed into.)
     10        1.1      manu ;
     11       1.17     perry ; Expect problems with
     12        1.1      manu ;  48 signal: undefined in Linux???
     13        1.1      manu ;  86 uselib: needs a.out
     14        1.1      manu ;
     15        1.1      manu ; Fields: number type [type-dependent ...]
     16        1.1      manu ;	number	system call number, must be in order
     17        1.1      manu ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     18        1.1      manu ;		the compatibility options defined in syscalls.conf.
     19        1.1      manu ;
     20        1.1      manu ; types:
     21        1.1      manu ;	STD	always included
     22        1.1      manu ;	OBSOL	obsolete, not included in system
     23        1.1      manu ;	UNIMPL	unimplemented, not included in system
     24        1.1      manu ;	NODEF	included, but don't define the syscall number
     25        1.1      manu ;	NOARGS	included, but don't define the syscall args structure
     26        1.1      manu ;	INDIR	included, but don't define the syscall args structure
     27        1.1      manu ;		and allow it to be "really" varargs.
     28        1.1      manu ;
     29        1.1      manu ; The compat options are defined in the syscalls.conf file, and the
     30        1.1      manu ; compat option name is prefixed to the syscall name.  Other than
     31        1.1      manu ; that, they're like NODEF (for 'compat' options), or STD (for
     32        1.1      manu ; 'libcompat' options).
     33        1.1      manu ;
     34        1.1      manu ; The type-dependent arguments are as follows:
     35        1.1      manu ; For STD, NODEF, NOARGS, and compat syscalls:
     36        1.1      manu ;	{ pseudo-proto } [alias]
     37        1.1      manu ; For other syscalls:
     38        1.1      manu ;	[comment]
     39        1.1      manu ;
     40        1.1      manu ; #ifdef's, etc. may be included, and are copied to the output files.
     41        1.1      manu ; #include's are copied to the syscall names and switch definition files only.
     42        1.1      manu 
     43        1.1      manu #if defined(_KERNEL_OPT)
     44        1.1      manu #include "opt_compat_netbsd.h"
     45        1.1      manu #include "opt_compat_43.h"
     46        1.1      manu #endif
     47        1.1      manu 
     48        1.1      manu #include <sys/param.h>
     49        1.1      manu #include <sys/poll.h>
     50        1.1      manu #include <sys/systm.h>
     51        1.1      manu #include <sys/signal.h>
     52        1.1      manu #include <sys/mount.h>
     53        1.1      manu #include <sys/syscallargs.h>
     54        1.1      manu 
     55        1.1      manu #include <compat/linux/common/linux_types.h>
     56        1.1      manu #include <compat/linux/common/linux_signal.h>
     57        1.1      manu #include <compat/linux/common/linux_siginfo.h>
     58        1.1      manu #include <compat/linux/common/linux_machdep.h>
     59        1.1      manu #include <compat/linux/common/linux_mmap.h>
     60        1.3      manu #include <compat/linux/common/linux_socketcall.h>
     61        1.1      manu 
     62        1.1      manu #include <compat/linux/linux_syscallargs.h>
     63        1.1      manu 
     64        1.1      manu 0	NOARGS		{ int linux_sys_nosys(void); } syscall
     65        1.1      manu 1	NOARGS		{ int sys_exit(int rval); }
     66        1.1      manu 2	NOARGS		{ int sys_fork(void); }
     67        1.1      manu 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     68        1.1      manu 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     69        1.1      manu 5	STD		{ int linux_sys_open(const char *path, int flags, \
     70        1.1      manu 			    int mode); }
     71        1.1      manu 6	NOARGS		{ int sys_close(int fd); }
     72        1.1      manu 7	STD		{ int linux_sys_waitpid(int pid, int *status, \
     73        1.1      manu 			    int options);}
     74        1.1      manu 8	STD		{ int linux_sys_creat(const char *path, int mode); }
     75       1.24     njoly 9	NOARGS		{ int sys_link(const char *path, const char *link); }
     76        1.1      manu 10	STD		{ int linux_sys_unlink(const char *path); }
     77       1.24     njoly 11	NOARGS		{ int sys_execve(const char *path, char **argp, \
     78        1.1      manu 			    char **envp); }
     79       1.24     njoly 12	NOARGS		{ int sys_chdir(const char *path); }
     80        1.1      manu 13	STD		{ int linux_sys_time(linux_time_t *t); }
     81        1.1      manu 14	STD		{ int linux_sys_mknod(const char *path, int mode, \
     82        1.1      manu 			    int dev); }
     83       1.24     njoly 15	NOARGS		{ int sys_chmod(const char *path, int mode); }
     84       1.24     njoly 16	NOARGS		{ int sys___posix_lchown(const char *path, int uid, \
     85        1.1      manu 			    int gid); }
     86        1.1      manu 17	UNIMPL
     87        1.1      manu 18	OBSOL		ostat
     88        1.1      manu 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     89        1.1      manu 			    int whence); }
     90       1.29        ad 20	NOARGS 		{ pid_t sys_getpid(void); }
     91        1.1      manu 21	UNIMPL		mount
     92        1.1      manu 22	OBSOL		umount
     93        1.1      manu 23	NOARGS		{ int sys_setuid(uid_t uid); }
     94        1.1      manu 24	NOARGS		{ uid_t sys_getuid(void); }
     95        1.1      manu 25	STD		{ int linux_sys_stime(linux_time_t *t); }
     96        1.1      manu 26	STD		{ int linux_sys_ptrace(int request, int pid, \
     97        1.1      manu 			  int addr, int data); }
     98        1.1      manu 27	STD		{ int linux_sys_alarm(unsigned int secs); }
     99        1.1      manu 28	OBSOL		ofstat
    100        1.1      manu 29	STD		{ int linux_sys_pause(void); }
    101        1.1      manu 30	STD		{ int linux_sys_utime(const char *path, \
    102        1.1      manu 			    struct linux_utimbuf *times); }
    103        1.1      manu 31	UNIMPL
    104        1.1      manu 32	UNIMPL
    105       1.24     njoly 33	NOARGS		{ int sys_access(const char *path, int flags); }
    106        1.1      manu 34	STD		{ int linux_sys_nice(int incr); }
    107        1.1      manu 35	UNIMPL
    108        1.1      manu 36	NOARGS		{ int sys_sync(void); }
    109        1.1      manu 37	STD		{ int linux_sys_kill(int pid, int signum); }
    110       1.24     njoly 38	NOARGS		{ int sys___posix_rename(const char *from, \
    111        1.1      manu 			    const char *to); }
    112       1.24     njoly 39	NOARGS		{ int sys_mkdir(const char *path, int mode); }
    113       1.24     njoly 40	NOARGS		{ int sys_rmdir(const char *path); }
    114        1.1      manu 41	NOARGS		{ int sys_dup(u_int fd); }
    115        1.1      manu 42	STD		{ int linux_sys_pipe(int *pfds); }
    116        1.1      manu 43	STD		{ int linux_sys_times(struct times *tms); }
    117        1.1      manu 44	UNIMPL
    118        1.1      manu 45	STD		{ int linux_sys_brk(char *nsize); }
    119        1.1      manu 46	NOARGS		{ int sys_setgid(gid_t gid); }
    120        1.1      manu 47	NOARGS		{ gid_t sys_getgid(void); }
    121        1.1      manu 48	STD		{ int linux_sys_signal(int signum, \
    122        1.1      manu 			    linux___sighandler_t handler); }
    123        1.1      manu 49	NOARGS		{ uid_t sys_geteuid(void); }
    124        1.1      manu 50	NOARGS		{ gid_t sys_getegid(void); }
    125        1.1      manu 51	NOARGS		{ int sys_acct(char *path); }
    126        1.1      manu 52	UNIMPL		umount
    127        1.1      manu 53	UNIMPL
    128        1.1      manu 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    129       1.23  christos 			    void *data); }
    130        1.1      manu 55	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    131        1.1      manu 56	OBSOL		mpx
    132        1.1      manu 57	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    133        1.1      manu 58	UNIMPL
    134        1.1      manu 59 	STD  		    { int linux_sys_olduname(struct linux_old_utsname \
    135        1.1      manu 			    *up); }
    136        1.1      manu 60	NOARGS		{ int sys_umask(int newmask); }
    137        1.1      manu 61	NOARGS		{ int sys_chroot(char *path); }
    138        1.1      manu 62	UNIMPL		ustat
    139        1.1      manu 63	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    140        1.1      manu 64	NOARGS		{ pid_t sys_getppid(void); }
    141        1.1      manu 65	NOARGS		{ int sys_getpgrp(void); }
    142        1.1      manu 66	NOARGS		{ int sys_setsid(void); }
    143        1.1      manu 67	STD		{ int linux_sys_sigaction(int signum, \
    144        1.1      manu 			    const struct linux_old_sigaction *nsa, \
    145        1.1      manu 			    struct linux_old_sigaction *osa); }
    146        1.1      manu 68	STD		{ int linux_sys_siggetmask(void); }
    147        1.1      manu 69	STD		{ int linux_sys_sigsetmask(linux_old_sigset_t mask); }
    148       1.17     perry 70	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
    149        1.1      manu 71	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
    150       1.23  christos 72	STD		{ int linux_sys_sigsuspend(void *restart, \
    151        1.1      manu 			    int oldmask, int mask); }
    152        1.1      manu 73	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
    153        1.1      manu 74	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    154        1.1      manu 			    u_int len);}
    155        1.7     rafal 75	STD		{ int linux_sys_setrlimit(u_int which, \
    156        1.1      manu 			    struct orlimit *rlp); }
    157        1.7     rafal 76	STD		{ int linux_sys_getrlimit(u_int which, \
    158        1.1      manu 			    struct orlimit *rlp); }
    159        1.1      manu 77	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    160        1.1      manu 78	STD		{ int linux_sys_gettimeofday(struct timeval *tp, \
    161        1.1      manu 			    struct timezone *tzp); }
    162        1.1      manu 79	STD		{ int linux_sys_settimeofday(struct timeval *tp, \
    163        1.1      manu 			    struct timezone *tzp); }
    164        1.1      manu 80	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    165        1.1      manu 81	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    166        1.1      manu 82	UNIMPL		old_select
    167       1.24     njoly 83	NOARGS		{ int sys_symlink(const char *path, const char *to); }
    168        1.1      manu 84	NOARGS		{ int compat_43_sys_lstat(const char *path, \
    169        1.1      manu 			    struct stat43 *up); } oolstat
    170       1.24     njoly 85	NOARGS		{ int sys_readlink(const char *name, char *buf, \
    171        1.1      manu 			    int count); }
    172        1.1      manu 86	UNIMPL		uselib
    173        1.1      manu ;86	STD		{ int linux_sys_uselib(const char *path); }
    174        1.1      manu 87	STD		{ int linux_sys_swapon(char *name); }
    175        1.1      manu 88	STD		{ int linux_sys_reboot(int magic1, int magic2, \
    176        1.1      manu 			    int cmd, void *arg); }
    177       1.23  christos 89	STD		{ int linux_sys_readdir(int fd, void *dent, \
    178        1.1      manu 			    unsigned int count); }
    179        1.1      manu 90	NOARGS      	{ int linux_sys_mmap(unsigned long addr, size_t len, \
    180        1.1      manu 			    int prot, int flags, int fd, linux_off_t offset); }
    181       1.23  christos 91	NOARGS		{ int sys_munmap(void *addr, int len); }
    182       1.24     njoly 92	NOARGS		{ int compat_43_sys_truncate(const char *path, \
    183        1.1      manu 			    long length); }
    184        1.1      manu 93	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    185        1.1      manu 94	NOARGS		{ int sys_fchmod(int fd, int mode); }
    186        1.1      manu 95 	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
    187       1.21  christos 96	STD		{ int linux_sys_getpriority(int which, int who); }
    188        1.1      manu 97	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    189        1.1      manu 98	UNIMPL
    190        1.1      manu 99	STD		{ int linux_sys_statfs(const char *path, \
    191        1.1      manu 			    struct linux_statfs *sp); }
    192        1.1      manu 100	STD		{ int linux_sys_fstatfs(int fd, \
    193        1.1      manu 			    struct linux_statfs *sp); }
    194        1.1      manu 101	STD		{ int linux_sys_ioperm(unsigned int lo, \
    195        1.1      manu 			    unsigned int hi, int val); }
    196        1.1      manu 102	STD		{ int linux_sys_socketcall(int what, void *args); }
    197        1.1      manu 103	UNIMPL		syslog
    198        1.1      manu 104	NOARGS		{ int sys_setitimer(u_int which, \
    199        1.1      manu 			    struct itimerval *itv, struct itimerval *oitv); }
    200        1.1      manu 105	NOARGS		{ int sys_getitimer(u_int which, \
    201        1.1      manu 			    struct itimerval *itv); }
    202        1.1      manu 106	STD		{ int linux_sys_stat(const char *path, \
    203        1.1      manu 			    struct linux_stat *sp); }
    204        1.1      manu 107	STD		{ int linux_sys_lstat(const char *path, \
    205        1.1      manu 			    struct linux_stat *sp); }
    206        1.1      manu 108	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    207        1.1      manu 109	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    208       1.17     perry 110	UNIMPL		iopl
    209        1.1      manu 111	UNIMPL		vhangup
    210        1.1      manu 112	UNIMPL		idle
    211       1.17     perry 113	UNIMPL		vm86old
    212        1.1      manu 114	STD		{ int linux_sys_wait4(int pid, int *status, \
    213        1.1      manu 			    int options, struct rusage *rusage); }
    214        1.1      manu 115	STD		{ int linux_sys_swapoff(const char *path); }
    215        1.1      manu 116	STD		{ int linux_sys_sysinfo(struct linux_sysinfo *arg); }
    216        1.1      manu 117	STD		{ int linux_sys_ipc(int what, int a1, int a2, int a3, \
    217       1.23  christos 			    void *ptr); }
    218        1.1      manu 118	NOARGS		{ int sys_fsync(int fd); }
    219        1.4      manu 119	STD		{ int linux_sys_sigreturn(struct linux_sigframe *sf); }
    220        1.1      manu 120	STD		{ int linux_sys_clone(int flags, void *stack); }
    221        1.1      manu 121	STD		{ int linux_sys_setdomainname(char *domainname, \
    222        1.1      manu 			    int len); }
    223        1.1      manu 122	STD		{ int linux_sys_new_uname(struct linux_utsname *up); }
    224       1.17     perry 123	UNIMPL		modify_ldt
    225        1.1      manu 124	UNIMPL		adjtimex
    226        1.8  christos 125	STD		{ int linux_sys_mprotect(const void *start, \
    227        1.8  christos 			    unsigned long len, int prot); }
    228        1.1      manu 126	STD		{ int linux_sys_sigprocmask(int how, \
    229        1.1      manu 			    const linux_old_sigset_t *set, \
    230        1.1      manu 			    linux_old_sigset_t *oset); }
    231        1.1      manu 127	UNIMPL		create_module
    232        1.1      manu 128	UNIMPL		init_module
    233        1.1      manu 129	UNIMPL		delete_module
    234        1.1      manu 130	UNIMPL		get_kernel_syms
    235        1.1      manu 131	UNIMPL		quotactl
    236       1.27     njoly 132	NOARGS		{ pid_t sys_getpgid(pid_t pid); }
    237        1.1      manu 133	NOARGS		{ int sys_fchdir(int fd); }
    238        1.1      manu 134	UNIMPL		bdflush
    239        1.1      manu 135	UNIMPL		sysfs
    240        1.1      manu 136	STD		{ int linux_sys_personality(int per); }
    241        1.1      manu 137	UNIMPL		afs_syscall
    242        1.1      manu 138	STD		{ int linux_sys_setfsuid(uid_t uid); }
    243       1.26     njoly 139	STD		{ int linux_sys_setfsgid(gid_t gid); }
    244        1.1      manu 140	STD		{ int linux_sys_llseek(int fd, u_int32_t ohigh, \
    245       1.23  christos 			    u_int32_t olow, void *res, int whence); }
    246        1.1      manu 141	STD		{ int linux_sys_getdents(int fd, \
    247        1.1      manu 			    struct linux_dirent *dent, unsigned int count); }
    248        1.1      manu 142	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    249        1.1      manu 			    fd_set *writefds, fd_set *exceptfds, \
    250        1.1      manu 			    struct timeval *timeout); }
    251        1.1      manu 143	NOARGS		{ int sys_flock(int fd, int how); }
    252       1.28     njoly 144	NOARGS		{ int sys___msync13(void *addr, size_t len, int flags); }
    253        1.1      manu 145	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    254        1.1      manu 				u_int iovcnt); }
    255        1.1      manu 146	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    256        1.1      manu 				u_int iovcnt); }
    257        1.1      manu 147	STD		{ int linux_sys_cacheflush(void *addr, \
    258        1.1      manu 			    int bytes, int cache); }
    259        1.1      manu 148	UNIMPL		cachectl
    260        1.2      manu 149	STD		{ int linux_sys_sysmips(int cmd, int arg1, \
    261        1.2      manu 			    int arg2, int arg3); }
    262        1.1      manu 150	UNIMPL
    263        1.1      manu 151	NOARGS		{ pid_t sys_getsid(pid_t pid); }
    264        1.1      manu 152	STD		{ int linux_sys_fdatasync(int fd); }
    265        1.1      manu 153	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    266       1.23  christos 154	NOARGS		{ int sys_mlock(void *addr, size_t len); }
    267       1.23  christos 155	NOARGS		{ int sys_munlock(void *addr, size_t len); }
    268        1.1      manu 156	NOARGS		{ int sys_mlockall(int flags); }
    269        1.1      manu 157	NOARGS		{ int sys_munlockall(void); }
    270        1.1      manu 158	STD		{ int linux_sys_sched_setparam(pid_t pid, \
    271        1.1      manu 			    const struct linux_sched_param *sp); }
    272        1.1      manu 159	STD		{ int linux_sys_sched_getparam(pid_t pid, \
    273        1.1      manu 			    struct linux_sched_param *sp); }
    274        1.1      manu 160	STD		{ int linux_sys_sched_setscheduler(pid_t pid, \
    275        1.1      manu 			    int policy, const struct linux_sched_param *sp); }
    276        1.1      manu 161	STD		{ int linux_sys_sched_getscheduler(pid_t pid); }
    277        1.1      manu 162	STD		{ int linux_sys_sched_yield(void); }
    278        1.1      manu 163	STD		{ int linux_sys_sched_get_priority_max(int policy); }
    279        1.1      manu 164	STD		{ int linux_sys_sched_get_priority_min(int policy); }
    280        1.1      manu 165	UNIMPL		sched_rr_get_interval
    281  1.29.12.1       snj 166	STD		{ int linux_sys_nanosleep( \
    282  1.29.12.1       snj 			    const struct linux_timespec *rqtp, \
    283  1.29.12.1       snj 			    struct linux_timespec *rmtp); }
    284        1.1      manu 167	STD		{ void *linux_sys_mremap(void *old_address, \
    285        1.1      manu 			    size_t old_size, size_t new_size, u_long flags); }
    286        1.3      manu 168	NOARGS		{ int linux_sys_accept(int s, \
    287        1.3      manu 			    struct osockaddr *name, int *anamelen); }
    288        1.3      manu 169	NOARGS		{ int linux_sys_bind(int s, \
    289        1.3      manu 			    const struct osockaddr *name, int namelen); }
    290        1.3      manu 170	NOARGS		{ int linux_sys_connect(int s, \
    291        1.3      manu 			    const struct sockaddr *name, int namelen); }
    292       1.23  christos 171	NOARGS		{ int linux_sys_getpeername(int fdes, void *asa, \
    293        1.3      manu 			    int *alen); }
    294       1.23  christos 172	NOARGS		{ int linux_sys_getsockname(int fdes, void *asa, \
    295        1.3      manu 			    int *alen); }
    296        1.3      manu 173	NOARGS		{ int linux_sys_getsockopt(int s, int level, \
    297        1.3      manu 			    int optname, void *optval, int *optlen); }
    298        1.3      manu 174	NOARGS		{ int sys_listen(int s, int backlog); }
    299        1.3      manu 175	NOARGS		{ int linux_sys_recv(int s, void *buf, int len, \
    300        1.3      manu 			    int flags); }
    301        1.3      manu 176	NOARGS		{ int linux_sys_recvfrom(int s, void *buf, int len, \
    302        1.3      manu 			    int flags, struct osockaddr *from, \
    303        1.3      manu 			    int *fromlenaddr); }
    304        1.3      manu 177	NOARGS		{ int linux_sys_recvmsg(int s, struct msghdr *msg, \
    305        1.3      manu 			    u_int flags); }
    306       1.23  christos 178	NOARGS		{ int linux_sys_send(int s, void *buf, int len, \
    307        1.3      manu 			    int flags); }
    308        1.3      manu 179	NOARGS		{ int linux_sys_sendmsg(int s, struct msghdr *msg, \
    309        1.3      manu 			    u_int flags); }
    310        1.3      manu 180	NOARGS		{ int linux_sys_sendto(int s, void *msg, \
    311        1.3      manu 			    int len, int flags, struct osockaddr *to, \
    312        1.3      manu 			    int tolen); }
    313        1.3      manu 181	NOARGS		{ int linux_sys_setsockopt(int s, int level, \
    314        1.3      manu 			    int optname, void *optval, int optlen); }
    315        1.3      manu 182	UNIMPL		shutdown
    316        1.3      manu 183	NOARGS		{ int linux_sys_socket(int domain, int type, \
    317        1.3      manu 			    int protocol); }
    318        1.3      manu 184	NOARGS		{ int linux_sys_socketpair(int domain, int type, \
    319        1.3      manu 			    int protocol, int *rsv); }
    320        1.1      manu 185	STD		{ int linux_sys_setresuid(uid_t ruid, uid_t euid, \
    321        1.1      manu 			    uid_t suid); }
    322        1.1      manu 186	STD		{ int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
    323        1.1      manu 			    uid_t *suid); }
    324        1.1      manu 187	UNIMPL		query_module
    325        1.1      manu 188	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
    326        1.1      manu 			    int timeout); }
    327        1.1      manu 189	UNIMPL		nfsservctl
    328        1.1      manu 190	STD		{ int linux_sys_setresgid(gid_t rgid, gid_t egid, \
    329        1.1      manu 			    gid_t sgid); }
    330        1.1      manu 191	STD		{ int linux_sys_getresgid(gid_t *rgid, gid_t *egid, \
    331        1.1      manu 			    gid_t *sgid); }
    332        1.1      manu 192	UNIMPL		prctl
    333        1.1      manu 193	STD		{ int linux_sys_rt_sigreturn( \
    334        1.1      manu 			    struct linux_pt_regs regs); }
    335        1.1      manu 194	STD		{ int linux_sys_rt_sigaction(int signum, \
    336        1.1      manu 			    const struct linux_sigaction *nsa, \
    337        1.1      manu 			    struct linux_sigaction *osa, \
    338        1.1      manu 			    size_t sigsetsize); }
    339        1.1      manu 195	STD		{ int linux_sys_rt_sigprocmask(int how, \
    340        1.1      manu 			    const linux_sigset_t *set, \
    341        1.1      manu 			    linux_sigset_t *oset, \
    342        1.1      manu 			    size_t sigsetsize); }
    343        1.1      manu 196	STD		{ int linux_sys_rt_sigpending( \
    344        1.1      manu 			    linux_sigset_t *set, \
    345        1.1      manu 			    size_t sigsetsize); }
    346        1.1      manu 197	UNIMPL		rt_sigtimedwait
    347        1.1      manu ; XXX XAX int here?  sigset_t here?  siginfo_t
    348        1.1      manu 198	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
    349        1.1      manu 			    void *uinfo); }
    350        1.1      manu 199	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
    351        1.1      manu 			    size_t sigsetsize); }
    352        1.1      manu 200	STD		{ int linux_sys_pread(int fd, char *buf, \
    353        1.1      manu 			    size_t nbyte, linux_off_t offset); }
    354        1.1      manu 201	STD		{ int linux_sys_pwrite(int fd, char *buf, \
    355        1.1      manu 			    size_t nbyte, linux_off_t offset); }
    356       1.24     njoly 202	NOARGS		{ int sys___posix_chown(const char *path, \
    357        1.1      manu 			    int uid, int gid); }
    358        1.1      manu 203	NOARGS		{ int sys___getcwd(char *bufp, size_t length); }
    359        1.1      manu 204	UNIMPL		capget
    360        1.1      manu 205	UNIMPL		capset
    361        1.1      manu 206	STD		{ int linux_sys_sigaltstack( \
    362        1.1      manu 			    const struct linux_sigaltstack *ss, \
    363        1.1      manu 			    struct linux_sigaltstack *oss); }
    364        1.1      manu 207	UNIMPL		sendfile
    365        1.1      manu 208	UNIMPL
    366        1.7     rafal 209	UNIMPL
    367       1.25       dsl #define linux_sys_mmap2_args linux_sys_mmap_args
    368       1.11  christos 210	NOARGS		{ linux_off_t linux_sys_mmap2(unsigned long addr, \
    369       1.11  christos 			    size_t len, int prot, int flags, int fd, \
    370       1.11  christos 			    linux_off_t offset); }
    371        1.2      manu 211	STD		{ int linux_sys_truncate64(const char *path, \
    372        1.2      manu 			    off_t length); }
    373       1.12  jdolecek 212	STD		{ int linux_sys_ftruncate64(unsigned int fd, \
    374       1.12  jdolecek 			    off_t length); }
    375        1.2      manu 213	STD		{ int linux_sys_stat64(const char *path, \
    376        1.5  christos 			    struct linux_stat64 *sp); }
    377        1.2      manu 214	STD		{ int linux_sys_lstat64(const char *path, \
    378        1.5  christos 			    struct linux_stat64 *sp); }
    379        1.2      manu 215	STD		{ int linux_sys_fstat64(int fd, \
    380        1.5  christos 			    struct linux_stat64 *sp); }
    381        1.1      manu 216	UNIMPL		pivot_root
    382       1.13  jdolecek 217	NOARGS		{ int sys_mincore(void *addr, size_t len, char *vec); }
    383       1.13  jdolecek 218	NOARGS		{ int sys_madvise(void *addr, size_t len, int behav); }
    384        1.9  christos 219	STD		{ int linux_sys_getdents64(int fd, \
    385        1.9  christos 			    struct linux_dirent64 *dent, unsigned int count); }
    386        1.8  christos 220	STD		{ int linux_sys_fcntl64(int fd, \
    387        1.8  christos 			    int cmd, void *arg); }
    388       1.14  jdolecek 221	UNIMPL		/* reserved */
    389       1.14  jdolecek 222	UNIMPL		gettid
    390       1.14  jdolecek 223	UNIMPL		readahead
    391       1.18      fvdl 224	STD		{ int linux_sys_setxattr(char *path, char *name, \
    392       1.18      fvdl 			    void *value, size_t size, int flags); }
    393       1.18      fvdl 225	STD		{ int linux_sys_lsetxattr(char *path, char *name, \
    394       1.18      fvdl 			    void *value, size_t size, int flags); }
    395       1.18      fvdl 226	STD		{ int linux_sys_fsetxattr(int fd, char *name, \
    396       1.18      fvdl 			    void *value, size_t size, int flags); }
    397       1.18      fvdl 227	STD		{ ssize_t linux_sys_getxattr(char *path, char *name, \
    398       1.18      fvdl 			    void *value, size_t size); }
    399       1.18      fvdl 228	STD		{ ssize_t linux_sys_lgetxattr(char *path, char *name, \
    400       1.18      fvdl 			    void *value, size_t size); }
    401       1.18      fvdl 229	STD		{ ssize_t linux_sys_fgetxattr(int fd, char *name, \
    402       1.18      fvdl 			    void *value, size_t size); }
    403       1.18      fvdl 230	STD		{ ssize_t linux_sys_listxattr(char *path, char *list, \
    404       1.18      fvdl 			    size_t size); }
    405       1.18      fvdl 231	STD		{ ssize_t linux_sys_llistxattr(char *path, char *list, \
    406       1.18      fvdl 			    size_t size); }
    407       1.18      fvdl 232	STD		{ ssize_t linux_sys_flistxattr(int fd, char *list, \
    408       1.18      fvdl 			    size_t size); }
    409       1.18      fvdl 233	STD		{ int linux_sys_removexattr(char *path, char *name); }
    410       1.18      fvdl 234	STD		{ int linux_sys_lremovexattr(char *path, char *name); }
    411       1.18      fvdl 235	STD		{ int linux_sys_fremovexattr(int fd, char *name); }
    412       1.14  jdolecek 236	UNIMPL		tkill
    413       1.14  jdolecek 237	UNIMPL		sendfile64
    414       1.14  jdolecek 238	UNIMPL		futex
    415       1.14  jdolecek 239	UNIMPL		sched_setaffinity
    416       1.14  jdolecek 240	UNIMPL		sched_getaffinity
    417       1.14  jdolecek 241	UNIMPL		io_setup
    418       1.14  jdolecek 242	UNIMPL		io_destroy
    419       1.14  jdolecek 243	UNIMPL		io_getevents
    420       1.14  jdolecek 244	UNIMPL		io_submit
    421       1.14  jdolecek 245	UNIMPL		io_cancel
    422       1.15  jdolecek 246	STD		{ int linux_sys_exit_group(int error_code); }
    423       1.14  jdolecek 247	UNIMPL		lookup_dcookie
    424       1.14  jdolecek 248	UNIMPL		epoll_create
    425       1.14  jdolecek 249	UNIMPL		epoll_ctl
    426       1.14  jdolecek 250	UNIMPL		epoll_wait
    427       1.14  jdolecek 251	UNIMPL		remap_file_pages
    428       1.14  jdolecek 252	UNIMPL		set_tid_address
    429       1.14  jdolecek 253	UNIMPL		restart_syscall
    430       1.14  jdolecek 254	UNIMPL		fadvise64
    431       1.16  jdolecek 255	STD		{ int linux_sys_statfs64(const char *path, \
    432       1.16  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    433       1.16  jdolecek 256	STD		{ int linux_sys_fstatfs64(int fd, \
    434       1.16  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    435       1.14  jdolecek 257	UNIMPL		timer_create
    436       1.14  jdolecek 258	UNIMPL		timer_settime
    437       1.14  jdolecek 259	UNIMPL		timer_gettime
    438       1.14  jdolecek 260	UNIMPL		timer_getoverrun
    439       1.14  jdolecek 261	UNIMPL		timer_delete
    440       1.19      fvdl 262	STD		{ int linux_sys_clock_settime(clockid_t which, \
    441       1.19      fvdl 			    struct linux_timespec *tp); }
    442       1.19      fvdl 263	STD		{ int linux_sys_clock_gettime(clockid_t which, \
    443       1.19      fvdl 			    struct linux_timespec *tp); }
    444       1.19      fvdl 264	STD		{ int linux_sys_clock_getres(clockid_t which, \
    445       1.19      fvdl 			    struct linux_timespec *tp); }
    446       1.19      fvdl 265	STD		{ int linux_sys_clock_nanosleep(clockid_t which, \
    447       1.19      fvdl 			    int flags, struct linux_timespec *rqtp, \
    448       1.19      fvdl 			    struct linux_timespec *rmtp); }
    449       1.14  jdolecek 266	UNIMPL		tgkill
    450       1.14  jdolecek 267	UNIMPL		utimes
    451       1.14  jdolecek 268	UNIMPL		mbind
    452       1.14  jdolecek 269	UNIMPL		get_mempolicy
    453       1.14  jdolecek 270	UNIMPL		set_mempolicy
    454       1.14  jdolecek 271	UNIMPL		mq_open
    455       1.14  jdolecek 272	UNIMPL		mq_unlink
    456       1.14  jdolecek 273	UNIMPL		mq_timedsend
    457       1.14  jdolecek 274	UNIMPL		mq_timedreceive
    458       1.14  jdolecek 275	UNIMPL		mq_notify
    459       1.14  jdolecek 276	UNIMPL		mq_getsetattr
    460