syscalls.master revision 1.12
1	$NetBSD: syscalls.master,v 1.12 2000/01/31 15:59:58 christos 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, 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;	UNIMPL	unimplemented, not included in system
18;	EXCL	implemented, but not included in system
19;	NODEF	included, but don't define the syscall number
20;	NOARGS	included, but don't define the syscall args structure
21;	INDIR	included, but don't define the syscall args structure,
22;		and allow it to be "really" varargs.
23;
24; The compat options are defined in the syscalls.conf file, and the
25; compat option name is prefixed to the syscall name.  Other than
26; that, they're like NODEF (for 'compat' options), or STD (for
27; 'libcompat' options).
28;
29; The type-dependent arguments are as follows:
30; For STD, NODEF, NOARGS, and compat syscalls:
31;	{ pseudo-proto } [alias]
32; For other syscalls:
33;	[comment]
34;
35; #ifdef's, etc. may be included, and are copied to the output files.
36; #include's are copied to the syscall names and switch definition files only.
37
38#include "opt_ktrace.h"
39#include "opt_nfsserver.h"
40#include "opt_compat_netbsd.h"
41#include "opt_ntp.h"
42#include "opt_sysv.h"
43#include "opt_compat_43.h"
44
45#include "fs_lfs.h"
46#include "fs_nfs.h"
47
48#include <sys/param.h>
49#include <sys/systm.h>
50#include <sys/signal.h>
51#include <sys/mount.h>
52#include <sys/syscallargs.h>
53
54#include <compat/netbsd32/netbsd32.h>
55#include <compat/netbsd32/netbsd32_syscallargs.h>
56
57; Reserved/unimplemented system calls in the range 0-150 inclusive
58; are reserved for use in future Berkeley releases.
59; Additional system calls implemented in vendor and other
60; redistributions should be placed in the reserved range at the end
61; of the current calls.
62
630	INDIR		{ int sys_syscall(int number, ...); }
641	STD		{ void netbsd32_exit(int rval); }
652	NOARGS		{ int sys_fork(void); }
663	STD		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
674	STD		{ netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
685	STD		{ int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
696	STD		{ int netbsd32_close(int fd); }
707	STD		{ int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
718	COMPAT_43	{ int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
729	STD		{ int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
7310	STD		{ int netbsd32_unlink(const netbsd32_charp path); }
7411	OBSOL		execv
7512	STD		{ int netbsd32_chdir(const netbsd32_charp path); }
7613	STD		{ int netbsd32_fchdir(int fd); }
7714	STD		{ int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
7815	STD		{ int netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
7916	STD		{ int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
8017	STD		{ int netbsd32_break(netbsd32_charp nsize); }
8118	STD		{ int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
8219	COMPAT_43	{ netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
8320	NOARGS		{ pid_t sys_getpid(void); }
8421	STD		{ int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
8522	STD		{ int netbsd32_unmount(const netbsd32_charp path, int flags); }
8623	STD		{ int netbsd32_setuid(uid_t uid); }
8724	NOARGS		{ uid_t sys_getuid(void); }
8825	NOARGS		{ uid_t sys_geteuid(void); }
8926	STD		{ int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
9027	STD		{ netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
9128	STD		{ netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
9229	STD		{ netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
9330	STD		{ int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
9431	STD		{ int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
9532	STD		{ int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
9633	STD		{ int netbsd32_access(const netbsd32_charp path, int flags); }
9734	STD		{ int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
9835	STD		{ int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
9936	NOARGS		{ void sys_sync(void); }
10037	STD		{ int netbsd32_kill(int pid, int signum); }
10138	COMPAT_43	{ int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10239	NOARGS		{ pid_t sys_getppid(void); }
10340	COMPAT_43	{ int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10441	STD		{ int netbsd32_dup(int fd); }
10542	NOARGS		{ int sys_pipe(void); }
10643	NOARGS		{ gid_t sys_getegid(void); }
10744	STD		{ int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
108#if defined(KTRACE) || !defined(_KERNEL)
10945	STD		{ int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
110#else
11145	EXCL		netbsd32_ktrace
112#endif
11346	STD		{ int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
11447	NOARGS		{ gid_t sys_getgid(void); }
11548	COMPAT_13	{ int netbsd32_sigprocmask(int how, \
116			    int mask); } sigprocmask13
11749	STD		{ int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
11850	STD		{ int netbsd32_setlogin(const netbsd32_charp namebuf); }
11951	STD		{ int netbsd32_acct(const netbsd32_charp path); }
12052	COMPAT_13	{ int sys_sigpending(void); } sigpending13
12153	COMPAT_13	{ int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
12254	STD		{ int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
123#ifdef COMPAT_12
12455	COMPAT_12	{ int netbsd32_reboot(int opt); }
125#else
12655	OBSOL		oreboot
127#endif
12856	STD		{ int netbsd32_revoke(const netbsd32_charp path); }
12957	STD		{ int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
13058	STD		{ int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
13159	STD		{ int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
13260	STD		{ mode_t netbsd32_umask(mode_t newmask); }
13361	STD		{ int netbsd32_chroot(const netbsd32_charp path); }
13462	COMPAT_43	{ int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
13563	COMPAT_43	{ int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
13664	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
13765	COMPAT_12	{ int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
138; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
13966	NOARGS		{ int sys_vfork(void); }
14067	OBSOL		vread
14168	OBSOL		vwrite
14269	STD		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
14370	STD		{ int netbsd32_sstk(int incr); }
14471	COMPAT_43	{ int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
14572	STD		{ int netbsd32_ovadvise(int anom); } vadvise
14673	STD		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
14774	STD		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
14875	STD		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
14976	OBSOL		vhangup
15077	OBSOL		vlimit
15178	STD		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
15279	STD		{ int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
15380	STD		{ int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
15481	NOARGS		{ int sys_getpgrp(void); }
15582	STD		{ int netbsd32_setpgid(int pid, int pgid); }
15683	STD		{ int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
15784	COMPAT_43	{ int sys_wait(void); } owait
15885	COMPAT_12	{ int netbsd32_oswapon(const netbsd32_charp name); }
15986	STD		{ int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
16087	COMPAT_43	{ int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
16188	COMPAT_43	{ int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
16289	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
16390	STD		{ int netbsd32_dup2(int from, int to); }
16491	UNIMPL		getdopt
16592	STD		{ int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
16693	STD		{ int netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
16794	UNIMPL		setdopt
16895	STD		{ int netbsd32_fsync(int fd); }
16996	STD		{ int netbsd32_setpriority(int which, int who, int prio); }
17097	STD		{ int netbsd32_socket(int domain, int type, int protocol); }
17198	STD		{ int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
17299	COMPAT_43	{ int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
173100	STD		{ int netbsd32_getpriority(int which, int who); }
174101	COMPAT_43	{ int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
175102	COMPAT_43	{ int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
176103	COMPAT_13	{ int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
177104	STD		{ int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
178105	STD		{ int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
179106	STD		{ int netbsd32_listen(int s, int backlog); }
180107	OBSOL		vtimes
181108	COMPAT_43	{ int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
182#ifdef COMPAT_43
183109	COMPAT_43	{ int netbsd32_sigblock(int mask); }
184110	COMPAT_43	{ int netbsd32_sigsetmask(int mask); }
185#else
186109	OBSOL		sigblock
187110	OBSOL		sigsetmask
188#endif
189111	COMPAT_13	{ int netbsd32_sigsuspend(int mask); } sigsuspend13
190112	COMPAT_43	{ int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
191113	COMPAT_43	{ int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
192114	COMPAT_43	{ int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
193115	OBSOL		vtrace
194116	STD		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
195117	STD		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
196118	STD		{ int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
197119	OBSOL		resuba
198120	STD		{ netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
199121	STD		{ netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
200122	STD		{ int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
201123	STD		{ int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
202124	STD		{ int netbsd32_fchmod(int fd, mode_t mode); }
203125	COMPAT_43	{ int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
204126	STD		{ int netbsd32_setreuid(uid_t ruid, uid_t euid); }
205127	STD		{ int netbsd32_setregid(gid_t rgid, gid_t egid); }
206128	STD		{ int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
207129	COMPAT_43	{ int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
208130	COMPAT_43	{ int netbsd32_oftruncate(int fd, netbsd32_long length); }
209131	STD		{ int netbsd32_flock(int fd, int how); }
210132	STD		{ int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
211133	STD		{ netbsd32_ssize_t netbsd32_sendto(int s, const netbsd32_voidp buf, netbsd32_size_t len, int flags, const netbsd32_sockaddrp_t to, int tolen); }
212134	STD		{ int netbsd32_shutdown(int s, int how); }
213135	STD		{ int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
214136	STD		{ int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
215137	STD		{ int netbsd32_rmdir(const netbsd32_charp path); }
216138	STD		{ int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
217139	OBSOL		4.2 sigreturn
218140	STD		{ int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
219141	COMPAT_43	{ int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
220142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
221#ifdef COMPAT_43
222143	COMPAT_43	{ int netbsd32_sethostid(int32_t hostid); }
223#else
224143	OBSOL		sethostid
225#endif
226144	COMPAT_43	{ int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
227145	COMPAT_43	{ int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
228#ifdef COMPAT_43
229146	COMPAT_43	{ int netbsd32_killpg(int pgid, int signum); }
230#else
231146	OBSOL		killpg
232#endif
233147	NOARGS		{ int sys_setsid(void); }
234148	STD		{ int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
235149	COMPAT_43	{ int sys_quota(void); } oquota
236150	COMPAT_43	{ int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
237
238; Syscalls 151-180 inclusive are reserved for vendor-specific
239; system calls.  (This includes various calls added for compatibity
240; with other Unix variants.)
241; Some of these calls are now supported by BSD...
242151	UNIMPL
243152	UNIMPL
244153	UNIMPL
245154	UNIMPL
246#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
247155	STD		{ int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
248#else
249155	EXCL		netbsd32_nfssvc
250#endif
251156	COMPAT_43	{ int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
252157	STD		{ int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
253158	STD		{ int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
254159	UNIMPL
255160	UNIMPL
256#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
257161	STD		{ int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
258#else
259161	EXCL		netbsd32_getfh
260#endif
261162	COMPAT_09	{ int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
262163	COMPAT_09	{ int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
263164	COMPAT_09	{ int netbsd32_uname(netbsd32_outsnamep_t name); }
264165	STD		{ int netbsd32_sysarch(int op, netbsd32_voidp parms); }
265166	UNIMPL
266167	UNIMPL
267168	UNIMPL
268; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
269#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
270169	STD		{ int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
271#else
272169	EXCL		1.0 semsys
273#endif
274; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
275#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
276170	STD		{ int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
277#else
278170	EXCL		1.0 msgsys
279#endif
280; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
281#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
282171	STD		{ int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
283#else
284171	EXCL		1.0 shmsys
285#endif
286172	UNIMPL
287173	STD		{ netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
288174	STD		{ netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
289#if defined(NTP) && !defined(_KERNEL)
290175	STD		{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
291176	STD		{ int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
292#else
293175	EXCL		netbsd32_ntp_gettime
294176	EXCL		netbsd32_ntp_adjtime
295#endif
296177	UNIMPL
297178	UNIMPL
298179	UNIMPL
299180	UNIMPL
300
301; Syscalls 180-199 are used by/reserved for BSD
302181	STD		{ int netbsd32_setgid(gid_t gid); }
303182	STD		{ int netbsd32_setegid(gid_t egid); }
304183	STD		{ int netbsd32_seteuid(uid_t euid); }
305#if defined(LFS) || !defined(_KERNEL)
306184	STD		{ int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
307185	STD		{ int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
308186	STD		{ int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
309187	STD		{ int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
310#else
311184	EXCL		netbsd32_sys_lfs_bmapv
312185	EXCL		netbsd32_sys_lfs_markv
313186	EXCL		netbsd32_sys_lfs_segclean
314187	EXCL		netbsd32_sys_lfs_segwait
315#endif
316188	COMPAT_12	{ int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
317189	COMPAT_12	{ int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
318190	COMPAT_12	{ int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
319191	STD		{ netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); }
320192	STD		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
321193	UNIMPL
322194	STD		{ int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
323195	STD		{ int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
324196	COMPAT_12	{ int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
325197	STD		{ netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
326198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
327199	STD		{ off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
328200	STD		{ int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
329201	STD		{ int netbsd32_ftruncate(int fd, int pad, off_t length); }
330202	STD		{ int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
331203	STD		{ int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
332204	STD		{ int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
333205	STD		{ int netbsd32_undelete(const netbsd32_charp path); }
334206	STD		{ int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
335207	STD		{ int netbsd32_getpgid(pid_t pid); }
336208	STD		{ int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
337209	STD		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
338;
339; Syscalls 210-219 are reserved for dynamically loaded syscalls
340;
341#if defined(LKM) || !defined(_KERNEL)
342210	NODEF		{ int sys_lkmnosys(void); }
343211	NODEF		{ int sys_lkmnosys(void); }
344212	NODEF		{ int sys_lkmnosys(void); }
345213	NODEF		{ int sys_lkmnosys(void); }
346214	NODEF		{ int sys_lkmnosys(void); }
347215	NODEF		{ int sys_lkmnosys(void); }
348216	NODEF		{ int sys_lkmnosys(void); }
349217	NODEF		{ int sys_lkmnosys(void); }
350218	NODEF		{ int sys_lkmnosys(void); }
351219	NODEF		{ int sys_lkmnosys(void); }
352#else	/* !LKM || !_KERNEL */
353210	EXCL		lkmnosys
354211	EXCL		lkmnosys
355212	EXCL		lkmnosys
356213	EXCL		lkmnosys
357214	EXCL		lkmnosys
358215	EXCL		lkmnosys
359216	EXCL		lkmnosys
360217	EXCL		lkmnosys
361218	EXCL		lkmnosys
362219	EXCL		lkmnosys
363#endif	/* !LKM || !_KERNEL */
364; System calls 220-300 are reserved for use by NetBSD
365#if defined(SYSVSEM) || !defined(_KERNEL)
366220	COMPAT_14	{ int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
367221	STD		{ int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
368222	STD		{ int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
369223	STD		{ int netbsd32_semconfig(int flag); }
370#else
371220	EXCL		compat_14_netbsd32_semctl
372221	EXCL		netbsd32_semget
373222	EXCL		netbsd32_semop
374223	EXCL		netbsd32_semconfig
375#endif
376#if defined(SYSVMSG) || !defined(_KERNEL)
377224	COMPAT_14	{ int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
378225	STD		{ int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
379226	STD		{ int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
380227	STD		{ netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
381#else
382224	EXCL		compat_14_netbsd32_msgctl
383225	EXCL		netbsd32_msgget
384226	EXCL		netbsd32_msgsnd
385227	EXCL		netbsd32_msgrcv
386#endif
387#if defined(SYSVSHM) || !defined(_KERNEL)
388228	STD		{ netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
389229	COMPAT_14		{ int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
390230	STD		{ int netbsd32_shmdt(const netbsd32_voidp shmaddr); }
391231	STD		{ int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
392#else
393228	EXCL		netbsd32_shmat
394229	EXCL		compat_14_netbsd32_shmctl
395230	EXCL		netbsd32_shmdt
396231	EXCL		netbsd32_shmget
397#endif
398232	STD		{ int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
399233	STD		{ int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
400234	STD		{ int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
401235	UNIMPL		timer_create
402236	UNIMPL		timer_delete
403237	UNIMPL		timer_settime
404238	UNIMPL		timer_gettime
405239	UNIMPL		timer_getoverrun
406;
407; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
408;
409240	STD		{ int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
410241	STD		{ int netbsd32_fdatasync(int fd); }
411242	UNIMPL
412243	UNIMPL
413244	UNIMPL
414245	UNIMPL
415246	UNIMPL
416247	UNIMPL
417248	UNIMPL
418249	UNIMPL
419250	UNIMPL
420251	UNIMPL
421252	UNIMPL
422253	UNIMPL
423254	UNIMPL
424255	UNIMPL
425256	UNIMPL
426257	UNIMPL
427258	UNIMPL
428259	UNIMPL
429260	UNIMPL
430261	UNIMPL
431262	UNIMPL
432263	UNIMPL
433264	UNIMPL
434265	UNIMPL
435266	UNIMPL
436267	UNIMPL
437268	UNIMPL
438269	UNIMPL
439270	STD		{ int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
440271	STD		{ int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); }
441272	STD		{ int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
442273	STD		{ int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
443274	STD		{ int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
444275	STD		{ int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
445276	STD		{ int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
446277	STD		{ int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
447278	STD		{ int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); }
448279	STD		{ int netbsd32___fstat13(int fd, netbsd32_statp_t sb); }
449280	STD		{ int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); }
450281	STD		{ int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
451282	NOARGS		{ int sys___vfork14(void); }
452283	STD		{ int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
453284	STD		{ int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
454285	STD		{ int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
455286	STD		{ pid_t netbsd32_getsid(pid_t pid); }
456287	UNIMPL
457#if defined(KTRACE) || !defined(_KERNEL)
458288	STD		{ int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
459#else
460288	EXCL		netbsd32_fktrace
461#endif
462289	STD		{ netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
463290	STD		{ netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
464291	STD		{ int netbsd32___sigaction14(int signum, \
465			    const netbsd32_sigactionp_t nsa, \
466			    netbsd32_sigactionp_t osa); }
467292	STD		{ int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
468293	STD		{ int netbsd32___sigprocmask14(int how, \
469			    const netbsd32_sigsetp_t set, \
470			    netbsd32_sigsetp_t oset); }
471294	STD		{ int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); }
472295	STD		{ int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
473296	STD		{ int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
474297	STD		{ int netbsd32_fchroot(int fd); }
475298	STD		{ int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \
476			   int flags); }
477299	STD		{ int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \
478			    netbsd32_statp_t sb); }
479300	STD		{ int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
480			    netbsd32_statp_t buf); }
481#if defined(SYSVSEM) || !defined(_KERNEL)
482301	STD		{ int netbsd32___semctl14(int semid, int semnum, int cmd, \
483			    union netbsd32_semun3* arg); }
484#else
485301	EXCL		__semctl14
486#endif
487#if defined(SYSVMSG) || !defined(_KERNEL)
488302	STD		{ int netbsd32___msgctl13(int msqid, int cmd, \
489			    netbsd32_msqid_dsp_t buf); }
490#else
491302	EXCL		__msgctl13
492#endif
493#if defined(SYSVSHM) || !defined(_KERNEL)
494303	STD		{ int netbsd32___shmctl13(int shmid, int cmd, \
495			    netbsd32_shmid_dsp_t buf); }
496#else
497303	EXCL		__shmctl13
498#endif
499