Home | History | Annotate | Line # | Download | only in mips
syscalls.master revision 1.4.2.2
      1  1.4.2.2  thorpej 	$NetBSD: syscalls.master,v 1.4.2.2 2002/01/10 19:51:35 thorpej Exp $  
      2  1.4.2.2  thorpej 
      3  1.4.2.2  thorpej ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4  1.4.2.2  thorpej 
      5  1.4.2.2  thorpej ; Derived from NetBSD's sys/compat/linux/arch/powerpc/syscalls.master
      6  1.4.2.2  thorpej ; from Linux's arch/mips/kernel/syscalls.h
      7  1.4.2.2  thorpej 
      8  1.4.2.2  thorpej ; NetBSD mips COMPAT_LINUX system call name/number "master" file.
      9  1.4.2.2  thorpej ; (See syscalls.conf to see what it is processed into.)
     10  1.4.2.2  thorpej ;
     11  1.4.2.2  thorpej ; Expect problems with 
     12  1.4.2.2  thorpej ;  48 signal: undefined in Linux???
     13  1.4.2.2  thorpej ;  86 uselib: needs a.out
     14  1.4.2.2  thorpej ;
     15  1.4.2.2  thorpej ; Fields: number type [type-dependent ...]
     16  1.4.2.2  thorpej ;	number	system call number, must be in order
     17  1.4.2.2  thorpej ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     18  1.4.2.2  thorpej ;		the compatibility options defined in syscalls.conf.
     19  1.4.2.2  thorpej ;
     20  1.4.2.2  thorpej ; types:
     21  1.4.2.2  thorpej ;	STD	always included
     22  1.4.2.2  thorpej ;	OBSOL	obsolete, not included in system
     23  1.4.2.2  thorpej ;	UNIMPL	unimplemented, not included in system
     24  1.4.2.2  thorpej ;	NODEF	included, but don't define the syscall number
     25  1.4.2.2  thorpej ;	NOARGS	included, but don't define the syscall args structure
     26  1.4.2.2  thorpej ;	INDIR	included, but don't define the syscall args structure
     27  1.4.2.2  thorpej ;		and allow it to be "really" varargs.
     28  1.4.2.2  thorpej ;
     29  1.4.2.2  thorpej ; The compat options are defined in the syscalls.conf file, and the
     30  1.4.2.2  thorpej ; compat option name is prefixed to the syscall name.  Other than
     31  1.4.2.2  thorpej ; that, they're like NODEF (for 'compat' options), or STD (for
     32  1.4.2.2  thorpej ; 'libcompat' options).
     33  1.4.2.2  thorpej ;
     34  1.4.2.2  thorpej ; The type-dependent arguments are as follows:
     35  1.4.2.2  thorpej ; For STD, NODEF, NOARGS, and compat syscalls:
     36  1.4.2.2  thorpej ;	{ pseudo-proto } [alias]
     37  1.4.2.2  thorpej ; For other syscalls:
     38  1.4.2.2  thorpej ;	[comment]
     39  1.4.2.2  thorpej ;
     40  1.4.2.2  thorpej ; #ifdef's, etc. may be included, and are copied to the output files.
     41  1.4.2.2  thorpej ; #include's are copied to the syscall names and switch definition files only.
     42  1.4.2.2  thorpej 
     43  1.4.2.2  thorpej #if defined(_KERNEL_OPT)
     44  1.4.2.2  thorpej #include "opt_compat_netbsd.h"
     45  1.4.2.2  thorpej #include "opt_compat_43.h"
     46  1.4.2.2  thorpej #endif
     47  1.4.2.2  thorpej 
     48  1.4.2.2  thorpej #include <sys/param.h>
     49  1.4.2.2  thorpej #include <sys/poll.h>
     50  1.4.2.2  thorpej #include <sys/systm.h>
     51  1.4.2.2  thorpej #include <sys/signal.h>
     52  1.4.2.2  thorpej #include <sys/mount.h>
     53  1.4.2.2  thorpej #include <sys/syscallargs.h>
     54  1.4.2.2  thorpej 
     55  1.4.2.2  thorpej #include <compat/linux/common/linux_types.h>
     56  1.4.2.2  thorpej #include <compat/linux/common/linux_signal.h>
     57  1.4.2.2  thorpej #include <compat/linux/common/linux_siginfo.h>
     58  1.4.2.2  thorpej #include <compat/linux/common/linux_machdep.h>
     59  1.4.2.2  thorpej #include <compat/linux/common/linux_mmap.h>
     60  1.4.2.2  thorpej #include <compat/linux/common/linux_socketcall.h>
     61  1.4.2.2  thorpej 
     62  1.4.2.2  thorpej #include <compat/linux/linux_syscallargs.h>
     63  1.4.2.2  thorpej 
     64  1.4.2.2  thorpej 0	NOARGS		{ int linux_sys_nosys(void); } syscall
     65  1.4.2.2  thorpej 1	NOARGS		{ int sys_exit(int rval); }
     66  1.4.2.2  thorpej 2	NOARGS		{ int sys_fork(void); }
     67  1.4.2.2  thorpej 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     68  1.4.2.2  thorpej 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     69  1.4.2.2  thorpej 5	STD		{ int linux_sys_open(const char *path, int flags, \
     70  1.4.2.2  thorpej 			    int mode); }
     71  1.4.2.2  thorpej 6	NOARGS		{ int sys_close(int fd); }
     72  1.4.2.2  thorpej 7	STD		{ int linux_sys_waitpid(int pid, int *status, \
     73  1.4.2.2  thorpej 			    int options);}
     74  1.4.2.2  thorpej 8	STD		{ int linux_sys_creat(const char *path, int mode); }
     75  1.4.2.2  thorpej 9	STD		{ int linux_sys_link(const char *path, \
     76  1.4.2.2  thorpej 			    const char *link); }
     77  1.4.2.2  thorpej 10	STD		{ int linux_sys_unlink(const char *path); }
     78  1.4.2.2  thorpej 11	STD		{ int linux_sys_execve(const char *path, char **argp, \
     79  1.4.2.2  thorpej 			    char **envp); }
     80  1.4.2.2  thorpej 12	STD		{ int linux_sys_chdir(const char *path); }
     81  1.4.2.2  thorpej 13	STD		{ int linux_sys_time(linux_time_t *t); }
     82  1.4.2.2  thorpej 14	STD		{ int linux_sys_mknod(const char *path, int mode, \
     83  1.4.2.2  thorpej 			    int dev); }
     84  1.4.2.2  thorpej 15	STD		{ int linux_sys_chmod(const char *path, int mode); }
     85  1.4.2.2  thorpej 16	STD		{ int linux_sys_lchown(const char *path, int uid, \
     86  1.4.2.2  thorpej 			    int gid); }
     87  1.4.2.2  thorpej 17	UNIMPL
     88  1.4.2.2  thorpej 18	OBSOL		ostat
     89  1.4.2.2  thorpej 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     90  1.4.2.2  thorpej 			    int whence); }
     91  1.4.2.2  thorpej 20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
     92  1.4.2.2  thorpej 21	UNIMPL		mount
     93  1.4.2.2  thorpej 22	OBSOL		umount
     94  1.4.2.2  thorpej 23	NOARGS		{ int sys_setuid(uid_t uid); }
     95  1.4.2.2  thorpej 24	NOARGS		{ uid_t sys_getuid(void); }
     96  1.4.2.2  thorpej 25	STD		{ int linux_sys_stime(linux_time_t *t); }
     97  1.4.2.2  thorpej 26	STD		{ int linux_sys_ptrace(int request, int pid, \
     98  1.4.2.2  thorpej 			  int addr, int data); }
     99  1.4.2.2  thorpej 27	STD		{ int linux_sys_alarm(unsigned int secs); }
    100  1.4.2.2  thorpej 28	OBSOL		ofstat
    101  1.4.2.2  thorpej 29	STD		{ int linux_sys_pause(void); }
    102  1.4.2.2  thorpej 30	STD		{ int linux_sys_utime(const char *path, \
    103  1.4.2.2  thorpej 			    struct linux_utimbuf *times); }
    104  1.4.2.2  thorpej 31	UNIMPL
    105  1.4.2.2  thorpej 32	UNIMPL
    106  1.4.2.2  thorpej 33	STD		{ int linux_sys_access(const char *path, int flags); }
    107  1.4.2.2  thorpej 34	STD		{ int linux_sys_nice(int incr); }
    108  1.4.2.2  thorpej 35	UNIMPL
    109  1.4.2.2  thorpej 36	NOARGS		{ int sys_sync(void); }
    110  1.4.2.2  thorpej 37	STD		{ int linux_sys_kill(int pid, int signum); }
    111  1.4.2.2  thorpej 38	STD		{ int linux_sys_rename(const char *from, \
    112  1.4.2.2  thorpej 			    const char *to); }
    113  1.4.2.2  thorpej 39	STD		{ int linux_sys_mkdir(const char *path, int mode); }
    114  1.4.2.2  thorpej 40	STD		{ int linux_sys_rmdir(const char *path); }
    115  1.4.2.2  thorpej 41	NOARGS		{ int sys_dup(u_int fd); }
    116  1.4.2.2  thorpej 42	STD		{ int linux_sys_pipe(int *pfds); }
    117  1.4.2.2  thorpej 43	STD		{ int linux_sys_times(struct times *tms); }
    118  1.4.2.2  thorpej 44	UNIMPL
    119  1.4.2.2  thorpej 45	STD		{ int linux_sys_brk(char *nsize); }
    120  1.4.2.2  thorpej 46	NOARGS		{ int sys_setgid(gid_t gid); }
    121  1.4.2.2  thorpej 47	NOARGS		{ gid_t sys_getgid(void); }
    122  1.4.2.2  thorpej 48	STD		{ int linux_sys_signal(int signum, \
    123  1.4.2.2  thorpej 			    linux___sighandler_t handler); }
    124  1.4.2.2  thorpej 49	NOARGS		{ uid_t sys_geteuid(void); }
    125  1.4.2.2  thorpej 50	NOARGS		{ gid_t sys_getegid(void); }
    126  1.4.2.2  thorpej 51	NOARGS		{ int sys_acct(char *path); }
    127  1.4.2.2  thorpej 52	UNIMPL		umount
    128  1.4.2.2  thorpej 53	UNIMPL
    129  1.4.2.2  thorpej 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    130  1.4.2.2  thorpej 			    caddr_t data); }
    131  1.4.2.2  thorpej 55	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    132  1.4.2.2  thorpej 56	OBSOL		mpx
    133  1.4.2.2  thorpej 57	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    134  1.4.2.2  thorpej 58	UNIMPL
    135  1.4.2.2  thorpej 59 	STD  		    { int linux_sys_olduname(struct linux_old_utsname \
    136  1.4.2.2  thorpej 			    *up); }
    137  1.4.2.2  thorpej 60	NOARGS		{ int sys_umask(int newmask); }
    138  1.4.2.2  thorpej 61	NOARGS		{ int sys_chroot(char *path); }
    139  1.4.2.2  thorpej 62	UNIMPL		ustat
    140  1.4.2.2  thorpej 63	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    141  1.4.2.2  thorpej 64	NOARGS		{ pid_t sys_getppid(void); }
    142  1.4.2.2  thorpej 65	NOARGS		{ int sys_getpgrp(void); }
    143  1.4.2.2  thorpej 66	NOARGS		{ int sys_setsid(void); }
    144  1.4.2.2  thorpej 67	STD		{ int linux_sys_sigaction(int signum, \
    145  1.4.2.2  thorpej 			    const struct linux_old_sigaction *nsa, \
    146  1.4.2.2  thorpej 			    struct linux_old_sigaction *osa); }
    147  1.4.2.2  thorpej 68	STD		{ int linux_sys_siggetmask(void); }
    148  1.4.2.2  thorpej 69	STD		{ int linux_sys_sigsetmask(linux_old_sigset_t mask); }
    149  1.4.2.2  thorpej 70	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); } 
    150  1.4.2.2  thorpej 71	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
    151  1.4.2.2  thorpej 72	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
    152  1.4.2.2  thorpej 			    int oldmask, int mask); }
    153  1.4.2.2  thorpej 73	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
    154  1.4.2.2  thorpej 74	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    155  1.4.2.2  thorpej 			    u_int len);}
    156  1.4.2.2  thorpej 75	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
    157  1.4.2.2  thorpej 			    struct orlimit *rlp); }
    158  1.4.2.2  thorpej 76	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
    159  1.4.2.2  thorpej 			    struct orlimit *rlp); }
    160  1.4.2.2  thorpej 77	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    161  1.4.2.2  thorpej 78	STD		{ int linux_sys_gettimeofday(struct timeval *tp, \
    162  1.4.2.2  thorpej 			    struct timezone *tzp); }
    163  1.4.2.2  thorpej 79	STD		{ int linux_sys_settimeofday(struct timeval *tp, \
    164  1.4.2.2  thorpej 			    struct timezone *tzp); }
    165  1.4.2.2  thorpej 80	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    166  1.4.2.2  thorpej 81	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    167  1.4.2.2  thorpej 82	UNIMPL		old_select
    168  1.4.2.2  thorpej 83	STD		{ int linux_sys_symlink(const char *path, \
    169  1.4.2.2  thorpej 			    const char *to); }
    170  1.4.2.2  thorpej 84	NOARGS		{ int compat_43_sys_lstat(const char *path, \
    171  1.4.2.2  thorpej 			    struct stat43 *up); } oolstat
    172  1.4.2.2  thorpej 85	STD		{ int linux_sys_readlink(const char *name, char *buf, \
    173  1.4.2.2  thorpej 			    int count); }
    174  1.4.2.2  thorpej 86	UNIMPL		uselib
    175  1.4.2.2  thorpej ;86	STD		{ int linux_sys_uselib(const char *path); }
    176  1.4.2.2  thorpej 87	STD		{ int linux_sys_swapon(char *name); }
    177  1.4.2.2  thorpej 88	STD		{ int linux_sys_reboot(int magic1, int magic2, \
    178  1.4.2.2  thorpej 			    int cmd, void *arg); }
    179  1.4.2.2  thorpej 89	STD		{ int linux_sys_readdir(int fd, caddr_t dent, \
    180  1.4.2.2  thorpej 			    unsigned int count); }
    181  1.4.2.2  thorpej 90	NOARGS      	{ int linux_sys_mmap(unsigned long addr, size_t len, \
    182  1.4.2.2  thorpej 			    int prot, int flags, int fd, linux_off_t offset); }
    183  1.4.2.2  thorpej 91	NOARGS		{ int sys_munmap(caddr_t addr, int len); }
    184  1.4.2.2  thorpej 92	STD		{ int linux_sys_truncate(const char *path, \
    185  1.4.2.2  thorpej 			    long length); }
    186  1.4.2.2  thorpej 93	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    187  1.4.2.2  thorpej 94	NOARGS		{ int sys_fchmod(int fd, int mode); }
    188  1.4.2.2  thorpej 95 	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
    189  1.4.2.2  thorpej 96	NOARGS		{ int sys_getpriority(int which, int who); }
    190  1.4.2.2  thorpej 97	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    191  1.4.2.2  thorpej 98	UNIMPL
    192  1.4.2.2  thorpej 99	STD		{ int linux_sys_statfs(const char *path, \
    193  1.4.2.2  thorpej 			    struct linux_statfs *sp); }
    194  1.4.2.2  thorpej 100	STD		{ int linux_sys_fstatfs(int fd, \
    195  1.4.2.2  thorpej 			    struct linux_statfs *sp); }
    196  1.4.2.2  thorpej 101	STD		{ int linux_sys_ioperm(unsigned int lo, \
    197  1.4.2.2  thorpej 			    unsigned int hi, int val); }
    198  1.4.2.2  thorpej 102	STD		{ int linux_sys_socketcall(int what, void *args); }
    199  1.4.2.2  thorpej 103	UNIMPL		syslog
    200  1.4.2.2  thorpej 104	NOARGS		{ int sys_setitimer(u_int which, \
    201  1.4.2.2  thorpej 			    struct itimerval *itv, struct itimerval *oitv); }
    202  1.4.2.2  thorpej 105	NOARGS		{ int sys_getitimer(u_int which, \
    203  1.4.2.2  thorpej 			    struct itimerval *itv); }
    204  1.4.2.2  thorpej 106	STD		{ int linux_sys_stat(const char *path, \
    205  1.4.2.2  thorpej 			    struct linux_stat *sp); }
    206  1.4.2.2  thorpej 107	STD		{ int linux_sys_lstat(const char *path, \
    207  1.4.2.2  thorpej 			    struct linux_stat *sp); }
    208  1.4.2.2  thorpej 108	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    209  1.4.2.2  thorpej 109	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    210  1.4.2.2  thorpej 110	UNIMPL		iopl	
    211  1.4.2.2  thorpej 111	UNIMPL		vhangup
    212  1.4.2.2  thorpej 112	UNIMPL		idle
    213  1.4.2.2  thorpej 113	UNIMPL		vm86old 
    214  1.4.2.2  thorpej 114	STD		{ int linux_sys_wait4(int pid, int *status, \
    215  1.4.2.2  thorpej 			    int options, struct rusage *rusage); }
    216  1.4.2.2  thorpej 115	STD		{ int linux_sys_swapoff(const char *path); }
    217  1.4.2.2  thorpej 116	STD		{ int linux_sys_sysinfo(struct linux_sysinfo *arg); }
    218  1.4.2.2  thorpej 117	STD		{ int linux_sys_ipc(int what, int a1, int a2, int a3, \
    219  1.4.2.2  thorpej 			    caddr_t ptr); }
    220  1.4.2.2  thorpej 118	NOARGS		{ int sys_fsync(int fd); }
    221  1.4.2.2  thorpej 119	STD		{ int linux_sys_sigreturn(struct linux_sigframe *sf); }
    222  1.4.2.2  thorpej 120	STD		{ int linux_sys_clone(int flags, void *stack); }
    223  1.4.2.2  thorpej 121	STD		{ int linux_sys_setdomainname(char *domainname, \
    224  1.4.2.2  thorpej 			    int len); }
    225  1.4.2.2  thorpej 122	STD		{ int linux_sys_new_uname(struct linux_utsname *up); }
    226  1.4.2.2  thorpej 123	UNIMPL		modify_ldt	
    227  1.4.2.2  thorpej 124	UNIMPL		adjtimex
    228  1.4.2.2  thorpej 125	NOARGS		{ int sys_mprotect(caddr_t addr, int len, int prot); }
    229  1.4.2.2  thorpej 126	STD		{ int linux_sys_sigprocmask(int how, \
    230  1.4.2.2  thorpej 			    const linux_old_sigset_t *set, \
    231  1.4.2.2  thorpej 			    linux_old_sigset_t *oset); }
    232  1.4.2.2  thorpej 127	UNIMPL		create_module
    233  1.4.2.2  thorpej 128	UNIMPL		init_module
    234  1.4.2.2  thorpej 129	UNIMPL		delete_module
    235  1.4.2.2  thorpej 130	UNIMPL		get_kernel_syms
    236  1.4.2.2  thorpej 131	UNIMPL		quotactl
    237  1.4.2.2  thorpej 132	STD		{ int linux_sys_getpgid(int pid); }
    238  1.4.2.2  thorpej 133	NOARGS		{ int sys_fchdir(int fd); }
    239  1.4.2.2  thorpej 134	UNIMPL		bdflush
    240  1.4.2.2  thorpej 135	UNIMPL		sysfs
    241  1.4.2.2  thorpej 136	STD		{ int linux_sys_personality(int per); }
    242  1.4.2.2  thorpej 137	UNIMPL		afs_syscall
    243  1.4.2.2  thorpej 138	STD		{ int linux_sys_setfsuid(uid_t uid); }
    244  1.4.2.2  thorpej 139	NOARGS		{ int linux_sys_getfsuid(void); }
    245  1.4.2.2  thorpej 140	STD		{ int linux_sys_llseek(int fd, u_int32_t ohigh, \
    246  1.4.2.2  thorpej 			    u_int32_t olow, caddr_t res, int whence); }
    247  1.4.2.2  thorpej 141	STD		{ int linux_sys_getdents(int fd, \
    248  1.4.2.2  thorpej 			    struct linux_dirent *dent, unsigned int count); }
    249  1.4.2.2  thorpej 142	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    250  1.4.2.2  thorpej 			    fd_set *writefds, fd_set *exceptfds, \
    251  1.4.2.2  thorpej 			    struct timeval *timeout); }
    252  1.4.2.2  thorpej 143	NOARGS		{ int sys_flock(int fd, int how); }
    253  1.4.2.2  thorpej 144	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
    254  1.4.2.2  thorpej 145	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    255  1.4.2.2  thorpej 				u_int iovcnt); }
    256  1.4.2.2  thorpej 146	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    257  1.4.2.2  thorpej 				u_int iovcnt); }
    258  1.4.2.2  thorpej 147	STD		{ int linux_sys_cacheflush(void *addr, \
    259  1.4.2.2  thorpej 			    int bytes, int cache); }
    260  1.4.2.2  thorpej 148	UNIMPL		cachectl
    261  1.4.2.2  thorpej 149	STD		{ int linux_sys_sysmips(int cmd, int arg1, \
    262  1.4.2.2  thorpej 			    int arg2, int arg3); }
    263  1.4.2.2  thorpej 150	UNIMPL
    264  1.4.2.2  thorpej 151	NOARGS		{ pid_t sys_getsid(pid_t pid); }
    265  1.4.2.2  thorpej 152	STD		{ int linux_sys_fdatasync(int fd); }
    266  1.4.2.2  thorpej 153	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    267  1.4.2.2  thorpej 154	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
    268  1.4.2.2  thorpej 155	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
    269  1.4.2.2  thorpej 156	NOARGS		{ int sys_mlockall(int flags); }
    270  1.4.2.2  thorpej 157	NOARGS		{ int sys_munlockall(void); }
    271  1.4.2.2  thorpej 158	STD		{ int linux_sys_sched_setparam(pid_t pid, \
    272  1.4.2.2  thorpej 			    const struct linux_sched_param *sp); }
    273  1.4.2.2  thorpej 159	STD		{ int linux_sys_sched_getparam(pid_t pid, \
    274  1.4.2.2  thorpej 			    struct linux_sched_param *sp); }
    275  1.4.2.2  thorpej 160	STD		{ int linux_sys_sched_setscheduler(pid_t pid, \
    276  1.4.2.2  thorpej 			    int policy, const struct linux_sched_param *sp); }
    277  1.4.2.2  thorpej 161	STD		{ int linux_sys_sched_getscheduler(pid_t pid); }
    278  1.4.2.2  thorpej 162	STD		{ int linux_sys_sched_yield(void); }
    279  1.4.2.2  thorpej 163	STD		{ int linux_sys_sched_get_priority_max(int policy); }
    280  1.4.2.2  thorpej 164	STD		{ int linux_sys_sched_get_priority_min(int policy); }
    281  1.4.2.2  thorpej 165	UNIMPL		sched_rr_get_interval
    282  1.4.2.2  thorpej 166	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
    283  1.4.2.2  thorpej 				struct timespec *rmtp); }
    284  1.4.2.2  thorpej 167	STD		{ void *linux_sys_mremap(void *old_address, \
    285  1.4.2.2  thorpej 			    size_t old_size, size_t new_size, u_long flags); }
    286  1.4.2.2  thorpej 168	NOARGS		{ int linux_sys_accept(int s, \
    287  1.4.2.2  thorpej 			    struct osockaddr *name, int *anamelen); }
    288  1.4.2.2  thorpej 169	NOARGS		{ int linux_sys_bind(int s, \
    289  1.4.2.2  thorpej 			    const struct osockaddr *name, int namelen); }
    290  1.4.2.2  thorpej 170	NOARGS		{ int linux_sys_connect(int s, \
    291  1.4.2.2  thorpej 			    const struct sockaddr *name, int namelen); }
    292  1.4.2.2  thorpej 171	NOARGS		{ int linux_sys_getpeername(int fdes, caddr_t asa, \
    293  1.4.2.2  thorpej 			    int *alen); }
    294  1.4.2.2  thorpej 172	NOARGS		{ int linux_sys_getsockname(int fdes, caddr_t asa, \
    295  1.4.2.2  thorpej 			    int *alen); }
    296  1.4.2.2  thorpej 173	NOARGS		{ int linux_sys_getsockopt(int s, int level, \
    297  1.4.2.2  thorpej 			    int optname, void *optval, int *optlen); }
    298  1.4.2.2  thorpej 174	NOARGS		{ int sys_listen(int s, int backlog); }
    299  1.4.2.2  thorpej 175	NOARGS		{ int linux_sys_recv(int s, void *buf, int len, \
    300  1.4.2.2  thorpej 			    int flags); }
    301  1.4.2.2  thorpej 176	NOARGS		{ int linux_sys_recvfrom(int s, void *buf, int len, \
    302  1.4.2.2  thorpej 			    int flags, struct osockaddr *from, \
    303  1.4.2.2  thorpej 			    int *fromlenaddr); }
    304  1.4.2.2  thorpej 177	NOARGS		{ int linux_sys_recvmsg(int s, struct msghdr *msg, \
    305  1.4.2.2  thorpej 			    u_int flags); }
    306  1.4.2.2  thorpej 178	NOARGS		{ int linux_sys_send(int s, caddr_t buf, int len, \
    307  1.4.2.2  thorpej 			    int flags); }
    308  1.4.2.2  thorpej 179	NOARGS		{ int linux_sys_sendmsg(int s, struct msghdr *msg, \
    309  1.4.2.2  thorpej 			    u_int flags); }
    310  1.4.2.2  thorpej 180	NOARGS		{ int linux_sys_sendto(int s, void *msg, \
    311  1.4.2.2  thorpej 			    int len, int flags, struct osockaddr *to, \
    312  1.4.2.2  thorpej 			    int tolen); }
    313  1.4.2.2  thorpej 181	NOARGS		{ int linux_sys_setsockopt(int s, int level, \
    314  1.4.2.2  thorpej 			    int optname, void *optval, int optlen); }
    315  1.4.2.2  thorpej 182	UNIMPL		shutdown
    316  1.4.2.2  thorpej 183	NOARGS		{ int linux_sys_socket(int domain, int type, \
    317  1.4.2.2  thorpej 			    int protocol); }
    318  1.4.2.2  thorpej 184	NOARGS		{ int linux_sys_socketpair(int domain, int type, \
    319  1.4.2.2  thorpej 			    int protocol, int *rsv); }
    320  1.4.2.2  thorpej 185	STD		{ int linux_sys_setresuid(uid_t ruid, uid_t euid, \
    321  1.4.2.2  thorpej 			    uid_t suid); }
    322  1.4.2.2  thorpej 186	STD		{ int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
    323  1.4.2.2  thorpej 			    uid_t *suid); }
    324  1.4.2.2  thorpej 187	UNIMPL		query_module
    325  1.4.2.2  thorpej 188	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
    326  1.4.2.2  thorpej 			    int timeout); }
    327  1.4.2.2  thorpej 189	UNIMPL		nfsservctl
    328  1.4.2.2  thorpej 190	STD		{ int linux_sys_setresgid(gid_t rgid, gid_t egid, \
    329  1.4.2.2  thorpej 			    gid_t sgid); }
    330  1.4.2.2  thorpej 191	STD		{ int linux_sys_getresgid(gid_t *rgid, gid_t *egid, \
    331  1.4.2.2  thorpej 			    gid_t *sgid); }
    332  1.4.2.2  thorpej 192	UNIMPL		prctl
    333  1.4.2.2  thorpej 193	STD		{ int linux_sys_rt_sigreturn( \
    334  1.4.2.2  thorpej 			    struct linux_pt_regs regs); }
    335  1.4.2.2  thorpej 194	STD		{ int linux_sys_rt_sigaction(int signum, \
    336  1.4.2.2  thorpej 			    const struct linux_sigaction *nsa, \
    337  1.4.2.2  thorpej 			    struct linux_sigaction *osa, \
    338  1.4.2.2  thorpej 			    size_t sigsetsize); }
    339  1.4.2.2  thorpej 195	STD		{ int linux_sys_rt_sigprocmask(int how, \
    340  1.4.2.2  thorpej 			    const linux_sigset_t *set, \
    341  1.4.2.2  thorpej 			    linux_sigset_t *oset, \
    342  1.4.2.2  thorpej 			    size_t sigsetsize); }
    343  1.4.2.2  thorpej 196	STD		{ int linux_sys_rt_sigpending( \
    344  1.4.2.2  thorpej 			    linux_sigset_t *set, \
    345  1.4.2.2  thorpej 			    size_t sigsetsize); }
    346  1.4.2.2  thorpej 197	UNIMPL		rt_sigtimedwait
    347  1.4.2.2  thorpej ; XXX XAX int here?  sigset_t here?  siginfo_t
    348  1.4.2.2  thorpej 198	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
    349  1.4.2.2  thorpej 			    void *uinfo); }
    350  1.4.2.2  thorpej 199	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
    351  1.4.2.2  thorpej 			    size_t sigsetsize); }
    352  1.4.2.2  thorpej 200	STD		{ int linux_sys_pread(int fd, char *buf, \
    353  1.4.2.2  thorpej 			    size_t nbyte, linux_off_t offset); }
    354  1.4.2.2  thorpej 201	STD		{ int linux_sys_pwrite(int fd, char *buf, \
    355  1.4.2.2  thorpej 			    size_t nbyte, linux_off_t offset); }
    356  1.4.2.2  thorpej 202	STD		{ int linux_sys_chown(const char *path, \
    357  1.4.2.2  thorpej 			    int uid, int gid); }
    358  1.4.2.2  thorpej 203	NOARGS		{ int sys___getcwd(char *bufp, size_t length); }
    359  1.4.2.2  thorpej 204	UNIMPL		capget
    360  1.4.2.2  thorpej 205	UNIMPL		capset
    361  1.4.2.2  thorpej 206	STD		{ int linux_sys_sigaltstack( \
    362  1.4.2.2  thorpej 			    const struct linux_sigaltstack *ss, \
    363  1.4.2.2  thorpej 			    struct linux_sigaltstack *oss); }
    364  1.4.2.2  thorpej 207	UNIMPL		sendfile
    365  1.4.2.2  thorpej 208	UNIMPL
    366  1.4.2.2  thorpej 209	UNIMPL
    367  1.4.2.2  thorpej 210	UNIMPL		mmap2
    368  1.4.2.2  thorpej 211	STD		{ int linux_sys_truncate64(const char *path, \
    369  1.4.2.2  thorpej 			    off_t length); }
    370  1.4.2.2  thorpej 212	UNIMPL		ftruncate64
    371  1.4.2.2  thorpej 213	STD		{ int linux_sys_stat64(const char *path, \
    372  1.4.2.2  thorpej 			     struct linux_stat64 *sp); }
    373  1.4.2.2  thorpej 214	STD		{ int linux_sys_lstat64(const char *path, \
    374  1.4.2.2  thorpej 			     struct linux_stat64 *sp); }
    375  1.4.2.2  thorpej 215	STD		{ int linux_sys_fstat64(int fd, \
    376  1.4.2.2  thorpej 			     struct linux_stat64 *sp); }
    377  1.4.2.2  thorpej 216	UNIMPL		pivot_root
    378  1.4.2.2  thorpej 217	UNIMPL		mincore
    379  1.4.2.2  thorpej 218	UNIMPL		modvise
    380  1.4.2.2  thorpej 219	UNIMPL		getdents64
    381  1.4.2.2  thorpej 220	STD		{ int linux_sys_fcntl64(unsigned int fd, \
    382  1.4.2.2  thorpej 			    unsigned int cmd, unsigned long arg); }
    383