syscalls.master revision 1.33.4.1       1  1.33.4.1   yamt 	$NetBSD: syscalls.master,v 1.33.4.1 2009/05/04 08:12:23 yamt Exp $
      2       1.1   manu 
      3       1.1   manu ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file.
      4       1.1   manu ; (See syscalls.conf to see what it is processed into.)
      5       1.1   manu ;
      6       1.1   manu ; Fields: number type [type-dependent ...]
      7       1.1   manu ;	number	system call number, must be in order
      8       1.1   manu ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
      9       1.1   manu ;		the compatibility options defined in syscalls.conf.
     10       1.1   manu ;
     11       1.1   manu ; types:
     12       1.1   manu ;	STD	always included
     13       1.1   manu ;	OBSOL	obsolete, not included in system
     14       1.1   manu ;	UNIMPL	unimplemented, not included in system
     15       1.1   manu ;	NODEF	included, but don't define the syscall number
     16       1.1   manu ;
     17       1.1   manu ;	INDIR	included, but don't define the syscall args structure
     18       1.1   manu ;		and allow it to be "really" varargs.
     19       1.1   manu ;
     20       1.1   manu ; The compat options are defined in the syscalls.conf file, and the
     21       1.1   manu ; compat option name is prefixed to the syscall name.  Other than
     22       1.1   manu ; that, they're like NODEF (for 'compat' options), or STD (for
     23       1.1   manu ; 'libcompat' options).
     24       1.1   manu ;
     25       1.1   manu ; The type-dependent arguments are as follows:
     26       1.1   manu ; For STD, NODEF, NOARGS, and compat syscalls:
     27       1.1   manu ;	{ pseudo-proto } [alias]
     28       1.1   manu ; For other syscalls:
     29       1.1   manu ;	[comment]
     30       1.1   manu ;
     31       1.1   manu ; #ifdef's, etc. may be included, and are copied to the output files.
     32       1.1   manu ; #include's are copied to the syscall names and switch definition files only.
     33       1.1   manu 
     34       1.1   manu #include <sys/param.h>
     35       1.1   manu #include <sys/poll.h>
     36       1.1   manu #include <sys/systm.h>
     37       1.1   manu #include <sys/signal.h>
     38       1.1   manu #include <sys/mount.h>
     39       1.1   manu #include <sys/syscallargs.h>
     40       1.1   manu 
     41       1.1   manu #include <machine/netbsd32_machdep.h>
     42       1.1   manu 
     43       1.1   manu #include <compat/netbsd32/netbsd32.h>
     44       1.1   manu #include <compat/netbsd32/netbsd32_syscallargs.h>
     45       1.1   manu 
     46       1.1   manu #include <compat/linux32/common/linux32_types.h>
     47       1.1   manu #include <compat/linux32/common/linux32_signal.h>
     48       1.1   manu #include <compat/linux32/arch/amd64/linux32_missing.h>
     49       1.1   manu #include <compat/linux32/linux32_syscallargs.h>
     50       1.1   manu 
     51       1.1   manu #include <compat/linux/common/linux_types.h>
     52       1.1   manu #include <compat/linux/common/linux_mmap.h>
     53       1.1   manu #include <compat/linux/common/linux_signal.h>
     54       1.1   manu #include <compat/linux/common/linux_siginfo.h>
     55       1.1   manu #include <compat/linux/common/linux_machdep.h>
     56  1.33.4.1   yamt #include <compat/linux/common/linux_ipc.h>
     57  1.33.4.1   yamt #include <compat/linux/common/linux_sem.h>
     58       1.1   manu #include <compat/linux/linux_syscallargs.h>
     59       1.1   manu 
     60       1.1   manu %%
     61       1.1   manu 
     62  1.33.4.1   yamt 0	NOARGS	{ int|linux_sys||nosys(void); } syscall
     63  1.33.4.1   yamt 1	NOARGS	{ int|netbsd32||exit(int rval); }
     64  1.33.4.1   yamt 2	NOARGS	{ int|sys||fork(void); }
     65  1.33.4.1   yamt 3	NOARGS	{ netbsd32_ssize_t|netbsd32||read(int fd, \
     66  1.33.4.1   yamt 		    netbsd32_voidp buf, netbsd32_size_t nbyte); }
     67  1.33.4.1   yamt 4	NOARGS	{ netbsd32_ssize_t|netbsd32||write(int fd, \
     68       1.1   manu 		    netbsd32_voidp buf, netbsd32_size_t nbyte); }
     69  1.33.4.1   yamt 5	STD	{ int|linux32_sys||open(netbsd32_charp path, int flags, \
     70       1.1   manu 		    int mode); }
     71  1.33.4.1   yamt 6	NOARGS	{ int|netbsd32||close(int fd); }
     72  1.33.4.1   yamt 7	STD	{ int|linux32_sys||waitpid(int pid, netbsd32_intp status, \
     73       1.1   manu 		    int options);}
     74  1.33.4.1   yamt 8	STD	{ int|linux32_sys||creat(netbsd32_charp path, int mode); }
     75  1.33.4.1   yamt 9	NOARGS	{ int|netbsd32||link(netbsd32_charp path, \
     76  1.33.4.1   yamt 		    netbsd32_charp link); }
     77  1.33.4.1   yamt 10	STD	{ int|linux32_sys||unlink(netbsd32_charp path); }
     78  1.33.4.1   yamt 11	NOARGS	{ int|netbsd32||execve(netbsd32_charp path, \
     79       1.1   manu 		    netbsd32_charpp argp, netbsd32_charpp envp); }
     80  1.33.4.1   yamt 12	NOARGS	{ int|netbsd32||chdir(netbsd32_charp path); }
     81  1.33.4.1   yamt 13	STD	{ int|linux32_sys||time(linux32_timep_t t); }
     82  1.33.4.1   yamt 14	STD	{ int|linux32_sys||mknod(netbsd32_charp path, \
     83       1.1   manu 		    int mode, int dev); }
     84  1.33.4.1   yamt 15	NOARGS	{ int|netbsd32||chmod(netbsd32_charp path, int mode); }
     85  1.33.4.1   yamt 16	STD	{ int|linux32_sys||lchown16(netbsd32_charp path, \
     86      1.27  njoly 		    linux32_uid16_t uid, linux32_gid16_t gid); }
     87  1.33.4.1   yamt 17	STD	{ int|linux32_sys||break(netbsd32_charp nsize); }
     88       1.1   manu 18	OBSOL	ostat
     89  1.33.4.1   yamt 19	NOARGS	{ netbsd32_long|compat_43_netbsd32||olseek(int fd, \
     90       1.1   manu 		    netbsd32_long offset, int chence); }
     91  1.33.4.1   yamt 20	STD	{ pid_t|linux_sys||getpid(void); }
     92       1.1   manu 21	UNIMPL	mount
     93       1.1   manu 22	UNIMPL	umount
     94  1.33.4.1   yamt 23	NOARGS	linux_setuid16 { int|netbsd32||setuid(uid_t uid); }
     95  1.33.4.1   yamt 24	NOARGS	linux_getuid16 { uid_t|sys||getuid(void); }
     96  1.33.4.1   yamt 25	STD	{ int|linux32_sys||stime(linux32_timep_t t); }
     97  1.33.4.1   yamt 26	STD	{ int|linux32_sys||ptrace(int request, int pid, \
     98  1.33.4.1   yamt 		  int addr, int data); }
     99  1.33.4.1   yamt 27	STD	{ int|linux32_sys||alarm(unsigned int secs); }
    100       1.1   manu 28	OBSOL	ofstat
    101  1.33.4.1   yamt 29	NOARGS	{ int|linux_sys||pause(void); }
    102  1.33.4.1   yamt 30	STD	{ int|linux32_sys||utime(netbsd32_charp path, \
    103       1.1   manu 		    linux32_utimbufp_t times); }
    104       1.1   manu 31	OBSOL	stty
    105       1.1   manu 32	OBSOL	gtty
    106  1.33.4.1   yamt 33	NOARGS	{ int|netbsd32||access(netbsd32_charp path, \
    107       1.1   manu 		    int flags); }
    108  1.33.4.1   yamt 34	STD	{ int|linux32_sys||nice(int incr); }
    109       1.1   manu 35	OBSOL	ftime
    110  1.33.4.1   yamt 36	NOARGS	{ int|sys||sync(void); }
    111  1.33.4.1   yamt 37	STD	{ int|linux32_sys||kill(int pid, int signum); }
    112  1.33.4.1   yamt 38	NOARGS	{ int|netbsd32||__posix_rename(netbsd32_charp from, \
    113  1.33.4.1   yamt 		    netbsd32_charp to); }
    114  1.33.4.1   yamt 39	NOARGS	{ int|netbsd32||mkdir(netbsd32_charp path, int mode); }
    115  1.33.4.1   yamt 40	NOARGS	{ int|netbsd32||rmdir(netbsd32_charp path); }
    116  1.33.4.1   yamt 41	NOARGS	{ int|netbsd32||dup(u_int fd); }
    117  1.33.4.1   yamt 42	STD	{ int|linux32_sys||pipe(netbsd32_intp fd); }
    118  1.33.4.1   yamt 43	STD	{ int|linux32_sys||times(linux32_tmsp_t tms); }
    119       1.1   manu 44	OBSOL	prof
    120  1.33.4.1   yamt 45	STD	{ int|linux32_sys||brk(netbsd32_charp nsize); }
    121  1.33.4.1   yamt 46	NOARGS	linux_setgid16 { int|netbsd32||setgid(gid_t gid); }
    122  1.33.4.1   yamt 47	NOARGS	linux_getgid16 { gid_t|sys||getgid(void); }
    123  1.33.4.1   yamt 48	STD	{ int|linux32_sys||signal(int signum, \
    124       1.1   manu 		    linux32_handler_t handler); }
    125  1.33.4.1   yamt 49	NOARGS	linux_geteuid16 { uid_t|sys||geteuid(void); }
    126  1.33.4.1   yamt 50	NOARGS	linux_getegid16 { gid_t|sys||getegid(void); }
    127  1.33.4.1   yamt 51	NOARGS	{ int|netbsd32||acct(netbsd32_charp path); }
    128       1.1   manu 52	OBSOL	phys
    129       1.1   manu 53	OBSOL	lock
    130  1.33.4.1   yamt 54	STD	{ int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \
    131       1.1   manu 		    netbsd32_charp data); }
    132  1.33.4.1   yamt 55	STD	{ int|linux32_sys||fcntl(int fd, \
    133       1.1   manu 		    int cmd, netbsd32_voidp arg); }
    134       1.1   manu 56	OBSOL	mpx
    135  1.33.4.1   yamt 57	NOARGS	{ int|netbsd32||setpgid(int pid, int pgid); }
    136       1.1   manu 58	OBSOL	ulimit
    137  1.33.4.1   yamt 59	STD	{ int|linux32_sys||oldolduname( \
    138       1.1   manu 		    linux32_oldold_utsnamep_t up); }
    139  1.33.4.1   yamt 60	NOARGS	{ int|netbsd32||umask(int newmask); }
    140  1.33.4.1   yamt 61	NOARGS	{ int|netbsd32||chroot(netbsd32_charp path); }
    141       1.1   manu 62	UNIMPL	ustat
    142  1.33.4.1   yamt 63	NOARGS	{ int|netbsd32||dup2(int from, int to); }
    143  1.33.4.1   yamt 64	STD	{ pid_t|linux_sys||getppid(void); }
    144  1.33.4.1   yamt 65	NOARGS	{ int|sys||getpgrp(void); }
    145  1.33.4.1   yamt 66	NOARGS	{ int|sys||setsid(void); }
    146       1.1   manu 67	UNIMPL	sigaction
    147       1.1   manu 68	UNIMPL	siggetmask
    148       1.1   manu 69	UNIMPL	sigsetmask
    149  1.33.4.1   yamt 70	STD	{ int|linux32_sys||setreuid16(linux32_uid16_t ruid, \
    150      1.27  njoly 		    linux32_uid16_t euid); }
    151  1.33.4.1   yamt 71	STD	{ int|linux32_sys||setregid16(linux32_gid16_t rgid, \
    152      1.27  njoly 		    linux32_gid16_t egid); }
    153       1.1   manu 72	UNIMPL	sigsuspend
    154       1.1   manu 73	UNIMPL	sigpending
    155  1.33.4.1   yamt 74	NOARGS	{ int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \
    156       1.1   manu 		    u_int len); }
    157  1.33.4.1   yamt 75	STD	{ int|linux32_sys||setrlimit(u_int which, \
    158       1.1   manu 		    netbsd32_orlimitp_t rlp); }
    159  1.33.4.1   yamt 76	STD	{ int|linux32_sys||getrlimit(u_int which, \
    160       1.1   manu 		    netbsd32_orlimitp_t rlp); }
    161  1.33.4.1   yamt 77	NOARGS	{ int|compat_50_netbsd32||getrusage(int who, \
    162  1.33.4.1   yamt 		    netbsd32_rusage50p_t rusage); }
    163  1.33.4.1   yamt 78	STD	{ int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \
    164       1.1   manu 		    netbsd32_timezonep_t tzp); }
    165  1.33.4.1   yamt 79	STD	{ int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \
    166       1.1   manu 		    netbsd32_timezonep_t tzp); }
    167  1.33.4.1   yamt 80	STD	{ int|linux32_sys||getgroups16(int gidsetsize, \
    168      1.27  njoly 		    linux32_gid16p_t gidset); }
    169  1.33.4.1   yamt 81	STD	{ int|linux32_sys||setgroups16(int gidsetsize, \
    170      1.27  njoly 		    linux32_gid16p_t gidset); }
    171  1.33.4.1   yamt 82	STD	{ int|linux32_sys||oldselect(linux32_oldselectp_t lsp); }
    172  1.33.4.1   yamt 83	NOARGS	{ int|netbsd32||symlink(netbsd32_charp path, \
    173  1.33.4.1   yamt 		    netbsd32_charp link); }
    174  1.33.4.1   yamt 84	NOARGS	{ int|compat_43_netbsd32||lstat43(netbsd32_charp \
    175       1.1   manu 		    path, netbsd32_stat43p_t ub); }
    176  1.33.4.1   yamt 85	NOARGS	{ int|netbsd32||readlink(netbsd32_charp name, \
    177  1.33.4.1   yamt 		    netbsd32_charp buf, netbsd32_size_t count); }
    178       1.1   manu 86	UNIMPL	uselib
    179  1.33.4.1   yamt 87	STD	{ int|linux32_sys||swapon(netbsd32_charp name); }
    180  1.33.4.1   yamt 88	STD	{ int|linux32_sys||reboot(int magic1, int magic2, int cmd, \
    181       1.1   manu 		    netbsd32_voidp arg); }
    182  1.33.4.1   yamt 89	STD	{ int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \
    183      1.25  njoly 		    unsigned int count); }
    184  1.33.4.1   yamt 90	STD	{ int|linux32_sys||old_mmap(linux32_oldmmapp lmp); }
    185  1.33.4.1   yamt 91	NOARGS	{ int|netbsd32||munmap(netbsd32_voidp addr, \
    186  1.33.4.1   yamt 		    netbsd32_size_t len); }
    187  1.33.4.1   yamt 92	NOARGS	{ int|compat_43_netbsd32||otruncate(netbsd32_charp path, \
    188       1.1   manu 		    netbsd32_long length); }
    189  1.33.4.1   yamt 93	NOARGS	{ int|compat_43_netbsd32||oftruncate(int fd, \
    190      1.15  njoly 		    netbsd32_long length); }
    191  1.33.4.1   yamt 94	NOARGS	{ int|netbsd32||fchmod(int fd, int mode); }
    192  1.33.4.1   yamt 95	STD	{ int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \
    193      1.27  njoly 		    linux32_gid16_t gid); }
    194  1.33.4.1   yamt 96	STD	{ int|linux32_sys||getpriority(int which, int who); }
    195  1.33.4.1   yamt 97	NOARGS	{ int|netbsd32||setpriority(int which, int who, int prio); }
    196       1.1   manu 98	UNIMPL	profil
    197  1.33.4.1   yamt 99	STD	{ int|linux32_sys||statfs(netbsd32_charp path, \
    198      1.14  njoly 		    linux32_statfsp sp); }
    199       1.1   manu 100	UNIMPL	fstatfs
    200       1.1   manu 101	UNIMPL	ioperm
    201  1.33.4.1   yamt 102	STD	{ int|linux32_sys||socketcall(int what, netbsd32_voidp args); }
    202       1.1   manu 103	UNIMPL	syslog
    203  1.33.4.1   yamt 104	NOARGS	{ int|compat_50_netbsd32||setitimer(int which, \
    204  1.33.4.1   yamt 		    netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); }
    205  1.33.4.1   yamt 105	NOARGS	{ int|compat_50_netbsd32||getitimer(int which, \
    206  1.33.4.1   yamt 		    netbsd32_itimerval50p_t itv); }
    207       1.1   manu 106	UNIMPL	stat
    208       1.1   manu 107	UNIMPL	lstat
    209       1.1   manu 108	UNIMPL	fstat
    210  1.33.4.1   yamt 109	STD	{ int|linux32_sys||olduname(linux32_oldutsnamep_t up); }
    211       1.1   manu 110	UNIMPL	iopl
    212       1.1   manu 111	UNIMPL	vhangup
    213       1.1   manu 112	UNIMPL	idle
    214       1.1   manu 113	UNIMPL	vm86old
    215  1.33.4.1   yamt 114	STD	{ int|linux32_sys||wait4(int pid, netbsd32_intp status, \
    216  1.33.4.1   yamt 		    int options, netbsd32_rusage50p_t rusage); }
    217  1.33.4.1   yamt 115	STD	{ int|linux32_sys||swapoff(netbsd32_charp path); }
    218  1.33.4.1   yamt 116	STD	{ int|linux32_sys||sysinfo(linux32_sysinfop_t arg); }
    219  1.33.4.1   yamt 117	STD	{ int|linux32_sys||ipc(int what, int a1, int a2, int a3, \
    220  1.33.4.1   yamt 		    netbsd32_voidp ptr); }
    221  1.33.4.1   yamt 118	NOARGS	{ int|netbsd32||fsync(int fd); }
    222  1.33.4.1   yamt 119	STD	{ int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); }
    223  1.33.4.1   yamt 120	STD	{ int|linux32_sys||clone(int flags, netbsd32_voidp stack); }
    224       1.1   manu 121	UNIMPL	setdomainname
    225  1.33.4.1   yamt 122	STD	{ int|linux32_sys||uname(linux32_utsnamep up); }
    226       1.1   manu 123	UNIMPL	modify_ldt
    227       1.1   manu 124	UNIMPL	adjtimex
    228  1.33.4.1   yamt 125	STD	{ int|linux32_sys||mprotect(netbsd32_voidp start, \
    229       1.1   manu 		    netbsd32_size_t len, int prot); } 
    230       1.1   manu 126	UNIMPL	sigprocmask
    231       1.1   manu 127	UNIMPL	create_module
    232       1.1   manu 128	UNIMPL	init_module
    233       1.1   manu 129	UNIMPL	delete_module
    234       1.1   manu 130	UNIMPL	get_kernel_syms
    235       1.1   manu 131	UNIMPL	quotactl
    236  1.33.4.1   yamt 132	NOARGS	{ int|netbsd32||getpgid(pid_t pid); }
    237  1.33.4.1   yamt 133	NOARGS	{ int|netbsd32||fchdir(int fd); }
    238       1.1   manu 134	UNIMPL	bdflush
    239       1.1   manu 135	UNIMPL	sysfs
    240  1.33.4.1   yamt 136	STD	{ int|linux32_sys||personality(int per); }
    241       1.1   manu 137	UNIMPL	afs_syscall
    242  1.33.4.1   yamt 138	NOARGS	setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); }
    243  1.33.4.1   yamt 139	NOARGS	setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); }
    244  1.33.4.1   yamt 140	STD	{ int|linux32_sys||llseek(int fd, u_int32_t ohigh, \
    245  1.33.4.1   yamt 		    u_int32_t olow, netbsd32_voidp res, int whence); }
    246  1.33.4.1   yamt 141	STD	{ int|linux32_sys||getdents(int fd, \
    247       1.1   manu 		    linux32_direntp_t dent, unsigned int count); }
    248  1.33.4.1   yamt 142	STD	{ int|linux32_sys||select(int nfds, \
    249       1.1   manu 		    netbsd32_fd_setp_t readfds, \
    250       1.1   manu 		    netbsd32_fd_setp_t writefds, \
    251       1.1   manu 		    netbsd32_fd_setp_t exceptfds, \
    252  1.33.4.1   yamt 		    netbsd32_timeval50p_t timeout); }
    253  1.33.4.1   yamt 143	NOARGS	{ int|netbsd32||flock(int fd, int how); } 
    254  1.33.4.1   yamt 144	NOARGS	{ int|netbsd32|13|msync(netbsd32_voidp addr, \
    255      1.32  njoly 		    netbsd32_size_t len, int flags); }
    256  1.33.4.1   yamt 145	NOARGS	{ int|netbsd32||readv(int fd, \
    257  1.33.4.1   yamt 		    netbsd32_iovecp_t iovp, int iovcnt); }
    258  1.33.4.1   yamt 146	NOARGS	{ netbsd32_ssize_t|netbsd32||writev(int fd, \
    259  1.33.4.1   yamt 		    netbsd32_iovecp_t iovp, int iovcnt); }
    260  1.33.4.1   yamt 147	NOARGS	{ pid_t|netbsd32||getsid(pid_t pid); }
    261  1.33.4.1   yamt 148	STD	{ int|linux32_sys||fdatasync(int fd); }
    262  1.33.4.1   yamt 149	STD	{ int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); }
    263  1.33.4.1   yamt 150	NOARGS	{ int|netbsd32||mlock(netbsd32_voidp addr, \
    264      1.31  njoly 		    netbsd32_size_t len); }
    265  1.33.4.1   yamt 151	NOARGS	{ int|netbsd32||munlock(netbsd32_voidp addr, \
    266      1.31  njoly 		    netbsd32_size_t len); }
    267  1.33.4.1   yamt 152	NOARGS	{ int|netbsd32||mlockall(int flags); }
    268  1.33.4.1   yamt 153	NOARGS	{ int|sys||munlockall(void); }
    269       1.1   manu 154	UNIMPL	sched_setparam
    270  1.33.4.1   yamt 155	STD	{ int|linux32_sys||sched_getparam(pid_t pid, \
    271       1.7   manu 		    linux32_sched_paramp_t sp); }
    272  1.33.4.1   yamt 156	STD	{ int|linux32_sys||sched_setscheduler(pid_t pid, \
    273  1.33.4.1   yamt 		    int policy, linux32_sched_paramp_t sp); }
    274  1.33.4.1   yamt 157	STD	{ int|linux32_sys||sched_getscheduler(pid_t pid); }
    275  1.33.4.1   yamt 158	NOARGS	{ int|linux_sys||sched_yield(void); }
    276  1.33.4.1   yamt 159	STD	{ int|linux32_sys||sched_get_priority_max(int policy); }
    277  1.33.4.1   yamt 160	STD	{ int|linux32_sys||sched_get_priority_min(int policy); }
    278       1.1   manu 161	UNIMPL	sched_rr_get_interval
    279  1.33.4.1   yamt 162	STD	{ int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \
    280  1.33.4.1   yamt 		    linux32_timespecp_t rmtp); }
    281  1.33.4.1   yamt 163	STD	{ int|linux32_sys||mremap(netbsd32_voidp old_address, \
    282  1.33.4.1   yamt 		    netbsd32_size_t old_size, netbsd32_size_t new_size, \
    283       1.7   manu 		    netbsd32_u_long flags); }
    284  1.33.4.1   yamt 164	STD	{ int|linux32_sys||setresuid16(linux32_uid16_t ruid, \
    285      1.27  njoly 		    linux32_uid16_t euid, linux32_uid16_t suid); }
    286  1.33.4.1   yamt 165	STD	{ int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \
    287      1.27  njoly 		    linux32_uid16p_t euid, linux32_uid16p_t suid); }
    288       1.1   manu 166	UNIMPL	vm86
    289       1.1   manu 167	UNIMPL	query_module
    290  1.33.4.1   yamt 168	NOARGS	{ int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \
    291      1.27  njoly 		    int timeout); }
    292       1.1   manu 169	UNIMPL	nfsservctl
    293  1.33.4.1   yamt 170	STD	{ int|linux32_sys||setresgid16(linux32_gid16_t rgid, \
    294      1.27  njoly 		    linux32_gid16_t egid, linux32_gid16_t sgid); }
    295  1.33.4.1   yamt 171	STD	{ int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \
    296      1.27  njoly 		    linux32_gid16p_t egid, linux32_gid16p_t sgid); }
    297       1.1   manu 172	UNIMPL	prctl
    298  1.33.4.1   yamt 173	STD	{ int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); }
    299  1.33.4.1   yamt 174	STD	{ int|linux32_sys||rt_sigaction(int signum, \
    300  1.33.4.1   yamt 		    linux32_sigactionp_t nsa, \
    301       1.1   manu 		    linux32_sigactionp_t osa, \
    302       1.1   manu 		    netbsd32_size_t sigsetsize); }
    303  1.33.4.1   yamt 175	STD	{ int|linux32_sys||rt_sigprocmask(int how, \
    304  1.33.4.1   yamt 		     linux32_sigsetp_t set, \
    305       1.1   manu 		     linux32_sigsetp_t oset, \
    306       1.1   manu 		     netbsd32_size_t sigsetsize); }
    307  1.33.4.1   yamt 176	STD	{ int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \
    308  1.33.4.1   yamt 		    netbsd32_size_t sigsetsize); }
    309       1.1   manu 177	UNIMPL	rt_sigtimedwait
    310       1.1   manu 178	UNIMPL	rt_queueinfo
    311  1.33.4.1   yamt 179	STD	{ int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \
    312       1.1   manu 		    netbsd32_size_t sigsetsize); }
    313  1.33.4.1   yamt 180	STD	{ netbsd32_ssize_t|linux32_sys||pread(int fd, \
    314      1.30  njoly 		    netbsd32_voidp buf, netbsd32_size_t nbyte, \
    315      1.30  njoly 		    linux32_off_t offset); }
    316  1.33.4.1   yamt 181	STD	{ netbsd32_ssize_t|linux32_sys||pwrite(int fd, \
    317  1.33.4.1   yamt 		    netbsd32_voidp buf, netbsd32_size_t nbyte, \
    318      1.30  njoly 		    linux32_off_t offset); }
    319  1.33.4.1   yamt 182	STD	{ int|linux32_sys||chown16(netbsd32_charp path, \
    320      1.27  njoly 		    linux32_uid16_t uid, linux32_gid16_t gid); }
    321  1.33.4.1   yamt 183	NOARGS	{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
    322       1.2   manu 		    netbsd32_size_t length); } 
    323       1.1   manu 184	UNIMPL	capget
    324       1.1   manu 185	UNIMPL	capset
    325       1.1   manu 186	UNIMPL	sigaltstack
    326       1.1   manu 187	UNIMPL	sendfile
    327       1.1   manu 188	UNIMPL	getpmsg
    328       1.1   manu 189	UNIMPL	putpmsg
    329  1.33.4.1   yamt 190	NOARGS	{ int|sys|14|vfork(void); }
    330  1.33.4.1   yamt 191	STD	{ int|linux32_sys||ugetrlimit(int which, \
    331       1.1   manu 		    netbsd32_orlimitp_t rlp); }
    332  1.33.4.1   yamt 192	STD	{ linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \
    333       1.7   manu 		    netbsd32_size_t len, int prot, int flags, int fd, \
    334       1.7   manu 		    linux32_off_t offset); }
    335       1.1   manu 193	UNIMPL	truncate64
    336       1.1   manu 194	UNIMPL	ftruncate64
    337  1.33.4.1   yamt 195	STD	{ int|linux32_sys||stat64(netbsd32_charp path, \
    338       1.1   manu 		    linux32_stat64p sp); }
    339  1.33.4.1   yamt 196	STD	{ int|linux32_sys||lstat64(netbsd32_charp path, \
    340       1.1   manu 		    linux32_stat64p sp); }
    341  1.33.4.1   yamt 197	STD	{ int|linux32_sys||fstat64(int fd, \
    342       1.1   manu 		    linux32_stat64p sp); }
    343  1.33.4.1   yamt 198	NOARGS	{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
    344  1.33.4.1   yamt 		    uid_t uid, gid_t gid); }
    345  1.33.4.1   yamt 199	NOARGS	{ uid_t|sys||getuid(void); }
    346  1.33.4.1   yamt 200	NOARGS	{ gid_t|sys||getgid(void); }
    347  1.33.4.1   yamt 201	NOARGS	{ uid_t|sys||geteuid(void); }
    348  1.33.4.1   yamt 202	NOARGS	{ gid_t|sys||getegid(void); }
    349  1.33.4.1   yamt 203	NOARGS	{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
    350  1.33.4.1   yamt 204	NOARGS	{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
    351  1.33.4.1   yamt 205	NOARGS	{ int|netbsd32||getgroups(int gidsetsize, \
    352       1.2   manu 		    netbsd32_gid_tp gidset); }
    353  1.33.4.1   yamt 206	NOARGS	{ int|netbsd32||setgroups(int gidsetsize, \
    354       1.2   manu 		    netbsd32_gid_tp gidset); }
    355  1.33.4.1   yamt 207	NOARGS	{ int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); }
    356  1.33.4.1   yamt 208	STD	{ int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \
    357       1.1   manu 		    uid_t suid); }
    358  1.33.4.1   yamt 209	STD	{ int|linux32_sys||getresuid(linux32_uidp_t ruid, \
    359  1.33.4.1   yamt 		    linux32_uidp_t euid, linux32_uidp_t suid); }
    360  1.33.4.1   yamt 210	STD	{ int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \
    361       1.1   manu 		    gid_t sgid); }
    362  1.33.4.1   yamt 211	STD	{ int|linux32_sys||getresgid(linux32_gidp_t rgid, \
    363  1.33.4.1   yamt 		    linux32_gidp_t egid, linux32_gidp_t sgid); }
    364  1.33.4.1   yamt 212	NOARGS	{ int|netbsd32||__posix_chown(netbsd32_charp path, \
    365  1.33.4.1   yamt 		    uid_t uid, gid_t gid); }
    366  1.33.4.1   yamt 213 	NOARGS	{ int|netbsd32||setuid(uid_t uid); }
    367  1.33.4.1   yamt 214	NOARGS	{ int|netbsd32||setgid(gid_t gid); }
    368  1.33.4.1   yamt 215	STD	{ int|linux32_sys||setfsuid(uid_t uid); }
    369  1.33.4.1   yamt 216	STD	{ int|linux32_sys||setfsgid(gid_t gid); }
    370       1.1   manu 217	UNIMPL	pivot_root
    371  1.33.4.1   yamt 218	NOARGS	{ int|netbsd32||mincore(netbsd32_voidp addr, \
    372  1.33.4.1   yamt 		    netbsd32_size_t len, netbsd32_charp vec); }
    373  1.33.4.1   yamt 219	NOARGS	{ int|netbsd32||madvise(netbsd32_voidp addr, \
    374       1.7   manu 		    netbsd32_size_t len, int behav); }
    375  1.33.4.1   yamt 220	STD	{ int|linux32_sys||getdents64(int fd, \
    376       1.1   manu 		    linux32_dirent64p_t dent, unsigned int count); }
    377      1.29    dsl ; fcntl64() - Exactly the same as fcntl()
    378      1.29    dsl #define linux32_sys_fcntl64 linux32_sys_fcntl
    379      1.29    dsl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
    380  1.33.4.1   yamt 221	NOARGS	{ int|linux32_sys||fcntl64(int fd, \
    381       1.1   manu 		    int cmd, netbsd32_voidp arg); }
    382       1.1   manu 222	UNIMPL	/*	unused	*/
    383       1.1   manu 223	UNIMPL	/*	unused	*/
    384  1.33.4.1   yamt 224	STD	{ pid_t|linux_sys||gettid(void); }
    385       1.1   manu 225	UNIMPL	readahead
    386       1.1   manu 226	UNIMPL	setxattr
    387       1.1   manu 227	UNIMPL	lsetxattr
    388       1.1   manu 228	UNIMPL	fsetxattr
    389       1.1   manu 229	UNIMPL	getxattr
    390       1.1   manu 230	UNIMPL	lgetxattr
    391       1.1   manu 231	UNIMPL	fgetxattr
    392       1.1   manu 232	UNIMPL	listxattr
    393       1.1   manu 233	UNIMPL	llistxattr
    394       1.1   manu 234	UNIMPL	flistxattr
    395       1.1   manu 235	UNIMPL	removexattr
    396       1.1   manu 236	UNIMPL	lremovexattr
    397       1.1   manu 237	UNIMPL	fremovexattr
    398       1.1   manu 238	UNIMPL	tkill
    399       1.1   manu 239	UNIMPL	sendfile64
    400       1.1   manu 240	UNIMPL	futex
    401       1.1   manu 241	UNIMPL	sched_setaffinity
    402       1.1   manu 242	UNIMPL	sched_getaffinity
    403       1.1   manu 243	UNIMPL	set_thread_area
    404       1.1   manu 244	UNIMPL	get_thread_area
    405       1.1   manu 245	UNIMPL	io_setup
    406       1.1   manu 246	UNIMPL	io_destroy
    407       1.1   manu 247	UNIMPL	io_getevents
    408       1.1   manu 248	UNIMPL	io_submit
    409       1.1   manu 249	UNIMPL	io_cancel
    410       1.1   manu 250	UNIMPL	fadvise64
    411       1.1   manu 251	UNIMPL	/*	unused	*/
    412  1.33.4.1   yamt 252	STD	{ int|linux32_sys||exit_group(int error_code); }
    413       1.1   manu 253	UNIMPL	lookup_dcookie
    414       1.1   manu 254	UNIMPL	epoll_create
    415       1.1   manu 255	UNIMPL	epoll_ctl
    416       1.1   manu 256	UNIMPL	epoll_wait
    417       1.1   manu 257	UNIMPL	remap_file_pages
    418       1.1   manu 258	UNIMPL	set_tid_address
    419       1.1   manu 259	UNIMPL	timer_create
    420       1.1   manu 260	UNIMPL	timer_settime
    421       1.1   manu 261	UNIMPL	timer_gettime
    422       1.1   manu 262	UNIMPL	timer_getoverrun
    423       1.1   manu 263	UNIMPL	timer_delete
    424  1.33.4.1   yamt 264	STD	{ int|linux32_sys||clock_settime(clockid_t which, \
    425      1.33  njoly 		    linux32_timespecp_t tp); }
    426  1.33.4.1   yamt 265	STD	{ int|linux32_sys||clock_gettime(clockid_t which, \
    427      1.33  njoly 		    linux32_timespecp_t tp); }
    428  1.33.4.1   yamt 266	STD	{ int|linux32_sys||clock_getres(clockid_t which, \
    429      1.33  njoly 		    linux32_timespecp_t tp); }
    430  1.33.4.1   yamt 267	STD	{ int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \
    431  1.33.4.1   yamt 		    linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); }
    432       1.1   manu 268	UNIMPL	statfs64
    433       1.1   manu 269	UNIMPL	fstatfs64
    434       1.1   manu 270	UNIMPL	tgkill
    435       1.1   manu 271	UNIMPL	utimes
    436       1.1   manu 272	UNIMPL	fadvise64_64
    437       1.1   manu 273	UNIMPL	vserver
    438       1.1   manu 274	UNIMPL	mbind
    439       1.1   manu 275	UNIMPL	get_mempolicy
    440       1.1   manu 276	UNIMPL	set_mempolicy
    441       1.1   manu 277	UNIMPL	mq_open
    442       1.1   manu 278	UNIMPL	mq_unlink
    443       1.1   manu 279	UNIMPL	mq_timedsend
    444       1.1   manu 280	UNIMPL	mq_timedreceive
    445       1.1   manu 281	UNIMPL	mq_notify
    446       1.1   manu 282	UNIMPL	mq_getsetattr
    447       1.1   manu 283	UNIMPL	kexec_load
    448