Home | History | Annotate | Line # | Download | only in mips
syscalls.master revision 1.45
      1  1.45     pooka 	$NetBSD: syscalls.master,v 1.45 2013/04/08 20:54:48 pooka 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 #include <sys/param.h>
     44   1.1      manu #include <sys/poll.h>
     45   1.1      manu #include <sys/systm.h>
     46   1.1      manu #include <sys/signal.h>
     47   1.1      manu #include <sys/mount.h>
     48   1.1      manu #include <sys/syscallargs.h>
     49   1.1      manu 
     50   1.1      manu #include <compat/linux/common/linux_types.h>
     51   1.1      manu #include <compat/linux/common/linux_signal.h>
     52   1.1      manu #include <compat/linux/common/linux_siginfo.h>
     53   1.1      manu #include <compat/linux/common/linux_machdep.h>
     54   1.1      manu #include <compat/linux/common/linux_mmap.h>
     55   1.3      manu #include <compat/linux/common/linux_socketcall.h>
     56   1.1      manu 
     57   1.1      manu #include <compat/linux/linux_syscallargs.h>
     58   1.1      manu 
     59  1.32     pooka 0	NOARGS		{ int|linux_sys||nosys(void); } syscall
     60  1.38       chs 1	STD		{ int|linux_sys||exit(int rval); }
     61  1.32     pooka 2	NOARGS		{ int|sys||fork(void); }
     62  1.32     pooka 3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
     63  1.32     pooka 4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
     64  1.32     pooka 5	STD		{ int|linux_sys||open(const char *path, int flags, \
     65   1.1      manu 			    int mode); }
     66  1.32     pooka 6	NOARGS		{ int|sys||close(int fd); }
     67  1.32     pooka 7	STD		{ int|linux_sys||waitpid(int pid, int *status, \
     68   1.1      manu 			    int options);}
     69  1.32     pooka 8	STD		{ int|linux_sys||creat(const char *path, int mode); }
     70  1.32     pooka 9	NOARGS		{ int|sys||link(const char *path, const char *link); }
     71  1.32     pooka 10	STD		{ int|linux_sys||unlink(const char *path); }
     72  1.32     pooka 11	NOARGS		{ int|sys||execve(const char *path, char **argp, \
     73   1.1      manu 			    char **envp); }
     74  1.32     pooka 12	NOARGS		{ int|sys||chdir(const char *path); }
     75  1.32     pooka 13	STD		{ int|linux_sys||time(linux_time_t *t); }
     76  1.32     pooka 14	STD		{ int|linux_sys||mknod(const char *path, int mode, \
     77   1.1      manu 			    int dev); }
     78  1.32     pooka 15	NOARGS		{ int|sys||chmod(const char *path, int mode); }
     79  1.32     pooka 16	NOARGS		{ int|sys||__posix_lchown(const char *path, int uid, \
     80   1.1      manu 			    int gid); }
     81   1.1      manu 17	UNIMPL
     82   1.1      manu 18	OBSOL		ostat
     83  1.32     pooka 19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
     84   1.1      manu 			    int whence); }
     85  1.32     pooka 20	NOARGS 		{ pid_t|sys||getpid(void); }
     86   1.1      manu 21	UNIMPL		mount
     87   1.1      manu 22	OBSOL		umount
     88  1.32     pooka 23	NOARGS		{ int|sys||setuid(uid_t uid); }
     89  1.32     pooka 24	NOARGS		{ uid_t|sys||getuid(void); }
     90  1.32     pooka 25	STD		{ int|linux_sys||stime(linux_time_t *t); }
     91  1.39      matt 26	STD		{ int|linux_sys||ptrace(long request, long pid, \
     92  1.39      matt 			  long addr, long data); }
     93  1.32     pooka 27	STD		{ int|linux_sys||alarm(unsigned int secs); }
     94   1.1      manu 28	OBSOL		ofstat
     95  1.32     pooka 29	STD		{ int|linux_sys||pause(void); }
     96  1.32     pooka 30	STD		{ int|linux_sys||utime(const char *path, \
     97   1.1      manu 			    struct linux_utimbuf *times); }
     98   1.1      manu 31	UNIMPL
     99   1.1      manu 32	UNIMPL
    100  1.32     pooka 33	NOARGS		{ int|sys||access(const char *path, int flags); }
    101  1.32     pooka 34	STD		{ int|linux_sys||nice(int incr); }
    102   1.1      manu 35	UNIMPL
    103  1.32     pooka 36	NOARGS		{ int|sys||sync(void); }
    104  1.32     pooka 37	STD		{ int|linux_sys||kill(int pid, int signum); }
    105  1.32     pooka 38	NOARGS		{ int|sys||__posix_rename(const char *from, \
    106   1.1      manu 			    const char *to); }
    107  1.32     pooka 39	NOARGS		{ int|sys||mkdir(const char *path, int mode); }
    108  1.32     pooka 40	NOARGS		{ int|sys||rmdir(const char *path); }
    109  1.32     pooka 41	NOARGS		{ int|sys||dup(u_int fd); }
    110  1.32     pooka 42	STD		{ int|linux_sys||pipe(int *pfds); }
    111  1.32     pooka 43	STD		{ int|linux_sys||times(struct times *tms); }
    112   1.1      manu 44	UNIMPL
    113  1.32     pooka 45	STD		{ int|linux_sys||brk(char *nsize); }
    114  1.32     pooka 46	NOARGS		{ int|sys||setgid(gid_t gid); }
    115  1.32     pooka 47	NOARGS		{ gid_t|sys||getgid(void); }
    116  1.32     pooka 48	STD		{ int|linux_sys||signal(int signum, \
    117   1.1      manu 			    linux___sighandler_t handler); }
    118  1.32     pooka 49	NOARGS		{ uid_t|sys||geteuid(void); }
    119  1.32     pooka 50	NOARGS		{ gid_t|sys||getegid(void); }
    120  1.32     pooka 51	NOARGS		{ int|sys||acct(char *path); }
    121   1.1      manu 52	UNIMPL		umount
    122   1.1      manu 53	UNIMPL
    123  1.32     pooka 54	STD		{ int|linux_sys||ioctl(int fd, u_long com, \
    124  1.23  christos 			    void *data); }
    125  1.32     pooka 55	STD		{ int|linux_sys||fcntl(int fd, int cmd, void *arg); }
    126   1.1      manu 56	OBSOL		mpx
    127  1.32     pooka 57	NOARGS		{ int|sys||setpgid(int pid, int pgid); }
    128   1.1      manu 58	UNIMPL
    129  1.32     pooka 59 	STD  		    { int|linux_sys||olduname(struct linux_old_utsname \
    130   1.1      manu 			    *up); }
    131  1.32     pooka 60	NOARGS		{ int|sys||umask(int newmask); }
    132  1.32     pooka 61	NOARGS		{ int|sys||chroot(char *path); }
    133   1.1      manu 62	UNIMPL		ustat
    134  1.32     pooka 63	NOARGS		{ int|sys||dup2(u_int from, u_int to); }
    135  1.32     pooka 64	NOARGS		{ pid_t|sys||getppid(void); }
    136  1.32     pooka 65	NOARGS		{ int|sys||getpgrp(void); }
    137  1.32     pooka 66	NOARGS		{ int|sys||setsid(void); }
    138  1.32     pooka 67	STD		{ int|linux_sys||sigaction(int signum, \
    139   1.1      manu 			    const struct linux_old_sigaction *nsa, \
    140   1.1      manu 			    struct linux_old_sigaction *osa); }
    141  1.32     pooka 68	STD		{ int|linux_sys||siggetmask(void); }
    142  1.32     pooka 69	STD		{ int|linux_sys||sigsetmask(linux_old_sigset_t mask); }
    143  1.32     pooka 70	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
    144  1.32     pooka 71	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
    145  1.32     pooka 72	STD		{ int|linux_sys||sigsuspend(void *restart, \
    146   1.1      manu 			    int oldmask, int mask); }
    147  1.32     pooka 73	STD		{ int|linux_sys||sigpending(linux_old_sigset_t *set); }
    148  1.32     pooka 74	NOARGS		{ int|compat_43_sys||sethostname(char *hostname, \
    149   1.1      manu 			    u_int len);}
    150  1.32     pooka 75	STD		{ int|linux_sys||setrlimit(u_int which, \
    151   1.1      manu 			    struct orlimit *rlp); }
    152  1.32     pooka 76	STD		{ int|linux_sys||getrlimit(u_int which, \
    153   1.1      manu 			    struct orlimit *rlp); }
    154  1.33     njoly 77	NOARGS		{ int|compat_50_sys||getrusage(int who, \
    155  1.33     njoly 			    struct rusage50 *rusage); }
    156  1.33     njoly 78	STD		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
    157   1.1      manu 			    struct timezone *tzp); }
    158  1.33     njoly 79	STD		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
    159   1.1      manu 			    struct timezone *tzp); }
    160  1.32     pooka 80	NOARGS		{ int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
    161  1.32     pooka 81	NOARGS		{ int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
    162   1.1      manu 82	UNIMPL		old_select
    163  1.32     pooka 83	NOARGS		{ int|sys||symlink(const char *path, const char *to); }
    164  1.32     pooka 84	NOARGS		{ int|compat_43_sys||lstat(const char *path, \
    165   1.1      manu 			    struct stat43 *up); } oolstat
    166  1.32     pooka 85	NOARGS		{ int|sys||readlink(const char *name, char *buf, \
    167   1.1      manu 			    int count); }
    168   1.1      manu 86	UNIMPL		uselib
    169  1.32     pooka ;86	STD		{ int|linux_sys||uselib(const char *path); }
    170  1.32     pooka 87	STD		{ int|linux_sys||swapon(char *name); }
    171  1.32     pooka 88	STD		{ int|linux_sys||reboot(int magic1, int magic2, \
    172   1.1      manu 			    int cmd, void *arg); }
    173  1.32     pooka 89	STD		{ int|linux_sys||readdir(int fd, void *dent, \
    174   1.1      manu 			    unsigned int count); }
    175  1.32     pooka 90	NOARGS      	{ int|linux_sys||mmap(unsigned long addr, size_t len, \
    176   1.1      manu 			    int prot, int flags, int fd, linux_off_t offset); }
    177  1.32     pooka 91	NOARGS		{ int|sys||munmap(void *addr, int len); }
    178  1.32     pooka 92	NOARGS		{ int|compat_43_sys||truncate(const char *path, \
    179   1.1      manu 			    long length); }
    180  1.32     pooka 93	NOARGS		{ int|compat_43_sys||ftruncate(int fd, long length); }
    181  1.32     pooka 94	NOARGS		{ int|sys||fchmod(int fd, int mode); }
    182  1.32     pooka 95 	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); }
    183  1.32     pooka 96	STD		{ int|linux_sys||getpriority(int which, int who); }
    184  1.32     pooka 97	NOARGS		{ int|sys||setpriority(int which, int who, int prio); }
    185   1.1      manu 98	UNIMPL
    186  1.32     pooka 99	STD		{ int|linux_sys||statfs(const char *path, \
    187   1.1      manu 			    struct linux_statfs *sp); }
    188  1.32     pooka 100	STD		{ int|linux_sys||fstatfs(int fd, \
    189   1.1      manu 			    struct linux_statfs *sp); }
    190  1.32     pooka 101	STD		{ int|linux_sys||ioperm(unsigned int lo, \
    191   1.1      manu 			    unsigned int hi, int val); }
    192  1.32     pooka 102	STD		{ int|linux_sys||socketcall(int what, void *args); }
    193   1.1      manu 103	UNIMPL		syslog
    194  1.42  christos 104	NOARGS		{ int|compat_50_sys||setitimer(int which, \
    195  1.33     njoly 			    struct itimerval50 *itv, \
    196  1.33     njoly 			    struct itimerval50 *oitv); }
    197  1.42  christos 105	NOARGS		{ int|compat_50_sys||getitimer(int which, \
    198  1.33     njoly 			    struct itimerval50 *itv); }
    199  1.32     pooka 106	STD		{ int|linux_sys||stat(const char *path, \
    200   1.1      manu 			    struct linux_stat *sp); }
    201  1.32     pooka 107	STD		{ int|linux_sys||lstat(const char *path, \
    202   1.1      manu 			    struct linux_stat *sp); }
    203  1.32     pooka 108	STD		{ int|linux_sys||fstat(int fd, struct linux_stat *sp); }
    204  1.32     pooka 109	STD		{ int|linux_sys||uname(struct linux_utsname *up); }
    205  1.17     perry 110	UNIMPL		iopl
    206   1.1      manu 111	UNIMPL		vhangup
    207   1.1      manu 112	UNIMPL		idle
    208  1.17     perry 113	UNIMPL		vm86old
    209  1.32     pooka 114	STD		{ int|linux_sys||wait4(int pid, int *status, \
    210  1.34     njoly 			    int options, struct rusage50 *rusage); }
    211  1.32     pooka 115	STD		{ int|linux_sys||swapoff(const char *path); }
    212  1.32     pooka 116	STD		{ int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
    213  1.39      matt 117	STD		{ int|linux_sys||ipc(int what, long a1, long a2, \
    214  1.39      matt 			    long a3, void *ptr); }
    215  1.32     pooka 118	NOARGS		{ int|sys||fsync(int fd); }
    216  1.32     pooka 119	STD		{ int|linux_sys||sigreturn(struct linux_sigframe *sf); }
    217  1.38       chs 120	STD		{ int|linux_sys||clone(int flags, void *stack, \
    218  1.38       chs 			    void *parent_tidptr, void *tls, void *child_tidptr); }
    219  1.32     pooka 121	STD		{ int|linux_sys||setdomainname(char *domainname, \
    220   1.1      manu 			    int len); }
    221  1.32     pooka 122	STD		{ int|linux_sys||new_uname(struct linux_utsname *up); }
    222  1.17     perry 123	UNIMPL		modify_ldt
    223   1.1      manu 124	UNIMPL		adjtimex
    224  1.32     pooka 125	STD		{ int|linux_sys||mprotect(const void *start, \
    225   1.8  christos 			    unsigned long len, int prot); }
    226  1.32     pooka 126	STD		{ int|linux_sys||sigprocmask(int how, \
    227   1.1      manu 			    const linux_old_sigset_t *set, \
    228   1.1      manu 			    linux_old_sigset_t *oset); }
    229   1.1      manu 127	UNIMPL		create_module
    230   1.1      manu 128	UNIMPL		init_module
    231   1.1      manu 129	UNIMPL		delete_module
    232   1.1      manu 130	UNIMPL		get_kernel_syms
    233   1.1      manu 131	UNIMPL		quotactl
    234  1.32     pooka 132	NOARGS		{ pid_t|sys||getpgid(pid_t pid); }
    235  1.32     pooka 133	NOARGS		{ int|sys||fchdir(int fd); }
    236   1.1      manu 134	UNIMPL		bdflush
    237   1.1      manu 135	UNIMPL		sysfs
    238  1.37     njoly 136	STD		{ int|linux_sys||personality(unsigned long per); }
    239   1.1      manu 137	UNIMPL		afs_syscall
    240  1.32     pooka 138	STD		{ int|linux_sys||setfsuid(uid_t uid); }
    241  1.32     pooka 139	STD		{ int|linux_sys||setfsgid(gid_t gid); }
    242  1.32     pooka 140	STD		{ int|linux_sys||llseek(int fd, u_int32_t ohigh, \
    243  1.23  christos 			    u_int32_t olow, void *res, int whence); }
    244  1.32     pooka 141	STD		{ int|linux_sys||getdents(int fd, \
    245   1.1      manu 			    struct linux_dirent *dent, unsigned int count); }
    246  1.32     pooka 142	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \
    247   1.1      manu 			    fd_set *writefds, fd_set *exceptfds, \
    248  1.33     njoly 			    struct timeval50 *timeout); }
    249  1.32     pooka 143	NOARGS		{ int|sys||flock(int fd, int how); }
    250  1.32     pooka 144	NOARGS		{ int|sys|13|msync(void *addr, size_t len, int flags); }
    251  1.32     pooka 145	NOARGS		{ int|sys||readv(int fd, struct iovec *iovp, \
    252   1.1      manu 				u_int iovcnt); }
    253  1.32     pooka 146	NOARGS		{ int|sys||writev(int fd, struct iovec *iovp, \
    254   1.1      manu 				u_int iovcnt); }
    255  1.32     pooka 147	STD		{ int|linux_sys||cacheflush(void *addr, \
    256   1.1      manu 			    int bytes, int cache); }
    257   1.1      manu 148	UNIMPL		cachectl
    258  1.39      matt 149	STD		{ int|linux_sys||sysmips(long cmd, long arg1, \
    259  1.39      matt 			    long arg2, long arg3); }
    260   1.1      manu 150	UNIMPL
    261  1.32     pooka 151	NOARGS		{ pid_t|sys||getsid(pid_t pid); }
    262  1.32     pooka 152	STD		{ int|linux_sys||fdatasync(int fd); }
    263  1.32     pooka 153	STD		{ int|linux_sys||__sysctl(struct linux___sysctl *lsp); }
    264  1.32     pooka 154	NOARGS		{ int|sys||mlock(void *addr, size_t len); }
    265  1.32     pooka 155	NOARGS		{ int|sys||munlock(void *addr, size_t len); }
    266  1.32     pooka 156	NOARGS		{ int|sys||mlockall(int flags); }
    267  1.32     pooka 157	NOARGS		{ int|sys||munlockall(void); }
    268  1.32     pooka 158	STD		{ int|linux_sys||sched_setparam(pid_t pid, \
    269   1.1      manu 			    const struct linux_sched_param *sp); }
    270  1.32     pooka 159	STD		{ int|linux_sys||sched_getparam(pid_t pid, \
    271   1.1      manu 			    struct linux_sched_param *sp); }
    272  1.32     pooka 160	STD		{ int|linux_sys||sched_setscheduler(pid_t pid, \
    273   1.1      manu 			    int policy, const struct linux_sched_param *sp); }
    274  1.32     pooka 161	STD		{ int|linux_sys||sched_getscheduler(pid_t pid); }
    275  1.32     pooka 162	STD		{ int|linux_sys||sched_yield(void); }
    276  1.32     pooka 163	STD		{ int|linux_sys||sched_get_priority_max(int policy); }
    277  1.32     pooka 164	STD		{ int|linux_sys||sched_get_priority_min(int policy); }
    278   1.1      manu 165	UNIMPL		sched_rr_get_interval
    279  1.32     pooka 166	STD		{ int|linux_sys||nanosleep( \
    280  1.30     njoly 			    const struct linux_timespec *rqtp, \
    281  1.30     njoly 			    struct linux_timespec *rmtp); }
    282  1.32     pooka 167	STD		{ void *|linux_sys||mremap(void *old_address, \
    283   1.1      manu 			    size_t old_size, size_t new_size, u_long flags); }
    284  1.32     pooka 168	NOARGS		{ int|linux_sys||accept(int s, \
    285   1.3      manu 			    struct osockaddr *name, int *anamelen); }
    286  1.32     pooka 169	NOARGS		{ int|linux_sys||bind(int s, \
    287   1.3      manu 			    const struct osockaddr *name, int namelen); }
    288  1.32     pooka 170	NOARGS		{ int|linux_sys||connect(int s, \
    289   1.3      manu 			    const struct sockaddr *name, int namelen); }
    290  1.32     pooka 171	NOARGS		{ int|linux_sys||getpeername(int fdes, void *asa, \
    291   1.3      manu 			    int *alen); }
    292  1.32     pooka 172	NOARGS		{ int|linux_sys||getsockname(int fdes, void *asa, \
    293   1.3      manu 			    int *alen); }
    294  1.32     pooka 173	NOARGS		{ int|linux_sys||getsockopt(int s, int level, \
    295   1.3      manu 			    int optname, void *optval, int *optlen); }
    296  1.32     pooka 174	NOARGS		{ int|sys||listen(int s, int backlog); }
    297  1.32     pooka 175	NOARGS		{ int|linux_sys||recv(int s, void *buf, int len, \
    298   1.3      manu 			    int flags); }
    299  1.32     pooka 176	NOARGS		{ int|linux_sys||recvfrom(int s, void *buf, int len, \
    300   1.3      manu 			    int flags, struct osockaddr *from, \
    301   1.3      manu 			    int *fromlenaddr); }
    302  1.36     njoly 177	NOARGS		{ int|linux_sys||recvmsg(int s, \
    303  1.36     njoly 			    struct linux_msghdr *msg, u_int flags); }
    304  1.32     pooka 178	NOARGS		{ int|linux_sys||send(int s, void *buf, int len, \
    305   1.3      manu 			    int flags); }
    306  1.36     njoly 179	NOARGS		{ int|linux_sys||sendmsg(int s, \
    307  1.36     njoly 			    struct linux_msghdr *msg, u_int flags); }
    308  1.32     pooka 180	NOARGS		{ int|linux_sys||sendto(int s, void *msg, \
    309   1.3      manu 			    int len, int flags, struct osockaddr *to, \
    310   1.3      manu 			    int tolen); }
    311  1.32     pooka 181	NOARGS		{ int|linux_sys||setsockopt(int s, int level, \
    312   1.3      manu 			    int optname, void *optval, int optlen); }
    313   1.3      manu 182	UNIMPL		shutdown
    314  1.32     pooka 183	NOARGS		{ int|linux_sys||socket(int domain, int type, \
    315   1.3      manu 			    int protocol); }
    316  1.32     pooka 184	NOARGS		{ int|linux_sys||socketpair(int domain, int type, \
    317   1.3      manu 			    int protocol, int *rsv); }
    318  1.32     pooka 185	STD		{ int|linux_sys||setresuid(uid_t ruid, uid_t euid, \
    319   1.1      manu 			    uid_t suid); }
    320  1.32     pooka 186	STD		{ int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \
    321   1.1      manu 			    uid_t *suid); }
    322   1.1      manu 187	UNIMPL		query_module
    323  1.32     pooka 188	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
    324   1.1      manu 			    int timeout); }
    325   1.1      manu 189	UNIMPL		nfsservctl
    326  1.32     pooka 190	STD		{ int|linux_sys||setresgid(gid_t rgid, gid_t egid, \
    327   1.1      manu 			    gid_t sgid); }
    328  1.32     pooka 191	STD		{ int|linux_sys||getresgid(gid_t *rgid, gid_t *egid, \
    329   1.1      manu 			    gid_t *sgid); }
    330   1.1      manu 192	UNIMPL		prctl
    331  1.32     pooka 193	STD		{ int|linux_sys||rt_sigreturn( \
    332  1.38       chs 			    struct linux_pt_regs *regs); }
    333  1.32     pooka 194	STD		{ int|linux_sys||rt_sigaction(int signum, \
    334   1.1      manu 			    const struct linux_sigaction *nsa, \
    335   1.1      manu 			    struct linux_sigaction *osa, \
    336   1.1      manu 			    size_t sigsetsize); }
    337  1.32     pooka 195	STD		{ int|linux_sys||rt_sigprocmask(int how, \
    338   1.1      manu 			    const linux_sigset_t *set, \
    339   1.1      manu 			    linux_sigset_t *oset, \
    340   1.1      manu 			    size_t sigsetsize); }
    341  1.32     pooka 196	STD		{ int|linux_sys||rt_sigpending( \
    342   1.1      manu 			    linux_sigset_t *set, \
    343   1.1      manu 			    size_t sigsetsize); }
    344  1.43  christos 197	STD		{ int|linux_sys||rt_sigtimedwait( \
    345  1.43  christos 			    const linux_sigset_t *set, \
    346  1.43  christos 			    linux_siginfo_t *info, \
    347  1.43  christos 			    const struct linux_timespec *timeout); }
    348  1.32     pooka 198	STD		{ int|linux_sys||rt_queueinfo(int pid, int signum, \
    349  1.35     njoly 			    linux_siginfo_t *uinfo); }
    350  1.32     pooka 199	STD		{ int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
    351   1.1      manu 			    size_t sigsetsize); }
    352  1.32     pooka 200	STD		{ int|linux_sys||pread(int fd, char *buf, \
    353   1.1      manu 			    size_t nbyte, linux_off_t offset); }
    354  1.32     pooka 201	STD		{ int|linux_sys||pwrite(int fd, char *buf, \
    355   1.1      manu 			    size_t nbyte, linux_off_t offset); }
    356  1.32     pooka 202	NOARGS		{ int|sys||__posix_chown(const char *path, \
    357   1.1      manu 			    int uid, int gid); }
    358  1.32     pooka 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.32     pooka 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.32     pooka 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.32     pooka 211	STD		{ int|linux_sys||truncate64(const char *path, \
    372   1.2      manu 			    off_t length); }
    373  1.32     pooka 212	STD		{ int|linux_sys||ftruncate64(unsigned int fd, \
    374  1.12  jdolecek 			    off_t length); }
    375  1.32     pooka 213	STD		{ int|linux_sys||stat64(const char *path, \
    376   1.5  christos 			    struct linux_stat64 *sp); }
    377  1.32     pooka 214	STD		{ int|linux_sys||lstat64(const char *path, \
    378   1.5  christos 			    struct linux_stat64 *sp); }
    379  1.32     pooka 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.32     pooka 217	NOARGS		{ int|sys||mincore(void *addr, size_t len, char *vec); }
    383  1.32     pooka 218	NOARGS		{ int|sys||madvise(void *addr, size_t len, int behav); }
    384  1.32     pooka 219	STD		{ int|linux_sys||getdents64(int fd, \
    385   1.9  christos 			    struct linux_dirent64 *dent, unsigned int count); }
    386  1.32     pooka 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.38       chs 222	NOARGS		{ pid_t|linux_sys||gettid(void); }
    390  1.14  jdolecek 223	UNIMPL		readahead
    391  1.32     pooka 224	STD		{ int|linux_sys||setxattr(char *path, char *name, \
    392  1.18      fvdl 			    void *value, size_t size, int flags); }
    393  1.32     pooka 225	STD		{ int|linux_sys||lsetxattr(char *path, char *name, \
    394  1.18      fvdl 			    void *value, size_t size, int flags); }
    395  1.32     pooka 226	STD		{ int|linux_sys||fsetxattr(int fd, char *name, \
    396  1.18      fvdl 			    void *value, size_t size, int flags); }
    397  1.32     pooka 227	STD		{ ssize_t|linux_sys||getxattr(char *path, char *name, \
    398  1.18      fvdl 			    void *value, size_t size); }
    399  1.32     pooka 228	STD		{ ssize_t|linux_sys||lgetxattr(char *path, char *name, \
    400  1.18      fvdl 			    void *value, size_t size); }
    401  1.32     pooka 229	STD		{ ssize_t|linux_sys||fgetxattr(int fd, char *name, \
    402  1.18      fvdl 			    void *value, size_t size); }
    403  1.32     pooka 230	STD		{ ssize_t|linux_sys||listxattr(char *path, char *list, \
    404  1.18      fvdl 			    size_t size); }
    405  1.32     pooka 231	STD		{ ssize_t|linux_sys||llistxattr(char *path, char *list, \
    406  1.18      fvdl 			    size_t size); }
    407  1.32     pooka 232	STD		{ ssize_t|linux_sys||flistxattr(int fd, char *list, \
    408  1.18      fvdl 			    size_t size); }
    409  1.32     pooka 233	STD		{ int|linux_sys||removexattr(char *path, char *name); }
    410  1.32     pooka 234	STD		{ int|linux_sys||lremovexattr(char *path, char *name); }
    411  1.32     pooka 235	STD		{ int|linux_sys||fremovexattr(int fd, char *name); }
    412  1.38       chs 236	STD		{ int|linux_sys||tkill(int tid, int sig); }
    413  1.14  jdolecek 237	UNIMPL		sendfile64
    414  1.38       chs 238	STD		{ int|linux_sys||futex(int *uaddr, int op, int val, \
    415  1.38       chs 			    const struct linux_timespec *timeout, int *uaddr2, \
    416  1.38       chs 			    int val3); }
    417  1.38       chs 239	STD		{ int|linux_sys||sched_setaffinity(pid_t pid, \
    418  1.38       chs 			    unsigned int len, unsigned long *mask); }
    419  1.38       chs 240	STD		{ int|linux_sys||sched_getaffinity(pid_t pid, \
    420  1.38       chs 			    unsigned int len, unsigned long *mask); }
    421  1.14  jdolecek 241	UNIMPL		io_setup
    422  1.14  jdolecek 242	UNIMPL		io_destroy
    423  1.14  jdolecek 243	UNIMPL		io_getevents
    424  1.14  jdolecek 244	UNIMPL		io_submit
    425  1.14  jdolecek 245	UNIMPL		io_cancel
    426  1.32     pooka 246	STD		{ int|linux_sys||exit_group(int error_code); }
    427  1.14  jdolecek 247	UNIMPL		lookup_dcookie
    428  1.14  jdolecek 248	UNIMPL		epoll_create
    429  1.14  jdolecek 249	UNIMPL		epoll_ctl
    430  1.14  jdolecek 250	UNIMPL		epoll_wait
    431  1.14  jdolecek 251	UNIMPL		remap_file_pages
    432  1.38       chs 252	STD		{ int|linux_sys||set_tid_address(int *tid); }
    433  1.14  jdolecek 253	UNIMPL		restart_syscall
    434  1.41     alnsn 254	STD		{ int|linux_sys||fadvise64(int fd, \
    435  1.41     alnsn 			    linux_off_t offset, size_t len, int advice); }
    436  1.32     pooka 255	STD		{ int|linux_sys||statfs64(const char *path, \
    437  1.16  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    438  1.32     pooka 256	STD		{ int|linux_sys||fstatfs64(int fd, \
    439  1.16  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    440  1.14  jdolecek 257	UNIMPL		timer_create
    441  1.14  jdolecek 258	UNIMPL		timer_settime
    442  1.14  jdolecek 259	UNIMPL		timer_gettime
    443  1.14  jdolecek 260	UNIMPL		timer_getoverrun
    444  1.14  jdolecek 261	UNIMPL		timer_delete
    445  1.32     pooka 262	STD		{ int|linux_sys||clock_settime(clockid_t which, \
    446  1.19      fvdl 			    struct linux_timespec *tp); }
    447  1.32     pooka 263	STD		{ int|linux_sys||clock_gettime(clockid_t which, \
    448  1.19      fvdl 			    struct linux_timespec *tp); }
    449  1.32     pooka 264	STD		{ int|linux_sys||clock_getres(clockid_t which, \
    450  1.19      fvdl 			    struct linux_timespec *tp); }
    451  1.32     pooka 265	STD		{ int|linux_sys||clock_nanosleep(clockid_t which, \
    452  1.19      fvdl 			    int flags, struct linux_timespec *rqtp, \
    453  1.19      fvdl 			    struct linux_timespec *rmtp); }
    454  1.38       chs 266	STD		{ int|linux_sys||tgkill(int tgid, int tid, int sig); }
    455  1.45     pooka 267	STD		{ int|linux_sys||utimes(const char *path, struct linux_timeval *times); }
    456  1.14  jdolecek 268	UNIMPL		mbind
    457  1.14  jdolecek 269	UNIMPL		get_mempolicy
    458  1.14  jdolecek 270	UNIMPL		set_mempolicy
    459  1.14  jdolecek 271	UNIMPL		mq_open
    460  1.14  jdolecek 272	UNIMPL		mq_unlink
    461  1.14  jdolecek 273	UNIMPL		mq_timedsend
    462  1.14  jdolecek 274	UNIMPL		mq_timedreceive
    463  1.14  jdolecek 275	UNIMPL		mq_notify
    464  1.14  jdolecek 276	UNIMPL		mq_getsetattr
    465  1.38       chs 277	UNIMPL		vserve
    466  1.38       chs 278	UNIMPL		waitid
    467  1.38       chs 279	UNIMPL		setaltroot
    468  1.38       chs 280	UNIMPL		add_key
    469  1.38       chs 281	UNIMPL		request_key
    470  1.38       chs 282	UNIMPL		keyctl
    471  1.38       chs 283	STD		{ int|linux_sys||set_thread_area(void *tls); }
    472  1.38       chs 284	UNIMPL		inotify_init
    473  1.38       chs 285	UNIMPL		inotify_add_watch
    474  1.38       chs 286	UNIMPL		inotify_rm_watch
    475  1.38       chs 287	UNIMPL		migrate_pages
    476  1.38       chs 288	UNIMPL		openat
    477  1.38       chs 289	UNIMPL		mkdirat
    478  1.38       chs 290	UNIMPL		mknodat
    479  1.38       chs 291	UNIMPL		fchownat
    480  1.38       chs 292	UNIMPL		futimesat
    481  1.38       chs 293	UNIMPL		fstatat64
    482  1.38       chs 294	UNIMPL		unlinkat
    483  1.38       chs 295	UNIMPL		renameat
    484  1.38       chs 296	UNIMPL		linkat
    485  1.38       chs 297	UNIMPL		symlinkat
    486  1.38       chs 298	UNIMPL		readlinkat
    487  1.38       chs 299	UNIMPL		fchmodat
    488  1.38       chs 300	UNIMPL		faccessat
    489  1.38       chs 301	UNIMPL		pselect6
    490  1.44     pooka 302	STD		{ int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
    491  1.44     pooka 			    struct linux_timespec *timeout, \
    492  1.44     pooka 			    linux_sigset_t *sigset); }
    493  1.38       chs 303	UNIMPL		unshare
    494  1.38       chs 304	UNIMPL		splice
    495  1.38       chs 305	UNIMPL		sync_file_range
    496  1.38       chs 306	UNIMPL		tee
    497  1.38       chs 307	UNIMPL		vmsplice
    498  1.38       chs 308	UNIMPL		move_pages
    499  1.38       chs 309	STD		{ int|linux_sys||set_robust_list( \
    500  1.38       chs 			    struct linux_robust_list_head *head, size_t len); }
    501  1.38       chs 310	STD		{ int|linux_sys||get_robust_list(int pid, \
    502  1.38       chs 			    struct linux_robust_list_head **head, \
    503  1.38       chs 			    size_t *len); }
    504  1.38       chs 311	UNIMPL		kexec_load
    505  1.38       chs 312	UNIMPL		getcpu
    506  1.38       chs 313	UNIMPL		epoll_pwait
    507  1.38       chs 314	UNIMPL		ioprio_set
    508  1.38       chs 315	UNIMPL		ioprio_get
    509  1.38       chs 316	UNIMPL		utimensat
    510  1.38       chs 317	UNIMPL		signalfd
    511  1.38       chs 318	UNIMPL		timerfd
    512  1.38       chs 319	UNIMPL		eventfd
    513  1.38       chs 320	UNIMPL		fallocate
    514  1.38       chs 321	UNIMPL		timerfd_create
    515  1.38       chs 322	UNIMPL		timerfd_gettime
    516  1.38       chs 323	UNIMPL		timerfd_settime
    517  1.38       chs 324	UNIMPL		signalfd4
    518  1.38       chs 325	UNIMPL		eventfd2
    519  1.38       chs 326	UNIMPL		epoll_create1
    520  1.40        he 327	STD		{ int|linux_sys||dup3(int from, int to, int flags); }
    521  1.40        he 328	STD		{ int|linux_sys||pipe2(int *pfds, int flags); }
    522  1.38       chs 329	UNIMPL		inotify_init1
    523  1.38       chs 330	UNIMPL		preadv
    524  1.38       chs 331	UNIMPL		pwritev
    525  1.38       chs 332	UNIMPL		rt_tgsigqueueinfo
    526  1.38       chs 333	UNIMPL		perf_event_open
    527  1.38       chs 334	UNIMPL		accept4
    528  1.38       chs 335	UNIMPL		recvmmsg
    529