syscalls.master revision 1.3
1	$NetBSD: syscalls.master,v 1.3 1998/10/01 14:27:58 eeh 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#include "opt_ntp.h"
41
42#include "fs_lfs.h"
43#include "fs_nfs.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/signal.h>
48#include <sys/mount.h>
49#include <sys/syscallargs.h>
50
51#include <compat/sparc32/sparc32.h>
52#include <compat/sparc32/sparc32_syscallargs.h>
53
54; Reserved/unimplemented system calls in the range 0-150 inclusive
55; are reserved for use in future Berkeley releases.
56; Additional system calls implemented in vendor and other
57; redistributions should be placed in the reserved range at the end
58; of the current calls.
59
600	INDIR		{ int sys_syscall(int number, ...); }
611	STD		{ void compat_sparc32_exit(int rval); }
622	NOARGS		{ int sys_fork(void); }
633	STD		{ sparc32_ssize_t compat_sparc32_read(int fd, sparc32_voidp buf, sparc32_size_t nbyte); }
644	STD		{ sparc32_ssize_t compat_sparc32_write(int fd, const sparc32_voidp buf, sparc32_size_t nbyte); }
655	STD		{ int compat_sparc32_open(const sparc32_charp path, int flags, ... mode_t mode); }
666	STD		{ int compat_sparc32_close(int fd); }
677	STD		{ int compat_sparc32_wait4(int pid, sparc32_intp status, int options, sparc32_rusagep_t rusage); }
688	COMPAT_43	{ int compat_sparc32_ocreat(const sparc32_charp path, mode_t mode); }
699	STD		{ int compat_sparc32_link(const sparc32_charp path, const sparc32_charp link); }
7010	STD		{ int compat_sparc32_unlink(const sparc32_charp path); }
7111	OBSOL		execv
7212	STD		{ int compat_sparc32_chdir(const sparc32_charp path); }
7313	STD		{ int compat_sparc32_fchdir(int fd); }
7414	STD		{ int compat_sparc32_mknod(const sparc32_charp path, mode_t mode, dev_t dev); }
7515	STD		{ int compat_sparc32_chmod(const sparc32_charp path, mode_t mode); }
7616	STD		{ int compat_sparc32_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
7717	STD		{ int compat_sparc32_break(sparc32_charp nsize); }
7818	STD		{ int compat_sparc32_getfsstat(sparc32_statfsp_t buf, sparc32_long bufsize, int flags); }
7919	COMPAT_43	{ sparc32_long compat_sparc32_olseek(int fd, sparc32_long offset, int whence); }
8020	NOARGS		{ pid_t sys_getpid(void); }
8121	STD		{ int compat_sparc32_mount(const sparc32_charp type, const sparc32_charp path, int flags, sparc32_voidp data); }
8222	STD		{ int compat_sparc32_unmount(const sparc32_charp path, int flags); }
8323	STD		{ int compat_sparc32_setuid(uid_t uid); }
8424	NOARGS		{ uid_t sys_getuid(void); }
8525	NOARGS		{ uid_t sys_geteuid(void); }
8626	STD		{ int compat_sparc32_ptrace(int req, pid_t pid, sparc32_caddr_t addr, int data); }
8727	STD		{ sparc32_ssize_t compat_sparc32_recvmsg(int s, sparc32_msghdrp_t msg, int flags); }
8828	STD		{ sparc32_ssize_t compat_sparc32_sendmsg(int s, const sparc32_msghdrp_t msg, int flags); }
8929	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); }
9030	STD		{ int compat_sparc32_accept(int s, sparc32_sockaddrp_t name, sparc32_intp anamelen); }
9131	STD		{ int compat_sparc32_getpeername(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9232	STD		{ int compat_sparc32_getsockname(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9333	STD		{ int compat_sparc32_access(const sparc32_charp path, int flags); }
9434	STD		{ int compat_sparc32_chflags(const sparc32_charp path, sparc32_u_long flags); }
9535	STD		{ int compat_sparc32_fchflags(int fd, sparc32_u_long flags); }
9636	NOARGS		{ void sys_sync(void); }
9737	STD		{ int compat_sparc32_kill(int pid, int signum); }
9838	COMPAT_43	{ int compat_sparc32_stat43(const sparc32_charp path, sparc32_stat43p_t ub); }
9939	NOARGS		{ pid_t sys_getppid(void); }
10040	COMPAT_43	{ int compat_sparc32_lstat43(const sparc32_charp path, sparc32_stat43p_t ub); }
10141	STD		{ int compat_sparc32_dup(int fd); }
10242	NOARGS		{ int sys_pipe(void); }
10343	NOARGS		{ gid_t sys_getegid(void); }
10444	STD		{ int compat_sparc32_profil(sparc32_caddr_t samples, sparc32_size_t size, sparc32_u_long offset, u_int scale); }
105#ifdef KTRACE
10645	STD		{ int compat_sparc32_ktrace(const sparc32_charp fname, int ops, int facs, int pid); }
107#else
10845	UNIMPL		compat_sparc32_ktrace
109#endif
11046	STD		{ int compat_sparc32_sigaction(int signum, const sparc32_sigactionp_t nsa, sparc32_sigactionp_t osa); }
11147	NOARGS		{ gid_t sys_getgid(void); }
11248	COMPAT_13	{ int compat_sparc32_sigprocmask(int how, \
113			    int mask); } sigprocmask13
11449	STD		{ int compat_sparc32___getlogin(sparc32_charp namebuf, u_int namelen); }
11550	STD		{ int compat_sparc32_setlogin(const sparc32_charp namebuf); }
11651	STD		{ int compat_sparc32_acct(const sparc32_charp path); }
11752	COMPAT_13	{ int sys_sigpending(void); } sigpending13
11853	COMPAT_13	{ int compat_sparc32_sigaltstack13(const sparc32_sigaltstack13p_t nss, sparc32_sigaltstack13p_t oss); }
11954	STD		{ int compat_sparc32_ioctl(int fd, sparc32_u_long com, ... sparc32_voidp data); }
120#ifdef COMPAT_12
12155	COMPAT_12	{ int compat_sparc32_reboot(int opt); }
122#else
12355	OBSOL		oreboot
124#endif
12556	STD		{ int compat_sparc32_revoke(const sparc32_charp path); }
12657	STD		{ int compat_sparc32_symlink(const sparc32_charp path, const sparc32_charp link); }
12758	STD		{ int compat_sparc32_readlink(const sparc32_charp path, sparc32_charp buf, sparc32_size_t count); }
12859	STD		{ int compat_sparc32_execve(const sparc32_charp path, sparc32_charpp argp, sparc32_charpp envp); }
12960	STD		{ mode_t compat_sparc32_umask(mode_t newmask); }
13061	STD		{ int compat_sparc32_chroot(const sparc32_charp path); }
13162	COMPAT_43	{ int compat_sparc32_fstat43(int fd, sparc32_stat43p_t sb); }
13263	COMPAT_43	{ int compat_sparc32_ogetkerninfo(int op, sparc32_charp where, sparc32_intp size, int arg); }
13364	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
13465	COMPAT_12	{ int compat_sparc32_msync(sparc32_caddr_t addr, sparc32_size_t len); }
135; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
13666	NOARGS		{ int sys_vfork(void); }
13767	OBSOL		vread
13868	OBSOL		vwrite
13969	STD		{ int compat_sparc32_sbrk(int incr); }
14070	STD		{ int compat_sparc32_sstk(int incr); }
14171	COMPAT_43	{ int compat_sparc32_ommap(sparc32_caddr_t addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pos); }
14272	STD		{ int compat_sparc32_ovadvise(int anom); } vadvise
14373	STD		{ int compat_sparc32_munmap(sparc32_voidp addr, sparc32_size_t len); }
14474	STD		{ int compat_sparc32_mprotect(sparc32_voidp addr, sparc32_size_t len, int prot); }
14575	STD		{ int compat_sparc32_madvise(sparc32_voidp addr, sparc32_size_t len, int behav); }
14676	OBSOL		vhangup
14777	OBSOL		vlimit
14878	STD		{ int compat_sparc32_mincore(sparc32_caddr_t addr, sparc32_size_t len, sparc32_charp vec); }
14979	STD		{ int compat_sparc32_getgroups(int gidsetsize, sparc32_gid_tp gidset); }
15080	STD		{ int compat_sparc32_setgroups(int gidsetsize, const sparc32_gid_tp gidset); }
15181	NOARGS		{ int sys_getpgrp(void); }
15282	STD		{ int compat_sparc32_setpgid(int pid, int pgid); }
15383	STD		{ int compat_sparc32_setitimer(int which, const sparc32_itimervalp_t itv, sparc32_itimervalp_t oitv); }
15484	COMPAT_43	{ int sys_wait(void); } owait
15585	COMPAT_12	{ int compat_sparc32_oswapon(const sparc32_charp name); }
15686	STD		{ int compat_sparc32_getitimer(int which, sparc32_itimervalp_t itv); }
15787	COMPAT_43	{ int compat_sparc32_ogethostname(sparc32_charp hostname, u_int len); }
15888	COMPAT_43	{ int compat_sparc32_osethostname(sparc32_charp hostname, u_int len); }
15989	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
16090	STD		{ int compat_sparc32_dup2(int from, int to); }
16191	UNIMPL		getdopt
16292	STD		{ int compat_sparc32_fcntl(int fd, int cmd, ... sparc32_voidp arg); }
16393	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); }
16494	UNIMPL		setdopt
16595	STD		{ int compat_sparc32_fsync(int fd); }
16696	STD		{ int compat_sparc32_setpriority(int which, int who, int prio); }
16797	STD		{ int compat_sparc32_socket(int domain, int type, int protocol); }
16898	STD		{ int compat_sparc32_connect(int s, const sparc32_sockaddrp_t name, int namelen); }
16999	COMPAT_43	{ int compat_sparc32_oaccept(int s, sparc32_caddr_t name, sparc32_intp anamelen); }
170100	STD		{ int compat_sparc32_getpriority(int which, int who); }
171101	COMPAT_43	{ int compat_sparc32_osend(int s, sparc32_caddr_t buf, int len, int flags); }
172102	COMPAT_43	{ int compat_sparc32_orecv(int s, sparc32_caddr_t buf, int len, int flags); }
173103	STD		{ int compat_sparc32_sigreturn(sparc32_sigcontextp_t sigcntxp); }
174104	STD		{ int compat_sparc32_bind(int s, const sparc32_sockaddrp_t name, int namelen); }
175105	STD		{ int compat_sparc32_setsockopt(int s, int level, int name, const sparc32_voidp val, int valsize); }
176106	STD		{ int compat_sparc32_listen(int s, int backlog); }
177107	OBSOL		vtimes
178108	COMPAT_43	{ int compat_sparc32_osigvec(int signum, sparc32_sigvecp_t nsv, sparc32_sigvecp_t osv); }
179#ifdef COMPAT_43
180109	COMPAT_43	{ int compat_sparc32_sigblock(int mask); }
181110	COMPAT_43	{ int compat_sparc32_sigsetmask(int mask); }
182#else
183109	OBSOL		sigblock
184110	OBSOL		sigsetmask
185#endif
186111	COMPAT_13	{ int compat_sparc32_sigsuspend(int mask); } sigsuspend13
187112	COMPAT_43	{ int compat_sparc32_osigstack(sparc32_sigstackp_t nss, sparc32_sigstackp_t oss); }
188113	COMPAT_43	{ int compat_sparc32_orecvmsg(int s, sparc32_omsghdrp_t msg, int flags); }
189114	COMPAT_43	{ int compat_sparc32_osendmsg(int s, sparc32_caddr_t msg, int flags); }
190#ifdef TRACE
191115	STD		{ int compat_sparc32_vtrace(int request, int value); }
192#else
193115	OBSOL		vtrace
194#endif
195116	STD		{ int compat_sparc32_gettimeofday(sparc32_timevalp_t tp, sparc32_timezonep_t tzp); }
196117	STD		{ int compat_sparc32_getrusage(int who, sparc32_rusagep_t rusage); }
197118	STD		{ int compat_sparc32_getsockopt(int s, int level, int name, sparc32_voidp val, sparc32_intp avalsize); }
198119	OBSOL		resuba
199120	STD		{ sparc32_ssize_t compat_sparc32_readv(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
200121	STD		{ sparc32_ssize_t compat_sparc32_writev(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
201122	STD		{ int compat_sparc32_settimeofday(const sparc32_timevalp_t tv, const sparc32_timezonep_t tzp); }
202123	STD		{ int compat_sparc32_fchown(int fd, uid_t uid, gid_t gid); }
203124	STD		{ int compat_sparc32_fchmod(int fd, mode_t mode); }
204125	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); }
205126	STD		{ int compat_sparc32_setreuid(uid_t ruid, uid_t euid); }
206127	STD		{ int compat_sparc32_setregid(gid_t rgid, gid_t egid); }
207128	STD		{ int compat_sparc32_rename(const sparc32_charp from, const sparc32_charp to); }
208129	COMPAT_43	{ int compat_sparc32_otruncate(const sparc32_charp path, sparc32_long length); }
209130	COMPAT_43	{ int compat_sparc32_oftruncate(int fd, sparc32_long length); }
210131	STD		{ int compat_sparc32_flock(int fd, int how); }
211132	STD		{ int compat_sparc32_mkfifo(const sparc32_charp path, mode_t mode); }
212133	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); }
213134	STD		{ int compat_sparc32_shutdown(int s, int how); }
214135	STD		{ int compat_sparc32_socketpair(int domain, int type, int protocol, sparc32_intp rsv); }
215136	STD		{ int compat_sparc32_mkdir(const sparc32_charp path, mode_t mode); }
216137	STD		{ int compat_sparc32_rmdir(const sparc32_charp path); }
217138	STD		{ int compat_sparc32_utimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
218139	OBSOL		4.2 sigreturn
219140	STD		{ int compat_sparc32_adjtime(const sparc32_timevalp_t delta, sparc32_timevalp_t olddelta); }
220141	COMPAT_43	{ int compat_sparc32_ogetpeername(int fdes, sparc32_caddr_t asa, sparc32_intp alen); }
221142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
222#ifdef COMPAT_43
223143	COMPAT_43	{ int compat_sparc32_sethostid(int32_t hostid); }
224#else
225143	OBSOL		sethostid
226#endif
227144	COMPAT_43	{ int compat_sparc32_ogetrlimit(int which, sparc32_orlimitp_t rlp); }
228145	COMPAT_43	{ int compat_sparc32_osetrlimit(int which, const sparc32_orlimitp_t rlp); }
229#ifdef COMPAT_43
230146	COMPAT_43	{ int compat_sparc32_killpg(int pgid, int signum); }
231#else
232146	OBSOL		killpg
233#endif
234147	NOARGS		{ int sys_setsid(void); }
235148	STD		{ int compat_sparc32_quotactl(const sparc32_charp path, int cmd, int uid, sparc32_caddr_t arg); }
236149	COMPAT_43	{ int sys_quota(void); } oquota
237150	COMPAT_43	{ int compat_sparc32_ogetsockname(int fdec, sparc32_caddr_t asa, sparc32_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)
248155	STD		{ int compat_sparc32_nfssvc(int flag, sparc32_voidp argp); }
249#else
250155	UNIMPL
251#endif
252156	COMPAT_43	{ int compat_sparc32_ogetdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
253157	STD		{ int compat_sparc32_statfs(const sparc32_charp path, sparc32_statfsp_t buf); }
254158	STD		{ int compat_sparc32_fstatfs(int fd, sparc32_statfsp_t buf); }
255159	UNIMPL
256160	UNIMPL
257#if defined(NFS) || defined(NFSSERVER)
258161	STD		{ int compat_sparc32_getfh(const sparc32_charp fname, sparc32_fhandlep_t fhp); }
259#else
260161	UNIMPL		compat_sparc32_getfh
261#endif
262162	COMPAT_09	{ int compat_sparc32_ogetdomainname(sparc32_charp domainname, int len); }
263163	COMPAT_09	{ int compat_sparc32_osetdomainname(sparc32_charp domainname, int len); }
264164	COMPAT_09	{ int compat_sparc32_uname(sparc32_outsnamep_t name); }
265165	STD		{ int compat_sparc32_sysarch(int op, sparc32_voidp parms); }
266166	UNIMPL
267167	UNIMPL
268168	UNIMPL
269; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
270#if defined(SYSVSEM) && !defined(alpha)
271169	STD		{ int compat_sparc32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
272#else
273169	UNIMPL		1.0 semsys
274#endif
275; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
276#if defined(SYSVMSG) && !defined(alpha)
277170	STD		{ int compat_sparc32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
278#else
279170	UNIMPL		1.0 msgsys
280#endif
281; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
282#if defined(SYSVSHM) && !defined(alpha)
283171	STD		{ int compat_sparc32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
284#else
285171	UNIMPL		1.0 shmsys
286#endif
287172	UNIMPL
288173	STD		{ sparc32_ssize_t compat_sparc32_pread(int fd, sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
289174	STD		{ sparc32_ssize_t compat_sparc32_pwrite(int fd, const sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
290#ifdef NTP
291175	STD		{ int compat_sparc32_ntp_gettime(sparc32_ntptimevalp_t ntvp); }
292176	STD		{ int compat_sparc32_ntp_adjtime(sparc32_timexp_t tp); }
293#else
294175	UNIMPL		compat_sparc32_ntp_gettime
295176	UNIMPL		compat_sparc32_ntp_adjtime
296#endif
297177	UNIMPL
298178	UNIMPL
299179	UNIMPL
300180	UNIMPL
301
302; Syscalls 180-199 are used by/reserved for BSD
303181	STD		{ int compat_sparc32_setgid(gid_t gid); }
304182	STD		{ int compat_sparc32_setegid(gid_t egid); }
305183	STD		{ int compat_sparc32_seteuid(uid_t euid); }
306#ifdef LFS
307184	STD		{ int compat_sparc32_lfs_bmapv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
308185	STD		{ int compat_sparc32_lfs_markv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
309186	STD		{ int compat_sparc32_lfs_segclean(sparc32_fsid_tp_t fsidp, sparc32_u_long segment); }
310187	STD		{ int compat_sparc32_lfs_segwait(sparc32_fsid_tp_t fsidp, sparc32_timevalp_t tv); }
311#else
312184	UNIMPL
313185	UNIMPL
314186	UNIMPL
315187	UNIMPL
316#endif
317188	COMPAT_12	{ int compat_sparc32_stat12(const sparc32_charp path, sparc32_stat12p_t ub); }
318189	COMPAT_12	{ int compat_sparc32_fstat12(int fd, sparc32_stat12p_t sb); }
319190	COMPAT_12	{ int compat_sparc32_lstat12(const sparc32_charp path, sparc32_stat12p_t ub); }
320191	STD		{ sparc32_long compat_sparc32_pathconf(const sparc32_charp path, int name); }
321192	STD		{ sparc32_long compat_sparc32_fpathconf(int fd, int name); }
322193	UNIMPL
323194	STD		{ int compat_sparc32_getrlimit(int which, sparc32_rlimitp_t rlp); }
324195	STD		{ int compat_sparc32_setrlimit(int which, const sparc32_rlimitp_t rlp); }
325196	COMPAT_12	{ int compat_sparc32_getdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
326197	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); }
327198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
328199	STD		{ off_t compat_sparc32_lseek(int fd, int pad, off_t offset, int whence); }
329200	STD		{ int compat_sparc32_truncate(const sparc32_charp path, int pad, off_t length); }
330201	STD		{ int compat_sparc32_ftruncate(int fd, int pad, off_t length); }
331202	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); }
332203	STD		{ int compat_sparc32_mlock(const sparc32_voidp addr, sparc32_size_t len); }
333204	STD		{ int compat_sparc32_munlock(const sparc32_voidp addr, sparc32_size_t len); }
334205	STD		{ int compat_sparc32_undelete(const sparc32_charp path); }
335206	STD		{ int compat_sparc32_futimes(int fd, const sparc32_timevalp_t tptr); }
336207	STD		{ int compat_sparc32_getpgid(pid_t pid); }
337208	STD		{ int compat_sparc32_reboot(int opt, sparc32_charp bootstr); }
338209	STD		{ int compat_sparc32_poll(sparc32_pollfdp_t fds, u_int nfds, int timeout); }
339;
340; Syscalls 210-219 are reserved for dynamically loaded syscalls
341;
342#ifdef LKM
343210	NODEF		{ int sys_lkmnosys(void); }
344211	NODEF		{ int sys_lkmnosys(void); }
345212	NODEF		{ int sys_lkmnosys(void); }
346213	NODEF		{ int sys_lkmnosys(void); }
347214	NODEF		{ int sys_lkmnosys(void); }
348215	NODEF		{ int sys_lkmnosys(void); }
349216	NODEF		{ int sys_lkmnosys(void); }
350217	NODEF		{ int sys_lkmnosys(void); }
351218	NODEF		{ int sys_lkmnosys(void); }
352219	NODEF		{ int sys_lkmnosys(void); }
353#else	/* !LKM */
354210	UNIMPL
355211	UNIMPL
356212	UNIMPL
357213	UNIMPL
358214	UNIMPL
359215	UNIMPL
360216	UNIMPL
361217	UNIMPL
362218	UNIMPL
363219	UNIMPL
364#endif	/* !LKM */
365; System calls 220-300 are reserved for use by NetBSD
366#ifdef SYSVSEM
367220	STD		{ int compat_sparc32___semctl(int semid, int semnum, int cmd, sparc32_semunu_t arg); }
368221	STD		{ int compat_sparc32_semget(sparc32_key_t key, int nsems, int semflg); }
369222	STD		{ int compat_sparc32_semop(int semid, sparc32_sembufp_t sops, sparc32_size_t nsops); }
370223	STD		{ int compat_sparc32_semconfig(int flag); }
371#else
372220	UNIMPL		compat_sparc32_semctl
373221	UNIMPL		compat_sparc32_semget
374222	UNIMPL		compat_sparc32_semop
375223	UNIMPL		compat_sparc32_semconfig
376#endif
377#ifdef SYSVMSG
378224	STD		{ int compat_sparc32_msgctl(int msqid, int cmd, sparc32_msqid_dsp_t buf); }
379225	STD		{ int compat_sparc32_msgget(sparc32_key_t key, int msgflg); }
380226	STD		{ int compat_sparc32_msgsnd(int msqid, const sparc32_voidp msgp, sparc32_size_t msgsz, int msgflg); }
381227	STD		{ sparc32_ssize_t compat_sparc32_msgrcv(int msqid, sparc32_voidp msgp, sparc32_size_t msgsz, sparc32_long msgtyp, int msgflg); }
382#else
383224	UNIMPL		compat_sparc32_msgctl
384225	UNIMPL		compat_sparc32_msgget
385226	UNIMPL		compat_sparc32_msgsnd
386227	UNIMPL		compat_sparc32_msgrcv
387#endif
388#ifdef SYSVSHM
389228	STD		{ sparc32_voidp compat_sparc32_shmat(int shmid, const sparc32_voidp shmaddr, int shmflg); }
390229	STD		{ int compat_sparc32_shmctl(int shmid, int cmd, sparc32_shmid_dsp_t buf); }
391230	STD		{ int compat_sparc32_shmdt(const sparc32_voidp shmaddr); }
392231	STD		{ int compat_sparc32_shmget(sparc32_key_t key, sparc32_size_t size, int shmflg); }
393#else
394228	UNIMPL		compat_sparc32_shmat
395229	UNIMPL		compat_sparc32_shmctl
396230	UNIMPL		compat_sparc32_shmdt
397231	UNIMPL		compat_sparc32_shmget
398#endif
399232	STD		{ int compat_sparc32_clock_gettime(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
400233	STD		{ int compat_sparc32_clock_settime(sparc32_clockid_t clock_id, const sparc32_timespecp_t tp); }
401234	STD		{ int compat_sparc32_clock_getres(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
402235	UNIMPL		timer_create
403236	UNIMPL		timer_delete
404237	UNIMPL		timer_settime
405238	UNIMPL		timer_gettime
406239	UNIMPL		timer_getoverrun
407;
408; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
409;
410240	STD		{ int compat_sparc32_nanosleep(const sparc32_timespecp_t rqtp, sparc32_timespecp_t rmtp); }
411241	STD		{ int compat_sparc32_fdatasync(int fd); }
412242	UNIMPL
413243	UNIMPL
414244	UNIMPL
415245	UNIMPL
416246	UNIMPL
417247	UNIMPL
418248	UNIMPL
419249	UNIMPL
420250	UNIMPL
421251	UNIMPL
422252	UNIMPL
423253	UNIMPL
424254	UNIMPL
425255	UNIMPL
426256	UNIMPL
427257	UNIMPL
428258	UNIMPL
429259	UNIMPL
430260	UNIMPL
431261	UNIMPL
432262	UNIMPL
433263	UNIMPL
434264	UNIMPL
435265	UNIMPL
436266	UNIMPL
437267	UNIMPL
438268	UNIMPL
439269	UNIMPL
440270	STD		{ int compat_sparc32___posix_rename(const sparc32_charp from, const sparc32_charp to); }
441271	STD		{ int compat_sparc32_swapctl(int cmd, const sparc32_voidp arg, int misc); }
442272	STD		{ int compat_sparc32_getdents(int fd, sparc32_charp buf, sparc32_size_t count); }
443273	STD		{ int compat_sparc32_minherit(sparc32_voidp addr, sparc32_size_t len, int inherit); }
444274	STD		{ int compat_sparc32_lchmod(const sparc32_charp path, mode_t mode); }
445275	STD		{ int compat_sparc32_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
446276	STD		{ int compat_sparc32_lutimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
447277	STD		{ int compat_sparc32___msync13(sparc32_voidp addr, sparc32_size_t len, int flags); }
448278	STD		{ int compat_sparc32___stat13(const sparc32_charp path, sparc32_statp_t ub); }
449279	STD		{ int compat_sparc32___fstat13(int fd, sparc32_statp_t sb); }
450280	STD		{ int compat_sparc32___lstat13(const sparc32_charp path, sparc32_statp_t ub); }
451281	STD		{ int compat_sparc32___sigaltstack14(const sparc32_sigaltstackp_t nss, sparc32_sigaltstackp_t oss); }
452282	NOARGS		{ int sys___vfork14(void); }
453283	STD		{ int compat_sparc32___posix_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
454284	STD		{ int compat_sparc32___posix_fchown(int fd, uid_t uid, gid_t gid); }
455285	STD		{ int compat_sparc32___posix_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
456286	STD		{ pid_t compat_sparc32_getsid(pid_t pid); }
457287	UNIMPL
458#ifdef KTRACE
459288	STD		{ int compat_sparc32_fktrace(const int fd, int ops, int facs, int pid); }
460#else
461288	UNIMPL
462#endif
463289	STD		{ sparc32_ssize_t compat_sparc32_preadv(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
464290	STD		{ sparc32_ssize_t compat_sparc32_pwritev(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
465