Home | History | Annotate | Line # | Download | only in amd64
syscalls.master revision 1.59.4.3
      1 	$NetBSD: syscalls.master,v 1.59.4.3 2012/10/30 17:20:45 yamt 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	NOARGS	{ int|netbsd32||profil(netbsd32_voidp samples, \
    197 		    netbsd32_size_t size, netbsd32_u_long offset, \
    198 		    u_int scale); }
    199 99	STD	{ int|linux32_sys||statfs(netbsd32_charp path, \
    200 		    linux32_statfsp sp); }
    201 100	STD	{ int|linux32_sys||fstatfs(int fd, linux32_statfsp sp); }
    202 101	NOARGS	{ int|linux_sys||ioperm(unsigned int lo, \
    203 		    unsigned int hi, int val); }
    204 102	STD	{ int|linux32_sys||socketcall(int what, netbsd32_voidp args); }
    205 103	UNIMPL	syslog
    206 104	NOARGS	{ int|compat_50_netbsd32||setitimer(int which, \
    207 		    netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); }
    208 105	NOARGS	{ int|compat_50_netbsd32||getitimer(int which, \
    209 		    netbsd32_itimerval50p_t itv); }
    210 106	STD	{ int|linux32_sys||stat(netbsd32_charp path, \
    211 		    linux32_statp sp); }
    212 107	STD	{ int|linux32_sys||lstat(netbsd32_charp path, \
    213 		    linux32_statp sp); }
    214 108	STD	{ int|linux32_sys||fstat(int fd, \
    215 		    linux32_statp sp); }
    216 109	STD	{ int|linux32_sys||olduname(linux32_oldutsnamep_t up); }
    217 110	NOARGS	{ int|linux_sys||iopl(int level); }
    218 111	UNIMPL	vhangup
    219 112	UNIMPL	idle
    220 113	UNIMPL	vm86old
    221 114	STD	{ int|linux32_sys||wait4(int pid, netbsd32_intp status, \
    222 		    int options, netbsd32_rusage50p_t rusage); }
    223 115	STD	{ int|linux32_sys||swapoff(netbsd32_charp path); }
    224 116	STD	{ int|linux32_sys||sysinfo(linux32_sysinfop_t arg); }
    225 117	STD	{ int|linux32_sys||ipc(int what, int a1, int a2, int a3, \
    226 		    netbsd32_voidp ptr); }
    227 118	NOARGS	{ int|netbsd32||fsync(int fd); }
    228 119	STD	{ int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); }
    229 120	STD	{ int|linux32_sys||clone(int flags, netbsd32_voidp stack, \
    230 		    netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \
    231 		    netbsd32_voidp child_tidptr); }
    232 121	STD	{ int|linux32_sys||setdomainname(netbsd32_charp domainname, \
    233 		    int len); }
    234 122	STD	{ int|linux32_sys||uname(linux32_utsnamep up); }
    235 123	STD	{ int|linux32_sys||modify_ldt(int func, netbsd32_charp ptr, \
    236 		    netbsd32_size_t bytecount); }
    237 124	UNIMPL	adjtimex
    238 125	STD	{ int|linux32_sys||mprotect(netbsd32_voidp start, \
    239 		    netbsd32_size_t len, int prot); } 
    240 126	UNIMPL	sigprocmask
    241 127	UNIMPL	create_module
    242 128	UNIMPL	init_module
    243 129	UNIMPL	delete_module
    244 130	UNIMPL	get_kernel_syms
    245 131	UNIMPL	quotactl
    246 132	NOARGS	{ int|netbsd32||getpgid(pid_t pid); }
    247 133	NOARGS	{ int|netbsd32||fchdir(int fd); }
    248 134	UNIMPL	bdflush
    249 135	UNIMPL	sysfs
    250 136	STD	{ int|linux32_sys||personality(netbsd32_u_long per); }
    251 137	UNIMPL	afs_syscall
    252 138	NOARGS	setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); }
    253 139	NOARGS	setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); }
    254 140	STD	{ int|linux32_sys||llseek(int fd, u_int32_t ohigh, \
    255 		    u_int32_t olow, netbsd32_voidp res, int whence); }
    256 141	STD	{ int|linux32_sys||getdents(int fd, \
    257 		    linux32_direntp_t dent, unsigned int count); }
    258 142	STD	{ int|linux32_sys||select(int nfds, \
    259 		    netbsd32_fd_setp_t readfds, \
    260 		    netbsd32_fd_setp_t writefds, \
    261 		    netbsd32_fd_setp_t exceptfds, \
    262 		    netbsd32_timeval50p_t timeout); }
    263 143	NOARGS	{ int|netbsd32||flock(int fd, int how); } 
    264 144	NOARGS	{ int|netbsd32|13|msync(netbsd32_voidp addr, \
    265 		    netbsd32_size_t len, int flags); }
    266 145	NOARGS	{ int|netbsd32||readv(int fd, \
    267 		    netbsd32_iovecp_t iovp, int iovcnt); }
    268 146	NOARGS	{ netbsd32_ssize_t|netbsd32||writev(int fd, \
    269 		    netbsd32_iovecp_t iovp, int iovcnt); }
    270 147	NOARGS	{ pid_t|netbsd32||getsid(pid_t pid); }
    271 148	STD	{ int|linux32_sys||fdatasync(int fd); }
    272 149	STD	{ int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); }
    273 150	NOARGS	{ int|netbsd32||mlock(netbsd32_voidp addr, \
    274 		    netbsd32_size_t len); }
    275 151	NOARGS	{ int|netbsd32||munlock(netbsd32_voidp addr, \
    276 		    netbsd32_size_t len); }
    277 152	NOARGS	{ int|netbsd32||mlockall(int flags); }
    278 153	NOARGS	{ int|sys||munlockall(void); }
    279 154	STD	{ int|linux32_sys||sched_setparam(pid_t pid, \
    280 		    const linux32_sched_paramp_t sp); }
    281 155	STD	{ int|linux32_sys||sched_getparam(pid_t pid, \
    282 		    linux32_sched_paramp_t sp); }
    283 156	STD	{ int|linux32_sys||sched_setscheduler(pid_t pid, \
    284 		    int policy, linux32_sched_paramp_t sp); }
    285 157	STD	{ int|linux32_sys||sched_getscheduler(pid_t pid); }
    286 158	NOARGS	{ int|linux_sys||sched_yield(void); }
    287 159	STD	{ int|linux32_sys||sched_get_priority_max(int policy); }
    288 160	STD	{ int|linux32_sys||sched_get_priority_min(int policy); }
    289 161	UNIMPL	sched_rr_get_interval
    290 162	STD	{ int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \
    291 		    linux32_timespecp_t rmtp); }
    292 163	STD	{ int|linux32_sys||mremap(netbsd32_voidp old_address, \
    293 		    netbsd32_size_t old_size, netbsd32_size_t new_size, \
    294 		    netbsd32_u_long flags); }
    295 164	STD	{ int|linux32_sys||setresuid16(linux32_uid16_t ruid, \
    296 		    linux32_uid16_t euid, linux32_uid16_t suid); }
    297 165	STD	{ int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \
    298 		    linux32_uid16p_t euid, linux32_uid16p_t suid); }
    299 166	UNIMPL	vm86
    300 167	UNIMPL	query_module
    301 168	NOARGS	{ int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \
    302 		    int timeout); }
    303 169	UNIMPL	nfsservctl
    304 170	STD	{ int|linux32_sys||setresgid16(linux32_gid16_t rgid, \
    305 		    linux32_gid16_t egid, linux32_gid16_t sgid); }
    306 171	STD	{ int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \
    307 		    linux32_gid16p_t egid, linux32_gid16p_t sgid); }
    308 172	UNIMPL	prctl
    309 173	STD	{ int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); }
    310 174	STD	{ int|linux32_sys||rt_sigaction(int signum, \
    311 		    linux32_sigactionp_t nsa, \
    312 		    linux32_sigactionp_t osa, \
    313 		    netbsd32_size_t sigsetsize); }
    314 175	STD	{ int|linux32_sys||rt_sigprocmask(int how, \
    315 		     linux32_sigsetp_t set, \
    316 		     linux32_sigsetp_t oset, \
    317 		     netbsd32_size_t sigsetsize); }
    318 176	STD	{ int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \
    319 		    netbsd32_size_t sigsetsize); }
    320 177	STD	{ int|linux32_sys||rt_sigtimedwait( \
    321 		    const linux32_sigsetp_t set, \
    322 		    linux32_siginfop_t info, \
    323 		    const linux32_timespecp_t timeout); }
    324 178	STD	{ int|linux32_sys||rt_queueinfo(int pid, int sig, \
    325 		    linux32_siginfop_t uinfo); }
    326 179	STD	{ int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \
    327 		    netbsd32_size_t sigsetsize); }
    328 180	STD	{ netbsd32_ssize_t|linux32_sys||pread(int fd, \
    329 		    netbsd32_voidp buf, netbsd32_size_t nbyte, \
    330 		    linux32_off_t offset); }
    331 181	STD	{ netbsd32_ssize_t|linux32_sys||pwrite(int fd, \
    332 		    netbsd32_voidp buf, netbsd32_size_t nbyte, \
    333 		    linux32_off_t offset); }
    334 182	STD	{ int|linux32_sys||chown16(netbsd32_charp path, \
    335 		    linux32_uid16_t uid, linux32_gid16_t gid); }
    336 183	NOARGS	{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
    337 		    netbsd32_size_t length); } 
    338 184	UNIMPL	capget
    339 185	UNIMPL	capset
    340 186	UNIMPL	sigaltstack
    341 187	UNIMPL	sendfile
    342 188	UNIMPL	getpmsg
    343 189	UNIMPL	putpmsg
    344 190	NOARGS	{ int|sys|14|vfork(void); }
    345 191	STD	{ int|linux32_sys||ugetrlimit(int which, \
    346 		    netbsd32_orlimitp_t rlp); }
    347 192	STD	{ linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \
    348 		    netbsd32_size_t len, int prot, int flags, int fd, \
    349 		    linux32_off_t offset); }
    350 193	STD	{ int|linux32_sys||truncate64(netbsd32_charp path, \
    351 		    uint32_t lenlo, uint32_t lenhi); }
    352 194	STD	{ int|linux32_sys||ftruncate64(unsigned int fd, \
    353 		    uint32_t lenlo, uint32_t lenhi); }
    354 195	STD	{ int|linux32_sys||stat64(netbsd32_charp path, \
    355 		    linux32_stat64p sp); }
    356 196	STD	{ int|linux32_sys||lstat64(netbsd32_charp path, \
    357 		    linux32_stat64p sp); }
    358 197	STD	{ int|linux32_sys||fstat64(int fd, \
    359 		    linux32_stat64p sp); }
    360 198	NOARGS	{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
    361 		    uid_t uid, gid_t gid); }
    362 199	NOARGS	{ uid_t|sys||getuid(void); }
    363 200	NOARGS	{ gid_t|sys||getgid(void); }
    364 201	NOARGS	{ uid_t|sys||geteuid(void); }
    365 202	NOARGS	{ gid_t|sys||getegid(void); }
    366 203	NOARGS	{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
    367 204	NOARGS	{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
    368 205	NOARGS	{ int|netbsd32||getgroups(int gidsetsize, \
    369 		    netbsd32_gid_tp gidset); }
    370 206	NOARGS	{ int|netbsd32||setgroups(int gidsetsize, \
    371 		    netbsd32_gid_tp gidset); }
    372 207	NOARGS	{ int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); }
    373 208	STD	{ int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \
    374 		    uid_t suid); }
    375 209	STD	{ int|linux32_sys||getresuid(linux32_uidp_t ruid, \
    376 		    linux32_uidp_t euid, linux32_uidp_t suid); }
    377 210	STD	{ int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \
    378 		    gid_t sgid); }
    379 211	STD	{ int|linux32_sys||getresgid(linux32_gidp_t rgid, \
    380 		    linux32_gidp_t egid, linux32_gidp_t sgid); }
    381 212	NOARGS	{ int|netbsd32||__posix_chown(netbsd32_charp path, \
    382 		    uid_t uid, gid_t gid); }
    383 213 	NOARGS	{ int|netbsd32||setuid(uid_t uid); }
    384 214	NOARGS	{ int|netbsd32||setgid(gid_t gid); }
    385 215	STD	{ int|linux32_sys||setfsuid(uid_t uid); }
    386 216	STD	{ int|linux32_sys||setfsgid(gid_t gid); }
    387 217	UNIMPL	pivot_root
    388 218	NOARGS	{ int|netbsd32||mincore(netbsd32_voidp addr, \
    389 		    netbsd32_size_t len, netbsd32_charp vec); }
    390 219	NOARGS	{ int|netbsd32||madvise(netbsd32_voidp addr, \
    391 		    netbsd32_size_t len, int behav); }
    392 220	STD	{ int|linux32_sys||getdents64(int fd, \
    393 		    linux32_dirent64p_t dent, unsigned int count); }
    394 ; fcntl64() - Exactly the same as fcntl()
    395 #define linux32_sys_fcntl64 linux32_sys_fcntl
    396 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
    397 221	NOARGS	{ int|linux32_sys||fcntl64(int fd, \
    398 		    int cmd, netbsd32_voidp arg); }
    399 222	UNIMPL	/*	unused	*/
    400 223	UNIMPL	/*	unused	*/
    401 224	NOARGS	{ pid_t|linux_sys||gettid(void); }
    402 225	UNIMPL	readahead
    403 226	NOARGS	{ int|linux_sys||setxattr(char *path, char *name, \
    404 		    void *value, size_t size, int flags); }
    405 227	NOARGS	{ int|linux_sys||lsetxattr(char *path, char *name, \
    406 		    void *value, size_t size, int flags); }
    407 228	NOARGS	{ int|linux_sys||fsetxattr(int fd, char *name, \
    408 		    void *value, size_t size, int flags); }
    409 229	NOARGS	{ ssize_t|linux_sys||getxattr(char *path, char *name, \
    410 		    void *value, size_t size); }
    411 230	NOARGS	{ ssize_t|linux_sys||lgetxattr(char *path, char *name, \
    412 		    void *value, size_t size); }
    413 231	NOARGS	{ ssize_t|linux_sys||fgetxattr(int fd, char *name, \
    414 		    void *value, size_t size); }
    415 232	NOARGS	{ ssize_t|linux_sys||listxattr(char *path, char *list, \
    416 		    size_t size); }
    417 233	NOARGS	{ ssize_t|linux_sys||llistxattr(char *path, char *list, \
    418 		    size_t size); }
    419 234	NOARGS	{ ssize_t|linux_sys||flistxattr(int fd, char *list, \
    420 		    size_t size); }
    421 235	NOARGS	{ int|linux_sys||removexattr(char *path, char *name); }
    422 236	NOARGS	{ int|linux_sys||lremovexattr(char *path, char *name); }
    423 237	NOARGS	{ int|linux_sys||fremovexattr(int fd, char *name); }
    424 238	STD	{ int|linux32_sys||tkill(int tid, int sig); }
    425 239	UNIMPL	sendfile64
    426 240	STD	{ int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \
    427 		    linux32_timespecp_t timeout, linux32_intp_t uaddr2, \
    428 		    int val3); }
    429 241	STD	{ int|linux32_sys||sched_setaffinity(pid_t pid, \
    430 		    unsigned int len, linux32_ulongp_t mask); }
    431 242	STD	{ int|linux32_sys||sched_getaffinity(pid_t pid, \
    432 		    unsigned int len, linux32_ulongp_t mask); }
    433 243	STD	{ int|linux32_sys||set_thread_area(linux32_user_descp_t desc); }
    434 244	STD	{ int|linux32_sys||get_thread_area(linux32_user_descp_t desc); }
    435 245	UNIMPL	io_setup
    436 246	UNIMPL	io_destroy
    437 247	UNIMPL	io_getevents
    438 248	UNIMPL	io_submit
    439 249	UNIMPL	io_cancel
    440 250	STD	{ int|linux32_sys||fadvise64(int fd, uint32_t offlo, \
    441 		    uint32_t offhi, linux32_size_t len, int advice); }
    442 251	UNIMPL	/*	unused	*/
    443 252	STD	{ int|linux32_sys||exit_group(int error_code); }
    444 253	UNIMPL	lookup_dcookie
    445 254	UNIMPL	epoll_create
    446 255	UNIMPL	epoll_ctl
    447 256	UNIMPL	epoll_wait
    448 257	UNIMPL	remap_file_pages
    449 258	STD	{ int|linux32_sys||set_tid_address(linux32_intp_t tid); }
    450 259	UNIMPL	timer_create
    451 260	UNIMPL	timer_settime
    452 261	UNIMPL	timer_gettime
    453 262	UNIMPL	timer_getoverrun
    454 263	UNIMPL	timer_delete
    455 264	STD	{ int|linux32_sys||clock_settime(clockid_t which, \
    456 		    linux32_timespecp_t tp); }
    457 265	STD	{ int|linux32_sys||clock_gettime(clockid_t which, \
    458 		    linux32_timespecp_t tp); }
    459 266	STD	{ int|linux32_sys||clock_getres(clockid_t which, \
    460 		    linux32_timespecp_t tp); }
    461 267	STD	{ int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \
    462 		    linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); }
    463 268	STD	{ int|linux32_sys||statfs64(netbsd32_charp path, \
    464 		    netbsd32_size_t sz, linux32_statfs64p sp); }
    465 269	STD	{ int|linux32_sys||fstatfs64(int fd, \
    466 		    netbsd32_size_t sz, linux32_statfs64p sp); }
    467 270	STD	{ int|linux32_sys||tgkill(int tgid, int tid, int sig); }
    468 271	UNIMPL	utimes
    469 272	STD	{ int|linux32_sys||fadvise64_64(int fd, uint32_t offlo, \
    470 		    uint32_t offhi, uint32_t lenlo, uint32_t lenhi, int advice); }
    471 273	UNIMPL	vserver
    472 274	UNIMPL	mbind
    473 275	UNIMPL	get_mempolicy
    474 276	UNIMPL	set_mempolicy
    475 277	UNIMPL	mq_open
    476 278	UNIMPL	mq_unlink
    477 279	UNIMPL	mq_timedsend
    478 280	UNIMPL	mq_timedreceive
    479 281	UNIMPL	mq_notify
    480 282	UNIMPL	mq_getsetattr
    481 283	UNIMPL	kexec_load
    482 284	UNIMPL	waitid
    483 285	UNIMPL	/* unused */
    484 286	UNIMPL	add_key
    485 287	UNIMPL	request_key
    486 288	UNIMPL	keyctl
    487 289	UNIMPL	ioprio_set
    488 290	UNIMPL	ioprio_get
    489 291	UNIMPL	inotify_init
    490 292	UNIMPL	inotify_add_watch
    491 293	UNIMPL	inotify_rm_watch
    492 294	UNIMPL	migrate_pages
    493 295	UNIMPL	openat
    494 296	UNIMPL	mkdirat
    495 297	UNIMPL	mknodat
    496 298	UNIMPL	fchownat
    497 299	UNIMPL	futimesat
    498 300	UNIMPL	fstatat64
    499 301	UNIMPL	unlinkat
    500 302	UNIMPL	renameat
    501 303	UNIMPL	linkat
    502 304	UNIMPL	symlinkat
    503 305	UNIMPL	readlinkat
    504 306	UNIMPL	fchmodat
    505 307	UNIMPL	faccessat
    506 308	UNIMPL	pselect6
    507 309	UNIMPL	ppoll
    508 310	UNIMPL	unshare
    509 311	STD	{ int|linux32_sys||set_robust_list( \
    510 		    linux32_robust_list_headp_t head, linux32_size_t len); }
    511 312	STD	{ int|linux32_sys||get_robust_list(linux32_pid_t pid, \
    512 		    linux32_robust_list_headpp_t head, linux32_sizep_t len); }
    513 313	UNIMPL	splice
    514 314	UNIMPL	sync_file_range
    515 315	UNIMPL	tee
    516 316	UNIMPL	vmsplice
    517 317	UNIMPL	move_pages
    518 318	UNIMPL	getcpu
    519 319	UNIMPL	epoll_wait
    520 320	UNIMPL	utimensat
    521 321	UNIMPL	signalfd
    522 322	UNIMPL	timerfd_create
    523 323	UNIMPL	eventfd
    524 324	UNIMPL	fallocate
    525 325	UNIMPL	timerfd_settime
    526 326	UNIMPL	timerfd_gettime
    527 327	UNIMPL	signalfd4
    528 328	UNIMPL	eventfd2
    529 329	UNIMPL	epoll_create1
    530 330	STD	{ int|linux32_sys||dup3(int from, int to, int flags); }
    531 331     STD	{ int|linux32_sys||pipe2(netbsd32_intp fd, int flags); }
    532 332	UNIMPL	inotify_init1
    533 333	UNIMPL	preadv
    534 334	UNIMPL	pwritev
    535 335	UNIMPL	rt_tgsigqueueinfo
    536 336	UNIMPL	perf_counter_open
    537 337	UNIMPL	recvmmsg
    538