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