xref: /netbsd-src/sys/compat/netbsd32/syscalls.master (revision de1dfb1250df962f1ff3a011772cf58e605aed11)
1	$NetBSD: syscalls.master,v 1.26 2004/06/17 18:29:40 cube 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#if defined(_KERNEL_OPT)
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"
48#endif
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/signal.h>
53#include <sys/mount.h>
54#include <sys/sa.h>
55#include <sys/syscallargs.h>
56
57#include <compat/netbsd32/netbsd32.h>
58#include <compat/netbsd32/netbsd32_syscallargs.h>
59
60%%
61
62; Reserved/unimplemented system calls in the range 0-150 inclusive
63; are reserved for use in future Berkeley releases.
64; Additional system calls implemented in vendor and other
65; redistributions should be placed in the reserved range at the end
66; of the current calls.
67
680	INDIR		{ int sys_syscall(int number, ...); }
691	STD		{ void netbsd32_exit(int rval); }
702	NOARGS		{ int sys_fork(void); }
713	STD		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
724	STD		{ netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
735	STD		{ int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
746	STD		{ int netbsd32_close(int fd); }
757	STD		{ int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
768	COMPAT_43	{ int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
779	STD		{ int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
7810	STD		{ int netbsd32_unlink(const netbsd32_charp path); }
7911	OBSOL		execv
8012	STD		{ int netbsd32_chdir(const netbsd32_charp path); }
8113	STD		{ int netbsd32_fchdir(int fd); }
8214	STD		{ int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
8315	STD		{ int netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
8416	STD		{ int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
8517	STD		{ int netbsd32_break(netbsd32_charp nsize); }
8618	COMPAT_20	{ int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
8719	COMPAT_43	{ netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
8820	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
8921	STD		{ int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
9022	STD		{ int netbsd32_unmount(const netbsd32_charp path, int flags); }
9123	STD		{ int netbsd32_setuid(uid_t uid); }
9224	NOARGS		{ uid_t sys_getuid(void); }
9325	NOARGS		{ uid_t sys_geteuid(void); }
9426	STD		{ int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
9527	STD		{ netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
9628	STD		{ netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
9729	STD		{ netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
9830	STD		{ int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
9931	STD		{ int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
10032	STD		{ int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
10133	STD		{ int netbsd32_access(const netbsd32_charp path, int flags); }
10234	STD		{ int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
10335	STD		{ int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
10436	NOARGS		{ void sys_sync(void); }
10537	STD		{ int netbsd32_kill(int pid, int signum); }
10638	COMPAT_43	{ int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10739	NOARGS		{ pid_t sys_getppid(void); }
10840	COMPAT_43	{ int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
10941	STD		{ int netbsd32_dup(int fd); }
11042	NOARGS		{ int sys_pipe(void); }
11143	NOARGS		{ gid_t sys_getegid(void); }
11244	STD		{ int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
113#if defined(KTRACE) || !defined(_KERNEL)
11445	STD		{ int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
115#else
11645	EXCL		netbsd32_ktrace
117#endif
11846	STD		{ int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
11947	NOARGS		{ gid_t sys_getgid(void); }
12048	COMPAT_13	{ int netbsd32_sigprocmask(int how, \
121			    int mask); } sigprocmask13
12249	STD		{ int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
12350	STD		{ int netbsd32_setlogin(const netbsd32_charp namebuf); }
12451	STD		{ int netbsd32_acct(const netbsd32_charp path); }
12552	COMPAT_13	{ int sys_sigpending(void); } sigpending13
12653	COMPAT_13	{ int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
12754	STD		{ int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
12855	COMPAT_12	{ int netbsd32_reboot(int opt); }
12956	STD		{ int netbsd32_revoke(const netbsd32_charp path); }
13057	STD		{ int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
13158	STD		{ int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
13259	STD		{ int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
13360	STD		{ mode_t netbsd32_umask(mode_t newmask); }
13461	STD		{ int netbsd32_chroot(const netbsd32_charp path); }
13562	COMPAT_43	{ int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
13663	COMPAT_43	{ int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
13764	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
13865	COMPAT_12	{ int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
139; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
14066	NOARGS		{ int sys_vfork(void); }
14167	OBSOL		vread
14268	OBSOL		vwrite
14369	STD		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
14470	STD		{ int netbsd32_sstk(int incr); }
14571	COMPAT_43	{ int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
14672	STD		{ int netbsd32_ovadvise(int anom); } vadvise
14773	STD		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
14874	STD		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
14975	STD		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
15076	OBSOL		vhangup
15177	OBSOL		vlimit
15278	STD		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
15379	STD		{ int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
15480	STD		{ int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
15581	NOARGS		{ int sys_getpgrp(void); }
15682	STD		{ int netbsd32_setpgid(int pid, int pgid); }
15783	STD		{ int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
15884	COMPAT_43	{ int sys_wait(void); } owait
15985	COMPAT_12	{ int netbsd32_oswapon(const netbsd32_charp name); }
16086	STD		{ int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
16187	COMPAT_43	{ int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
16288	COMPAT_43	{ int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
16389	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
16490	STD		{ int netbsd32_dup2(int from, int to); }
16591	UNIMPL		getdopt
16692	STD		{ int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
16793	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); }
16894	UNIMPL		setdopt
16995	STD		{ int netbsd32_fsync(int fd); }
17096	STD		{ int netbsd32_setpriority(int which, int who, int prio); }
17197	STD		{ int netbsd32_socket(int domain, int type, int protocol); }
17298	STD		{ int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
17399	COMPAT_43	{ int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
174100	STD		{ int netbsd32_getpriority(int which, int who); }
175101	COMPAT_43	{ int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
176102	COMPAT_43	{ int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
177103	COMPAT_13	{ int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); } sigreturn13
178104	STD		{ int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
179105	STD		{ int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
180106	STD		{ int netbsd32_listen(int s, int backlog); }
181107	OBSOL		vtimes
182108	COMPAT_43	{ int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
183#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
184109	COMPAT_43	{ int netbsd32_sigblock(int mask); }
185110	COMPAT_43	{ int netbsd32_sigsetmask(int mask); }
186#else
187109	OBSOL		sigblock
188110	OBSOL		sigsetmask
189#endif
190111	COMPAT_13	{ int netbsd32_sigsuspend(int mask); } sigsuspend13
191112	COMPAT_43	{ int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
192113	COMPAT_43	{ int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
193114	COMPAT_43	{ int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
194115	OBSOL		vtrace
195116	STD		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
196117	STD		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
197118	STD		{ int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
198119	OBSOL		resuba
199120	STD		{ netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
200121	STD		{ netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
201122	STD		{ int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
202123	STD		{ int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
203124	STD		{ int netbsd32_fchmod(int fd, mode_t mode); }
204125	COMPAT_43	{ int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
205126	STD		{ int netbsd32_setreuid(uid_t ruid, uid_t euid); }
206127	STD		{ int netbsd32_setregid(gid_t rgid, gid_t egid); }
207128	STD		{ int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
208129	COMPAT_43	{ int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
209130	COMPAT_43	{ int netbsd32_oftruncate(int fd, netbsd32_long length); }
210131	STD		{ int netbsd32_flock(int fd, int how); }
211132	STD		{ int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
212133	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); }
213134	STD		{ int netbsd32_shutdown(int s, int how); }
214135	STD		{ int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
215136	STD		{ int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
216137	STD		{ int netbsd32_rmdir(const netbsd32_charp path); }
217138	STD		{ int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
218139	OBSOL		4.2 sigreturn
219140	STD		{ int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
220141	COMPAT_43	{ int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
221142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
222#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
223143	COMPAT_43	{ int netbsd32_sethostid(int32_t hostid); }
224#else
225143	OBSOL		sethostid
226#endif
227144	COMPAT_43	{ int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
228145	COMPAT_43	{ int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
229#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
230146	COMPAT_43	{ int netbsd32_killpg(int pgid, int signum); }
231#else
232146	OBSOL		killpg
233#endif
234147	NOARGS		{ int sys_setsid(void); }
235148	STD		{ int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
236149	COMPAT_43	{ int sys_quota(void); } oquota
237150	COMPAT_43	{ int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
238
239; Syscalls 151-180 inclusive are reserved for vendor-specific
240; system calls.  (This includes various calls added for compatibity
241; with other Unix variants.)
242; Some of these calls are now supported by BSD...
243151	UNIMPL
244152	UNIMPL
245153	UNIMPL
246154	UNIMPL
247#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
248155	STD		{ int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
249#else
250155	EXCL		netbsd32_nfssvc
251#endif
252156	COMPAT_43	{ int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
253157	COMPAT_20	{ int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
254158	COMPAT_20	{ int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
255159	UNIMPL
256160	UNIMPL
257#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
258161	STD		{ int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
259#else
260161	EXCL		netbsd32_getfh
261#endif
262162	COMPAT_09	{ int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
263163	COMPAT_09	{ int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
264164	COMPAT_09	{ int netbsd32_uname(netbsd32_outsnamep_t name); }
265165	STD		{ int netbsd32_sysarch(int op, netbsd32_voidp parms); }
266166	UNIMPL
267167	UNIMPL
268168	UNIMPL
269#if defined(SYSVSEM) || !defined(_KERNEL)
270169	COMPAT_10	{ int netbsd32_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
271#else
272169	EXCL		netbsd32_sys_semsys
273#endif
274#if defined(SYSVMSG) || !defined(_KERNEL)
275170	COMPAT_10	{ int netbsd32_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
276#else
277170	EXCL		netbsd32_sys_msgsys
278#endif
279#if defined(SYSVSHM) || !defined(_KERNEL)
280171	COMPAT_10	{ int netbsd32_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
281#else
282171	EXCL		netbsd32_sys_shmsys
283#endif
284172	UNIMPL
285173	STD		{ netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
286174	STD		{ netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
287; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
288175	STD		{ int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
289176	STD		{ int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
290177	UNIMPL
291178	UNIMPL
292179	UNIMPL
293180	UNIMPL
294
295; Syscalls 180-199 are used by/reserved for BSD
296181	STD		{ int netbsd32_setgid(gid_t gid); }
297182	STD		{ int netbsd32_setegid(gid_t egid); }
298183	STD		{ int netbsd32_seteuid(uid_t euid); }
299#if defined(LFS) || !defined(_KERNEL)
300184	STD		{ int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
301185	STD		{ int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
302186	STD		{ int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
303187	STD		{ int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
304#else
305184	EXCL		netbsd32_sys_lfs_bmapv
306185	EXCL		netbsd32_sys_lfs_markv
307186	EXCL		netbsd32_sys_lfs_segclean
308187	EXCL		netbsd32_sys_lfs_segwait
309#endif
310188	COMPAT_12	{ int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
311189	COMPAT_12	{ int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
312190	COMPAT_12	{ int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
313191	STD		{ netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); }
314192	STD		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
315193	UNIMPL
316194	STD		{ int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
317195	STD		{ int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
318196	COMPAT_12	{ int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
319197	STD		{ netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
320198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
321199	STD		{ off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
322200	STD		{ int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
323201	STD		{ int netbsd32_ftruncate(int fd, int pad, off_t length); }
324202	STD		{ int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
325203	STD		{ int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
326204	STD		{ int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
327205	STD		{ int netbsd32_undelete(const netbsd32_charp path); }
328206	STD		{ int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
329207	STD		{ int netbsd32_getpgid(pid_t pid); }
330208	STD		{ int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
331209	STD		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
332;
333; Syscalls 210-219 are reserved for dynamically loaded syscalls
334;
335#if defined(LKM) || !defined(_KERNEL)
336210	NODEF		{ int sys_lkmnosys(void); }
337211	NODEF		{ int sys_lkmnosys(void); }
338212	NODEF		{ int sys_lkmnosys(void); }
339213	NODEF		{ int sys_lkmnosys(void); }
340214	NODEF		{ int sys_lkmnosys(void); }
341215	NODEF		{ int sys_lkmnosys(void); }
342216	NODEF		{ int sys_lkmnosys(void); }
343217	NODEF		{ int sys_lkmnosys(void); }
344218	NODEF		{ int sys_lkmnosys(void); }
345219	NODEF		{ int sys_lkmnosys(void); }
346#else	/* !LKM || !_KERNEL */
347210	EXCL		lkmnosys
348211	EXCL		lkmnosys
349212	EXCL		lkmnosys
350213	EXCL		lkmnosys
351214	EXCL		lkmnosys
352215	EXCL		lkmnosys
353216	EXCL		lkmnosys
354217	EXCL		lkmnosys
355218	EXCL		lkmnosys
356219	EXCL		lkmnosys
357#endif	/* !LKM || !_KERNEL */
358; System calls 220-300 are reserved for use by NetBSD
359#if defined(SYSVSEM) || !defined(_KERNEL)
360220	COMPAT_14	{ int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
361221	STD		{ int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
362222	STD		{ int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
363223	STD		{ int netbsd32_semconfig(int flag); }
364#else
365220	EXCL		compat_14_netbsd32_semctl
366221	EXCL		netbsd32_semget
367222	EXCL		netbsd32_semop
368223	EXCL		netbsd32_semconfig
369#endif
370#if defined(SYSVMSG) || !defined(_KERNEL)
371224	COMPAT_14	{ int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
372225	STD		{ int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
373226	STD		{ int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
374227	STD		{ netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
375#else
376224	EXCL		compat_14_netbsd32_msgctl
377225	EXCL		netbsd32_msgget
378226	EXCL		netbsd32_msgsnd
379227	EXCL		netbsd32_msgrcv
380#endif
381#if defined(SYSVSHM) || !defined(_KERNEL)
382228	STD		{ netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
383229	COMPAT_14		{ int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
384230	STD		{ int netbsd32_shmdt(const netbsd32_voidp shmaddr); }
385231	STD		{ int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
386#else
387228	EXCL		netbsd32_shmat
388229	EXCL		compat_14_netbsd32_shmctl
389230	EXCL		netbsd32_shmdt
390231	EXCL		netbsd32_shmget
391#endif
392232	STD		{ int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
393233	STD		{ int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
394234	STD		{ int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
395235	UNIMPL		timer_create
396236	UNIMPL		timer_delete
397237	UNIMPL		timer_settime
398238	UNIMPL		timer_gettime
399239	UNIMPL		timer_getoverrun
400;
401; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
402;
403240	STD		{ int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
404241	STD		{ int netbsd32_fdatasync(int fd); }
405242	UNIMPL
406243	UNIMPL
407244	UNIMPL
408245	UNIMPL
409246	UNIMPL
410247	UNIMPL
411248	UNIMPL
412249	UNIMPL
413250	UNIMPL
414251	UNIMPL
415252	UNIMPL
416253	UNIMPL
417254	UNIMPL
418255	UNIMPL
419256	UNIMPL
420257	UNIMPL
421258	UNIMPL
422259	UNIMPL
423260	UNIMPL
424261	UNIMPL
425262	UNIMPL
426263	UNIMPL
427264	UNIMPL
428265	UNIMPL
429266	UNIMPL
430267	UNIMPL
431268	UNIMPL
432269	UNIMPL
433270	STD		{ int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
434271	STD		{ int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); }
435272	STD		{ int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
436273	STD		{ int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
437274	STD		{ int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
438275	STD		{ int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
439276	STD		{ int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
440277	STD		{ int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
441278	STD		{ int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); }
442279	STD		{ int netbsd32___fstat13(int fd, netbsd32_statp_t sb); }
443280	STD		{ int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); }
444281	STD		{ int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
445282	NOARGS		{ int sys___vfork14(void); }
446283	STD		{ int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
447284	STD		{ int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
448285	STD		{ int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
449286	STD		{ pid_t netbsd32_getsid(pid_t pid); }
450287	UNIMPL
451#if defined(KTRACE) || !defined(_KERNEL)
452288	STD		{ int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
453#else
454288	EXCL		netbsd32_fktrace
455#endif
456289	STD		{ netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
457290	STD		{ netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
458291	STD		{ int netbsd32___sigaction14(int signum, \
459			    const netbsd32_sigactionp_t nsa, \
460			    netbsd32_sigactionp_t osa); }
461292	STD		{ int netbsd32___sigpending14(netbsd32_sigsetp_t set); }
462293	STD		{ int netbsd32___sigprocmask14(int how, \
463			    const netbsd32_sigsetp_t set, \
464			    netbsd32_sigsetp_t oset); }
465294	STD		{ int netbsd32___sigsuspend14(const netbsd32_sigsetp_t set); }
466295	COMPAT_16	{ int netbsd32___sigreturn14(netbsd32_sigcontextp_t sigcntxp); }
467296	STD		{ int netbsd32___getcwd(netbsd32_charp bufp, netbsd32_size_t length); }
468297	STD		{ int netbsd32_fchroot(int fd); }
469298	STD		{ int netbsd32_fhopen(const netbsd32_fhandlep_t fhp, \
470			   int flags); }
471299	STD		{ int netbsd32_fhstat(const netbsd32_fhandlep_t fhp, \
472			    netbsd32_statp_t sb); }
473300	COMPAT_20	{ int netbsd32_fhstatfs(netbsd32_fhandlep_t fhp, \
474			    netbsd32_statp_t buf); }
475#if defined(SYSVSEM) || !defined(_KERNEL)
476301	STD		{ int netbsd32___semctl14(int semid, int semnum, int cmd, \
477			    union netbsd32_semun3* arg); }
478#else
479301	EXCL		__semctl14
480#endif
481#if defined(SYSVMSG) || !defined(_KERNEL)
482302	STD		{ int netbsd32___msgctl13(int msqid, int cmd, \
483			    netbsd32_msqid_dsp_t buf); }
484#else
485302	EXCL		__msgctl13
486#endif
487#if defined(SYSVSHM) || !defined(_KERNEL)
488303	STD		{ int netbsd32___shmctl13(int shmid, int cmd, \
489			    netbsd32_shmid_dsp_t buf); }
490#else
491303	EXCL		__shmctl13
492#endif
493304	STD		{ int netbsd32_lchflags(const netbsd32_charp path, netbsd32_u_long flags); }
494305	STD		{ int sys_issetugid(void); }
495306	STD		{ int netbsd32_utrace(const netbsd32_charp label, netbsd32_voidp addr, \
496			    netbsd32_size_t len); }
497;
498; Syscalls 307 and 308 are reserved for getcontext and setcontext
499;
500307	STD		{ int netbsd32_getcontext(netbsd32_ucontextp ucp); }
501308	STD		{ int netbsd32_setcontext(netbsd32_ucontextp ucp, \
502			    uint32_t flags, netbsd32_lwpidp new_lwp); }
503;
504; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls.
505;
506309	UNIMPL
507310	UNIMPL
508311	UNIMPL
509312	UNIMPL
510313	UNIMPL
511314	UNIMPL
512315	UNIMPL
513316	UNIMPL
514317	UNIMPL
515318	UNIMPL
516319	UNIMPL
517320	UNIMPL
518321	UNIMPL
519322	UNIMPL
520323	UNIMPL
521324	UNIMPL
522325	UNIMPL
523326	UNIMPL
524327	UNIMPL
525328	UNIMPL
526329	UNIMPL
527330	UNIMPL
528331	UNIMPL
529332	UNIMPL
530333	UNIMPL
531334	UNIMPL
532335	UNIMPL
533336	UNIMPL
534337	UNIMPL
535338	UNIMPL
536339	UNIMPL
537340	STD		{ int netbsd32___sigaction_sigtramp(int signum, \
538			    const netbsd32_sigactionp_t nsa, \
539			    netbsd32_sigactionp_t osa, \
540			    netbsd32_voidp tramp, int vers); }
541341	UNIMPL
542342	UNIMPL
543343	UNIMPL
544344	UNIMPL
545345	UNIMPL
546346	UNIMPL
547347	UNIMPL
548348	UNIMPL
549349	UNIMPL
550350	UNIMPL
551351	UNIMPL
552352	UNIMPL
553353	UNIMPL
554354	UNIMPL
555355	UNIMPL
556356	STD		{ int netbsd32_getvfsstat(netbsd32_statvfsp_t buf, \
557			    netbsd32_size_t bufsize, int flags); }
558357	STD		{ int netbsd32_statvfs1(const netbsd32_charp path, \
559			    netbsd32_statvfsp_t buf, int flags); }
560358	STD		{ int netbsd32_fstatvfs1(int fd, netbsd32_statvfsp_t buf, \
561			    int flags); }
562359	STD		{ int netbsd32_fhstatvfs1(const netbsd32_fhandlep_t fhp, \
563			    netbsd32_statvfsp_t buf, int flags); }
564