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