xref: /netbsd-src/sys/compat/netbsd32/syscalls.master (revision daf6c4152fcddc27c445489775ed1f66ab4ea9a9)
1	$NetBSD: syscalls.master,v 1.84 2010/03/02 21:07:21 pooka Exp $
2
3;	from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
4;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
5
6; NetBSD system call name/number "master" file.
7; (See syscalls.conf to see what it is processed into.)
8;
9; Fields: number type [type-dependent ...]
10;	number	system call number, must be in order
11;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
12;		the compatibility options defined in syscalls.conf.
13;
14; types:
15;	STD	always included
16;	OBSOL	obsolete, not included in system
17;	IGNORED	syscall is a null op, but always succeeds
18;	UNIMPL	unimplemented, not included in system
19;	EXCL	implemented, but not included in system
20;	NODEF	included, but don't define the syscall number
21;	NOARGS	included, but don't define the syscall args structure
22;	INDIR	included, but don't define the syscall args structure,
23;		and allow it to be "really" varargs.
24;
25; The compat options are defined in the syscalls.conf file, and the
26; compat option name is prefixed to the syscall name.  Other than
27; that, they're like NODEF (for 'compat' options), or STD (for
28; 'libcompat' options).
29;
30; The type-dependent arguments are as follows:
31; For STD, NODEF, NOARGS, and compat syscalls:
32;	{ pseudo-proto } [alias]
33; For other syscalls:
34;	[comment]
35;
36; #ifdef's, etc. may be included, and are copied to the output files.
37; #include's are copied to the syscall names and switch definition files only.
38
39#if defined(_KERNEL_OPT)
40#include "opt_compat_netbsd.h"
41#include "opt_ntp.h"
42#include "opt_sysv.h"
43#include "opt_compat_43.h"
44#include "opt_posix.h"
45#endif
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/signal.h>
50#include <sys/mount.h>
51#include <sys/syscallargs.h>
52
53#include <compat/netbsd32/netbsd32.h>
54#include <compat/netbsd32/netbsd32_syscallargs.h>
55
56%%
57
58; Reserved/unimplemented system calls in the range 0-150 inclusive
59; are reserved for use in future Berkeley releases.
60; Additional system calls implemented in vendor and other
61; redistributions should be placed in the reserved range at the end
62; of the current calls.
63
640	INDIR		{ int|netbsd32||syscall(int code, \
65			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
661	STD		{ void|netbsd32||exit(int rval); }
672	NOARGS		{ int|sys||fork(void); }
683	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
69			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
704	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
71			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
725	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
73			    ... mode_t mode); }
746	STD		{ int|netbsd32||close(int fd); }
757	COMPAT_50	{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
76			    int options, netbsd32_rusage50p_t rusage); }
778	COMPAT_43	{ int|netbsd32||ocreat(netbsd32_charp path, \
78			    mode_t mode); }
799	STD		{ int|netbsd32||link(netbsd32_charp path, \
80			    netbsd32_charp link); }
8110	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
8211	OBSOL		execv
8312	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
8413	STD		{ int|netbsd32||fchdir(int fd); }
8514	COMPAT_50	{ int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
86			    uint32_t dev); }
8715	STD		{ int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
8816	STD		{ int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
89			    gid_t gid); }
9017	STD		{ int|netbsd32||break(netbsd32_charp nsize); }
9118	COMPAT_20	{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
92			    netbsd32_long bufsize, int flags); }
9319	COMPAT_43	{ netbsd32_long|netbsd32||olseek(int fd, \
94			    netbsd32_long offset, int whence); }
9520	NOARGS 		{ pid_t|sys||getpid(void); }
9621	STD		{ int|netbsd32||mount(netbsd32_charp type, \
97			    netbsd32_charp path, int flags, \
98			    netbsd32_voidp data); }
9922	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
100			    int flags); }
10123	STD		{ int|netbsd32||setuid(uid_t uid); }
10224	NOARGS 		{ uid_t|sys||getuid(void); }
10325	NOARGS		{ uid_t|sys||geteuid(void); }
10426	STD		{ int|netbsd32||ptrace(int req, pid_t pid, \
105			    netbsd32_voidp addr, int data); }
10627	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
107			    netbsd32_msghdrp_t msg, int flags); }
10828	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
109			    netbsd32_msghdrp_t msg, int flags); }
11029	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
111			    netbsd32_voidp buf, netbsd32_size_t len, \
112			    int flags, netbsd32_sockaddrp_t from, \
113			    netbsd32_intp fromlenaddr); }
11430	STD		{ int|netbsd32||accept(int s, \
115			    netbsd32_sockaddrp_t name, \
116			    netbsd32_intp anamelen); }
11731	STD		{ int|netbsd32||getpeername(int fdes, \
118			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
11932	STD		{ int|netbsd32||getsockname(int fdes, \
120			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
12133	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
12234	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
123			    netbsd32_u_long flags); }
12435	STD		{ int|netbsd32||fchflags(int fd, \
125			    netbsd32_u_long flags); }
12636	NOARGS		{ void|sys||sync(void); }
12737	STD		{ int|netbsd32||kill(int pid, int signum); }
12838	COMPAT_43	{ int|netbsd32||stat43(netbsd32_charp path, \
129			    netbsd32_stat43p_t ub); }
13039	NOARGS 		{ pid_t|sys||getppid(void); }
13140	COMPAT_43	{ int|netbsd32||lstat43(netbsd32_charp path, \
132			    netbsd32_stat43p_t ub); }
13341	STD		{ int|netbsd32||dup(int fd); }
13442	NOARGS		{ int|sys||pipe(void); }
13543	NOARGS 		{ gid_t|sys||getegid(void); }
13644	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
137			    netbsd32_size_t size, netbsd32_u_long offset, \
138			    u_int scale); }
13945	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
140			    int facs, int pid); }
14146	STD		{ int|netbsd32||sigaction(int signum, \
142			    netbsd32_sigactionp_t nsa, \
143			    netbsd32_sigactionp_t osa); }
14447	NOARGS 		{ gid_t|sys||getgid(void); }
14548	COMPAT_13	{ int|netbsd32||sigprocmask(int how, \
146			    int mask); } sigprocmask13
14749	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
148			    u_int namelen); }
14950	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
15051	STD		{ int|netbsd32||acct(netbsd32_charp path); }
15152	COMPAT_13 	{ int|sys||sigpending(void); } sigpending13
15253	COMPAT_13	{ int|netbsd32||sigaltstack13( \
153			    netbsd32_sigaltstack13p_t nss, \
154			    netbsd32_sigaltstack13p_t oss); }
15554	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
156			    ... netbsd32_voidp data); }
15755	COMPAT_12	{ int|netbsd32||reboot(int opt); }
15856	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
15957	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
160			    netbsd32_charp link); }
16158	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
162			    netbsd32_charp buf, netbsd32_size_t count); }
16359	STD		{ int|netbsd32||execve(netbsd32_charp path, \
164			    netbsd32_charpp argp, netbsd32_charpp envp); }
16560	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
16661	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
16762	COMPAT_43	{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
16863	COMPAT_43	{ int|netbsd32||ogetkerninfo(int op, \
169			    netbsd32_charp where, netbsd32_intp size, \
170			    int arg); }
17164	COMPAT_43	{ int|sys||getpagesize(void); } ogetpagesize
17265	COMPAT_12	{ int|netbsd32||msync(netbsd32_voidp addr, \
173			    netbsd32_size_t len); }
174; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
17566	NOARGS		{ int|sys||vfork(void); }
17667	OBSOL		vread
17768	OBSOL		vwrite
17869	STD		{ int|netbsd32||sbrk(netbsd32_intptr_t incr); }
17970	STD		{ int|netbsd32||sstk(int incr); }
18071	COMPAT_43	{ int|netbsd32||ommap(netbsd32_voidp addr, \
181			    netbsd32_size_t len, int prot, int flags, int fd, \
182			    netbsd32_long pos); }
18372	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
18473	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
185			    netbsd32_size_t len); }
18674	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
187			    netbsd32_size_t len, int prot); }
18875	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
189			    netbsd32_size_t len, int behav); }
19076	OBSOL		vhangup
19177	OBSOL		vlimit
19278	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
193			    netbsd32_size_t len, netbsd32_charp vec); }
19479	STD		{ int|netbsd32||getgroups(int gidsetsize, \
195			    netbsd32_gid_tp gidset); }
19680	STD		{ int|netbsd32||setgroups(int gidsetsize, \
197			    netbsd32_gid_tp gidset); }
19881	NOARGS 		{ int|sys||getpgrp(void); }
19982	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
20083	COMPAT_50	{ int|netbsd32||setitimer(int which, \
201			    netbsd32_itimerval50p_t itv, \
202			    netbsd32_itimerval50p_t oitv); }
20384	COMPAT_43	{ int|sys||wait(void); } owait
20485	COMPAT_12	{ int|netbsd32||oswapon(netbsd32_charp name); }
20586	COMPAT_50	{ int|netbsd32||getitimer(int which, \
206			    netbsd32_itimerval50p_t itv); }
20787	COMPAT_43	{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
208			    u_int len); }
20988	COMPAT_43	{ int|netbsd32||osethostname(netbsd32_charp hostname, \
210			    u_int len); }
21189	COMPAT_43	{ int|sys||getdtablesize(void); } ogetdtablesize
21290	STD		{ int|netbsd32||dup2(int from, int to); }
21391	UNIMPL		getdopt
21492	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
215			    ... netbsd32_voidp arg); }
21693	COMPAT_50	{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
217			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
218			    netbsd32_timeval50p_t tv); }
21994	UNIMPL		setdopt
22095	STD		{ int|netbsd32||fsync(int fd); }
22196	STD		{ int|netbsd32||setpriority(int which, int who, \
222			    int prio); }
22397	COMPAT_30	{ int|netbsd32||socket(int domain, int type, \
224			    int protocol); }
22598	STD		{ int|netbsd32||connect(int s, \
226			    netbsd32_sockaddrp_t name, int namelen); }
22799	COMPAT_43	{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
228			    netbsd32_intp anamelen); }
229100	STD		{ int|netbsd32||getpriority(int which, int who); }
230101	COMPAT_43	{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
231			    int len, int flags); }
232102	COMPAT_43	{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
233			    int len, int flags); }
234103	COMPAT_13	{ int|netbsd32||sigreturn( \
235			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
236104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
237			    int namelen); }
238105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
239			    netbsd32_voidp val, int valsize); }
240106	STD		{ int|netbsd32||listen(int s, int backlog); }
241107	OBSOL		vtimes
242108	COMPAT_43	{ int|netbsd32||osigvec(int signum, \
243			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
244109	COMPAT_43	{ int|netbsd32||sigblock(int mask); }
245110	COMPAT_43	{ int|netbsd32||sigsetmask(int mask); }
246111	COMPAT_13	{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
247112	COMPAT_43	{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
248			    netbsd32_sigstackp_t oss); }
249113	COMPAT_43	{ int|netbsd32||orecvmsg(int s, \
250			    netbsd32_omsghdrp_t msg, int flags); }
251114	COMPAT_43	{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
252			    int flags); }
253115	OBSOL		vtrace
254116	COMPAT_50	{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
255			    netbsd32_timezonep_t tzp); }
256117	COMPAT_50	{ int|netbsd32||getrusage(int who, \
257			    netbsd32_rusage50p_t rusage); }
258118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
259			    netbsd32_voidp val, netbsd32_intp avalsize); }
260119	OBSOL		resuba
261120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
262			    netbsd32_iovecp_t iovp, int iovcnt); }
263121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
264			    netbsd32_iovecp_t iovp, int iovcnt); }
265122	COMPAT_50	{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
266			    netbsd32_timezonep_t tzp); }
267123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
268124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
269125	COMPAT_43	{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
270			    netbsd32_size_t len, int flags, \
271			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
272126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
273127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
274128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
275			    netbsd32_charp to); }
276129	COMPAT_43	{ int|netbsd32||otruncate(netbsd32_charp path, \
277			    netbsd32_long length); }
278130	COMPAT_43	{ int|netbsd32||oftruncate(int fd, \
279			    netbsd32_long length); }
280131	STD		{ int|netbsd32||flock(int fd, int how); }
281132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
282			    mode_t mode); }
283133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
284			    netbsd32_voidp buf, netbsd32_size_t len, \
285			    int flags, netbsd32_sockaddrp_t to, int tolen); }
286134	STD		{ int|netbsd32||shutdown(int s, int how); }
287135	STD		{ int|netbsd32||socketpair(int domain, int type, \
288			    int protocol, netbsd32_intp rsv); }
289136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
290			    mode_t mode); }
291137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
292138	COMPAT_50	{ int|netbsd32||utimes(netbsd32_charp path, \
293			    netbsd32_timeval50p_t tptr); }
294139	OBSOL		4.2 sigreturn
295140	COMPAT_50	{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
296			    netbsd32_timeval50p_t olddelta); }
297141	COMPAT_43	{ int|netbsd32||ogetpeername(int fdes, \
298			    netbsd32_voidp asa, netbsd32_intp alen); }
299142	COMPAT_43	{ int32_t|sys||gethostid(void); } ogethostid
300143	COMPAT_43	{ int|netbsd32||sethostid(int32_t hostid); }
301144	COMPAT_43	{ int|netbsd32||ogetrlimit(int which, \
302			    netbsd32_orlimitp_t rlp); }
303145	COMPAT_43	{ int|netbsd32||osetrlimit(int which, \
304			    netbsd32_orlimitp_t rlp); }
305146	COMPAT_43	{ int|netbsd32||killpg(int pgid, int signum); }
306147	NOARGS		{ int|sys||setsid(void); }
307148	STD		{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
308			    int uid, netbsd32_voidp arg); }
309149	COMPAT_43	{ int|sys||quota(void); } oquota
310150	COMPAT_43	{ int|netbsd32||ogetsockname(int fdec, \
311			    netbsd32_voidp asa, netbsd32_intp alen); }
312
313; Syscalls 151-180 inclusive are reserved for vendor-specific
314; system calls.  (This includes various calls added for compatibity
315; with other Unix variants.)
316; Some of these calls are now supported by BSD...
317151	UNIMPL
318152	UNIMPL
319153	UNIMPL
320154	UNIMPL
321155	UNIMPL		netbsd32_nfssvc
322156	COMPAT_43	{ int|netbsd32||ogetdirentries(int fd, \
323			    netbsd32_charp buf, u_int count, \
324			    netbsd32_longp basep); }
325157	COMPAT_20	{ int|netbsd32||statfs(netbsd32_charp path, \
326			    netbsd32_statfsp_t buf); }
327158	COMPAT_20	{ int|netbsd32||fstatfs(int fd, \
328			    netbsd32_statfsp_t buf); }
329159	UNIMPL
330160	UNIMPL
331161	COMPAT_30	{ int|netbsd32||getfh(netbsd32_charp fname, \
332			    netbsd32_compat_30_fhandlep_t fhp); }
333162	COMPAT_09	{ int|netbsd32||ogetdomainname( \
334			    netbsd32_charp domainname, int len); }
335163	COMPAT_09	{ int|netbsd32||osetdomainname( \
336			    netbsd32_charp domainname, int len); }
337164	COMPAT_09	{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
338165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
339166	UNIMPL
340167	UNIMPL
341168	UNIMPL
342#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
343169	COMPAT_10	{ int|netbsd32||semsys(int which, int a2, int a3, \
344			    int a4, int a5); } osemsys
345#else
346169	EXCL		netbsd32_semsys
347#endif
348#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
349170	COMPAT_10	{ int|netbsd32||msgsys(int which, int a2, int a3, \
350			    int a4, int a5, int a6); } omsgsys
351#else
352170	EXCL		netbsd32_msgsys
353#endif
354#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
355171	COMPAT_10	{ int|netbsd32||shmsys(int which, int a2, int a3, \
356			    int a4); } oshmsys
357#else
358171	EXCL		netbsd32_shmsys
359#endif
360172	UNIMPL
361173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
362			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
363			    int PAD, off_t offset); }
364174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
365			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
366			    int PAD, off_t offset); }
367#if defined(NTP) || !defined(_KERNEL_OPT)
368175	COMPAT_30	{ int|netbsd32||ntp_gettime( \
369			    netbsd32_ntptimeval50p_t ntvp); }
370176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
371#else
372175	EXCL		ntp_gettime
373176	EXCL		ntp_adjtime
374#endif
375177	UNIMPL
376178	UNIMPL
377179	UNIMPL
378180	UNIMPL
379
380; Syscalls 180-199 are used by/reserved for BSD
381181	STD		{ int|netbsd32||setgid(gid_t gid); }
382182	STD		{ int|netbsd32||setegid(gid_t egid); }
383183	STD		{ int|netbsd32||seteuid(uid_t euid); }
384184	EXCL		netbsd32_lfs_bmapv
385185	EXCL		netbsd32_lfs_markv
386186	EXCL		netbsd32_lfs_segclean
387187	EXCL		netbsd32_lfs_segwait
388188	COMPAT_12	{ int|netbsd32||stat12(netbsd32_charp path, \
389			    netbsd32_stat12p_t ub); }
390189	COMPAT_12	{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
391190	COMPAT_12	{ int|netbsd32||lstat12(netbsd32_charp path, \
392			    netbsd32_stat12p_t ub); }
393191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
394			    int name); }
395192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
396193	UNIMPL
397194	STD		{ int|netbsd32||getrlimit(int which, \
398			    netbsd32_rlimitp_t rlp); }
399195	STD		{ int|netbsd32||setrlimit(int which, \
400			    netbsd32_rlimitp_t rlp); }
401196	COMPAT_12	{ int|netbsd32||getdirentries(int fd, \
402			    netbsd32_charp buf, u_int count, \
403			    netbsd32_longp basep); }
404197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
405			    netbsd32_size_t len, int prot, int flags, int fd, \
406			    netbsd32_long PAD, off_t pos); }
407198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
408			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
409199	STD		{ off_t|netbsd32||lseek(int fd, int PAD, off_t offset, \
410			    int whence); }
411200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
412			    off_t length); }
413201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
414			    off_t length); }
415202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
416			    u_int namelen, netbsd32_voidp old, \
417			    netbsd32_size_tp oldlenp, netbsd32_voidp new, \
418			    netbsd32_size_t newlen); }
419203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
420			    netbsd32_size_t len); }
421204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
422			    netbsd32_size_t len); }
423205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
424206	COMPAT_50	{ int|netbsd32||futimes(int fd, \
425			    netbsd32_timeval50p_t tptr); }
426207	STD		{ int|netbsd32||getpgid(pid_t pid); }
427208	STD		{ int|netbsd32||reboot(int opt, \
428			    netbsd32_charp bootstr); }
429209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
430			    u_int nfds, int timeout); }
431210	UNIMPL
432211	UNIMPL
433212	UNIMPL
434213	UNIMPL
435214	UNIMPL
436215	UNIMPL
437216	UNIMPL
438217	UNIMPL
439218	UNIMPL
440219	UNIMPL
441; System calls 220-300 are reserved for use by NetBSD
442#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
443220	COMPAT_14	{ int|netbsd32||__semctl(int semid, int semnum, \
444			    int cmd, netbsd32_semunu_t arg); }
445221	STD		{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
446			    int semflg); }
447222	STD		{ int|netbsd32||semop(int semid, \
448			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
449223	STD		{ int|netbsd32||semconfig(int flag); }
450#else
451220	EXCL		compat_14_netbsd32_semctl
452221	EXCL		netbsd32_semget
453222	EXCL		netbsd32_semop
454223	EXCL		netbsd32_semconfig
455#endif
456#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
457224	COMPAT_14	{ int|netbsd32||msgctl(int msqid, int cmd, \
458			    netbsd32_msqid_ds14p_t buf); }
459225	STD		{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
460226	STD		{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
461			    netbsd32_size_t msgsz, int msgflg); }
462227	STD		{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
463			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
464			    netbsd32_long msgtyp, int msgflg); }
465#else
466224	EXCL		compat_14_netbsd32_msgctl
467225	EXCL		netbsd32_msgget
468226	EXCL		netbsd32_msgsnd
469227	EXCL		netbsd32_msgrcv
470#endif
471#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
472228	STD		{ netbsd32_voidp|netbsd32||shmat(int shmid, \
473			    netbsd32_voidp shmaddr, int shmflg); }
474229	COMPAT_14	{ int|netbsd32||shmctl(int shmid, int cmd, \
475			    netbsd32_shmid_dsp_t buf); }
476230	STD		{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
477231	STD		{ int|netbsd32||shmget(netbsd32_key_t key, \
478			    netbsd32_size_t size, int shmflg); }
479#else
480228	EXCL		netbsd32_shmat
481229	EXCL		compat_14_netbsd32_shmctl
482230	EXCL		netbsd32_shmdt
483231	EXCL		netbsd32_shmget
484#endif
485232	COMPAT_50	{ int|netbsd32||clock_gettime( \
486			    netbsd32_clockid_t clock_id, \
487			    netbsd32_timespec50p_t tp); }
488233	COMPAT_50	{ int|netbsd32||clock_settime( \
489			    netbsd32_clockid_t clock_id, \
490			    netbsd32_timespec50p_t tp); }
491234	COMPAT_50	{ int|netbsd32||clock_getres( \
492			    netbsd32_clockid_t clock_id, \
493			    netbsd32_timespec50p_t tp); }
494235	STD		{ int|netbsd32||timer_create( \
495			    netbsd32_clockid_t clock_id, \
496			    netbsd32_sigeventp_t evp, \
497			    netbsd32_timerp_t timerid); }
498236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
499237	COMPAT_50	{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
500			    int flags, \
501			    netbsd32_itimerspec50p_t value, \
502			    netbsd32_itimerspec50p_t ovalue); }
503238	COMPAT_50	{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
504			    netbsd32_itimerspec50p_t value); }
505239	STD		{ int|netbsd32||timer_getoverrun( \
506			    netbsd32_timer_t timerid); }
507;
508; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
509;
510240	COMPAT_50	{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
511			    netbsd32_timespec50p_t rmtp); }
512241	STD		{ int|netbsd32||fdatasync(int fd); }
513242	STD		{ int|netbsd32||mlockall(int flags); }
514243	NOARGS		{ int|sys||munlockall(void); }
515244	COMPAT_50	{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
516			    netbsd32_siginfop_t info, \
517			    netbsd32_timespec50p_t timeout); }
518245	UNIMPL
519246	UNIMPL
520#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL_OPT) && defined(_LIBC))
521247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
522			    netbsd32_semidp_t idp); }
523248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
524			    int oflag, mode_t mode, unsigned int value, \
525			    netbsd32_semidp_t idp); }
526249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
527250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
528251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
529252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
530253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
531254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
532			    netbsd32_intp value); }
533255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
534256	UNIMPL		sys__ksem_timedwait
535#else
536247	EXCL		sys__ksem_init
537248	EXCL		sys__ksem_open
538249	EXCL 		sys__ksem_unlink
539250	EXCL		sys__ksem_close
540251	EXCL		sys__ksem_post
541252	EXCL		sys__ksem_wait
542253	EXCL		sys__ksem_trywait
543254	EXCL		sys__ksem_getvalue
544255	EXCL		sys__ksem_destroy
545256	UNIMPL		sys__ksem_timedwait
546#endif
547257	UNIMPL
548258	UNIMPL
549259	UNIMPL
550260	UNIMPL
551261	UNIMPL
552262	UNIMPL
553263	UNIMPL
554264	UNIMPL
555265	UNIMPL
556266	UNIMPL
557267	UNIMPL
558268	UNIMPL
559269	UNIMPL
560270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
561			    netbsd32_charp to); }
562271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
563			    int misc); }
564272	COMPAT_30	{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
565			    netbsd32_size_t count); }
566273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
567			    netbsd32_size_t len, int inherit); }
568274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
569			    mode_t mode); }
570275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
571			    gid_t gid); }
572276	COMPAT_50	{ int|netbsd32||lutimes(netbsd32_charp path, \
573			    netbsd32_timeval50p_t tptr); }
574277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
575			    netbsd32_size_t len, int flags); }
576278	COMPAT_30	{ int|netbsd32|13|stat(netbsd32_charp path, \
577			    netbsd32_stat13p_t ub); }
578279	COMPAT_30	{ int|netbsd32|13|fstat(int fd, \
579			    netbsd32_stat13p_t sb); }
580280	COMPAT_30	{ int|netbsd32|13|lstat(netbsd32_charp path, \
581			    netbsd32_stat13p_t ub); }
582281	STD		{ int|netbsd32|14|sigaltstack(\
583			    netbsd32_sigaltstackp_t nss, \
584			    netbsd32_sigaltstackp_t oss); }
585282	NOARGS		{ int|sys|14|vfork(void); }
586283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
587			    uid_t uid, gid_t gid); }
588284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
589			    gid_t gid); }
590285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
591			    uid_t uid, gid_t gid); }
592286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
593287	STD		{ int|netbsd32||__clone(int flags, \
594			    netbsd32_voidp stack); }
595288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
596			    int pid); }
597289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
598			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
599			    off_t offset); }
600290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
601			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
602			    off_t offset); }
603291	STD		{ int|netbsd32|14|sigaction(int signum, \
604			    netbsd32_sigactionp_t nsa, \
605			    netbsd32_sigactionp_t osa); }
606292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
607293	STD		{ int|netbsd32|14|sigprocmask(int how, \
608			    netbsd32_sigsetp_t set, \
609			    netbsd32_sigsetp_t oset); }
610294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
611295	COMPAT_16	{ int|netbsd32|14|sigreturn( \
612			    netbsd32_sigcontextp_t sigcntxp); }
613296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
614			    netbsd32_size_t length); }
615297	STD		{ int|netbsd32||fchroot(int fd); }
616298	COMPAT_30	{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
617			   int flags); }
618299	COMPAT_30	{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
619			    netbsd32_stat13p_t sb); }
620300	COMPAT_20	{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
621			    netbsd32_stat50p_t buf); }
622#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
623301	COMPAT_50	{ int|netbsd32|14|semctl(int semid, int semnum, \
624			    int cmd, ... netbsd32_semun50p_t arg); }
625#else
626301	EXCL		__semctl14
627#endif
628#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
629302	COMPAT_50	{ int|netbsd32|13|msgctl(int msqid, int cmd, \
630			    netbsd32_msqid_ds50p_t buf); }
631#else
632302	EXCL		__msgctl13
633#endif
634#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
635303	COMPAT_50	{ int|netbsd32|13|shmctl(int shmid, int cmd, \
636			    netbsd32_shmid_ds50p_t buf); }
637#else
638303	EXCL		__shmctl13
639#endif
640304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
641			    netbsd32_u_long flags); }
642305	NOARGS 		{ int|sys||issetugid(void); }
643306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
644			    netbsd32_voidp addr, netbsd32_size_t len); }
645307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
646308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp, \
647			    uint32_t flags, netbsd32_lwpidp new_lwp); }
648309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
649			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
650310	NOARGS		{ int|sys||_lwp_exit(void); }
651311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
652312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
653			    netbsd32_lwpidp departed); }
654313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
655314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
656315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
657316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
658317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
659318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
660319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
661320	COMPAT_50	{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
662			    lwpid_t unpark, netbsd32_voidp hint, \
663			    netbsd32_voidp unparkhint); }
664321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
665			    netbsd32_voidp hint); }
666322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
667			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
668			    netbsd32_voidp hint); }
669323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
670				netbsd32_charp name); }
671324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
672				netbsd32_charp name, netbsd32_size_t len); }
673325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
674				netbsd32_pointer_t address); }
675326	UNIMPL
676327	UNIMPL
677328	UNIMPL
678329	UNIMPL
679330	STD		{ int|netbsd32||sa_register(netbsd32_sa_upcall_t new, \
680			    netbsd32_sa_upcallp_t old, int flags, \
681			    netbsd32_ssize_t stackinfo_offset); }
682331	STD		{ int|netbsd32||sa_stacks(int num, \
683			    netbsd32_stackp_t stacks); }
684332	NOARGS		{ int|sys||sa_enable(void); }
685333	STD		{ int|netbsd32||sa_setconcurrency(int concurrency); }
686334	NOARGS		{ int|sys||sa_yield(void); }
687335	STD		{ int|netbsd32||sa_preempt(int sa_id); }
688336	OBSOL		sys_sa_unblockyield
689337	UNIMPL
690338	UNIMPL
691339	UNIMPL
692340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
693			    netbsd32_sigactionp_t nsa, \
694			    netbsd32_sigactionp_t osa, \
695			    netbsd32_voidp tramp, int vers); }
696341	UNIMPL
697342	UNIMPL
698343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
699			    netbsd32_size_t len, int op); }
700344	NOARGS		{ int|sys||kqueue(void); }
701345	COMPAT_50	{ int|netbsd32||kevent(int fd, \
702			    netbsd32_keventp_t changelist, \
703			    netbsd32_size_t nchanges, \
704			    netbsd32_keventp_t eventlist, \
705			    netbsd32_size_t nevents, \
706			    netbsd32_timespec50p_t timeout); }
707; Scheduling system calls.
708346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
709			    int policy, const netbsd32_sched_paramp_t params); }
710347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
711			    netbsd32_intp policy, \
712			    netbsd32_sched_paramp_t params); }
713348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
714			    lwpid_t lid, netbsd32_size_t size, \
715			    const netbsd32_cpusetp_t cpuset); }
716349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
717			    lwpid_t lid, netbsd32_size_t size, \
718			    netbsd32_cpusetp_t cpuset); }
719350	NOARGS 		{ int|sys||sched_yield(void); }
720351	UNIMPL
721352	UNIMPL
722353	UNIMPL
723354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
724			    off_t start, off_t length); }
725355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
726			    int count); }
727356	STD		{ int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
728			    netbsd32_size_t bufsize, int flags); }
729357	STD		{ int|netbsd32||statvfs1(netbsd32_charp path, \
730			    netbsd32_statvfsp_t buf, int flags); }
731358	STD		{ int|netbsd32||fstatvfs1(int fd, \
732			    netbsd32_statvfsp_t buf, int flags); }
733359	COMPAT_30	{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
734			    netbsd32_statvfsp_t buf, int flags); }
735360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
736			    int cmd, netbsd32_charp filename, \
737			    int attrnamespace, netbsd32_charp attrname); }
738361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
739			    int attrnamespace, netbsd32_charp attrname, \
740			    netbsd32_voidp data, netbsd32_size_t nbytes); }
741362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
742			    int attrnamespace, netbsd32_charp attrname, \
743			    netbsd32_voidp data, netbsd32_size_t nbytes); }
744363	STD		{ int|netbsd32||extattr_delete_file( \
745			    netbsd32_charp path, int attrnamespace, \
746			    netbsd32_charp attrname); }
747364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
748			    int attrnamespace, netbsd32_charp attrname, \
749			    netbsd32_voidp data, netbsd32_size_t nbytes); }
750365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
751			    int attrnamespace, netbsd32_charp attrname, \
752			    netbsd32_voidp data, netbsd32_size_t nbytes); }
753366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
754			    int attrnamespace, netbsd32_charp attrname); }
755367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
756			    int attrnamespace, netbsd32_charp attrname, \
757			    netbsd32_voidp data, netbsd32_size_t nbytes); }
758368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
759			    int attrnamespace, netbsd32_charp attrname, \
760			    netbsd32_voidp data, netbsd32_size_t nbytes); }
761369	STD		{ int|netbsd32||extattr_delete_link( \
762			    netbsd32_charp path, int attrnamespace, \
763			    netbsd32_charp attrname); }
764370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
765			    int attrnamespace, netbsd32_voidp data, \
766			    netbsd32_size_t nbytes); }
767371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
768			    int attrnamespace, netbsd32_voidp data, \
769			    netbsd32_size_t nbytes); }
770372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
771			    int attrnamespace, netbsd32_voidp data, \
772			    netbsd32_size_t nbytes); }
773373	COMPAT_50	{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
774			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
775			    netbsd32_timespec50p_t ts, \
776			    netbsd32_sigsetp_t mask); }
777374	COMPAT_50	{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
778			    u_int nfds, netbsd32_timespec50p_t ts, \
779			    netbsd32_sigsetp_t mask); }
780375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
781			    netbsd32_charp name, netbsd32_voidp value, \
782			    netbsd32_size_t size, int flags); }
783376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
784			    netbsd32_charp name, netbsd32_voidp value, \
785			    netbsd32_size_t size, int flags); }
786377	STD		{ int|netbsd32||fsetxattr(int fd, \
787			    netbsd32_charp name, netbsd32_voidp value, \
788			    netbsd32_size_t size, int flags); }
789378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
790			    netbsd32_charp name, netbsd32_voidp value, \
791			    netbsd32_size_t size); }
792379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
793			    netbsd32_charp name, netbsd32_voidp value, \
794			    netbsd32_size_t size); }
795380	STD		{ int|netbsd32||fgetxattr(int fd, \
796			    netbsd32_charp name, netbsd32_voidp value, \
797			    netbsd32_size_t size); }
798381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
799			    netbsd32_charp list, netbsd32_size_t size); }
800382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
801			    netbsd32_charp list, netbsd32_size_t size); }
802383	STD		{ int|netbsd32||flistxattr(int fd, \
803			    netbsd32_charp list, netbsd32_size_t size); }
804384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
805			    netbsd32_charp name); }
806385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
807			    netbsd32_charp name); }
808386	STD		{ int|netbsd32||fremovexattr(int fd, \
809			    netbsd32_charp name); }
810387     COMPAT_50	{ int|netbsd32|30|stat(netbsd32_charp path, \
811			    netbsd32_stat50p_t ub); }
812388     COMPAT_50	{ int|netbsd32|30|fstat(int fd, \
813			    netbsd32_stat50p_t sb); }
814389     COMPAT_50	{ int|netbsd32|30|lstat( \
815			    netbsd32_charp path, netbsd32_stat50p_t ub); }
816390     STD             { int|netbsd32|30|getdents(int fd, \
817			    netbsd32_charp buf, netbsd32_size_t count); }
818391	IGNORED		old posix fadvise
819392	COMPAT_30	{ int|netbsd32|30|fhstat( \
820			    netbsd32_fhandlep_t fhp, \
821			    netbsd32_stat50p_t sb); }
822#if defined(NTP) || !defined(_KERNEL_OPT)
823393	COMPAT_50	{ int|netbsd32||ntp_gettime( \
824			    netbsd32_ntptimeval50p_t ntvp); }
825#else
826393	EXCL		__ntp_gettime30
827#endif
828394	STD		{ int|netbsd32|30|socket(int domain, int type, \
829			    int protocol); }
830395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
831			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
832396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
833			    netbsd32_size_t fh_size, int flags); }
834397	STD		{ int|netbsd32|40|fhstatvfs1(	\
835			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
836			    netbsd32_statvfsp_t buf, int flags); }
837398	COMPAT_50	{ int|netbsd32|40|fhstat(	\
838			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
839			    netbsd32_stat50p_t sb); }
840
841; Asynchronous I/O system calls
842399	UNIMPL		sys_aio_cancel
843400	UNIMPL		sys_aio_error
844401	UNIMPL		sys_aio_fsync
845402	UNIMPL		sys_aio_read
846403	UNIMPL		sys_aio_return
847404	UNIMPL		sys_aio_suspend
848405     UNIMPL		sys_aio_write
849406	UNIMPL		sys_lio_listio
850
851407	UNIMPL
852408	UNIMPL
853409	UNIMPL
854
855410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
856			    netbsd32_charp path, int flags, \
857			    netbsd32_voidp data, netbsd32_size_t data_len); }
858411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
859			    netbsd32_voidp old_address, \
860			    netbsd32_size_t old_size, \
861			    netbsd32_voidp new_address, \
862			    netbsd32_size_t new_size, int flags); }
863
864412	UNIMPL
865413	UNIMPL
866414	UNIMPL
867415	UNIMPL
868
869416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
870			    off_t offset, off_t len, int advice); }
871417	STD 		{ int|netbsd32|50|select(int nd, \
872			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
873			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
874418	STD 		{ int|netbsd32|50|gettimeofday( \
875			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
876419	STD 		{ int|netbsd32|50|settimeofday( \
877			    const netbsd32_timevalp_t tv, \
878			    const netbsd32_voidp tzp); }
879420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
880			    const netbsd32_timevalp_t tptr); }
881421	STD		{ int|netbsd32|50|adjtime( \
882			    const netbsd32_timevalp_t delta, \
883			    netbsd32_timevalp_t olddelta); }
884422	EXCL		__lfs_segwait50
885423	STD 		{ int|netbsd32|50|futimes(int fd, \
886			    const netbsd32_timevalp_t tptr); }
887424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
888			    const netbsd32_timevalp_t tptr); }
889425	STD		{ int|netbsd32|50|setitimer(int which, \
890			    const netbsd32_itimervalp_t itv, \
891			    netbsd32_itimervalp_t oitv); }
892426	STD		{ int|netbsd32|50|getitimer(int which, \
893			    netbsd32_itimervalp_t itv); }
894427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
895			    netbsd32_timespecp_t tp); }
896428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
897			    const netbsd32_timespecp_t tp); }
898429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
899			    netbsd32_timespecp_t tp); }
900430	STD 		{ int|netbsd32|50|nanosleep( \
901			    const netbsd32_timespecp_t rqtp, \
902			    netbsd32_timespecp_t rmtp); }
903431	STD 		{ int|netbsd32|50|__sigtimedwait( \
904			    const netbsd32_sigsetp_t set, \
905			    netbsd32_siginfop_t info, \
906			    netbsd32_timespecp_t timeout); }
907432	UNIMPL 		netbsd32___mq_timedsend50
908433	UNIMPL 		netbsd32___mq_timedreceive50
909434	STD 		{ int|netbsd32|50|_lwp_park( \
910			    const netbsd32_timespecp_t ts, \
911			    lwpid_t unpark, const netbsd32_voidp hint, \
912			    const netbsd32_voidp unparkhint); }
913435	STD 		{ int|netbsd32|50|kevent(int fd, \
914			    const netbsd32_keventp_t changelist, \
915			    netbsd32_size_t nchanges, \
916			    netbsd32_keventp_t eventlist, \
917			    netbsd32_size_t nevents, \
918			    const netbsd32_timespecp_t timeout); }
919436	STD 		{ int|netbsd32|50|pselect(int nd, \
920			    netbsd32_fd_setp_t in, \
921			    netbsd32_fd_setp_t ou, \
922			    netbsd32_fd_setp_t ex, \
923			    const netbsd32_timespecp_t ts, \
924			    const netbsd32_sigsetp_t mask); }
925437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
926			    u_int nfds, const netbsd32_timespecp_t ts, \
927			    const netbsd32_sigsetp_t mask); }
928438	UNIMPL 		netbsd32___aio_suspend50
929439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
930			    netbsd32_statp_t ub); }
931440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
932441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
933			    netbsd32_statp_t ub); }
934#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
935442	STD 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
936			    int cmd, ... netbsd32_semunp_t arg); }
937#else
938442	EXCL		____semctl50
939#endif
940#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
941443	STD 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
942			    netbsd32_shmid_dsp_t buf); }
943#else
944443	EXCL 		____shmctl50
945#endif
946#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
947444	STD 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
948			    netbsd32_msqid_dsp_t buf); }
949#else
950444	EXCL 		____msgctl50
951#endif
952445	STD 		{ int|netbsd32|50|getrusage(int who, \
953			    netbsd32_rusagep_t rusage); }
954446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
955			    int flags, const netbsd32_itimerspecp_t value, \
956			    netbsd32_itimerspecp_t ovalue); }
957447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
958			    netbsd32_itimerspecp_t value); }
959#if defined(NTP) || !defined(_KERNEL_OPT)
960448	STD		{ int|netbsd32|50|ntp_gettime( \
961			    netbsd32_ntptimevalp_t ntvp); }
962#else
963448	EXCL		___ntp_gettime50
964#endif
965449	STD 		{ int|netbsd32|50|wait4(int pid, \
966			    netbsd32_intp status, \
967			    int options, netbsd32_rusagep_t rusage); }
968450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
969			    mode_t mode, netbsd32_dev_t dev); }
970451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
971			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
972