Home | History | Annotate | Line # | Download | only in i386
syscalls.master revision 1.91.2.3
      1  1.91.2.3      yamt 	$NetBSD: syscalls.master,v 1.91.2.3 2010/03/11 15:03:15 yamt Exp $
      2       1.1      fvdl 
      3       1.1      fvdl ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4       1.1      fvdl 
      5      1.26       erh ; NetBSD i386 COMPAT_LINUX system call name/number "master" file.
      6       1.1      fvdl ; (See syscalls.conf to see what it is processed into.)
      7       1.1      fvdl ;
      8       1.1      fvdl ; Fields: number type [type-dependent ...]
      9       1.1      fvdl ;	number	system call number, must be in order
     10       1.1      fvdl ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     11       1.1      fvdl ;		the compatibility options defined in syscalls.conf.
     12       1.1      fvdl ;
     13       1.1      fvdl ; types:
     14       1.1      fvdl ;	STD	always included
     15       1.1      fvdl ;	OBSOL	obsolete, not included in system
     16       1.1      fvdl ;	UNIMPL	unimplemented, not included in system
     17       1.1      fvdl ;	NODEF	included, but don't define the syscall number
     18       1.1      fvdl ;	NOARGS	included, but don't define the syscall args structure
     19      1.26       erh ;	INDIR	included, but don't define the syscall args structure
     20      1.26       erh ;		and allow it to be "really" varargs.
     21       1.1      fvdl ;
     22       1.1      fvdl ; The compat options are defined in the syscalls.conf file, and the
     23       1.1      fvdl ; compat option name is prefixed to the syscall name.  Other than
     24       1.1      fvdl ; that, they're like NODEF (for 'compat' options), or STD (for
     25       1.1      fvdl ; 'libcompat' options).
     26       1.1      fvdl ;
     27       1.1      fvdl ; The type-dependent arguments are as follows:
     28       1.1      fvdl ; For STD, NODEF, NOARGS, and compat syscalls:
     29       1.1      fvdl ;	{ pseudo-proto } [alias]
     30       1.1      fvdl ; For other syscalls:
     31       1.1      fvdl ;	[comment]
     32       1.1      fvdl ;
     33       1.1      fvdl ; #ifdef's, etc. may be included, and are copied to the output files.
     34      1.22   thorpej ; #include's are copied to the syscall names and switch definition files only.
     35      1.28  christos 
     36       1.1      fvdl #include <sys/param.h>
     37      1.32       abs #include <sys/poll.h>
     38       1.1      fvdl #include <sys/systm.h>
     39       1.1      fvdl #include <sys/signal.h>
     40       1.1      fvdl #include <sys/mount.h>
     41       1.1      fvdl #include <sys/syscallargs.h>
     42      1.13   mycroft 
     43  1.91.2.1      yamt #include <compat/sys/time.h>
     44  1.91.2.1      yamt 
     45      1.27  christos #include <compat/linux/common/linux_types.h>
     46      1.62  christos #include <compat/linux/common/linux_mmap.h>
     47      1.27  christos #include <compat/linux/common/linux_signal.h>
     48      1.27  christos #include <compat/linux/common/linux_siginfo.h>
     49      1.27  christos #include <compat/linux/common/linux_machdep.h>
     50      1.27  christos 
     51      1.27  christos #include <compat/linux/linux_syscallargs.h>
     52      1.13   mycroft 
     53      1.46   mycroft %%
     54       1.1      fvdl 
     55  1.91.2.1      yamt 0	NOARGS		{ int|linux_sys||nosys(void); } syscall
     56  1.91.2.1      yamt 1	NOARGS		{ int|sys||exit(int rval); }
     57  1.91.2.1      yamt 2	NOARGS		{ int|sys||fork(void); }
     58  1.91.2.1      yamt 3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
     59  1.91.2.1      yamt 4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
     60  1.91.2.1      yamt 5	STD		{ int|linux_sys||open(const char *path, int flags, \
     61      1.29  christos 			    int mode); }
     62  1.91.2.1      yamt 6	NOARGS		{ int|sys||close(int fd); }
     63  1.91.2.1      yamt 7	STD		{ int|linux_sys||waitpid(int pid, int *status, \
     64      1.13   mycroft 			    int options);}
     65  1.91.2.1      yamt 8	STD		{ int|linux_sys||creat(const char *path, int mode); }
     66  1.91.2.1      yamt 9	NOARGS		{ int|sys||link(const char *path, const char *link); }
     67  1.91.2.1      yamt 10	STD		{ int|linux_sys||unlink(const char *path); }
     68  1.91.2.1      yamt 11	NOARGS		{ int|sys||execve(const char *path, char **argp, \
     69      1.13   mycroft 			    char **envp); }
     70  1.91.2.1      yamt 12	NOARGS		{ int|sys||chdir(const char *path); }
     71  1.91.2.1      yamt 13	STD		{ int|linux_sys||time(linux_time_t *t); }
     72  1.91.2.1      yamt 14	STD		{ int|linux_sys||mknod(const char *path, int mode, \
     73      1.29  christos 			    int dev); }
     74  1.91.2.1      yamt 15	NOARGS		{ int|sys||chmod(const char *path, int mode); }
     75  1.91.2.1      yamt 16	STD		{ int|linux_sys||lchown16(const char *path, \
     76      1.89     njoly 			    linux_uid16_t uid, linux_gid16_t gid); }
     77      1.26       erh ;17 - no longer in linux source.
     78  1.91.2.1      yamt 17	STD		{ int|linux_sys||break(char *nsize); }
     79      1.13   mycroft 18	OBSOL		ostat
     80  1.91.2.1      yamt 19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
     81      1.13   mycroft 			    int whence); }
     82      1.84  christos #ifdef	LINUX_NPTL
     83  1.91.2.1      yamt 20	STD		{ pid_t|linux_sys||getpid(void); }
     84      1.84  christos #else
     85  1.91.2.1      yamt 20	NOARGS 		{ pid_t|sys||getpid(void); }
     86      1.84  christos #endif
     87      1.13   mycroft 21	UNIMPL		mount
     88      1.13   mycroft 22	UNIMPL		umount
     89  1.91.2.1      yamt 23	NOARGS		linux_setuid16 { int|sys||setuid(uid_t uid); }
     90  1.91.2.1      yamt 24	NOARGS		linux_getuid16 { uid_t|sys||getuid(void); }
     91  1.91.2.1      yamt 25	STD		{ int|linux_sys||stime(linux_time_t *t); }
     92  1.91.2.1      yamt 26	STD		{ int|linux_sys||ptrace(int request, int pid, \
     93      1.39      tron 			  int addr, int data); }
     94  1.91.2.1      yamt 27	STD		{ int|linux_sys||alarm(unsigned int secs); }
     95      1.13   mycroft 28	OBSOL		ofstat
     96  1.91.2.1      yamt 29	STD		{ int|linux_sys||pause(void); }
     97  1.91.2.1      yamt 30	STD		{ int|linux_sys||utime(const char *path, \
     98      1.13   mycroft 			    struct linux_utimbuf *times); }
     99      1.26       erh 31	OBSOL		stty
    100      1.26       erh 32	OBSOL		gtty
    101  1.91.2.1      yamt 33	NOARGS		{ int|sys||access(const char *path, int flags); }
    102  1.91.2.1      yamt 34	STD		{ int|linux_sys||nice(int incr); }
    103      1.26       erh 35	OBSOL		ftime
    104  1.91.2.1      yamt 36	NOARGS		{ int|sys||sync(void); }
    105  1.91.2.1      yamt 37	STD		{ int|linux_sys||kill(int pid, int signum); }
    106  1.91.2.1      yamt 38	NOARGS		{ int|sys||__posix_rename(const char *from, \
    107      1.29  christos 			    const char *to); }
    108  1.91.2.1      yamt 39	NOARGS		{ int|sys||mkdir(const char *path, int mode); }
    109  1.91.2.1      yamt 40	NOARGS		{ int|sys||rmdir(const char *path); }
    110  1.91.2.1      yamt 41	NOARGS		{ int|sys||dup(u_int fd); }
    111  1.91.2.1      yamt 42	STD		{ int|linux_sys||pipe(int *pfds); }
    112  1.91.2.1      yamt 43	STD		{ int|linux_sys||times(struct times *tms); }
    113      1.26       erh 44	OBSOL		prof
    114  1.91.2.1      yamt 45	STD		{ int|linux_sys||brk(char *nsize); }
    115  1.91.2.1      yamt 46	NOARGS		linux_setgid16 { int|sys||setgid(gid_t gid); }
    116  1.91.2.1      yamt 47	NOARGS		linux_getgid16 { gid_t|sys||getgid(void); }
    117  1.91.2.1      yamt 48	STD		{ int|linux_sys||signal(int signum, \
    118      1.13   mycroft 			    linux_handler_t handler); }
    119  1.91.2.1      yamt 49	NOARGS		linux_geteuid16 { uid_t|sys||geteuid(void); }
    120  1.91.2.1      yamt 50	NOARGS		linux_getegid16 { gid_t|sys||getegid(void); }
    121  1.91.2.1      yamt 51	NOARGS		{ int|sys||acct(char *path); }
    122      1.26       erh 52	OBSOL		phys
    123      1.26       erh 53	OBSOL		lock
    124  1.91.2.1      yamt 54	STD		{ int|linux_sys||ioctl(int fd, u_long com, \
    125      1.82  christos 			    void *data); }
    126  1.91.2.1      yamt 55	STD		{ int|linux_sys||fcntl(int fd, int cmd, void *arg); }
    127      1.26       erh 56	OBSOL		mpx
    128  1.91.2.1      yamt 57	NOARGS		{ int|sys||setpgid(int pid, int pgid); }
    129      1.26       erh 58	OBSOL		ulimit
    130  1.91.2.1      yamt 59	STD		{ int|linux_sys||oldolduname( \
    131      1.62  christos 			    struct linux_oldold_utsname *up); }
    132  1.91.2.1      yamt 60	NOARGS		{ int|sys||umask(int newmask); }
    133  1.91.2.1      yamt 61	NOARGS		{ int|sys||chroot(char *path); }
    134      1.13   mycroft 62	UNIMPL		ustat
    135  1.91.2.1      yamt 63	NOARGS		{ int|sys||dup2(u_int from, u_int to); }
    136      1.84  christos #ifdef LINUX_NPTL
    137  1.91.2.1      yamt 64	STD		{ pid_t|linux_sys||getppid(void); }
    138      1.84  christos #else
    139  1.91.2.1      yamt 64	NOARGS		{ pid_t|sys||getppid(void); }
    140      1.84  christos #endif
    141  1.91.2.1      yamt 65	NOARGS		{ int|sys||getpgrp(void); }
    142  1.91.2.1      yamt 66	NOARGS		{ int|sys||setsid(void); }
    143  1.91.2.1      yamt 67	STD		{ int|linux_sys||sigaction(int signum, \
    144      1.26       erh 			    const struct linux_old_sigaction *nsa, \
    145      1.26       erh 			    struct linux_old_sigaction *osa); }
    146  1.91.2.1      yamt 68	STD		{ int|linux_sys||siggetmask(void); }
    147  1.91.2.1      yamt 69	STD		{ int|linux_sys||sigsetmask(linux_old_sigset_t mask); }
    148  1.91.2.1      yamt 70	STD		{ int|linux_sys||setreuid16(linux_uid16_t ruid, \
    149      1.89     njoly 			    linux_uid16_t euid); }
    150  1.91.2.1      yamt 71	STD		{ int|linux_sys||setregid16(linux_gid16_t rgid, \
    151      1.89     njoly 			    linux_gid16_t egid); }
    152  1.91.2.1      yamt 72	STD		{ int|linux_sys||sigsuspend(void *restart, \
    153      1.13   mycroft 			    int oldmask, int mask); }
    154  1.91.2.1      yamt 73	STD		{ int|linux_sys||sigpending(linux_old_sigset_t *set); }
    155  1.91.2.1      yamt 74	NOARGS		{ int|compat_43_sys||sethostname(char *hostname, \
    156      1.13   mycroft 			    u_int len);}
    157  1.91.2.1      yamt 75	STD		{ int|linux_sys||setrlimit(u_int which, \
    158      1.20   mycroft 			    struct orlimit *rlp); }
    159  1.91.2.1      yamt 76	STD		{ int|linux_sys||getrlimit(u_int which, \
    160      1.20   mycroft 			    struct orlimit *rlp); }
    161  1.91.2.1      yamt 77	NOARGS		{ int|compat_50_sys||getrusage(int who, \
    162  1.91.2.1      yamt 			    struct rusage50 *rusage); }
    163  1.91.2.1      yamt 78	STD		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
    164      1.13   mycroft 			    struct timezone *tzp); }
    165  1.91.2.1      yamt 79	STD		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
    166      1.13   mycroft 			    struct timezone *tzp); }
    167  1.91.2.1      yamt 80	STD		{ int|linux_sys||getgroups16(int gidsetsize, \
    168      1.89     njoly 			    linux_gid16_t *gidset); }
    169  1.91.2.1      yamt 81	STD		{ int|linux_sys||setgroups16(int gidsetsize, \
    170      1.89     njoly 			    linux_gid16_t *gidset); }
    171  1.91.2.1      yamt 82	STD		{ int|linux_sys||oldselect(struct linux_oldselect *lsp); }
    172  1.91.2.1      yamt 83	NOARGS		{ int|sys||symlink(const char *path, const char *to); }
    173  1.91.2.1      yamt 84	NOARGS		{ int|compat_43_sys||lstat(const char *path, \
    174      1.21  christos 			    struct stat43 *up); } oolstat
    175  1.91.2.1      yamt 85	NOARGS		{ int|sys||readlink(const char *name, char *buf, \
    176      1.13   mycroft 			    int count); }
    177      1.74     joerg #ifdef EXEC_AOUT
    178  1.91.2.1      yamt 86	STD		{ int|linux_sys||uselib(const char *path); }
    179      1.74     joerg #else
    180      1.74     joerg 86	UNIMPL		sys_uselib
    181      1.74     joerg #endif
    182  1.91.2.1      yamt 87	STD		{ int|linux_sys||swapon(char *name); }
    183  1.91.2.1      yamt 88	STD		{ int|linux_sys||reboot(int magic1, int magic2, \
    184      1.41       erh 			    int cmd, void *arg); }
    185  1.91.2.1      yamt 89	STD		{ int|linux_sys||readdir(int fd, void *dent, \
    186       1.1      fvdl 			    unsigned int count); }
    187  1.91.2.1      yamt 90	STD		{ int|linux_sys||old_mmap(struct linux_oldmmap *lmp); }
    188  1.91.2.1      yamt 91	NOARGS		{ int|sys||munmap(void *addr, int len); }
    189  1.91.2.1      yamt 92	NOARGS		{ int|compat_43_sys||truncate(const char *path, \
    190      1.29  christos 			    long length); }
    191  1.91.2.1      yamt 93	NOARGS		{ int|compat_43_sys||ftruncate(int fd, long length); }
    192  1.91.2.1      yamt 94	NOARGS		{ int|sys||fchmod(int fd, int mode); }
    193  1.91.2.1      yamt 95	STD		{ int|linux_sys||fchown16(int fd, linux_uid16_t uid, \
    194      1.89     njoly 			    linux_gid16_t gid); }
    195  1.91.2.1      yamt 96	STD		{ int|linux_sys||getpriority(int which, int who); }
    196  1.91.2.1      yamt 97	NOARGS		{ int|sys||setpriority(int which, int who, int prio); }
    197  1.91.2.1      yamt 98	NOARGS		{ int|sys||profil(void *samples, u_int size, \
    198      1.13   mycroft 			    u_int offset, u_int scale); }
    199  1.91.2.1      yamt 99	STD		{ int|linux_sys||statfs(const char *path, \
    200      1.13   mycroft 			    struct linux_statfs *sp); }
    201  1.91.2.1      yamt 100	STD		{ int|linux_sys||fstatfs(int fd, \
    202      1.13   mycroft 			    struct linux_statfs *sp); }
    203  1.91.2.1      yamt 101	STD		{ int|linux_sys||ioperm(unsigned int lo, \
    204      1.13   mycroft 			    unsigned int hi, int val); }
    205  1.91.2.1      yamt 102	STD		{ int|linux_sys||socketcall(int what, void *args); }
    206      1.26       erh 103	UNIMPL		syslog
    207  1.91.2.1      yamt 104	NOARGS		{ int|compat_50_sys||setitimer(u_int which, \
    208  1.91.2.1      yamt 			    struct itimerval50 *itv, struct itimerval50 *oitv); }
    209  1.91.2.1      yamt 105	NOARGS		{ int|compat_50_sys||getitimer(u_int which, \
    210  1.91.2.1      yamt 			    struct itimerval50 *itv); }
    211  1.91.2.1      yamt 106	STD		{ int|linux_sys||stat(const char *path, \
    212      1.13   mycroft 			    struct linux_stat *sp); }
    213  1.91.2.1      yamt 107	STD		{ int|linux_sys||lstat(const char *path, \
    214      1.13   mycroft 			    struct linux_stat *sp); }
    215  1.91.2.1      yamt 108	STD		{ int|linux_sys||fstat(int fd, struct linux_stat *sp); }
    216  1.91.2.1      yamt 109	STD		{ int|linux_sys||olduname(struct linux_old_utsname *up); }
    217  1.91.2.1      yamt 110	STD		{ int|linux_sys||iopl(int level); }
    218      1.13   mycroft 111	UNIMPL		vhangup
    219      1.13   mycroft 112	UNIMPL		idle
    220      1.26       erh 113	UNIMPL		vm86old
    221  1.91.2.1      yamt 114	STD		{ int|linux_sys||wait4(int pid, int *status, \
    222  1.91.2.1      yamt 			    int options, struct rusage50 *rusage); }
    223  1.91.2.1      yamt 115	STD		{ int|linux_sys||swapoff(const char *path); }
    224  1.91.2.1      yamt 116	STD		{ int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
    225  1.91.2.1      yamt 117	STD		{ int|linux_sys||ipc(int what, int a1, int a2, int a3, \
    226      1.82  christos 			    void *ptr); }
    227  1.91.2.1      yamt 118	NOARGS		{ int|sys||fsync(int fd); }
    228  1.91.2.1      yamt 119	STD		{ int|linux_sys||sigreturn(struct linux_sigcontext *scp); }
    229  1.91.2.1      yamt 120	STD		{ int|linux_sys||clone(int flags, void *stack, \
    230      1.84  christos 			    void *parent_tidptr, void *child_tidptr); }
    231  1.91.2.1      yamt 121	STD		{ int|linux_sys||setdomainname(char *domainname, \
    232      1.13   mycroft 			    int len); }
    233  1.91.2.1      yamt 122	STD		{ int|linux_sys||uname(struct linux_utsname *up); }
    234  1.91.2.1      yamt 123	STD		{ int|linux_sys||modify_ldt(int func, void *ptr, \
    235      1.13   mycroft 			    size_t bytecount); }
    236      1.13   mycroft 124	UNIMPL		adjtimex
    237  1.91.2.1      yamt 125	STD		{ int|linux_sys||mprotect(const void *start, \
    238      1.62  christos 			    unsigned long len, int prot); }
    239  1.91.2.1      yamt 126	STD		{ int|linux_sys||sigprocmask(int how, \
    240      1.26       erh 			    const linux_old_sigset_t *set, \
    241      1.26       erh 			    linux_old_sigset_t *oset); }
    242      1.13   mycroft 127	UNIMPL		create_module
    243      1.13   mycroft 128	UNIMPL		init_module
    244      1.13   mycroft 129	UNIMPL		delete_module
    245      1.13   mycroft 130	UNIMPL		get_kernel_syms
    246      1.13   mycroft 131	UNIMPL		quotactl
    247  1.91.2.1      yamt 132	NOARGS		{ pid_t|sys||getpgid(pid_t pid); }
    248  1.91.2.1      yamt 133	NOARGS		{ int|sys||fchdir(int fd); }
    249      1.13   mycroft 134	UNIMPL		bdflush
    250      1.13   mycroft 135	UNIMPL		sysfs
    251  1.91.2.3      yamt 136	STD		{ int|linux_sys||personality(unsigned long per); }
    252      1.13   mycroft 137	UNIMPL		afs_syscall
    253  1.91.2.1      yamt 138	NOARGS		linux_setfsuid16 { int|linux_sys||setfsuid(uid_t uid); }
    254  1.91.2.1      yamt 139	NOARGS		linux_setfsgid16 { int|linux_sys||setfsgid(gid_t gid); }
    255  1.91.2.1      yamt 140	STD		{ int|linux_sys||llseek(int fd, u_int32_t ohigh, \
    256      1.82  christos 			    u_int32_t olow, void *res, int whence); }
    257  1.91.2.1      yamt 141	STD		{ int|linux_sys||getdents(int fd, \
    258      1.26       erh 			    struct linux_dirent *dent, unsigned int count); }
    259  1.91.2.1      yamt 142	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \
    260      1.13   mycroft 			    fd_set *writefds, fd_set *exceptfds, \
    261  1.91.2.1      yamt 			    struct timeval50 *timeout); }
    262  1.91.2.1      yamt 143	NOARGS		{ int|sys||flock(int fd, int how); }
    263  1.91.2.1      yamt 144	NOARGS		{ int|sys|13|msync(void *addr, size_t len, int flags); }
    264  1.91.2.1      yamt 145	NOARGS		{ int|sys||readv(int fd, struct iovec *iovp, \
    265      1.15      fvdl 				u_int iovcnt); }
    266  1.91.2.1      yamt 146	NOARGS		{ int|sys||writev(int fd, struct iovec *iovp, \
    267      1.15      fvdl 				u_int iovcnt); }
    268  1.91.2.1      yamt 147	NOARGS		{ pid_t|sys||getsid(pid_t pid); }
    269  1.91.2.1      yamt 148	STD		{ int|linux_sys||fdatasync(int fd); }
    270  1.91.2.1      yamt 149	STD		{ int|linux_sys||__sysctl(struct linux___sysctl *lsp); }
    271  1.91.2.1      yamt 150	NOARGS		{ int|sys||mlock(void *addr, size_t len); }
    272  1.91.2.1      yamt 151	NOARGS		{ int|sys||munlock(void *addr, size_t len); }
    273  1.91.2.1      yamt 152	NOARGS		{ int|sys||mlockall(int flags); }
    274  1.91.2.1      yamt 153	NOARGS		{ int|sys||munlockall(void); }
    275  1.91.2.1      yamt 154	STD		{ int|linux_sys||sched_setparam(pid_t pid, \
    276      1.36      tron 			    const struct linux_sched_param *sp); }
    277  1.91.2.1      yamt 155	STD		{ int|linux_sys||sched_getparam(pid_t pid, \
    278      1.36      tron 			    struct linux_sched_param *sp); }
    279  1.91.2.1      yamt 156	STD		{ int|linux_sys||sched_setscheduler(pid_t pid, \
    280      1.36      tron 			    int policy, const struct linux_sched_param *sp); }
    281  1.91.2.1      yamt 157	STD		{ int|linux_sys||sched_getscheduler(pid_t pid); }
    282  1.91.2.1      yamt 158	STD		{ int|linux_sys||sched_yield(void); }
    283  1.91.2.1      yamt 159	STD		{ int|linux_sys||sched_get_priority_max(int policy); }
    284  1.91.2.1      yamt 160	STD		{ int|linux_sys||sched_get_priority_min(int policy); }
    285      1.36      tron 161	UNIMPL		sys_sched_rr_get_interval
    286  1.91.2.1      yamt 162	STD		{ int|linux_sys||nanosleep( \
    287  1.91.2.1      yamt 			    const struct linux_timespec *rqtp, \
    288  1.91.2.1      yamt 			    struct linux_timespec *rmtp); }
    289  1.91.2.1      yamt 163	STD		{ void *|linux_sys||mremap(void *old_address, \
    290      1.19   mycroft 			    size_t old_size, size_t new_size, u_long flags); }
    291  1.91.2.1      yamt 164	STD		{ int|linux_sys||setresuid16(linux_uid16_t ruid, \
    292      1.89     njoly 			    linux_uid16_t euid, linux_uid16_t suid); }
    293  1.91.2.1      yamt 165	STD		{ int|linux_sys||getresuid16(linux_uid16_t *ruid, \
    294      1.89     njoly 			    linux_uid16_t *euid, linux_uid16_t *suid); }
    295      1.26       erh 166	UNIMPL		vm86
    296      1.26       erh 167	UNIMPL		query_module
    297  1.91.2.1      yamt 168	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
    298      1.32       abs 			    int timeout); }
    299      1.26       erh 169	UNIMPL		nfsservctl
    300  1.91.2.1      yamt 170	STD		{ int|linux_sys||setresgid16(linux_gid16_t rgid, \
    301      1.89     njoly 			    linux_gid16_t egid, linux_gid16_t sgid); }
    302  1.91.2.1      yamt 171	STD		{ int|linux_sys||getresgid16(linux_gid16_t *rgid, \
    303      1.89     njoly 			    linux_gid16_t *egid, linux_gid16_t *sgid); }
    304      1.26       erh 172	UNIMPL		prctl
    305  1.91.2.1      yamt 173	STD		{ int|linux_sys||rt_sigreturn( \
    306      1.66  christos 			    struct linux_ucontext *ucp); }
    307  1.91.2.1      yamt 174	STD		{ int|linux_sys||rt_sigaction(int signum, \
    308      1.26       erh 			    const struct linux_sigaction *nsa, \
    309      1.26       erh 			    struct linux_sigaction *osa, \
    310      1.26       erh 			    size_t sigsetsize); }
    311  1.91.2.1      yamt 175	STD		{ int|linux_sys||rt_sigprocmask(int how, \
    312      1.26       erh 			    const linux_sigset_t *set, \
    313      1.26       erh 			    linux_sigset_t *oset, \
    314      1.26       erh 			    size_t sigsetsize); }
    315  1.91.2.1      yamt 176	STD		{ int|linux_sys||rt_sigpending( \
    316      1.26       erh 			    linux_sigset_t *set, \
    317      1.26       erh 			    size_t sigsetsize); }
    318      1.26       erh 177	UNIMPL		rt_sigtimedwait
    319  1.91.2.1      yamt 178	STD		{ int|linux_sys||rt_queueinfo(int pid, int signum, \
    320  1.91.2.2      yamt 			    linux_siginfo_t *uinfo); }
    321  1.91.2.1      yamt 179	STD		{ int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
    322      1.26       erh 			    size_t sigsetsize); }
    323  1.91.2.1      yamt 180	STD		{ int|linux_sys||pread(int fd, char *buf, \
    324      1.38      tron 			    size_t nbyte, linux_off_t offset); }
    325  1.91.2.1      yamt 181	STD		{ int|linux_sys||pwrite(int fd, char *buf, \
    326      1.38      tron 			    size_t nbyte, linux_off_t offset); }
    327  1.91.2.1      yamt 182	STD		{ int|linux_sys||chown16(const char *path, \
    328      1.89     njoly 			    linux_uid16_t uid, linux_gid16_t gid); }
    329  1.91.2.1      yamt 183	NOARGS		{ int|sys||__getcwd(char *bufp, size_t length); }
    330      1.26       erh 184	UNIMPL		capget
    331      1.26       erh 185	UNIMPL		capset
    332  1.91.2.1      yamt 186	STD		{ int|linux_sys||sigaltstack( \
    333      1.42  christos 			    const struct linux_sigaltstack *ss, \
    334      1.42  christos 			    struct linux_sigaltstack *oss); }
    335      1.34   thorpej 187	UNIMPL		sendfile
    336      1.34   thorpej 188	UNIMPL		getpmsg
    337      1.34   thorpej 189	UNIMPL		putpmsg
    338  1.91.2.1      yamt 190	NOARGS		{ int|sys|14|vfork(void); }
    339  1.91.2.1      yamt 191	STD		{ int|linux_sys||ugetrlimit(int which, \
    340      1.61  christos 			    struct orlimit *rlp); }
    341      1.86       dsl #define linux_sys_mmap2_args linux_sys_mmap_args
    342  1.91.2.1      yamt 192	NOARGS		{ linux_off_t|linux_sys||mmap2(unsigned long addr, \
    343      1.62  christos 			    size_t len, int prot, int flags, int fd, \
    344      1.62  christos 			    linux_off_t offset); }
    345  1.91.2.1      yamt 193	STD		{ int|linux_sys||truncate64(const char *path, \
    346      1.61  christos 			    off_t length); }
    347  1.91.2.1      yamt 194	STD		{ int|linux_sys||ftruncate64(unsigned int fd, \
    348      1.62  christos 			    off_t length); }
    349  1.91.2.1      yamt 195	STD		{ int|linux_sys||stat64(const char *path, \
    350      1.61  christos 			    struct linux_stat64 *sp); }
    351  1.91.2.1      yamt 196	STD		{ int|linux_sys||lstat64(const char *path, \
    352      1.61  christos 			    struct linux_stat64 *sp); }
    353  1.91.2.1      yamt 197	STD		{ int|linux_sys||fstat64(int fd, \
    354      1.61  christos 			    struct linux_stat64 *sp); }
    355  1.91.2.1      yamt 198	NOARGS		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
    356      1.61  christos 			    gid_t gid); }
    357  1.91.2.1      yamt 199	NOARGS		{ uid_t|sys||getuid(void); }
    358  1.91.2.1      yamt 200	NOARGS		{ gid_t|sys||getgid(void); }
    359  1.91.2.1      yamt 201	NOARGS		{ uid_t|sys||geteuid(void); }
    360  1.91.2.1      yamt 202	NOARGS		{ gid_t|sys||getegid(void); }
    361  1.91.2.1      yamt 203	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
    362  1.91.2.1      yamt 204	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
    363  1.91.2.1      yamt 205	NOARGS		{ int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
    364  1.91.2.1      yamt 206	NOARGS		{ int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
    365  1.91.2.1      yamt 207	NOARGS		{ int|sys||__posix_fchown(int fd, uid_t uid, \
    366      1.61  christos 			    gid_t gid); }
    367  1.91.2.1      yamt 208	STD		{ int|linux_sys||setresuid(uid_t ruid, uid_t euid, \
    368      1.52      fvdl 			    uid_t suid); }
    369  1.91.2.1      yamt 209	STD		{ int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \
    370      1.52      fvdl 			    uid_t *suid); }
    371  1.91.2.1      yamt 210	STD		{ int|linux_sys||setresgid(gid_t rgid, gid_t egid, \
    372      1.52      fvdl 			    gid_t sgid); }
    373  1.91.2.1      yamt 211	STD		{ int|linux_sys||getresgid(gid_t *rgid, gid_t *egid, \
    374      1.52      fvdl 			    gid_t *sgid); }
    375  1.91.2.1      yamt 212	NOARGS		{ int|sys||__posix_chown(const char *path, uid_t uid, \
    376      1.51      fvdl 				gid_t gid); }
    377  1.91.2.1      yamt 213	NOARGS		{ int|sys||setuid(uid_t uid); }
    378  1.91.2.1      yamt 214	NOARGS		{ int|sys||setgid(gid_t gid); }
    379  1.91.2.1      yamt 215	STD		{ int|linux_sys||setfsuid(uid_t uid); }
    380  1.91.2.1      yamt 216	STD		{ int|linux_sys||setfsgid(gid_t gid); }
    381      1.47  jdolecek 217	UNIMPL		pivot_root
    382  1.91.2.1      yamt 218	NOARGS		{ int|sys||mincore(void *addr, size_t len, char *vec); }
    383  1.91.2.1      yamt 219	NOARGS		{ int|sys||madvise(void *addr, size_t len, int behav); }
    384  1.91.2.1      yamt 220	STD		{ int|linux_sys||getdents64(int fd, \
    385      1.63  christos 			    struct linux_dirent64 *dent, unsigned int count); }
    386  1.91.2.1      yamt 221	STD		{ int|linux_sys||fcntl64(int fd, int cmd, void *arg); }
    387      1.69  jdolecek 222	UNIMPL		/* unused */
    388      1.69  jdolecek 223	UNIMPL		/* unused */
    389      1.84  christos #ifdef LINUX_NPTL
    390  1.91.2.1      yamt 224	STD		{ pid_t|linux_sys||gettid(void); }
    391      1.84  christos #else
    392      1.69  jdolecek 224	UNIMPL		gettid
    393      1.84  christos #endif
    394      1.69  jdolecek 225	UNIMPL		readahead
    395      1.72      fvdl 
    396  1.91.2.1      yamt 226	STD		{ int|linux_sys||setxattr(char *path, char *name, \
    397      1.72      fvdl 			    void *value, size_t size, int flags); }
    398  1.91.2.1      yamt 227	STD		{ int|linux_sys||lsetxattr(char *path, char *name, \
    399      1.72      fvdl 			    void *value, size_t size, int flags); }
    400  1.91.2.1      yamt 228	STD		{ int|linux_sys||fsetxattr(int fd, char *name, \
    401      1.72      fvdl 			    void *value, size_t size, int flags); }
    402  1.91.2.1      yamt 229	STD		{ ssize_t|linux_sys||getxattr(char *path, char *name, \
    403      1.72      fvdl 			    void *value, size_t size); }
    404  1.91.2.1      yamt 230	STD		{ ssize_t|linux_sys||lgetxattr(char *path, char *name, \
    405      1.72      fvdl 			    void *value, size_t size); }
    406  1.91.2.1      yamt 231	STD		{ ssize_t|linux_sys||fgetxattr(int fd, char *name, \
    407      1.72      fvdl 			    void *value, size_t size); }
    408  1.91.2.1      yamt 232	STD		{ ssize_t|linux_sys||listxattr(char *path, char *list, \
    409      1.72      fvdl 			    size_t size); }
    410  1.91.2.1      yamt 233	STD		{ ssize_t|linux_sys||llistxattr(char *path, char *list, \
    411      1.72      fvdl 			    size_t size); }
    412  1.91.2.1      yamt 234	STD		{ ssize_t|linux_sys||flistxattr(int fd, char *list, \
    413      1.72      fvdl 			    size_t size); }
    414  1.91.2.1      yamt 235	STD		{ int|linux_sys||removexattr(char *path, char *name); }
    415  1.91.2.1      yamt 236	STD		{ int|linux_sys||lremovexattr(char *path, char *name); }
    416  1.91.2.1      yamt 237	STD		{ int|linux_sys||fremovexattr(int fd, char *name); }
    417      1.84  christos #ifdef LINUX_NPTL
    418  1.91.2.1      yamt 238	STD		{ int|linux_sys||tkill(int tid, int sig); }
    419      1.84  christos #else
    420      1.69  jdolecek 238	UNIMPL		tkill
    421      1.84  christos #endif
    422      1.69  jdolecek 239	UNIMPL		sendfile64
    423  1.91.2.1      yamt 240	STD		{ int|linux_sys||futex(int *uaddr, int op, int val, \
    424  1.91.2.1      yamt 			    const struct linux_timespec *timeout, int *uaddr2, \
    425      1.83  christos 			    int val3); }
    426      1.84  christos #ifdef LINUX_NPTL
    427  1.91.2.1      yamt 241	STD		{ int|linux_sys||sched_setaffinity(pid_t pid, \
    428      1.84  christos 			    unsigned int len, unsigned long *mask); }
    429  1.91.2.1      yamt 242	STD		{ int|linux_sys||sched_getaffinity(pid_t pid, \
    430      1.84  christos 			    unsigned int len, unsigned long *mask); }
    431      1.84  christos #else
    432      1.84  christos 241	UNIMPL		setaffinity
    433      1.84  christos 242	UNIMPL		getaffinity
    434      1.84  christos #endif
    435  1.91.2.1      yamt #ifdef LINUX_NPTL
    436  1.91.2.1      yamt 243	STD		{ int|linux_sys||set_thread_area( \
    437  1.91.2.1      yamt 			    struct linux_user_desc *desc); }
    438  1.91.2.1      yamt 244	STD		{ int|linux_sys||get_thread_area( \
    439  1.91.2.1      yamt 			    struct linux_user_desc *desc); }
    440  1.91.2.1      yamt #else
    441      1.69  jdolecek 243	UNIMPL		set_thread_area
    442      1.69  jdolecek 244	UNIMPL		get_thread_area
    443  1.91.2.1      yamt #endif
    444      1.69  jdolecek 245	UNIMPL		io_setup
    445      1.69  jdolecek 246	UNIMPL		io_destroy
    446      1.69  jdolecek 247	UNIMPL		io_getevents
    447      1.69  jdolecek 248	UNIMPL		io_submit
    448      1.69  jdolecek 249	UNIMPL		io_cancel
    449      1.69  jdolecek 250	UNIMPL		fadvise64
    450      1.69  jdolecek 251	UNIMPL		/* unused */
    451  1.91.2.1      yamt 252	STD		{ int|linux_sys||exit_group(int error_code); }
    452      1.69  jdolecek 253	UNIMPL		lookup_dcookie
    453      1.69  jdolecek 254	UNIMPL		epoll_create
    454      1.69  jdolecek 255	UNIMPL		epoll_ctl
    455      1.69  jdolecek 256	UNIMPL		epoll_wait
    456      1.69  jdolecek 257	UNIMPL		remap_file_pages
    457      1.84  christos #ifdef LINUX_NPTL
    458  1.91.2.1      yamt 258	STD		{ int|linux_sys||set_tid_address(int *tid); }
    459      1.84  christos #else
    460      1.69  jdolecek 258	UNIMPL		set_tid_address
    461      1.84  christos #endif
    462      1.69  jdolecek 259	UNIMPL		timer_create
    463      1.69  jdolecek 260	UNIMPL		timer_settime
    464      1.69  jdolecek 261	UNIMPL		timer_gettime
    465      1.69  jdolecek 262	UNIMPL		timer_getoverrun
    466      1.69  jdolecek 263	UNIMPL		timer_delete
    467  1.91.2.1      yamt 264	STD		{ int|linux_sys||clock_settime(clockid_t which, \
    468      1.73      fvdl 			    struct linux_timespec *tp); }
    469  1.91.2.1      yamt 265	STD		{ int|linux_sys||clock_gettime(clockid_t which, \
    470      1.73      fvdl 			    struct linux_timespec *tp); }
    471  1.91.2.1      yamt 266	STD		{ int|linux_sys||clock_getres(clockid_t which, \
    472      1.73      fvdl 			    struct linux_timespec *tp); }
    473  1.91.2.1      yamt 267	STD		{ int|linux_sys||clock_nanosleep(clockid_t which, \
    474      1.73      fvdl 			    int flags, struct linux_timespec *rqtp, \
    475      1.73      fvdl 			    struct linux_timespec *rmtp); }
    476  1.91.2.1      yamt 268	STD		{ int|linux_sys||statfs64(const char *path, \
    477      1.71  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    478  1.91.2.1      yamt 269	STD		{ int|linux_sys||fstatfs64(int fd, \
    479      1.71  jdolecek 			    size_t sz, struct linux_statfs64 *sp); }
    480      1.84  christos #ifdef LINUX_NPTL
    481  1.91.2.1      yamt 270	STD		{ int|linux_sys||tgkill(int tgid, int tid, int sig); }
    482      1.84  christos #else
    483      1.69  jdolecek 270	UNIMPL		tgkill
    484      1.84  christos #endif
    485      1.69  jdolecek 271	UNIMPL		utimes
    486      1.69  jdolecek 272	UNIMPL		fadvise64_64
    487      1.69  jdolecek 273	UNIMPL		vserver
    488      1.69  jdolecek 274	UNIMPL		mbind
    489      1.69  jdolecek 275	UNIMPL		get_mempolicy
    490      1.69  jdolecek 276	UNIMPL		set_mempolicy
    491      1.69  jdolecek 277	UNIMPL		mq_open
    492      1.69  jdolecek 278	UNIMPL		mq_unlink
    493      1.69  jdolecek 279	UNIMPL		mq_timedsend
    494      1.69  jdolecek 280	UNIMPL		mq_timedreceive
    495      1.69  jdolecek 281	UNIMPL		mq_notify
    496      1.69  jdolecek 282	UNIMPL		mq_getsetattr
    497      1.69  jdolecek 283	UNIMPL		sys_kexec_load
    498  1.91.2.1      yamt 284	UNIMPL		waitid
    499  1.91.2.1      yamt 285	OBSOL		/* XXXJDM really? */
    500  1.91.2.1      yamt 286	UNIMPL		add_key
    501  1.91.2.1      yamt 287	UNIMPL		request_key
    502  1.91.2.1      yamt 288	UNIMPL		keyctl
    503  1.91.2.1      yamt 289	UNIMPL		ioprio_set
    504  1.91.2.1      yamt 290	UNIMPL		ioprio_get
    505  1.91.2.1      yamt 291	UNIMPL		inotify_init
    506  1.91.2.1      yamt 292	UNIMPL		inotify_add_watch
    507  1.91.2.1      yamt 293	UNIMPL		inotify_rm_watch
    508  1.91.2.1      yamt 294	UNIMPL		migrate_pages
    509  1.91.2.1      yamt 295	UNIMPL		openat
    510  1.91.2.1      yamt 296	UNIMPL		mkdirat
    511  1.91.2.1      yamt 297	UNIMPL		mknodat
    512  1.91.2.1      yamt 298	UNIMPL		fchownat
    513  1.91.2.1      yamt 299	UNIMPL		futimesat
    514  1.91.2.1      yamt 300	UNIMPL		fstatat64
    515  1.91.2.1      yamt 301	UNIMPL		unlinkat
    516  1.91.2.1      yamt 302	UNIMPL		renameat
    517  1.91.2.1      yamt 303	UNIMPL		linkat
    518  1.91.2.1      yamt 304	UNIMPL		symlinkat
    519  1.91.2.1      yamt 305	UNIMPL		readlinkat
    520  1.91.2.1      yamt 306	UNIMPL		fchmodat
    521  1.91.2.1      yamt 307	UNIMPL		faccessat
    522  1.91.2.1      yamt 308	UNIMPL		pselect6
    523  1.91.2.1      yamt 309	UNIMPL		ppoll
    524  1.91.2.1      yamt 310	UNIMPL		unshare
    525  1.91.2.1      yamt 311	STD		{ int|linux_sys||set_robust_list( \
    526  1.91.2.1      yamt 			    struct linux_robust_list_head *head, size_t len); }
    527  1.91.2.1      yamt 312	STD		{ int|linux_sys||get_robust_list(int pid, \
    528  1.91.2.1      yamt 			    struct linux_robust_list_head **head, \
    529  1.91.2.1      yamt 			    size_t *len); }
    530  1.91.2.1      yamt 313	UNIMPL		splice
    531  1.91.2.1      yamt 314	UNIMPL		sync_file_range
    532  1.91.2.1      yamt 315	UNIMPL		tee
    533  1.91.2.1      yamt 316	UNIMPL		vmsplice
    534