syscalls.master revision 1.15
1	$NetBSD: syscalls.master,v 1.15 2000/11/30 19:17:57 jdolecek 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
38if defined(_KERNEL) && !defined(_LKM)
39#include "opt_ktrace.h"
40#include "opt_nfsserver.h"
41#include "opt_compat_netbsd.h"
42#include "opt_ntp.h"
43#include "opt_sysv.h"
44#include "opt_compat_43.h"
45
46#include "fs_lfs.h"
47#include "fs_nfs.h"
48endif
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/signal.h>
53#include <sys/mount.h>
54#include <sys/syscallargs.h>
55
56#include <compat/netbsd32/netbsd32.h>
57#include <compat/netbsd32/netbsd32_syscallargs.h>
58
59; Reserved/unimplemented system calls in the range 0-150 inclusive
60; are reserved for use in future Berkeley releases.
61; Additional system calls implemented in vendor and other
62; redistributions should be placed in the reserved range at the end
63; of the current calls.
64
650	INDIR		{ int sys_syscall(int number, ...); }
661	STD		{ void netbsd32_exit(int rval); }
672	NOARGS		{ int sys_fork(void); }
683	STD		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
694	STD		{ netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
705	STD		{ int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
716	STD		{ int netbsd32_close(int fd); }
727	STD		{ int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
738	COMPAT_43	{ int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
749	STD		{ int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
7510	STD		{ int netbsd32_unlink(const netbsd32_charp path); }
7611	OBSOL		execv
7712	STD		{ int netbsd32_chdir(const netbsd32_charp path); }
7813	STD		{ int netbsd32_fchdir(int fd); }
7914	STD		{ int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
8015	STD		{ int netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
8116	STD		{ int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
8217	STD		{ int netbsd32_break(netbsd32_charp nsize); }
8318	STD		{ int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
8419	COMPAT_43	{ netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
8520	NOARGS		{ pid_t sys_getpid(void); }
8621	STD		{ int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
8722	STD		{ int netbsd32_unmount(const netbsd32_charp path, int flags); }
8823	STD		{ int netbsd32_setuid(uid_t uid); }
8924	NOARGS		{ uid_t sys_getuid(void); }
9025	NOARGS		{ uid_t sys_geteuid(void); }
9126	STD		{ int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
9227	STD		{ netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
9328	STD		{ netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
9429	STD		{ netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
9530	STD		{ int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
9631	STD		{ int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
9732	STD		{ int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
9833	STD		{ int netbsd32_access(const netbsd32_charp path, int flags); }
9934	STD		{ int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
10035	STD		{ int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
10136	NOARGS		{ void sys_sync(void); }
10237	STD		{ int netbsd32_kill(int pid, int signum); }
10338	COMPAT_43	{ int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10439	NOARGS		{ pid_t sys_getppid(void); }
10540	COMPAT_43	{ int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10641	STD		{ int netbsd32_dup(int fd); }
10742	NOARGS		{ int sys_pipe(void); }
10843	NOARGS		{ gid_t sys_getegid(void); }
10944	STD		{ int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
110#if defined(KTRACE) || !defined(_KERNEL)
11145	STD		{ int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
112#else
11345	EXCL		netbsd32_ktrace
114#endif
11546	STD		{ int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
11647	NOARGS		{ gid_t sys_getgid(void); }
11748	COMPAT_13	{ int netbsd32_sigprocmask(int how, \
118			    int mask); } sigprocmask13
11949	STD		{ int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
12050	STD		{ int netbsd32_setlogin(const netbsd32_charp namebuf); }
12151	STD		{ int netbsd32_acct(const netbsd32_charp path); }
12252	COMPAT_13	{ int sys_sigpending(void); } sigpending13
12353	COMPAT_13	{ int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
12454	STD		{ int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
125#ifdef COMPAT_12
12655	COMPAT_12	{ int netbsd32_reboot(int opt); }
127#else
12855	OBSOL		oreboot
129#endif
13056	STD		{ int netbsd32_revoke(const netbsd32_charp path); }
13157	STD		{ int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
13258	STD		{ int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
13359	STD		{ int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
13460	STD		{ mode_t netbsd32_umask(mode_t newmask); }
13561	STD		{ int netbsd32_chroot(const netbsd32_charp path); }
13662	COMPAT_43	{ int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
13763	COMPAT_43	{ int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
13864	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
13965	COMPAT_12	{ int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
140; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
14166	NOARGS		{ int sys_vfork(void); }
14267	OBSOL		vread
14368	OBSOL		vwrite
14469	STD		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
14570	STD		{ int netbsd32_sstk(int incr); }
14671	COMPAT_43	{ int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
14772	STD		{ int netbsd32_ovadvise(int anom); } vadvise
14873	STD		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
14974	STD		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
15075	STD		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
15176	OBSOL		vhangup
15277	OBSOL		vlimit
15378	STD		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
15479	STD		{ int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
15580	STD		{ int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
15681	NOARGS		{ int sys_getpgrp(void); }
15782	STD		{ int netbsd32_setpgid(int pid, int pgid); }
15883	STD		{ int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
15984	COMPAT_43	{ int sys_wait(void); } owait
16085	COMPAT_12	{ int netbsd32_oswapon(const netbsd32_charp name); }
16186	STD		{ int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
16287	COMPAT_43	{ int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
16388	COMPAT_43	{ int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
16489	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
16590	STD		{ int netbsd32_dup2(int from, int to); }
16691	UNIMPL		getdopt
16792	STD		{ int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
16893	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); }
16994	UNIMPL		setdopt
17095	STD		{ int netbsd32_fsync(int fd); }
17196	STD		{ int netbsd32_setpriority(int which, int who, int prio); }
17297	STD		{ int netbsd32_socket(int domain, int type, int protocol); }
17398	STD		{ int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
17499	COMPAT_43	{ int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
175100	STD		{ int netbsd32_getpriority(int which, int who); }
176101	COMPAT_43	{ int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
177102	COMPAT_43	{ int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
178103	COMPAT_13	{ int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
179104	STD		{ int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
180105	STD		{ int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
181106	STD		{ int netbsd32_listen(int s, int backlog); }
182107	OBSOL		vtimes
183108	COMPAT_43	{ int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
184#ifdef COMPAT_43
185109	COMPAT_43	{ int netbsd32_sigblock(int mask); }
186110	COMPAT_43	{ int netbsd32_sigsetmask(int mask); }
187#else
188109	OBSOL		sigblock
189110	OBSOL		sigsetmask
190#endif
191111	COMPAT_13	{ int netbsd32_sigsuspend(int mask); } sigsuspend13
192112	COMPAT_43	{ int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
193113	COMPAT_43	{ int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
194114	COMPAT_43	{ int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
195115	OBSOL		vtrace
196116	STD		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
197117	STD		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
198118	STD		{ int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
199119	OBSOL		resuba
200120	STD		{ netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
201121	STD		{ netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
202122	STD		{ int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
203123	STD		{ int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
204124	STD		{ int netbsd32_fchmod(int fd, mode_t mode); }
205125	COMPAT_43	{ int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
206126	STD		{ int netbsd32_setreuid(uid_t ruid, uid_t euid); }
207127	STD		{ int netbsd32_setregid(gid_t rgid, gid_t egid); }
208128	STD		{ int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
209129	COMPAT_43	{ int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
210130	COMPAT_43	{ int netbsd32_oftruncate(int fd, netbsd32_long length); }
211131	STD		{ int netbsd32_flock(int fd, int how); }
212132	STD		{ int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
213133	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); }
214134	STD		{ int netbsd32_shutdown(int s, int how); }
215135	STD		{ int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
216136	STD		{ int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
217137	STD		{ int netbsd32_rmdir(const netbsd32_charp path); }
218138	STD		{ int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
219139	OBSOL		4.2 sigreturn
220140	STD		{ int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
221141	COMPAT_43	{ int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
222142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
223#ifdef COMPAT_43
224143	COMPAT_43	{ int netbsd32_sethostid(int32_t hostid); }
225#else
226143	OBSOL		sethostid
227#endif
228144	COMPAT_43	{ int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
229145	COMPAT_43	{ int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
230#ifdef COMPAT_43
231146	COMPAT_43	{ int netbsd32_killpg(int pgid, int signum); }
232#else
233146	OBSOL		killpg
234#endif
235147	NOARGS		{ int sys_setsid(void); }
236148	STD		{ int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
237149	COMPAT_43	{ int sys_quota(void); } oquota
238150	COMPAT_43	{ int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
239
240; Syscalls 151-180 inclusive are reserved for vendor-specific
241; system calls.  (This includes various calls added for compatibity
242; with other Unix variants.)
243; Some of these calls are now supported by BSD...
244151	UNIMPL
245152	UNIMPL
246153	UNIMPL
247154	UNIMPL
248#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
249155	STD		{ int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
250#else
251155	EXCL		netbsd32_nfssvc
252#endif
253156	COMPAT_43	{ int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
254157	STD		{ int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
255158	STD		{ int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
256159	UNIMPL
257160	UNIMPL
258#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
259161	STD		{ int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
260#else
261161	EXCL		netbsd32_getfh
262#endif
263162	COMPAT_09	{ int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
264163	COMPAT_09	{ int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
265164	COMPAT_09	{ int netbsd32_uname(netbsd32_outsnamep_t name); }
266165	STD		{ int netbsd32_sysarch(int op, netbsd32_voidp parms); }
267166	UNIMPL
268167	UNIMPL
269168	UNIMPL
270; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
271#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
272169	STD		{ int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
273#else
274169	EXCL		1.0 semsys
275#endif
276; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
277#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
278170	STD		{ int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
279#else
280170	EXCL		1.0 msgsys
281#endif
282; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
283#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
284171	STD		{ int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
285#else
286171	EXCL		1.0 shmsys
287#endif
288172	UNIMPL
289173	STD		{ netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
290174	STD		{ netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
291; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
292175	STD		{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
293176	STD		{ int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
294177	UNIMPL
295178	UNIMPL
296179	UNIMPL
297180	UNIMPL
298
299; Syscalls 180-199 are used by/reserved for BSD
300181	STD		{ int netbsd32_setgid(gid_t gid); }
301182	STD		{ int netbsd32_setegid(gid_t egid); }
302183	STD		{ int netbsd32_seteuid(uid_t euid); }
303#if defined(LFS) || !defined(_KERNEL)
304184	STD		{ int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
305185	STD		{ int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
306186	STD		{ int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
307187	STD		{ int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
308#else
309184	EXCL		netbsd32_sys_lfs_bmapv
310185	EXCL		netbsd32_sys_lfs_markv
311186	EXCL		netbsd32_sys_lfs_segclean
312187	EXCL		netbsd32_sys_lfs_segwait
313#endif
314188	COMPAT_12	{ int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
315189	COMPAT_12	{ int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
316190	COMPAT_12	{ int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
317191	STD		{ netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); }
318192	STD		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
319193	UNIMPL
320194	STD		{ int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
321195	STD		{ int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
322196	COMPAT_12	{ int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
323197	STD		{ netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
324198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
325199	STD		{ off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
326200	STD		{ int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
327201	STD		{ int netbsd32_ftruncate(int fd, int pad, off_t length); }
328202	STD		{ int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
329203	STD		{ int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
330204	STD		{ int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
331205	STD		{ int netbsd32_undelete(const netbsd32_charp path); }
332206	STD		{ int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
333207	STD		{ int netbsd32_getpgid(pid_t pid); }
334208	STD		{ int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
335209	STD		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
336;
337; Syscalls 210-219 are reserved for dynamically loaded syscalls
338;
339#if defined(LKM) || !defined(_KERNEL)
340210	NODEF		{ int sys_lkmnosys(void); }
341211	NODEF		{ int sys_lkmnosys(void); }
342212	NODEF		{ int sys_lkmnosys(void); }
343213	NODEF		{ int sys_lkmnosys(void); }
344214	NODEF		{ int sys_lkmnosys(void); }
345215	NODEF		{ int sys_lkmnosys(void); }
346216	NODEF		{ int sys_lkmnosys(void); }
347217	NODEF		{ int sys_lkmnosys(void); }
348218	NODEF		{ int sys_lkmnosys(void); }
349219	NODEF		{ int sys_lkmnosys(void); }
350#else	/* !LKM || !_KERNEL */
351210	EXCL		lkmnosys
352211	EXCL		lkmnosys
353212	EXCL		lkmnosys
354213	EXCL		lkmnosys
355214	EXCL		lkmnosys
356215	EXCL		lkmnosys
357216	EXCL		lkmnosys
358217	EXCL		lkmnosys
359218	EXCL		lkmnosys
360219	EXCL		lkmnosys
361#endif	/* !LKM || !_KERNEL */
362; System calls 220-300 are reserved for use by NetBSD
363#if defined(SYSVSEM) || !defined(_KERNEL)
364220	COMPAT_14	{ int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
365221	STD		{ int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
366222	STD		{ int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
367223	STD		{ int netbsd32_semconfig(int flag); }
368#else
369220	EXCL		compat_14_netbsd32_semctl
370221	EXCL		netbsd32_semget
371222	EXCL		netbsd32_semop
372223	EXCL		netbsd32_semconfig
373#endif
374#if defined(SYSVMSG) || !defined(_KERNEL)
375224	COMPAT_14	{ int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
376225	STD		{ int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
377226	STD		{ int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
378227	STD		{ netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
379#else
380224	EXCL		compat_14_netbsd32_msgctl
381225	EXCL		netbsd32_msgget
382226	EXCL		netbsd32_msgsnd
383227	EXCL		netbsd32_msgrcv
384#endif
385#if defined(SYSVSHM) || !defined(_KERNEL)
386228	STD		{ netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
387229	COMPAT_14		{ int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
388230	STD		{ int netbsd32_shmdt(const netbsd32_voidp shmaddr); }
389231	STD		{ int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
390#else
391228	EXCL		netbsd32_shmat
392229	EXCL		compat_14_netbsd32_shmctl
393230	EXCL		netbsd32_shmdt
394231	EXCL		netbsd32_shmget
395#endif
396232	STD		{ int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
397233	STD		{ int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
398234	STD		{ int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
399235	UNIMPL		timer_create
400236	UNIMPL		timer_delete
401237	UNIMPL		timer_settime
402238	UNIMPL		timer_gettime
403239	UNIMPL		timer_getoverrun
404;
405; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
406;
407240	STD		{ int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
408241	STD		{ int netbsd32_fdatasync(int fd); }
409242	UNIMPL
410243	UNIMPL
411244	UNIMPL
412245	UNIMPL
413246	UNIMPL
414247	UNIMPL
415248	UNIMPL
416249	UNIMPL
417250	UNIMPL
418251	UNIMPL
419252	UNIMPL
420253	UNIMPL
421254	UNIMPL
422255	UNIMPL
423256	UNIMPL
424257	UNIMPL
425258	UNIMPL
426259	UNIMPL
427260	UNIMPL
428261	UNIMPL
429262	UNIMPL
430263	UNIMPL
431264	UNIMPL
432265	UNIMPL
433266	UNIMPL
434267	UNIMPL
435268	UNIMPL
436269	UNIMPL
437270	STD		{ int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
438271	STD		{ int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); }
439272	STD		{ int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
440273	STD		{ int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
441274	STD		{ int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
442275	STD		{ int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
443276	STD		{ int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
444277	STD		{ int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
445278	STD		{ int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); }
446279	STD		{ int netbsd32___fstat13(int fd, netbsd32_statp_t sb); }
447280	STD		{ int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); }
448281	STD		{ int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
449282	NOARGS		{ int sys___vfork14(void); }
450283	STD		{ int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
451284	STD		{ int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
452285	STD		{ int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
453286	STD		{ pid_t netbsd32_getsid(pid_t pid); }
454287	UNIMPL
455#if defined(KTRACE) || !defined(_KERNEL)
456288	STD		{ int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
457#else
458288	EXCL		netbsd32_fktrace
459#endif
460289	STD		{ netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
461290	STD		{ netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
462291	STD		{ int netbsd32___sigaction14(int signum, \
463			    const netbsd32_sigactionp_t nsa, \
464			    netbsd32_sigactionp_t osa); }
465292	STD		{ int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
466293	STD		{ int netbsd32___sigprocmask14(int how, \
467			    const netbsd32_sigsetp_t set, \
468			    netbsd32_sigsetp_t oset); }
469294	STD		{ int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); }
470295	STD		{ int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
471296	STD		{ int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
472297	STD		{ int netbsd32_fchroot(int fd); }
473298	STD		{ int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \
474			   int flags); }
475299	STD		{ int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \
476			    netbsd32_statp_t sb); }
477300	STD		{ int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
478			    netbsd32_statp_t buf); }
479#if defined(SYSVSEM) || !defined(_KERNEL)
480301	STD		{ int netbsd32___semctl14(int semid, int semnum, int cmd, \
481			    union netbsd32_semun3* arg); }
482#else
483301	EXCL		__semctl14
484#endif
485#if defined(SYSVMSG) || !defined(_KERNEL)
486302	STD		{ int netbsd32___msgctl13(int msqid, int cmd, \
487			    netbsd32_msqid_dsp_t buf); }
488#else
489302	EXCL		__msgctl13
490#endif
491#if defined(SYSVSHM) || !defined(_KERNEL)
492303	STD		{ int netbsd32___shmctl13(int shmid, int cmd, \
493			    netbsd32_shmid_dsp_t buf); }
494#else
495303	EXCL		__shmctl13
496#endif
497