xref: /netbsd-src/sys/compat/netbsd32/syscalls.master (revision a24efa7dea9f1f56c3bdb15a927d3516792ace1c)
1	$NetBSD: syscalls.master,v 1.112 2015/12/03 10:38:21 pgoyette 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_compat_43.h"
43#endif
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/signal.h>
48#include <sys/mount.h>
49#include <sys/syscallargs.h>
50
51#include <compat/netbsd32/netbsd32.h>
52#include <compat/netbsd32/netbsd32_syscallargs.h>
53
54%%
55
56; Reserved/unimplemented system calls in the range 0-150 inclusive
57; are reserved for use in future Berkeley releases.
58; Additional system calls implemented in vendor and other
59; redistributions should be placed in the reserved range at the end
60; of the current calls.
61
620	INDIR		{ int|netbsd32||syscall(int code, \
63			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
641	STD		{ void|netbsd32||exit(int rval); }
652	NOARGS		{ int|sys||fork(void); }
663	STD		{ netbsd32_ssize_t|netbsd32||read(int fd, \
67			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
684	STD		{ netbsd32_ssize_t|netbsd32||write(int fd, \
69			    netbsd32_voidp buf, netbsd32_size_t nbyte); }
705	STD		{ int|netbsd32||open(netbsd32_charp path, int flags, \
71			    ... mode_t mode); }
726	STD		{ int|netbsd32||close(int fd); }
737	COMPAT_50	{ int|netbsd32||wait4(int pid, netbsd32_intp status, \
74			    int options, netbsd32_rusage50p_t rusage); }
758	COMPAT_43	{ int|netbsd32||ocreat(netbsd32_charp path, \
76			    mode_t mode); }
779	STD		{ int|netbsd32||link(netbsd32_charp path, \
78			    netbsd32_charp link); }
7910	STD		{ int|netbsd32||unlink(netbsd32_charp path); }
8011	OBSOL		execv
8112	STD		{ int|netbsd32||chdir(netbsd32_charp path); }
8213	STD		{ int|netbsd32||fchdir(int fd); }
8314	COMPAT_50	{ int|netbsd32||mknod(netbsd32_charp path, mode_t mode, \
84			    uint32_t dev); }
8515	STD		{ int|netbsd32||chmod(netbsd32_charp path, mode_t mode); }
8616	STD		{ int|netbsd32||chown(netbsd32_charp path, uid_t uid, \
87			    gid_t gid); }
8817	STD		{ int|netbsd32||break(netbsd32_charp nsize); }
8918	COMPAT_20	{ int|netbsd32||getfsstat(netbsd32_statfsp_t buf, \
90			    netbsd32_long bufsize, int flags); }
9119	COMPAT_43	{ netbsd32_long|netbsd32||olseek(int fd, \
92			    netbsd32_long offset, int whence); }
9320	NOARGS 		{ pid_t|sys||getpid(void); }
9421	STD		{ int|netbsd32||mount(netbsd32_charp type, \
95			    netbsd32_charp path, int flags, \
96			    netbsd32_voidp data); }
9722	STD		{ int|netbsd32||unmount(netbsd32_charp path, \
98			    int flags); }
9923	STD		{ int|netbsd32||setuid(uid_t uid); }
10024	NOARGS 		{ uid_t|sys||getuid(void); }
10125	NOARGS		{ uid_t|sys||geteuid(void); }
10226	STD		{ int|netbsd32||ptrace(int req, pid_t pid, \
103			    netbsd32_voidp addr, int data); }
10427	STD		{ netbsd32_ssize_t|netbsd32||recvmsg(int s, \
105			    netbsd32_msghdrp_t msg, int flags); }
10628	STD		{ netbsd32_ssize_t|netbsd32||sendmsg(int s, \
107			    netbsd32_msghdrp_t msg, int flags); }
10829	STD		{ netbsd32_ssize_t|netbsd32||recvfrom(int s, \
109			    netbsd32_voidp buf, netbsd32_size_t len, \
110			    int flags, netbsd32_sockaddrp_t from, \
111			    netbsd32_intp fromlenaddr); }
11230	STD		{ int|netbsd32||accept(int s, \
113			    netbsd32_sockaddrp_t name, \
114			    netbsd32_intp anamelen); }
11531	STD		{ int|netbsd32||getpeername(int fdes, \
116			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
11732	STD		{ int|netbsd32||getsockname(int fdes, \
118			    netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
11933	STD		{ int|netbsd32||access(netbsd32_charp path, int flags); }
12034	STD		{ int|netbsd32||chflags(netbsd32_charp path, \
121			    netbsd32_u_long flags); }
12235	STD		{ int|netbsd32||fchflags(int fd, \
123			    netbsd32_u_long flags); }
12436	NOARGS		{ void|sys||sync(void); }
12537	STD		{ int|netbsd32||kill(int pid, int signum); }
12638	COMPAT_43	{ int|netbsd32||stat43(netbsd32_charp path, \
127			    netbsd32_stat43p_t ub); }
12839	NOARGS 		{ pid_t|sys||getppid(void); }
12940	COMPAT_43	{ int|netbsd32||lstat43(netbsd32_charp path, \
130			    netbsd32_stat43p_t ub); }
13141	STD		{ int|netbsd32||dup(int fd); }
13242	NOARGS		{ int|sys||pipe(void); }
13343	NOARGS 		{ gid_t|sys||getegid(void); }
13444	STD		{ int|netbsd32||profil(netbsd32_voidp samples, \
135			    netbsd32_size_t size, netbsd32_u_long offset, \
136			    u_int scale); }
13745	STD		{ int|netbsd32||ktrace(netbsd32_charp fname, int ops, \
138			    int facs, int pid); }
13946	STD		{ int|netbsd32||sigaction(int signum, \
140			    netbsd32_sigactionp_t nsa, \
141			    netbsd32_sigactionp_t osa); }
14247	NOARGS 		{ gid_t|sys||getgid(void); }
14348	COMPAT_13	{ int|netbsd32||sigprocmask(int how, \
144			    int mask); } sigprocmask13
14549	STD		{ int|netbsd32||__getlogin(netbsd32_charp namebuf, \
146			    u_int namelen); }
14750	STD		{ int|netbsd32||setlogin(netbsd32_charp namebuf); }
14851	STD		{ int|netbsd32||acct(netbsd32_charp path); }
14952	COMPAT_13 	{ int|sys||sigpending(void); } sigpending13
15053	COMPAT_13	{ int|netbsd32||sigaltstack13( \
151			    netbsd32_sigaltstack13p_t nss, \
152			    netbsd32_sigaltstack13p_t oss); }
15354	STD		{ int|netbsd32||ioctl(int fd, netbsd32_u_long com, \
154			    ... netbsd32_voidp data); }
15555	COMPAT_12	{ int|netbsd32||reboot(int opt); }
15656	STD		{ int|netbsd32||revoke(netbsd32_charp path); }
15757	STD		{ int|netbsd32||symlink(netbsd32_charp path, \
158			    netbsd32_charp link); }
15958	STD		{ int|netbsd32||readlink(netbsd32_charp path, \
160			    netbsd32_charp buf, netbsd32_size_t count); }
16159	STD		{ int|netbsd32||execve(netbsd32_charp path, \
162			    netbsd32_charpp argp, netbsd32_charpp envp); }
16360	STD		{ mode_t|netbsd32||umask(mode_t newmask); }
16461	STD		{ int|netbsd32||chroot(netbsd32_charp path); }
16562	COMPAT_43	{ int|netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
16663	COMPAT_43	{ int|netbsd32||ogetkerninfo(int op, \
167			    netbsd32_charp where, netbsd32_intp size, \
168			    int arg); }
16964	COMPAT_43	{ int|sys||getpagesize(void); } ogetpagesize
17065	COMPAT_12	{ int|netbsd32||msync(netbsd32_voidp addr, \
171			    netbsd32_size_t len); }
172; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
17366	NOARGS		{ int|sys||vfork(void); }
17467	OBSOL		vread
17568	OBSOL		vwrite
17669	STD		{ int|netbsd32||sbrk(netbsd32_intptr_t incr); }
17770	STD		{ int|netbsd32||sstk(int incr); }
17871	COMPAT_43	{ int|netbsd32||ommap(netbsd32_voidp addr, \
179			    netbsd32_size_t len, int prot, int flags, int fd, \
180			    netbsd32_long pos); }
18172	STD		{ int|netbsd32||ovadvise(int anom); } vadvise
18273	STD		{ int|netbsd32||munmap(netbsd32_voidp addr, \
183			    netbsd32_size_t len); }
18474	STD		{ int|netbsd32||mprotect(netbsd32_voidp addr, \
185			    netbsd32_size_t len, int prot); }
18675	STD		{ int|netbsd32||madvise(netbsd32_voidp addr, \
187			    netbsd32_size_t len, int behav); }
18876	OBSOL		vhangup
18977	OBSOL		vlimit
19078	STD		{ int|netbsd32||mincore(netbsd32_voidp addr, \
191			    netbsd32_size_t len, netbsd32_charp vec); }
19279	STD		{ int|netbsd32||getgroups(int gidsetsize, \
193			    netbsd32_gid_tp gidset); }
19480	STD		{ int|netbsd32||setgroups(int gidsetsize, \
195			    netbsd32_gid_tp gidset); }
19681	NOARGS 		{ int|sys||getpgrp(void); }
19782	STD		{ int|netbsd32||setpgid(int pid, int pgid); }
19883	COMPAT_50	{ int|netbsd32||setitimer(int which, \
199			    netbsd32_itimerval50p_t itv, \
200			    netbsd32_itimerval50p_t oitv); }
20184	COMPAT_43	{ int|sys||wait(void); } owait
20285	COMPAT_12	{ int|netbsd32||oswapon(netbsd32_charp name); }
20386	COMPAT_50	{ int|netbsd32||getitimer(int which, \
204			    netbsd32_itimerval50p_t itv); }
20587	COMPAT_43	{ int|netbsd32||ogethostname(netbsd32_charp hostname, \
206			    u_int len); }
20788	COMPAT_43	{ int|netbsd32||osethostname(netbsd32_charp hostname, \
208			    u_int len); }
20989	COMPAT_43	{ int|sys||getdtablesize(void); } ogetdtablesize
21090	STD		{ int|netbsd32||dup2(int from, int to); }
21191	UNIMPL		getdopt
21292	STD		{ int|netbsd32||fcntl(int fd, int cmd, \
213			    ... netbsd32_voidp arg); }
21493	COMPAT_50	{ int|netbsd32||select(int nd, netbsd32_fd_setp_t in, \
215			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
216			    netbsd32_timeval50p_t tv); }
21794	UNIMPL		setdopt
21895	STD		{ int|netbsd32||fsync(int fd); }
21996	STD		{ int|netbsd32||setpriority(int which, int who, \
220			    int prio); }
22197	COMPAT_30	{ int|netbsd32||socket(int domain, int type, \
222			    int protocol); }
22398	STD		{ int|netbsd32||connect(int s, \
224			    netbsd32_sockaddrp_t name, int namelen); }
22599	COMPAT_43	{ int|netbsd32||oaccept(int s, netbsd32_voidp name, \
226			    netbsd32_intp anamelen); }
227100	STD		{ int|netbsd32||getpriority(int which, int who); }
228101	COMPAT_43	{ int|netbsd32||osend(int s, netbsd32_voidp buf, \
229			    int len, int flags); }
230102	COMPAT_43	{ int|netbsd32||orecv(int s, netbsd32_voidp buf, \
231			    int len, int flags); }
232103	COMPAT_13	{ int|netbsd32||sigreturn( \
233			    netbsd32_sigcontextp_t sigcntxp); } sigreturn13
234104	STD		{ int|netbsd32||bind(int s, netbsd32_sockaddrp_t name, \
235			    int namelen); }
236105	STD		{ int|netbsd32||setsockopt(int s, int level, int name, \
237			    netbsd32_voidp val, int valsize); }
238106	STD		{ int|netbsd32||listen(int s, int backlog); }
239107	OBSOL		vtimes
240108	COMPAT_43	{ int|netbsd32||osigvec(int signum, \
241			    netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
242109	COMPAT_43	{ int|netbsd32||sigblock(int mask); }
243110	COMPAT_43	{ int|netbsd32||sigsetmask(int mask); }
244111	COMPAT_13	{ int|netbsd32||sigsuspend(int mask); } sigsuspend13
245112	COMPAT_43	{ int|netbsd32||osigstack(netbsd32_sigstackp_t nss, \
246			    netbsd32_sigstackp_t oss); }
247113	COMPAT_43	{ int|netbsd32||orecvmsg(int s, \
248			    netbsd32_omsghdrp_t msg, int flags); }
249114	COMPAT_43	{ int|netbsd32||osendmsg(int s, netbsd32_voidp msg, \
250			    int flags); }
251115	OBSOL		vtrace
252116	COMPAT_50	{ int|netbsd32||gettimeofday(netbsd32_timeval50p_t tp, \
253			    netbsd32_timezonep_t tzp); }
254117	COMPAT_50	{ int|netbsd32||getrusage(int who, \
255			    netbsd32_rusage50p_t rusage); }
256118	STD		{ int|netbsd32||getsockopt(int s, int level, int name, \
257			    netbsd32_voidp val, netbsd32_intp avalsize); }
258119	OBSOL		resuba
259120	STD		{ netbsd32_ssize_t|netbsd32||readv(int fd, \
260			    netbsd32_iovecp_t iovp, int iovcnt); }
261121	STD		{ netbsd32_ssize_t|netbsd32||writev(int fd, \
262			    netbsd32_iovecp_t iovp, int iovcnt); }
263122	COMPAT_50	{ int|netbsd32||settimeofday(netbsd32_timeval50p_t tv, \
264			    netbsd32_timezonep_t tzp); }
265123	STD		{ int|netbsd32||fchown(int fd, uid_t uid, gid_t gid); }
266124	STD		{ int|netbsd32||fchmod(int fd, mode_t mode); }
267125	COMPAT_43	{ int|netbsd32||orecvfrom(int s, netbsd32_voidp buf, \
268			    netbsd32_size_t len, int flags, \
269			    netbsd32_voidp from, netbsd32_intp fromlenaddr); }
270126	STD		{ int|netbsd32||setreuid(uid_t ruid, uid_t euid); }
271127	STD		{ int|netbsd32||setregid(gid_t rgid, gid_t egid); }
272128	STD		{ int|netbsd32||rename(netbsd32_charp from, \
273			    netbsd32_charp to); }
274129	COMPAT_43	{ int|netbsd32||otruncate(netbsd32_charp path, \
275			    netbsd32_long length); }
276130	COMPAT_43	{ int|netbsd32||oftruncate(int fd, \
277			    netbsd32_long length); }
278131	STD		{ int|netbsd32||flock(int fd, int how); }
279132	STD		{ int|netbsd32||mkfifo(netbsd32_charp path, \
280			    mode_t mode); }
281133	STD		{ netbsd32_ssize_t|netbsd32||sendto(int s, \
282			    netbsd32_voidp buf, netbsd32_size_t len, \
283			    int flags, netbsd32_sockaddrp_t to, int tolen); }
284134	STD		{ int|netbsd32||shutdown(int s, int how); }
285135	STD		{ int|netbsd32||socketpair(int domain, int type, \
286			    int protocol, netbsd32_intp rsv); }
287136	STD		{ int|netbsd32||mkdir(netbsd32_charp path, \
288			    mode_t mode); }
289137	STD		{ int|netbsd32||rmdir(netbsd32_charp path); }
290138	COMPAT_50	{ int|netbsd32||utimes(netbsd32_charp path, \
291			    netbsd32_timeval50p_t tptr); }
292139	OBSOL		4.2 sigreturn
293140	COMPAT_50	{ int|netbsd32||adjtime(netbsd32_timeval50p_t delta, \
294			    netbsd32_timeval50p_t olddelta); }
295141	COMPAT_43	{ int|netbsd32||ogetpeername(int fdes, \
296			    netbsd32_voidp asa, netbsd32_intp alen); }
297142	COMPAT_43	{ int32_t|sys||gethostid(void); } ogethostid
298143	COMPAT_43	{ int|netbsd32||sethostid(int32_t hostid); }
299144	COMPAT_43	{ int|netbsd32||ogetrlimit(int which, \
300			    netbsd32_orlimitp_t rlp); }
301145	COMPAT_43	{ int|netbsd32||osetrlimit(int which, \
302			    netbsd32_orlimitp_t rlp); }
303146	COMPAT_43	{ int|netbsd32||killpg(int pgid, int signum); }
304147	NOARGS		{ int|sys||setsid(void); }
305148	COMPAT_50	{ int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
306			    int uid, netbsd32_voidp arg); }
307149	COMPAT_43	{ int|sys||quota(void); } oquota
308150	COMPAT_43	{ int|netbsd32||ogetsockname(int fdec, \
309			    netbsd32_voidp asa, netbsd32_intp alen); }
310
311; Syscalls 151-180 inclusive are reserved for vendor-specific
312; system calls.  (This includes various calls added for compatibity
313; with other Unix variants.)
314; Some of these calls are now supported by BSD...
315151	UNIMPL
316152	UNIMPL
317153	UNIMPL
318154	UNIMPL
319155	STD MODULAR compat_netbsd32_nfssrv	\
320			{ int|netbsd32||nfssvc(int flag, netbsd32_voidp argp); }
321156	COMPAT_43	{ int|netbsd32||ogetdirentries(int fd, \
322			    netbsd32_charp buf, u_int count, \
323			    netbsd32_longp basep); }
324157	COMPAT_20	{ int|netbsd32||statfs(netbsd32_charp path, \
325			    netbsd32_statfsp_t buf); }
326158	COMPAT_20	{ int|netbsd32||fstatfs(int fd, \
327			    netbsd32_statfsp_t buf); }
328159	UNIMPL
329160	UNIMPL
330161	COMPAT_30	{ int|netbsd32||getfh(netbsd32_charp fname, \
331			    netbsd32_compat_30_fhandlep_t fhp); }
332162	COMPAT_09	{ int|netbsd32||ogetdomainname( \
333			    netbsd32_charp domainname, int len); }
334163	COMPAT_09	{ int|netbsd32||osetdomainname( \
335			    netbsd32_charp domainname, int len); }
336164	COMPAT_09	{ int|netbsd32||uname(netbsd32_outsnamep_t name); }
337165	STD		{ int|netbsd32||sysarch(int op, netbsd32_voidp parms); }
338166	UNIMPL
339167	UNIMPL
340168	UNIMPL
341169	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
342			{ int|netbsd32||semsys(int which, int a2, int a3, \
343			    int a4, int a5); } osemsys
344170	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
345			{ int|netbsd32||msgsys(int which, int a2, int a3, \
346			    int a4, int a5, int a6); } omsgsys
347171	COMPAT_10 MODULAR compat_netbsd32_sysvipc	\
348			{ int|netbsd32||shmsys(int which, int a2, int a3, \
349			    int a4); } oshmsys
350172	UNIMPL
351173	STD		{ netbsd32_ssize_t|netbsd32||pread(int fd, \
352			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
353			    int PAD, netbsd32_off_t offset); }
354174	STD		{ netbsd32_ssize_t|netbsd32||pwrite(int fd, \
355			    netbsd32_voidp buf, netbsd32_size_t nbyte, \
356			    int PAD, netbsd32_off_t offset); }
357#if defined(NTP) || !defined(_KERNEL_OPT)
358175	COMPAT_30	{ int|netbsd32||ntp_gettime( \
359			    netbsd32_ntptimeval50p_t ntvp); }
360176	STD		{ int|netbsd32||ntp_adjtime(netbsd32_timexp_t tp); }
361#else
362175	EXCL		ntp_gettime
363176	EXCL		ntp_adjtime
364#endif
365177	UNIMPL
366178	UNIMPL
367179	UNIMPL
368180	UNIMPL
369
370; Syscalls 180-199 are used by/reserved for BSD
371181	STD		{ int|netbsd32||setgid(gid_t gid); }
372182	STD		{ int|netbsd32||setegid(gid_t egid); }
373183	STD		{ int|netbsd32||seteuid(uid_t euid); }
374184	EXCL		netbsd32_lfs_bmapv
375185	EXCL		netbsd32_lfs_markv
376186	EXCL		netbsd32_lfs_segclean
377187	EXCL		netbsd32_lfs_segwait
378188	COMPAT_12	{ int|netbsd32||stat12(netbsd32_charp path, \
379			    netbsd32_stat12p_t ub); }
380189	COMPAT_12	{ int|netbsd32||fstat12(int fd, netbsd32_stat12p_t sb); }
381190	COMPAT_12	{ int|netbsd32||lstat12(netbsd32_charp path, \
382			    netbsd32_stat12p_t ub); }
383191	STD		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, \
384			    int name); }
385192	STD		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
386193	UNIMPL
387194	STD		{ int|netbsd32||getrlimit(int which, \
388			    netbsd32_rlimitp_t rlp); }
389195	STD		{ int|netbsd32||setrlimit(int which, \
390			    netbsd32_rlimitp_t rlp); }
391196	COMPAT_12	{ int|netbsd32||getdirentries(int fd, \
392			    netbsd32_charp buf, u_int count, \
393			    netbsd32_longp basep); }
394197	STD		{ netbsd32_voidp|netbsd32||mmap(netbsd32_voidp addr, \
395			    netbsd32_size_t len, int prot, int flags, int fd, \
396			    netbsd32_long PAD, netbsd32_off_t pos); }
397198	INDIR		{ quad_t|netbsd32||___syscall(quad_t code, \
398			    ... register32_t args[NETBSD32_SYS_MAXSYSARGS]); }
399199	STD		{ netbsd32_off_t|netbsd32||lseek(int fd, int PAD, \
400			    netbsd32_off_t offset, int whence); }
401200	STD		{ int|netbsd32||truncate(netbsd32_charp path, int PAD, \
402			    netbsd32_off_t length); }
403201	STD		{ int|netbsd32||ftruncate(int fd, int PAD, \
404			    netbsd32_off_t length); }
405202	STD		{ int|netbsd32||__sysctl(netbsd32_intp name, \
406			    u_int namelen, netbsd32_voidp oldv, \
407			    netbsd32_size_tp oldlenp, netbsd32_voidp newv, \
408			    netbsd32_size_t newlen); }
409203	STD		{ int|netbsd32||mlock(netbsd32_voidp addr, \
410			    netbsd32_size_t len); }
411204	STD		{ int|netbsd32||munlock(netbsd32_voidp addr, \
412			    netbsd32_size_t len); }
413205	STD		{ int|netbsd32||undelete(netbsd32_charp path); }
414206	COMPAT_50	{ int|netbsd32||futimes(int fd, \
415			    netbsd32_timeval50p_t tptr); }
416207	STD		{ int|netbsd32||getpgid(pid_t pid); }
417208	STD		{ int|netbsd32||reboot(int opt, \
418			    netbsd32_charp bootstr); }
419209	STD		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, \
420			    u_int nfds, int timeout); }
421210	UNIMPL		{ int|netbsd32||afssys(long id, long a1, long a2, \
422			    long a3, long a4, long a5, long a6); }
423211	UNIMPL
424212	UNIMPL
425213	UNIMPL
426214	UNIMPL
427215	UNIMPL
428216	UNIMPL
429217	UNIMPL
430218	UNIMPL
431219	UNIMPL
432; System calls 220-300 are reserved for use by NetBSD
433220	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
434			{ int|netbsd32||__semctl(int semid, int semnum, \
435			    int cmd, netbsd32_semunu_t arg); }
436221	STD MODULAR compat_netbsd32_sysvipc	\
437			{ int|netbsd32||semget(netbsd32_key_t key, int nsems, \
438			    int semflg); }
439222	STD MODULAR compat_netbsd32_sysvipc	\
440			{ int|netbsd32||semop(int semid, \
441			    netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
442223	STD MODULAR compat_netbsd32_sysvipc	\
443			{ int|netbsd32||semconfig(int flag); }
444224	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
445			{ int|netbsd32||msgctl(int msqid, int cmd, \
446			    netbsd32_msqid_ds14p_t buf); }
447225	STD MODULAR compat_netbsd32_sysvipc	\
448			{ int|netbsd32||msgget(netbsd32_key_t key, int msgflg); }
449226	STD MODULAR compat_netbsd32_sysvipc	\
450			{ int|netbsd32||msgsnd(int msqid, netbsd32_voidp msgp, \
451			    netbsd32_size_t msgsz, int msgflg); }
452227	STD MODULAR compat_netbsd32_sysvipc	\
453			{ netbsd32_ssize_t|netbsd32||msgrcv(int msqid, \
454			    netbsd32_voidp msgp, netbsd32_size_t msgsz, \
455			    netbsd32_long msgtyp, int msgflg); }
456228	STD MODULAR compat_netbsd32_sysvipc	\
457			{ netbsd32_voidp|netbsd32||shmat(int shmid, \
458			    netbsd32_voidp shmaddr, int shmflg); }
459229	COMPAT_14 MODULAR compat_netbsd32_sysvipc	\
460			{ int|netbsd32||shmctl(int shmid, int cmd, \
461			    netbsd32_shmid_dsp_t buf); }
462230	STD MODULAR compat_netbsd32_sysvipc	\
463			{ int|netbsd32||shmdt(netbsd32_voidp shmaddr); }
464231	STD MODULAR compat_netbsd32_sysvipc	\
465			{ int|netbsd32||shmget(netbsd32_key_t key, \
466			    netbsd32_size_t size, int shmflg); }
467232	COMPAT_50	{ int|netbsd32||clock_gettime( \
468			    netbsd32_clockid_t clock_id, \
469			    netbsd32_timespec50p_t tp); }
470233	COMPAT_50	{ int|netbsd32||clock_settime( \
471			    netbsd32_clockid_t clock_id, \
472			    netbsd32_timespec50p_t tp); }
473234	COMPAT_50	{ int|netbsd32||clock_getres( \
474			    netbsd32_clockid_t clock_id, \
475			    netbsd32_timespec50p_t tp); }
476235	STD		{ int|netbsd32||timer_create( \
477			    netbsd32_clockid_t clock_id, \
478			    netbsd32_sigeventp_t evp, \
479			    netbsd32_timerp_t timerid); }
480236	STD		{ int|netbsd32||timer_delete(netbsd32_timer_t timerid); }
481237	COMPAT_50	{ int|netbsd32||timer_settime(netbsd32_timer_t timerid, \
482			    int flags, \
483			    netbsd32_itimerspec50p_t value, \
484			    netbsd32_itimerspec50p_t ovalue); }
485238	COMPAT_50	{ int|netbsd32||timer_gettime(netbsd32_timer_t timerid, \
486			    netbsd32_itimerspec50p_t value); }
487239	STD		{ int|netbsd32||timer_getoverrun( \
488			    netbsd32_timer_t timerid); }
489;
490; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
491;
492240	COMPAT_50	{ int|netbsd32||nanosleep(netbsd32_timespec50p_t rqtp, \
493			    netbsd32_timespec50p_t rmtp); }
494241	STD		{ int|netbsd32||fdatasync(int fd); }
495242	STD		{ int|netbsd32||mlockall(int flags); }
496243	NOARGS		{ int|sys||munlockall(void); }
497244	COMPAT_50	{ int|netbsd32||__sigtimedwait(netbsd32_sigsetp_t set, \
498			    netbsd32_siginfop_t info, \
499			    netbsd32_timespec50p_t timeout); }
500245	STD		{ int|netbsd32||sigqueueinfo(pid_t pid, \
501			    const netbsd32_siginfop_t info); }
502246	STD		{ int|netbsd32||modctl(int cmd, netbsd32_voidp arg); }
503247	STD		{ int|netbsd32||_ksem_init(unsigned int value, \
504			    netbsd32_semidp_t idp); }
505248	STD		{ int|netbsd32||_ksem_open(netbsd32_charp name, \
506			    int oflag, mode_t mode, unsigned int value, \
507			    netbsd32_semidp_t idp); }
508249	STD		{ int|netbsd32||_ksem_unlink(netbsd32_charp name); }
509250	STD		{ int|netbsd32||_ksem_close(netbsd32_intptr_t id); }
510251	STD		{ int|netbsd32||_ksem_post(netbsd32_intptr_t id); }
511252	STD		{ int|netbsd32||_ksem_wait(netbsd32_intptr_t id); }
512253	STD		{ int|netbsd32||_ksem_trywait(netbsd32_intptr_t id); }
513254	STD		{ int|netbsd32||_ksem_getvalue(netbsd32_intptr_t id, \
514			    netbsd32_intp value); }
515255	STD		{ int|netbsd32||_ksem_destroy(netbsd32_intptr_t id); }
516256	STD		{ int|netbsd32||_ksem_timedwait(intptr_t id, \
517				const netbsd32_timespecp_t abstime); }
518257	STD MODULAR compat_netbsd32_mqueue	\
519			{ mqd_t|netbsd32||mq_open(const netbsd32_charp name, \
520			    int oflag, mode_t mode, \
521			    netbsd32_mq_attrp_t attr); }
522258	STD MODULAR compat_netbsd32_mqueue	\
523	 		{ int|netbsd32||mq_close(mqd_t mqdes); }
524259	STD MODULAR compat_netbsd32_mqueue	\
525	 		{ int|netbsd32||mq_unlink(const netbsd32_charp name); }
526260	STD MODULAR compat_netbsd32_mqueue	\
527			{ int|netbsd32||mq_getattr(mqd_t mqdes, \
528			    netbsd32_mq_attrp_t mqstat); }
529261	STD MODULAR compat_netbsd32_mqueue	\
530	 		{ int|netbsd32||mq_setattr(mqd_t mqdes, \
531			    const netbsd32_mq_attrp_t mqstat, \
532			    netbsd32_mq_attrp_t omqstat); }
533262	STD MODULAR compat_netbsd32_mqueue	\
534			{ int|netbsd32||mq_notify(mqd_t mqdes, \
535			    const netbsd32_sigeventp_t notification); }
536263	STD MODULAR compat_netbsd32_mqueue	\
537			{ int|netbsd32||mq_send(mqd_t mqdes, \
538			    const netbsd32_charp msg_ptr, \
539			    netbsd32_size_t msg_len, unsigned msg_prio); }
540264	STD MODULAR compat_netbsd32_mqueue	\
541			{ netbsd32_ssize_t|netbsd32||mq_receive(mqd_t mqdes, \
542			    netbsd32_charp msg_ptr, \
543			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio); }
544265	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
545			{ int|netbsd32||mq_timedsend(mqd_t mqdes, \
546			    const netbsd32_charp msg_ptr, \
547			    netbsd32_size_t msg_len, \
548			    unsigned msg_prio, \
549			    const netbsd32_timespec50p_t abs_timeout); }
550266	COMPAT_50 MODULAR compat_netbsd32_mqueue	\
551			{ netbsd32_ssize_t|netbsd32||mq_timedreceive( \
552			    mqd_t mqdes, \
553			    netbsd32_charp msg_ptr, netbsd32_size_t msg_len, \
554			    netbsd32_uintp msg_prio, \
555			    const netbsd32_timespec50p_t abs_timeout); }
556267	UNIMPL
557268	UNIMPL
558269	UNIMPL
559270	STD		{ int|netbsd32||__posix_rename(netbsd32_charp from, \
560			    netbsd32_charp to); }
561271	STD		{ int|netbsd32||swapctl(int cmd, netbsd32_voidp arg, \
562			    int misc); }
563272	COMPAT_30	{ int|netbsd32||getdents(int fd, netbsd32_charp buf, \
564			    netbsd32_size_t count); }
565273	STD		{ int|netbsd32||minherit(netbsd32_voidp addr, \
566			    netbsd32_size_t len, int inherit); }
567274	STD		{ int|netbsd32||lchmod(netbsd32_charp path, \
568			    mode_t mode); }
569275	STD		{ int|netbsd32||lchown(netbsd32_charp path, uid_t uid, \
570			    gid_t gid); }
571276	COMPAT_50	{ int|netbsd32||lutimes(netbsd32_charp path, \
572			    netbsd32_timeval50p_t tptr); }
573277	STD		{ int|netbsd32|13|msync(netbsd32_voidp addr, \
574			    netbsd32_size_t len, int flags); }
575278	COMPAT_30	{ int|netbsd32|13|stat(netbsd32_charp path, \
576			    netbsd32_stat13p_t ub); }
577279	COMPAT_30	{ int|netbsd32|13|fstat(int fd, \
578			    netbsd32_stat13p_t sb); }
579280	COMPAT_30	{ int|netbsd32|13|lstat(netbsd32_charp path, \
580			    netbsd32_stat13p_t ub); }
581281	STD		{ int|netbsd32|14|sigaltstack(\
582			    netbsd32_sigaltstackp_t nss, \
583			    netbsd32_sigaltstackp_t oss); }
584282	NOARGS		{ int|sys|14|vfork(void); }
585283	STD		{ int|netbsd32||__posix_chown(netbsd32_charp path, \
586			    uid_t uid, gid_t gid); }
587284	STD		{ int|netbsd32||__posix_fchown(int fd, uid_t uid, \
588			    gid_t gid); }
589285	STD		{ int|netbsd32||__posix_lchown(netbsd32_charp path, \
590			    uid_t uid, gid_t gid); }
591286	STD		{ pid_t|netbsd32||getsid(pid_t pid); }
592287	STD		{ int|netbsd32||__clone(int flags, \
593			    netbsd32_voidp stack); }
594288	STD		{ int|netbsd32||fktrace(int fd, int ops, int facs, \
595			    int pid); }
596289	STD		{ netbsd32_ssize_t|netbsd32||preadv(int fd, \
597			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
598			    netbsd32_off_t offset); }
599290	STD		{ netbsd32_ssize_t|netbsd32||pwritev(int fd, \
600			    netbsd32_iovecp_t iovp, int iovcnt, int PAD, \
601			    netbsd32_off_t offset); }
602291	STD		{ int|netbsd32|14|sigaction(int signum, \
603			    netbsd32_sigactionp_t nsa, \
604			    netbsd32_sigactionp_t osa); }
605292	STD		{ int|netbsd32|14|sigpending(netbsd32_sigsetp_t set); }
606293	STD		{ int|netbsd32|14|sigprocmask(int how, \
607			    netbsd32_sigsetp_t set, \
608			    netbsd32_sigsetp_t oset); }
609294	STD		{ int|netbsd32|14|sigsuspend(netbsd32_sigsetp_t set); }
610295	COMPAT_16	{ int|netbsd32|14|sigreturn( \
611			    netbsd32_sigcontextp_t sigcntxp); }
612296	STD		{ int|netbsd32||__getcwd(netbsd32_charp bufp, \
613			    netbsd32_size_t length); }
614297	STD		{ int|netbsd32||fchroot(int fd); }
615298	COMPAT_30	{ int|netbsd32||fhopen(netbsd32_fhandlep_t fhp, \
616			   int flags); }
617299	COMPAT_30	{ int|netbsd32||fhstat(netbsd32_fhandlep_t fhp, \
618			    netbsd32_stat13p_t sb); }
619300	COMPAT_20	{ int|netbsd32||fhstatfs(netbsd32_fhandlep_t fhp, \
620			    netbsd32_stat50p_t buf); }
621301	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
622			{ int|netbsd32|14|semctl(int semid, int semnum, \
623			    int cmd, ... netbsd32_semun50p_t arg); }
624302	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
625			{ int|netbsd32|13|msgctl(int msqid, int cmd, \
626			    netbsd32_msqid_ds50p_t buf); }
627303	COMPAT_50 MODULAR compat_netbsd32_sysvipc	\
628			{ int|netbsd32|13|shmctl(int shmid, int cmd, \
629			    netbsd32_shmid_ds50p_t buf); }
630304	STD		{ int|netbsd32||lchflags(netbsd32_charp path, \
631			    netbsd32_u_long flags); }
632305	NOARGS 		{ int|sys||issetugid(void); }
633306	STD		{ int|netbsd32||utrace(netbsd32_charp label, \
634			    netbsd32_voidp addr, netbsd32_size_t len); }
635307	STD		{ int|netbsd32||getcontext(netbsd32_ucontextp ucp); }
636308	STD		{ int|netbsd32||setcontext(netbsd32_ucontextp ucp); }
637309	STD		{ int|netbsd32||_lwp_create(netbsd32_ucontextp ucp, \
638			    netbsd32_u_long flags, netbsd32_lwpidp new_lwp); }
639310	NOARGS		{ int|sys||_lwp_exit(void); }
640311	NOARGS 		{ lwpid_t|sys||_lwp_self(void); }
641312	STD 		{ int|netbsd32||_lwp_wait(lwpid_t wait_for, \
642			    netbsd32_lwpidp departed); }
643313	STD 		{ int|netbsd32||_lwp_suspend(lwpid_t target); }
644314	STD 		{ int|netbsd32||_lwp_continue(lwpid_t target); }
645315	STD 		{ int|netbsd32||_lwp_wakeup(lwpid_t target); }
646316	NOARGS 		{ netbsd32_voidp|sys||_lwp_getprivate(void); }
647317	STD 		{ void|netbsd32||_lwp_setprivate(netbsd32_voidp ptr); }
648318	STD		{ int|netbsd32||_lwp_kill(lwpid_t target, int signo); }
649319	STD 		{ int|netbsd32||_lwp_detach(lwpid_t target); }
650320	COMPAT_50	{ int|netbsd32||_lwp_park(netbsd32_timespec50p_t ts, \
651			    lwpid_t unpark, netbsd32_voidp hint, \
652			    netbsd32_voidp unparkhint); }
653321	STD 		{ int|netbsd32||_lwp_unpark(lwpid_t target, \
654			    netbsd32_voidp hint); }
655322	STD 		{ netbsd32_size_t|netbsd32||_lwp_unpark_all( \
656			    netbsd32_lwpidp targets, netbsd32_size_t ntargets, \
657			    netbsd32_voidp hint); }
658323	STD		{ int|netbsd32||_lwp_setname(lwpid_t target, \
659				netbsd32_charp name); }
660324	STD		{ int|netbsd32||_lwp_getname(lwpid_t target, \
661				netbsd32_charp name, netbsd32_size_t len); }
662325	STD 		{ int|netbsd32||_lwp_ctl(int features, \
663				netbsd32_pointer_t address); }
664326	UNIMPL
665327	UNIMPL
666328	UNIMPL
667329	UNIMPL
668330	OBSOL		netbsd32_sa_register
669331	OBSOL		netbsd32_sa_stacks
670332	OBSOL		sa_enable
671333	OBSOL		netbsd32_sa_setconcurrency
672334	OBSOL		sa_yield
673335	OBSOL		netbsd32_sa_preempt
674336	OBSOL		sys_sa_unblockyield
675337	UNIMPL
676338	UNIMPL
677339	UNIMPL
678340	STD		{ int|netbsd32||__sigaction_sigtramp(int signum, \
679			    netbsd32_sigactionp_t nsa, \
680			    netbsd32_sigactionp_t osa, \
681			    netbsd32_voidp tramp, int vers); }
682341	UNIMPL		{ int|netbsd32||pmc_get_info(int ctr, int op, void *args); }
683342	UNIMPL		{ int|netbsd32||pmc_control(int ctr, int op, void *args); }
684343	STD		{ int|netbsd32||rasctl(netbsd32_voidp addr, \
685			    netbsd32_size_t len, int op); }
686344	NOARGS		{ int|sys||kqueue(void); }
687345	COMPAT_50	{ int|netbsd32||kevent(int fd, \
688			    netbsd32_keventp_t changelist, \
689			    netbsd32_size_t nchanges, \
690			    netbsd32_keventp_t eventlist, \
691			    netbsd32_size_t nevents, \
692			    netbsd32_timespec50p_t timeout); }
693; Scheduling system calls.
694346	STD 		{ int|netbsd32||_sched_setparam(pid_t pid, lwpid_t lid, \
695			    int policy, const netbsd32_sched_paramp_t params); }
696347	STD 		{ int|netbsd32||_sched_getparam(pid_t pid, lwpid_t lid, \
697			    netbsd32_intp policy, \
698			    netbsd32_sched_paramp_t params); }
699348	STD 		{ int|netbsd32||_sched_setaffinity(pid_t pid, \
700			    lwpid_t lid, netbsd32_size_t size, \
701			    const netbsd32_cpusetp_t cpuset); }
702349	STD 		{ int|netbsd32||_sched_getaffinity(pid_t pid, \
703			    lwpid_t lid, netbsd32_size_t size, \
704			    netbsd32_cpusetp_t cpuset); }
705350	NOARGS 		{ int|sys||sched_yield(void); }
706351	UNIMPL
707352	UNIMPL
708353	UNIMPL
709354	STD		{ int|netbsd32||fsync_range(int fd, int flags, \
710			    netbsd32_off_t start, netbsd32_off_t length); }
711355	STD		{ int|netbsd32||uuidgen(netbsd32_uuidp_t store, \
712			    int count); }
713356	STD		{ int|netbsd32||getvfsstat(netbsd32_statvfsp_t buf, \
714			    netbsd32_size_t bufsize, int flags); }
715357	STD		{ int|netbsd32||statvfs1(netbsd32_charp path, \
716			    netbsd32_statvfsp_t buf, int flags); }
717358	STD		{ int|netbsd32||fstatvfs1(int fd, \
718			    netbsd32_statvfsp_t buf, int flags); }
719359	COMPAT_30	{ int|netbsd32||fhstatvfs1(netbsd32_fhandlep_t fhp, \
720			    netbsd32_statvfsp_t buf, int flags); }
721360	STD		{ int|netbsd32||extattrctl(netbsd32_charp path, \
722			    int cmd, netbsd32_charp filename, \
723			    int attrnamespace, netbsd32_charp attrname); }
724361	STD		{ int|netbsd32||extattr_set_file(netbsd32_charp path, \
725			    int attrnamespace, netbsd32_charp attrname, \
726			    netbsd32_voidp data, netbsd32_size_t nbytes); }
727362	STD		{ int|netbsd32||extattr_get_file(netbsd32_charp path, \
728			    int attrnamespace, netbsd32_charp attrname, \
729			    netbsd32_voidp data, netbsd32_size_t nbytes); }
730363	STD		{ int|netbsd32||extattr_delete_file( \
731			    netbsd32_charp path, int attrnamespace, \
732			    netbsd32_charp attrname); }
733364	STD		{ int|netbsd32||extattr_set_fd(int fd, \
734			    int attrnamespace, netbsd32_charp attrname, \
735			    netbsd32_voidp data, netbsd32_size_t nbytes); }
736365	STD		{ int|netbsd32||extattr_get_fd(int fd, \
737			    int attrnamespace, netbsd32_charp attrname, \
738			    netbsd32_voidp data, netbsd32_size_t nbytes); }
739366	STD		{ int|netbsd32||extattr_delete_fd(int fd, \
740			    int attrnamespace, netbsd32_charp attrname); }
741367	STD		{ int|netbsd32||extattr_set_link(netbsd32_charp path, \
742			    int attrnamespace, netbsd32_charp attrname, \
743			    netbsd32_voidp data, netbsd32_size_t nbytes); }
744368	STD		{ int|netbsd32||extattr_get_link(netbsd32_charp path, \
745			    int attrnamespace, netbsd32_charp attrname, \
746			    netbsd32_voidp data, netbsd32_size_t nbytes); }
747369	STD		{ int|netbsd32||extattr_delete_link( \
748			    netbsd32_charp path, int attrnamespace, \
749			    netbsd32_charp attrname); }
750370	STD		{ int|netbsd32||extattr_list_fd(int fd, \
751			    int attrnamespace, netbsd32_voidp data, \
752			    netbsd32_size_t nbytes); }
753371	STD		{ int|netbsd32||extattr_list_file(netbsd32_charp path, \
754			    int attrnamespace, netbsd32_voidp data, \
755			    netbsd32_size_t nbytes); }
756372	STD		{ int|netbsd32||extattr_list_link(netbsd32_charp path, \
757			    int attrnamespace, netbsd32_voidp data, \
758			    netbsd32_size_t nbytes); }
759373	COMPAT_50	{ int|netbsd32||pselect(int nd, netbsd32_fd_setp_t in, \
760			    netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, \
761			    netbsd32_timespec50p_t ts, \
762			    netbsd32_sigsetp_t mask); }
763374	COMPAT_50	{ int|netbsd32||pollts(netbsd32_pollfdp_t fds, \
764			    u_int nfds, netbsd32_timespec50p_t ts, \
765			    netbsd32_sigsetp_t mask); }
766375	STD		{ int|netbsd32||setxattr(netbsd32_charp path, \
767			    netbsd32_charp name, netbsd32_voidp value, \
768			    netbsd32_size_t size, int flags); }
769376	STD		{ int|netbsd32||lsetxattr(netbsd32_charp path, \
770			    netbsd32_charp name, netbsd32_voidp value, \
771			    netbsd32_size_t size, int flags); }
772377	STD		{ int|netbsd32||fsetxattr(int fd, \
773			    netbsd32_charp name, netbsd32_voidp value, \
774			    netbsd32_size_t size, int flags); }
775378	STD		{ int|netbsd32||getxattr(netbsd32_charp path, \
776			    netbsd32_charp name, netbsd32_voidp value, \
777			    netbsd32_size_t size); }
778379	STD		{ int|netbsd32||lgetxattr(netbsd32_charp path, \
779			    netbsd32_charp name, netbsd32_voidp value, \
780			    netbsd32_size_t size); }
781380	STD		{ int|netbsd32||fgetxattr(int fd, \
782			    netbsd32_charp name, netbsd32_voidp value, \
783			    netbsd32_size_t size); }
784381	STD		{ int|netbsd32||listxattr(netbsd32_charp path, \
785			    netbsd32_charp list, netbsd32_size_t size); }
786382	STD		{ int|netbsd32||llistxattr(netbsd32_charp path, \
787			    netbsd32_charp list, netbsd32_size_t size); }
788383	STD		{ int|netbsd32||flistxattr(int fd, \
789			    netbsd32_charp list, netbsd32_size_t size); }
790384	STD		{ int|netbsd32||removexattr(netbsd32_charp path, \
791			    netbsd32_charp name); }
792385	STD		{ int|netbsd32||lremovexattr(netbsd32_charp path, \
793			    netbsd32_charp name); }
794386	STD		{ int|netbsd32||fremovexattr(int fd, \
795			    netbsd32_charp name); }
796387     COMPAT_50	{ int|netbsd32|30|stat(netbsd32_charp path, \
797			    netbsd32_stat50p_t ub); }
798388     COMPAT_50	{ int|netbsd32|30|fstat(int fd, \
799			    netbsd32_stat50p_t sb); }
800389     COMPAT_50	{ int|netbsd32|30|lstat( \
801			    netbsd32_charp path, netbsd32_stat50p_t ub); }
802390     STD             { int|netbsd32|30|getdents(int fd, \
803			    netbsd32_charp buf, netbsd32_size_t count); }
804391	IGNORED		old posix fadvise
805392	COMPAT_30	{ int|netbsd32|30|fhstat( \
806			    netbsd32_fhandlep_t fhp, \
807			    netbsd32_stat50p_t sb); }
808#if defined(NTP) || !defined(_KERNEL_OPT)
809393	COMPAT_50	{ int|netbsd32||ntp_gettime( \
810			    netbsd32_ntptimeval50p_t ntvp); }
811#else
812393	EXCL		__ntp_gettime30
813#endif
814394	STD		{ int|netbsd32|30|socket(int domain, int type, \
815			    int protocol); }
816395	STD		{ int|netbsd32|30|getfh(netbsd32_charp fname, \
817			    netbsd32_pointer_t fhp, netbsd32_size_tp fh_size); }
818396	STD		{ int|netbsd32|40|fhopen(netbsd32_pointer_t fhp, \
819			    netbsd32_size_t fh_size, int flags); }
820397	STD		{ int|netbsd32|40|fhstatvfs1(	\
821			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
822			    netbsd32_statvfsp_t buf, int flags); }
823398	COMPAT_50	{ int|netbsd32|40|fhstat(	\
824			    netbsd32_pointer_t fhp, netbsd32_size_t fh_size,\
825			    netbsd32_stat50p_t sb); }
826
827; Asynchronous I/O system calls
828399	UNIMPL		sys_aio_cancel
829400	UNIMPL		sys_aio_error
830401	UNIMPL		sys_aio_fsync
831402	UNIMPL		sys_aio_read
832403	UNIMPL		sys_aio_return
833404	UNIMPL		sys_aio_suspend
834405     UNIMPL		sys_aio_write
835406	UNIMPL		sys_lio_listio
836
837407	UNIMPL
838408	UNIMPL
839409	UNIMPL
840
841410	STD		{ int|netbsd32||__mount50(netbsd32_charp type, \
842			    netbsd32_charp path, int flags, \
843			    netbsd32_voidp data, netbsd32_size_t data_len); }
844411	STD 		{ netbsd32_voidp|netbsd32||mremap( \
845			    netbsd32_voidp old_address, \
846			    netbsd32_size_t old_size, \
847			    netbsd32_voidp new_address, \
848			    netbsd32_size_t new_size, int flags); }
849
850412	STD		{ int|netbsd32||pset_create(netbsd32_psetidp_t psid); }
851413	STD		{ int|netbsd32||pset_destroy(psetid_t psid); }
852414	STD		{ int|netbsd32||pset_assign(psetid_t psid, \
853			  cpuid_t cpuid, netbsd32_psetidp_t opsid); }
854415	STD		{ int|netbsd32||_pset_bind(idtype_t idtype, \
855			  id_t first_id, id_t second_id, psetid_t psid, \
856			  netbsd32_psetidp_t opsid); }
857
858416	STD 		{ int|netbsd32|50|posix_fadvise(int fd, int PAD, \
859			    netbsd32_off_t offset, netbsd32_off_t len, int advice); }
860417	STD 		{ int|netbsd32|50|select(int nd, \
861			    netbsd32_fd_setp_t in,  netbsd32_fd_setp_t ou, \
862			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
863418	STD 		{ int|netbsd32|50|gettimeofday( \
864			    netbsd32_timevalp_t tp, netbsd32_voidp tzp); }
865419	STD 		{ int|netbsd32|50|settimeofday( \
866			    const netbsd32_timevalp_t tv, \
867			    const netbsd32_voidp tzp); }
868420	STD  		{ int|netbsd32|50|utimes(const netbsd32_charp path, \
869			    const netbsd32_timevalp_t tptr); }
870421	STD		{ int|netbsd32|50|adjtime( \
871			    const netbsd32_timevalp_t delta, \
872			    netbsd32_timevalp_t olddelta); }
873422	EXCL		__lfs_segwait50
874423	STD 		{ int|netbsd32|50|futimes(int fd, \
875			    const netbsd32_timevalp_t tptr); }
876424	STD  		{ int|netbsd32|50|lutimes(const netbsd32_charp path, \
877			    const netbsd32_timevalp_t tptr); }
878425	STD		{ int|netbsd32|50|setitimer(int which, \
879			    const netbsd32_itimervalp_t itv, \
880			    netbsd32_itimervalp_t oitv); }
881426	STD		{ int|netbsd32|50|getitimer(int which, \
882			    netbsd32_itimervalp_t itv); }
883427	STD 		{ int|netbsd32|50|clock_gettime(clockid_t clock_id, \
884			    netbsd32_timespecp_t tp); }
885428	STD 		{ int|netbsd32|50|clock_settime(clockid_t clock_id, \
886			    const netbsd32_timespecp_t tp); }
887429	STD 		{ int|netbsd32|50|clock_getres(clockid_t clock_id, \
888			    netbsd32_timespecp_t tp); }
889430	STD 		{ int|netbsd32|50|nanosleep( \
890			    const netbsd32_timespecp_t rqtp, \
891			    netbsd32_timespecp_t rmtp); }
892431	STD 		{ int|netbsd32|50|__sigtimedwait( \
893			    const netbsd32_sigsetp_t set, \
894			    netbsd32_siginfop_t info, \
895			    netbsd32_timespecp_t timeout); }
896432	STD MODULAR compat_netbsd32_mqueue	\
897			{ int|netbsd32|50|mq_timedsend(mqd_t mqdes, \
898			    const netbsd32_charp msg_ptr, \
899			    netbsd32_size_t msg_len, \
900			    unsigned msg_prio, \
901			    const netbsd32_timespecp_t abs_timeout); }
902433	STD MODULAR compat_netbsd32_mqueue	\
903			{ netbsd32_ssize_t|netbsd32|50|mq_timedreceive( \
904			    mqd_t mqdes, netbsd32_charp msg_ptr, \
905			    netbsd32_size_t msg_len, netbsd32_uintp msg_prio, \
906			    const netbsd32_timespecp_t abs_timeout); }
907434	COMPAT_60 	{ int|netbsd32||_lwp_park( \
908			    const netbsd32_timespecp_t ts, \
909			    lwpid_t unpark, const netbsd32_voidp hint, \
910			    const netbsd32_voidp unparkhint); }
911435	STD 		{ int|netbsd32|50|kevent(int fd, \
912			    const netbsd32_keventp_t changelist, \
913			    netbsd32_size_t nchanges, \
914			    netbsd32_keventp_t eventlist, \
915			    netbsd32_size_t nevents, \
916			    const netbsd32_timespecp_t timeout); }
917436	STD 		{ int|netbsd32|50|pselect(int nd, \
918			    netbsd32_fd_setp_t in, \
919			    netbsd32_fd_setp_t ou, \
920			    netbsd32_fd_setp_t ex, \
921			    const netbsd32_timespecp_t ts, \
922			    const netbsd32_sigsetp_t mask); }
923437	STD 		{ int|netbsd32|50|pollts(netbsd32_pollfdp_t fds, \
924			    u_int nfds, const netbsd32_timespecp_t ts, \
925			    const netbsd32_sigsetp_t mask); }
926438	UNIMPL 		netbsd32___aio_suspend50
927439	STD 		{ int|netbsd32|50|stat(const netbsd32_charp path, \
928			    netbsd32_statp_t ub); }
929440	STD 		{ int|netbsd32|50|fstat(int fd, netbsd32_statp_t sb); }
930441	STD 		{ int|netbsd32|50|lstat(const netbsd32_charp path, \
931			    netbsd32_statp_t ub); }
932442	STD MODULAR compat_netbsd32_sysvipc	\
933	 		{ int|netbsd32|50|__semctl(int semid, int semnum, \
934			    int cmd, ... netbsd32_semunp_t arg); }
935443	STD MODULAR compat_netbsd32_sysvipc	\
936	 		{ int|netbsd32|50|shmctl(int shmid, int cmd, \
937			    netbsd32_shmid_dsp_t buf); }
938444	STD MODULAR compat_netbsd32_sysvipc	\
939	 		{ int|netbsd32|50|msgctl(int msqid, int cmd, \
940			    netbsd32_msqid_dsp_t buf); }
941445	STD 		{ int|netbsd32|50|getrusage(int who, \
942			    netbsd32_rusagep_t rusage); }
943446	STD		{ int|netbsd32|50|timer_settime(timer_t timerid, \
944			    int flags, const netbsd32_itimerspecp_t value, \
945			    netbsd32_itimerspecp_t ovalue); }
946447	STD		{ int|netbsd32|50|timer_gettime(timer_t timerid, \
947			    netbsd32_itimerspecp_t value); }
948#if defined(NTP) || !defined(_KERNEL_OPT)
949448	STD		{ int|netbsd32|50|ntp_gettime( \
950			    netbsd32_ntptimevalp_t ntvp); }
951#else
952448	EXCL		___ntp_gettime50
953#endif
954449	STD 		{ int|netbsd32|50|wait4(int pid, \
955			    netbsd32_intp status, \
956			    int options, netbsd32_rusagep_t rusage); }
957450	STD 		{ int|netbsd32|50|mknod(const netbsd32_charp path, \
958			    mode_t mode, netbsd32_dev_t dev); }
959451	STD	 	{ int|netbsd32|50|fhstat(const netbsd32_voidp fhp, \
960			    netbsd32_size_t fh_size, netbsd32_statp_t sb); }
961452	OBSOL		5.99 quotactl
962453	STD		{ int|netbsd32||pipe2(netbsd32_intp fildes, int flags); }
963454	STD		{ int|netbsd32||dup3(int from, int to, int flags); }
964455	STD		{ int|netbsd32||kqueue1(int flags); }
965456	STD  		{ int|netbsd32||paccept(int s, \
966			    netbsd32_sockaddrp_t name, \
967			    netbsd32_socklenp_t anamelen, \
968			    const netbsd32_sigsetp_t mask, \
969			    int flags); }
970457	STD  		{ int|netbsd32||linkat(int fd1, \
971			    const netbsd32_charp name1, \
972			    int fd2, \
973			    const netbsd32_charp name2, \
974			    int flags); }
975458	STD  		{ int|netbsd32||renameat(int fromfd, \
976			    const netbsd32_charp from, \
977			    int tofd, \
978			    const netbsd32_charp to); }
979459	STD  		{ int|netbsd32||mkfifoat(int fd, \
980			    const netbsd32_charp path, \
981			    mode_t mode); }
982460	STD  		{ int|netbsd32||mknodat(int fd, \
983			    const netbsd32_charp path, \
984			    mode_t mode, int PAD, \
985			    netbsd32_dev_t dev); }
986461	STD  		{ int|netbsd32||mkdirat(int fd, \
987			    const netbsd32_charp path, \
988			    mode_t mode); }
989462	STD  		{ int|netbsd32||faccessat(int fd, \
990			    const netbsd32_charp path, \
991			    int amode, \
992			    int flag); }
993463	STD  		{ int|netbsd32||fchmodat(int fd, \
994			    const netbsd32_charp path, \
995			    mode_t mode, \
996			    int flag); }
997464	STD  		{ int|netbsd32||fchownat(int fd, \
998			    const netbsd32_charp path, \
999			    uid_t owner, \
1000			    gid_t group, \
1001			    int flag); }
1002465	STD  		{ int|netbsd32||fexecve(int fd, \
1003			    netbsd32_charpp argp, \
1004			    netbsd32_charpp envp); }
1005466	STD  		{ int|netbsd32||fstatat(int fd, \
1006			    const netbsd32_charp path, \
1007			    netbsd32_statp_t buf, \
1008			    int flag); }
1009467	STD  		{ int|netbsd32||utimensat(int fd, \
1010			    const netbsd32_charp path, \
1011			    const netbsd32_timespecp_t tptr, \
1012			    int flag); }
1013468	STD  		{ int|netbsd32||openat(int fd, \
1014			    const netbsd32_charp path, \
1015			    int oflags, ... \
1016			    mode_t mode); }
1017469	STD  		{ netbsd32_ssize_t|netbsd32||readlinkat(int fd, \
1018			    const netbsd32_charp path, \
1019			    netbsd32_charp buf, \
1020			    size_t bufsize); }
1021470	STD  		{ int|netbsd32||symlinkat(const netbsd32_charp path1, \
1022			    int fd, \
1023			    const netbsd32_charp path2); }
1024471	STD  		{ int|netbsd32||unlinkat(int fd, \
1025			    const netbsd32_charp path, \
1026			    int flag); }
1027472	STD  		{ int|netbsd32||futimens(int fd, \
1028			    const netbsd32_timespecp_t tptr); }
1029473	STD		{ int|netbsd32||__quotactl(const netbsd32_charp path, \
1030			    netbsd32_voidp args); }
1031474	NOERR		{ int|netbsd32||posix_spawn(netbsd32_pid_tp pid, \
1032				const netbsd32_charp path, \
1033				const netbsd32_posix_spawn_file_actionsp \
1034				    file_actions, \
1035				const netbsd32_posix_spawnattrp attrp, \
1036				netbsd32_charpp argv, netbsd32_charpp envp); }
1037
1038475	UNIMPL		{ int|netbsd32||recvmmsg(int s, struct mmsghdr *mmsg, \
1039			    unsigned int vlen, unsigned int flags, \
1040			    netbsd32_timespecp_t timeout); }
1041476	UNIMPL		{ int|netbsd32||sendmmsg(int s, struct mmsghdr *mmsg, \
1042			    unsigned int vlen, unsigned int flags); }
1043477	STD 		{ int|netbsd32||clock_nanosleep(\
1044			    netbsd32_clockid_t clock_id, \
1045			    int flags, const netbsd32_timespecp_t rqtp, \
1046			    netbsd32_timespecp_t rmtp); }
1047478	STD 		{ int|netbsd32|60|_lwp_park(\
1048			    netbsd32_clockid_t clock_id, \
1049			    int flags, const netbsd32_timespecp_t ts, \
1050			    lwpid_t unpark, netbsd32_voidp hint, \
1051			    netbsd32_voidp unparkhint); }
1052479	NOERR		{ int|netbsd32||posix_fallocate(int fd, int PAD, \
1053			    netbsd32_off_t pos, netbsd32_off_t len); }
1054480	STD		{ int|netbsd32||fdiscard(int fd, int PAD, \
1055			    netbsd32_off_t pos, netbsd32_off_t len); }
1056
1057