syscalls.master revision 1.1
1	$NetBSD: syscalls.master,v 1.1 1998/08/26 10:20:37 mrg 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;	NODEF	included, but don't define the syscall number
19;	NOARGS	included, but don't define the syscall args structure
20;	INDIR	included, but don't define the syscall args structure,
21;		and allow it to be "really" varargs.
22;
23; The compat options are defined in the syscalls.conf file, and the
24; compat option name is prefixed to the syscall name.  Other than
25; that, they're like NODEF (for 'compat' options), or STD (for
26; 'libcompat' options).
27;
28; The type-dependent arguments are as follows:
29; For STD, NODEF, NOARGS, and compat syscalls:
30;	{ pseudo-proto } [alias]
31; For other syscalls:
32;	[comment]
33;
34; #ifdef's, etc. may be included, and are copied to the output files.
35; #include's are copied to the syscall names and switch definition files only.
36
37#include "opt_ktrace.h"
38#include "opt_nfsserver.h"
39#include "opt_compat_netbsd.h"
40
41#include "fs_lfs.h"
42#include "fs_nfs.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/signal.h>
47#include <sys/mount.h>
48#include <sys/syscallargs.h>
49
50#include <compat/sparc32/sparc32.h>
51#include <compat/sparc32/sparc32_syscallargs.h>
52
53; Reserved/unimplemented system calls in the range 0-150 inclusive
54; are reserved for use in future Berkeley releases.
55; Additional system calls implemented in vendor and other
56; redistributions should be placed in the reserved range at the end
57; of the current calls.
58
590	INDIR		{ int sys_syscall(int number, ...); }
601	NOARGS		{ void sys_exit(int rval); }
612	NOARGS		{ int sys_fork(void); }
623	STD		{ sparc32_ssize_t compat_sparc32_read(int fd, sparc32_voidp buf, sparc32_size_t nbyte); }
634	STD		{ sparc32_ssize_t compat_sparc32_write(int fd, const sparc32_voidp buf, sparc32_size_t nbyte); }
645	STD		{ int compat_sparc32_open(const sparc32_charp path, int flags, ... mode_t mode); }
656	NOARGS		{ int sys_close(int fd); }
667	STD		{ int compat_sparc32_wait4(int pid, sparc32_intp status, int options, sparc32_rusagep_t rusage); }
678	COMPAT_43	{ int compat_sparc32_ocreat(const sparc32_charp path, mode_t mode); }
689	STD		{ int compat_sparc32_link(const sparc32_charp path, const sparc32_charp link); }
6910	STD		{ int compat_sparc32_unlink(const sparc32_charp path); }
7011	OBSOL		execv
7112	STD		{ int compat_sparc32_chdir(const sparc32_charp path); }
7213	NOARGS		{ int sys_fchdir(int fd); }
7314	STD		{ int compat_sparc32_mknod(const sparc32_charp path, mode_t mode, dev_t dev); }
7415	STD		{ int compat_sparc32_chmod(const sparc32_charp path, mode_t mode); }
7516	STD		{ int compat_sparc32_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
7617	STD		{ int compat_sparc32_break(sparc32_charp nsize); }
7718	STD		{ int compat_sparc32_getfsstat(sparc32_statfsp_t buf, sparc32_long bufsize, int flags); }
7819	COMPAT_43	{ sparc32_long compat_sparc32_olseek(int fd, sparc32_long offset, int whence); }
7920	NOARGS		{ pid_t sys_getpid(void); }
8021	STD		{ int compat_sparc32_mount(const sparc32_charp type, const sparc32_charp path, int flags, sparc32_voidp data); }
8122	STD		{ int compat_sparc32_unmount(const sparc32_charp path, int flags); }
8223	NOARGS		{ int sys_setuid(uid_t uid); }
8324	NOARGS		{ uid_t sys_getuid(void); }
8425	NOARGS		{ uid_t sys_geteuid(void); }
8526	STD		{ int compat_sparc32_ptrace(int req, pid_t pid, sparc32_caddr_t addr, int data); }
8627	STD		{ sparc32_ssize_t compat_sparc32_recvmsg(int s, sparc32_msghdrp_t msg, int flags); }
8728	STD		{ sparc32_ssize_t compat_sparc32_sendmsg(int s, const sparc32_msghdrp_t msg, int flags); }
8829	STD		{ sparc32_ssize_t compat_sparc32_recvfrom(int s, sparc32_voidp buf, sparc32_size_t len, int flags, sparc32_sockaddrp_t from, sparc32_intp fromlenaddr); }
8930	STD		{ int compat_sparc32_accept(int s, sparc32_sockaddrp_t name, sparc32_intp anamelen); }
9031	STD		{ int compat_sparc32_getpeername(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9132	STD		{ int compat_sparc32_getsockname(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9233	STD		{ int compat_sparc32_access(const sparc32_charp path, int flags); }
9334	STD		{ int compat_sparc32_chflags(const sparc32_charp path, sparc32_u_long flags); }
9435	STD		{ int compat_sparc32_fchflags(int fd, sparc32_u_long flags); }
9536	NOARGS		{ void sys_sync(void); }
9637	NOARGS		{ int sys_kill(int pid, int signum); }
9738	COMPAT_43	{ int compat_sparc32_stat43(const sparc32_charp path, sparc32_stat43p_t ub); }
9839	NOARGS		{ pid_t sys_getppid(void); }
9940	COMPAT_43	{ int compat_sparc32_lstat43(const sparc32_charp path, sparc32_stat43p_t ub); }
10041	NOARGS		{ int sys_dup(int fd); }
10142	NOARGS		{ int sys_pipe(void); }
10243	NOARGS		{ gid_t sys_getegid(void); }
10344	STD		{ int compat_sparc32_profil(sparc32_caddr_t samples, sparc32_size_t size, sparc32_u_long offset, u_int scale); }
104#ifdef KTRACE
10545	STD		{ int compat_sparc32_ktrace(const sparc32_charp fname, int ops, int facs, int pid); }
106#else
10745	UNIMPL		compat_sparc32_ktrace
108#endif
10946	STD		{ int compat_sparc32_sigaction(int signum, const sparc32_sigactionp_t nsa, sparc32_sigactionp_t osa); }
11047	NOARGS		{ gid_t sys_getgid(void); }
11148	NOARGS		{ int sys_sigprocmask(int how, sigset_t mask); }
11249	STD		{ int compat_sparc32___getlogin(sparc32_charp namebuf, u_int namelen); }
11350	STD		{ int compat_sparc32_setlogin(const sparc32_charp namebuf); }
11451	STD		{ int compat_sparc32_acct(const sparc32_charp path); }
11552	NOARGS		{ int sys_sigpending(void); }
11653	COMPAT_13	{ int compat_sparc32_sigaltstack13(const sparc32_sigaltstack13p_t nss, sparc32_sigaltstack13p_t oss); }
11754	STD		{ int compat_sparc32_ioctl(int fd, sparc32_u_long com, ... sparc32_voidp data); }
11855	COMPAT_12	{ int oreboot(int opt); } oreboot
11956	STD		{ int compat_sparc32_revoke(const sparc32_charp path); }
12057	STD		{ int compat_sparc32_symlink(const sparc32_charp path, const sparc32_charp link); }
12158	STD		{ int compat_sparc32_readlink(const sparc32_charp path, sparc32_charp buf, sparc32_size_t count); }
12259	STD		{ int compat_sparc32_execve(const sparc32_charp path, sparc32_charpp argp, sparc32_charpp envp); }
12360	NOARGS		{ mode_t sys_umask(mode_t newmask); }
12461	STD		{ int compat_sparc32_chroot(const sparc32_charp path); }
12562	COMPAT_43	{ int compat_sparc32_fstat43(int fd, sparc32_stat43p_t sb); }
12663	COMPAT_43	{ int compat_sparc32_ogetkerninfo(int op, sparc32_charp where, sparc32_intp size, int arg); }
12764	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
12865	COMPAT_12	{ int compat_sparc32_msync(sparc32_caddr_t addr, sparc32_size_t len); }
129; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
13066	NOARGS		{ int sys_vfork(void); }
13167	OBSOL		vread
13268	OBSOL		vwrite
13369	NOARGS		{ int sys_sbrk(int incr); }
13470	NOARGS		{ int sys_sstk(int incr); }
13571	COMPAT_43	{ int compat_sparc32_ommap(sparc32_caddr_t addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pos); }
13672	NOARGS		{ int sys_ovadvise(int anom); } vadvise
13773	STD		{ int compat_sparc32_munmap(sparc32_voidp addr, sparc32_size_t len); }
13874	STD		{ int compat_sparc32_mprotect(sparc32_voidp addr, sparc32_size_t len, int prot); }
13975	STD		{ int compat_sparc32_madvise(sparc32_voidp addr, sparc32_size_t len, int behav); }
14076	OBSOL		vhangup
14177	OBSOL		vlimit
14278	STD		{ int compat_sparc32_mincore(sparc32_caddr_t addr, sparc32_size_t len, sparc32_charp vec); }
14379	STD		{ int compat_sparc32_getgroups(int gidsetsize, sparc32_gid_tp gidset); }
14480	STD		{ int compat_sparc32_setgroups(int gidsetsize, const sparc32_gid_tp gidset); }
14581	NOARGS		{ int sys_getpgrp(void); }
14682	NOARGS		{ int sys_setpgid(int pid, int pgid); }
14783	STD		{ int compat_sparc32_setitimer(int which, const sparc32_itimervalp_t itv, sparc32_itimervalp_t oitv); }
14884	COMPAT_43	{ int sys_wait(void); } owait
14985	COMPAT_12	{ int compat_sparc32_oswapon(const sparc32_charp name); }
15086	STD		{ int compat_sparc32_getitimer(int which, sparc32_itimervalp_t itv); }
15187	COMPAT_43	{ int compat_sparc32_ogethostname(sparc32_charp hostname, u_int len); }
15288	COMPAT_43	{ int compat_sparc32_osethostname(sparc32_charp hostname, u_int len); }
15389	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
15490	NOARGS		{ int sys_dup2(int from, int to); }
15591	UNIMPL		getdopt
15692	STD		{ int compat_sparc32_fcntl(int fd, int cmd, ... sparc32_voidp arg); }
15793	STD		{ int compat_sparc32_select(int nd, sparc32_fd_setp_t in, sparc32_fd_setp_t ou, sparc32_fd_setp_t ex, sparc32_timevalp_t tv); }
15894	UNIMPL		setdopt
15995	NOARGS		{ int sys_fsync(int fd); }
16096	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
16197	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
16298	STD		{ int compat_sparc32_connect(int s, const sparc32_sockaddrp_t name, int namelen); }
16399	COMPAT_43	{ int compat_sparc32_oaccept(int s, sparc32_caddr_t name, sparc32_intp anamelen); }
164100	NOARGS		{ int sys_getpriority(int which, int who); }
165101	COMPAT_43	{ int compat_sparc32_osend(int s, sparc32_caddr_t buf, int len, int flags); }
166102	COMPAT_43	{ int compat_sparc32_orecv(int s, sparc32_caddr_t buf, int len, int flags); }
167103	STD		{ int compat_sparc32_sigreturn(sparc32_sigcontextp_t sigcntxp); }
168104	STD		{ int compat_sparc32_bind(int s, const sparc32_sockaddrp_t name, int namelen); }
169105	STD		{ int compat_sparc32_setsockopt(int s, int level, int name, const sparc32_voidp val, int valsize); }
170106	NOARGS		{ int sys_listen(int s, int backlog); }
171107	OBSOL		vtimes
172108	COMPAT_43	{ int compat_sparc32_osigvec(int signum, sparc32_sigvecp_t nsv, sparc32_sigvecp_t osv); }
173#ifdef COMPAT_43
174109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
175110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
176#else
177109	OBSOL		sigblock
178110	OBSOL		sigsetmask
179#endif
180111	NOARGS		{ int sys_sigsuspend(int mask); }
181112	COMPAT_43	{ int compat_sparc32_osigstack(sparc32_sigstackp_t nss, sparc32_sigstackp_t oss); }
182113	COMPAT_43	{ int compat_sparc32_orecvmsg(int s, sparc32_omsghdrp_t msg, int flags); }
183114	COMPAT_43	{ int compat_sparc32_osendmsg(int s, sparc32_caddr_t msg, int flags); }
184#ifdef TRACE
185115	NOARGS		{ int sys_vtrace(int request, int value); }
186#else
187115	OBSOL		vtrace
188#endif
189116	STD		{ int compat_sparc32_gettimeofday(sparc32_timevalp_t tp, sparc32_timezonep_t tzp); }
190117	STD		{ int compat_sparc32_getrusage(int who, sparc32_rusagep_t rusage); }
191118	STD		{ int compat_sparc32_getsockopt(int s, int level, int name, sparc32_voidp val, sparc32_intp avalsize); }
192119	OBSOL		resuba
193120	STD		{ sparc32_ssize_t compat_sparc32_readv(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
194121	STD		{ sparc32_ssize_t compat_sparc32_writev(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
195122	STD		{ int compat_sparc32_settimeofday(const sparc32_timevalp_t tv, const sparc32_timezonep_t tzp); }
196123	NOARGS		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
197124	NOARGS		{ int sys_fchmod(int fd, mode_t mode); }
198125	COMPAT_43	{ int compat_sparc32_orecvfrom(int s, sparc32_caddr_t buf, sparc32_size_t len, int flags, sparc32_caddr_t from, sparc32_intp fromlenaddr); }
199126	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
200127	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
201128	STD		{ int compat_sparc32_rename(const sparc32_charp from, const sparc32_charp to); }
202129	COMPAT_43	{ int compat_sparc32_otruncate(const sparc32_charp path, sparc32_long length); }
203130	COMPAT_43	{ int compat_sparc32_oftruncate(int fd, sparc32_long length); }
204131	NOARGS		{ int sys_flock(int fd, int how); }
205132	STD		{ int compat_sparc32_mkfifo(const sparc32_charp path, mode_t mode); }
206133	STD		{ sparc32_ssize_t compat_sparc32_sendto(int s, const sparc32_voidp buf, sparc32_size_t len, int flags, const sparc32_sockaddrp_t to, int tolen); }
207134	NOARGS		{ int sys_shutdown(int s, int how); }
208135	STD		{ int compat_sparc32_socketpair(int domain, int type, int protocol, sparc32_intp rsv); }
209136	STD		{ int compat_sparc32_mkdir(const sparc32_charp path, mode_t mode); }
210137	STD		{ int compat_sparc32_rmdir(const sparc32_charp path); }
211138	STD		{ int compat_sparc32_utimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
212139	OBSOL		4.2 sigreturn
213140	STD		{ int compat_sparc32_adjtime(const sparc32_timevalp_t delta, sparc32_timevalp_t olddelta); }
214141	COMPAT_43	{ int compat_sparc32_ogetpeername(int fdes, sparc32_caddr_t asa, sparc32_intp alen); }
215142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
216#ifdef COMPAT_43
217143	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); }
218#else
219143	OBSOL		sethostid
220#endif
221144	COMPAT_43	{ int compat_sparc32_ogetrlimit(int which, sparc32_orlimitp_t rlp); }
222145	COMPAT_43	{ int compat_sparc32_osetrlimit(int which, const sparc32_orlimitp_t rlp); }
223#ifdef COMPAT_43
224146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
225#else
226146	OBSOL		killpg
227#endif
228147	NOARGS		{ int sys_setsid(void); }
229148	STD		{ int compat_sparc32_quotactl(const sparc32_charp path, int cmd, int uid, sparc32_caddr_t arg); }
230149	COMPAT_43	{ int sys_quota(void); } oquota
231150	COMPAT_43	{ int compat_sparc32_ogetsockname(int fdec, sparc32_caddr_t asa, sparc32_intp alen); }
232
233; Syscalls 151-180 inclusive are reserved for vendor-specific
234; system calls.  (This includes various calls added for compatibity
235; with other Unix variants.)
236; Some of these calls are now supported by BSD...
237151	UNIMPL
238152	UNIMPL
239153	UNIMPL
240154	UNIMPL
241#if defined(NFS) || defined(NFSSERVER)
242155	STD		{ int compat_sparc32_nfssvc(int flag, sparc32_voidp argp); }
243#else
244155	UNIMPL
245#endif
246156	COMPAT_43	{ int compat_sparc32_ogetdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
247157	STD		{ int compat_sparc32_statfs(const sparc32_charp path, sparc32_statfsp_t buf); }
248158	STD		{ int compat_sparc32_fstatfs(int fd, sparc32_statfsp_t buf); }
249159	UNIMPL
250160	UNIMPL
251#if defined(NFS) || defined(NFSSERVER)
252161	STD		{ int compat_sparc32_getfh(const sparc32_charp fname, sparc32_fhandlep_t fhp); }
253#else
254161	UNIMPL		compat_sparc32_getfh
255#endif
256162	COMPAT_09	{ int compat_sparc32_ogetdomainname(sparc32_charp domainname, int len); }
257163	COMPAT_09	{ int compat_sparc32_osetdomainname(sparc32_charp domainname, int len); }
258164	COMPAT_09	{ int compat_sparc32_uname(sparc32_outsnamep_t name); }
259165	STD		{ int compat_sparc32_sysarch(int op, sparc32_voidp parms); }
260166	UNIMPL
261167	UNIMPL
262168	UNIMPL
263; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
264#if defined(SYSVSEM) && !defined(alpha)
265169	NOARGS		{ int compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
266#else
267169	UNIMPL		1.0 semsys
268#endif
269; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
270#if defined(SYSVMSG) && !defined(alpha)
271170	NOARGS		{ int compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
272#else
273170	UNIMPL		1.0 msgsys
274#endif
275; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
276#if defined(SYSVSHM) && !defined(alpha)
277171	NOARGS		{ int compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
278#else
279171	UNIMPL		1.0 shmsys
280#endif
281172	UNIMPL
282173	STD		{ sparc32_ssize_t compat_sparc32_pread(int fd, sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
283174	STD		{ sparc32_ssize_t compat_sparc32_pwrite(int fd, const sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
284175	STD		{ int compat_sparc32_ntp_gettime(sparc32_ntptimevalp_t ntvp); }
285176	STD		{ int compat_sparc32_ntp_adjtime(sparc32_timexp_t tp); }
286177	UNIMPL
287178	UNIMPL
288179	UNIMPL
289180	UNIMPL
290
291; Syscalls 180-199 are used by/reserved for BSD
292181	NOARGS		{ int sys_setgid(gid_t gid); }
293182	NOARGS		{ int sys_setegid(gid_t egid); }
294183	NOARGS		{ int sys_seteuid(uid_t euid); }
295#ifdef LFS
296184	STD		{ int compat_sparc32_lfs_bmapv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
297185	STD		{ int compat_sparc32_lfs_markv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
298186	STD		{ int compat_sparc32_lfs_segclean(sparc32_fsid_tp_t fsidp, sparc32_u_long segment); }
299187	STD		{ int compat_sparc32_lfs_segwait(sparc32_fsid_tp_t fsidp, sparc32_timevalp_t tv); }
300#else
301184	UNIMPL
302185	UNIMPL
303186	UNIMPL
304187	UNIMPL
305#endif
306188	COMPAT_12	{ int compat_sparc32_stat12(const sparc32_charp path, sparc32_stat12p_t ub); }
307189	COMPAT_12	{ int compat_sparc32_fstat12(int fd, sparc32_stat12p_t sb); }
308190	COMPAT_12	{ int compat_sparc32_lstat12(const sparc32_charp path, sparc32_stat12p_t ub); }
309191	STD		{ sparc32_long compat_sparc32_pathconf(const sparc32_charp path, int name); }
310192	STD		{ sparc32_long compat_sparc32_fpathconf(int fd, int name); }
311193	UNIMPL
312194	STD		{ int compat_sparc32_getrlimit(int which, sparc32_rlimitp_t rlp); }
313195	STD		{ int compat_sparc32_setrlimit(int which, const sparc32_rlimitp_t rlp); }
314196	COMPAT_12	{ int compat_sparc32_getdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
315197	STD		{ sparc32_voidp compat_sparc32_mmap(sparc32_voidp addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pad, off_t pos); }
316198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
317199	NOARGS		{ off_t sys_lseek(int fd, int pad, off_t offset, int whence); }
318200	STD		{ int compat_sparc32_truncate(const sparc32_charp path, int pad, off_t length); }
319201	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); }
320202	STD		{ int compat_sparc32___sysctl(sparc32_intp name, u_int namelen, sparc32_voidp old, sparc32_size_tp oldlenp, sparc32_voidp new, sparc32_size_t newlen); }
321203	STD		{ int compat_sparc32_mlock(const sparc32_voidp addr, sparc32_size_t len); }
322204	STD		{ int compat_sparc32_munlock(const sparc32_voidp addr, sparc32_size_t len); }
323205	STD		{ int compat_sparc32_undelete(const sparc32_charp path); }
324206	STD		{ int compat_sparc32_futimes(int fd, const sparc32_timevalp_t tptr); }
325207	NOARGS		{ int sys_getpgid(pid_t pid); }
326208	STD		{ int compat_sparc32_reboot(int opt, sparc32_charp bootstr); }
327209	STD		{ int compat_sparc32_poll(sparc32_pollfdp_t fds, u_int nfds, int timeout); }
328;
329; Syscalls 210-219 are reserved for dynamically loaded syscalls
330;
331#ifdef LKM
332210	NODEF		{ int sys_lkmnosys(void); }
333211	NODEF		{ int sys_lkmnosys(void); }
334212	NODEF		{ int sys_lkmnosys(void); }
335213	NODEF		{ int sys_lkmnosys(void); }
336214	NODEF		{ int sys_lkmnosys(void); }
337215	NODEF		{ int sys_lkmnosys(void); }
338216	NODEF		{ int sys_lkmnosys(void); }
339217	NODEF		{ int sys_lkmnosys(void); }
340218	NODEF		{ int sys_lkmnosys(void); }
341219	NODEF		{ int sys_lkmnosys(void); }
342#else	/* !LKM */
343210	UNIMPL
344211	UNIMPL
345212	UNIMPL
346213	UNIMPL
347214	UNIMPL
348215	UNIMPL
349216	UNIMPL
350217	UNIMPL
351218	UNIMPL
352219	UNIMPL
353#endif	/* !LKM */
354; System calls 220-300 are reserved for use by NetBSD
355#ifdef SYSVSEM
356220	STD		{ int compat_sparc32___semctl(int semid, int semnum, int cmd, sparc32_semunu_t arg); }
357221	STD		{ int compat_sparc32_semget(sparc32_key_t key, int nsems, int semflg); }
358222	STD		{ int compat_sparc32_semop(int semid, sparc32_sembufp_t sops, sparc32_size_t nsops); }
359223	NOARGS		{ int sys_semconfig(int flag); }
360#else
361220	UNIMPL		compat_sparc32_semctl
362221	UNIMPL		compat_sparc32_semget
363222	UNIMPL		compat_sparc32_semop
364223	UNIMPL		compat_sparc32_semconfig
365#endif
366#ifdef SYSVMSG
367224	STD		{ int compat_sparc32_msgctl(int msqid, int cmd, sparc32_msqid_dsp_t buf); }
368225	STD		{ int compat_sparc32_msgget(sparc32_key_t key, int msgflg); }
369226	STD		{ int compat_sparc32_msgsnd(int msqid, const sparc32_voidp msgp, sparc32_size_t msgsz, int msgflg); }
370227	STD		{ sparc32_ssize_t compat_sparc32_msgrcv(int msqid, sparc32_voidp msgp, sparc32_size_t msgsz, sparc32_long msgtyp, int msgflg); }
371#else
372224	UNIMPL		compat_sparc32_msgctl
373225	UNIMPL		compat_sparc32_msgget
374226	UNIMPL		compat_sparc32_msgsnd
375227	UNIMPL		compat_sparc32_msgrcv
376#endif
377#ifdef SYSVSHM
378228	STD		{ sparc32_voidp compat_sparc32_shmat(int shmid, const sparc32_voidp shmaddr, int shmflg); }
379229	STD		{ int compat_sparc32_shmctl(int shmid, int cmd, sparc32_shmid_dsp_t buf); }
380230	STD		{ int compat_sparc32_shmdt(const sparc32_voidp shmaddr); }
381231	STD		{ int compat_sparc32_shmget(sparc32_key_t key, sparc32_size_t size, int shmflg); }
382#else
383228	UNIMPL		compat_sparc32_shmat
384229	UNIMPL		compat_sparc32_shmctl
385230	UNIMPL		compat_sparc32_shmdt
386231	UNIMPL		compat_sparc32_shmget
387#endif
388232	STD		{ int compat_sparc32_clock_gettime(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
389233	STD		{ int compat_sparc32_clock_settime(sparc32_clockid_t clock_id, const sparc32_timespecp_t tp); }
390234	STD		{ int compat_sparc32_clock_getres(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
391235	UNIMPL		timer_create
392236	UNIMPL		timer_delete
393237	UNIMPL		timer_settime
394238	UNIMPL		timer_gettime
395239	UNIMPL		timer_getoverrun
396;
397; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
398;
399240	STD		{ int compat_sparc32_nanosleep(const sparc32_timespecp_t rqtp, sparc32_timespecp_t rmtp); }
400241	NOARGS		{ int sys_fdatasync(int fd); }
401242	UNIMPL
402243	UNIMPL
403244	UNIMPL
404245	UNIMPL
405246	UNIMPL
406247	UNIMPL
407248	UNIMPL
408249	UNIMPL
409250	UNIMPL
410251	UNIMPL
411252	UNIMPL
412253	UNIMPL
413254	UNIMPL
414255	UNIMPL
415256	UNIMPL
416257	UNIMPL
417258	UNIMPL
418259	UNIMPL
419260	UNIMPL
420261	UNIMPL
421262	UNIMPL
422263	UNIMPL
423264	UNIMPL
424265	UNIMPL
425266	UNIMPL
426267	UNIMPL
427268	UNIMPL
428269	UNIMPL
429270	STD		{ int compat_sparc32___posix_rename(const sparc32_charp from, const sparc32_charp to); }
430271	STD		{ int compat_sparc32_swapctl(int cmd, const sparc32_voidp arg, int misc); }
431272	STD		{ int compat_sparc32_getdents(int fd, sparc32_charp buf, sparc32_size_t count); }
432273	STD		{ int compat_sparc32_minherit(sparc32_voidp addr, sparc32_size_t len, int inherit); }
433274	STD		{ int compat_sparc32_lchmod(const sparc32_charp path, mode_t mode); }
434275	STD		{ int compat_sparc32_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
435276	STD		{ int compat_sparc32_lutimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
436277	STD		{ int compat_sparc32___msync13(sparc32_voidp addr, sparc32_size_t len, int flags); }
437278	STD		{ int compat_sparc32___stat13(const sparc32_charp path, sparc32_statp_t ub); }
438279	STD		{ int compat_sparc32___fstat13(int fd, sparc32_statp_t sb); }
439280	STD		{ int compat_sparc32___lstat13(const sparc32_charp path, sparc32_statp_t ub); }
440281	STD		{ int compat_sparc32___sigaltstack14(const sparc32_sigaltstackp_t nss, sparc32_sigaltstackp_t oss); }
441282	NOARGS		{ int sys___vfork14(void); }
442283	STD		{ int compat_sparc32___posix_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
443284	NOARGS		{ int sys___posix_fchown(int fd, uid_t uid, gid_t gid); }
444285	STD		{ int compat_sparc32___posix_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
445286	NOARGS		{ pid_t sys_getsid(pid_t pid); }
446287	UNIMPL
447#ifdef KTRACE
448288	NOARGS		{ int sys_fktrace(const int fd, int ops, int facs, int pid); }
449#else
450288	UNIMPL
451#endif
452289	STD		{ sparc32_ssize_t compat_sparc32_preadv(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
453290	STD		{ sparc32_ssize_t compat_sparc32_pwritev(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
454