syscalls.master revision 1.5
1	$NetBSD: syscalls.master,v 1.5 1998/12/10 17:03:20 christos Exp $
2
3;	from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
4;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
5
6; NetBSD system call name/number "master" file.
7; (See syscalls.conf to see what it is processed into.)
8;
9; Fields: number type [type-dependent ...]
10;	number	system call number, must be in order
11;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
12;		the compatibility options defined in syscalls.conf.
13;
14; types:
15;	STD	always included
16;	OBSOL	obsolete, not included in system
17;	UNIMPL	unimplemented, not included in system
18;	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#include "opt_sysv.h"
42#include "opt_compat_43.h"
43
44#include "fs_lfs.h"
45#include "fs_nfs.h"
46
47#include <sys/param.h>
48#include <sys/systm.h>
49#include <sys/signal.h>
50#include <sys/mount.h>
51#include <sys/syscallargs.h>
52
53#include <compat/sparc32/sparc32.h>
54#include <compat/sparc32/sparc32_syscallargs.h>
55
56; Reserved/unimplemented system calls in the range 0-150 inclusive
57; are reserved for use in future Berkeley releases.
58; Additional system calls implemented in vendor and other
59; redistributions should be placed in the reserved range at the end
60; of the current calls.
61
620	INDIR		{ int sys_syscall(int number, ...); }
631	STD		{ void compat_sparc32_exit(int rval); }
642	NOARGS		{ int sys_fork(void); }
653	STD		{ sparc32_ssize_t compat_sparc32_read(int fd, sparc32_voidp buf, sparc32_size_t nbyte); }
664	STD		{ sparc32_ssize_t compat_sparc32_write(int fd, const sparc32_voidp buf, sparc32_size_t nbyte); }
675	STD		{ int compat_sparc32_open(const sparc32_charp path, int flags, ... mode_t mode); }
686	STD		{ int compat_sparc32_close(int fd); }
697	STD		{ int compat_sparc32_wait4(int pid, sparc32_intp status, int options, sparc32_rusagep_t rusage); }
708	COMPAT_43	{ int compat_sparc32_ocreat(const sparc32_charp path, mode_t mode); }
719	STD		{ int compat_sparc32_link(const sparc32_charp path, const sparc32_charp link); }
7210	STD		{ int compat_sparc32_unlink(const sparc32_charp path); }
7311	OBSOL		execv
7412	STD		{ int compat_sparc32_chdir(const sparc32_charp path); }
7513	STD		{ int compat_sparc32_fchdir(int fd); }
7614	STD		{ int compat_sparc32_mknod(const sparc32_charp path, mode_t mode, dev_t dev); }
7715	STD		{ int compat_sparc32_chmod(const sparc32_charp path, mode_t mode); }
7816	STD		{ int compat_sparc32_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
7917	STD		{ int compat_sparc32_break(sparc32_charp nsize); }
8018	STD		{ int compat_sparc32_getfsstat(sparc32_statfsp_t buf, sparc32_long bufsize, int flags); }
8119	COMPAT_43	{ sparc32_long compat_sparc32_olseek(int fd, sparc32_long offset, int whence); }
8220	NOARGS		{ pid_t sys_getpid(void); }
8321	STD		{ int compat_sparc32_mount(const sparc32_charp type, const sparc32_charp path, int flags, sparc32_voidp data); }
8422	STD		{ int compat_sparc32_unmount(const sparc32_charp path, int flags); }
8523	STD		{ int compat_sparc32_setuid(uid_t uid); }
8624	NOARGS		{ uid_t sys_getuid(void); }
8725	NOARGS		{ uid_t sys_geteuid(void); }
8826	STD		{ int compat_sparc32_ptrace(int req, pid_t pid, sparc32_caddr_t addr, int data); }
8927	STD		{ sparc32_ssize_t compat_sparc32_recvmsg(int s, sparc32_msghdrp_t msg, int flags); }
9028	STD		{ sparc32_ssize_t compat_sparc32_sendmsg(int s, const sparc32_msghdrp_t msg, int flags); }
9129	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); }
9230	STD		{ int compat_sparc32_accept(int s, sparc32_sockaddrp_t name, sparc32_intp anamelen); }
9331	STD		{ int compat_sparc32_getpeername(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9432	STD		{ int compat_sparc32_getsockname(int fdes, sparc32_sockaddrp_t asa, sparc32_intp alen); }
9533	STD		{ int compat_sparc32_access(const sparc32_charp path, int flags); }
9634	STD		{ int compat_sparc32_chflags(const sparc32_charp path, sparc32_u_long flags); }
9735	STD		{ int compat_sparc32_fchflags(int fd, sparc32_u_long flags); }
9836	NOARGS		{ void sys_sync(void); }
9937	STD		{ int compat_sparc32_kill(int pid, int signum); }
10038	COMPAT_43	{ int compat_sparc32_stat43(const sparc32_charp path, sparc32_stat43p_t ub); }
10139	NOARGS		{ pid_t sys_getppid(void); }
10240	COMPAT_43	{ int compat_sparc32_lstat43(const sparc32_charp path, sparc32_stat43p_t ub); }
10341	STD		{ int compat_sparc32_dup(int fd); }
10442	NOARGS		{ int sys_pipe(void); }
10543	NOARGS		{ gid_t sys_getegid(void); }
10644	STD		{ int compat_sparc32_profil(sparc32_caddr_t samples, sparc32_size_t size, sparc32_u_long offset, u_int scale); }
107#ifdef KTRACE
10845	STD		{ int compat_sparc32_ktrace(const sparc32_charp fname, int ops, int facs, int pid); }
109#else
11045	UNIMPL		compat_sparc32_ktrace
111#endif
11246	STD		{ int compat_sparc32_sigaction(int signum, const sparc32_sigactionp_t nsa, sparc32_sigactionp_t osa); }
11347	NOARGS		{ gid_t sys_getgid(void); }
11448	COMPAT_13	{ int compat_sparc32_sigprocmask(int how, \
115			    int mask); } sigprocmask13
11649	STD		{ int compat_sparc32___getlogin(sparc32_charp namebuf, u_int namelen); }
11750	STD		{ int compat_sparc32_setlogin(const sparc32_charp namebuf); }
11851	STD		{ int compat_sparc32_acct(const sparc32_charp path); }
11952	COMPAT_13	{ int sys_sigpending(void); } sigpending13
12053	COMPAT_13	{ int compat_sparc32_sigaltstack13(const sparc32_sigaltstack13p_t nss, sparc32_sigaltstack13p_t oss); }
12154	STD		{ int compat_sparc32_ioctl(int fd, sparc32_u_long com, ... sparc32_voidp data); }
122#ifdef COMPAT_12
12355	COMPAT_12	{ int compat_sparc32_reboot(int opt); }
124#else
12555	OBSOL		oreboot
126#endif
12756	STD		{ int compat_sparc32_revoke(const sparc32_charp path); }
12857	STD		{ int compat_sparc32_symlink(const sparc32_charp path, const sparc32_charp link); }
12958	STD		{ int compat_sparc32_readlink(const sparc32_charp path, sparc32_charp buf, sparc32_size_t count); }
13059	STD		{ int compat_sparc32_execve(const sparc32_charp path, sparc32_charpp argp, sparc32_charpp envp); }
13160	STD		{ mode_t compat_sparc32_umask(mode_t newmask); }
13261	STD		{ int compat_sparc32_chroot(const sparc32_charp path); }
13362	COMPAT_43	{ int compat_sparc32_fstat43(int fd, sparc32_stat43p_t sb); }
13463	COMPAT_43	{ int compat_sparc32_ogetkerninfo(int op, sparc32_charp where, sparc32_intp size, int arg); }
13564	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
13665	COMPAT_12	{ int compat_sparc32_msync(sparc32_caddr_t addr, sparc32_size_t len); }
137; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
13866	NOARGS		{ int sys_vfork(void); }
13967	OBSOL		vread
14068	OBSOL		vwrite
14169	STD		{ int compat_sparc32_sbrk(int incr); }
14270	STD		{ int compat_sparc32_sstk(int incr); }
14371	COMPAT_43	{ int compat_sparc32_ommap(sparc32_caddr_t addr, sparc32_size_t len, int prot, int flags, int fd, sparc32_long pos); }
14472	STD		{ int compat_sparc32_ovadvise(int anom); } vadvise
14573	STD		{ int compat_sparc32_munmap(sparc32_voidp addr, sparc32_size_t len); }
14674	STD		{ int compat_sparc32_mprotect(sparc32_voidp addr, sparc32_size_t len, int prot); }
14775	STD		{ int compat_sparc32_madvise(sparc32_voidp addr, sparc32_size_t len, int behav); }
14876	OBSOL		vhangup
14977	OBSOL		vlimit
15078	STD		{ int compat_sparc32_mincore(sparc32_caddr_t addr, sparc32_size_t len, sparc32_charp vec); }
15179	STD		{ int compat_sparc32_getgroups(int gidsetsize, sparc32_gid_tp gidset); }
15280	STD		{ int compat_sparc32_setgroups(int gidsetsize, const sparc32_gid_tp gidset); }
15381	NOARGS		{ int sys_getpgrp(void); }
15482	STD		{ int compat_sparc32_setpgid(int pid, int pgid); }
15583	STD		{ int compat_sparc32_setitimer(int which, const sparc32_itimervalp_t itv, sparc32_itimervalp_t oitv); }
15684	COMPAT_43	{ int sys_wait(void); } owait
15785	COMPAT_12	{ int compat_sparc32_oswapon(const sparc32_charp name); }
15886	STD		{ int compat_sparc32_getitimer(int which, sparc32_itimervalp_t itv); }
15987	COMPAT_43	{ int compat_sparc32_ogethostname(sparc32_charp hostname, u_int len); }
16088	COMPAT_43	{ int compat_sparc32_osethostname(sparc32_charp hostname, u_int len); }
16189	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
16290	STD		{ int compat_sparc32_dup2(int from, int to); }
16391	UNIMPL		getdopt
16492	STD		{ int compat_sparc32_fcntl(int fd, int cmd, ... sparc32_voidp arg); }
16593	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); }
16694	UNIMPL		setdopt
16795	STD		{ int compat_sparc32_fsync(int fd); }
16896	STD		{ int compat_sparc32_setpriority(int which, int who, int prio); }
16997	STD		{ int compat_sparc32_socket(int domain, int type, int protocol); }
17098	STD		{ int compat_sparc32_connect(int s, const sparc32_sockaddrp_t name, int namelen); }
17199	COMPAT_43	{ int compat_sparc32_oaccept(int s, sparc32_caddr_t name, sparc32_intp anamelen); }
172100	STD		{ int compat_sparc32_getpriority(int which, int who); }
173101	COMPAT_43	{ int compat_sparc32_osend(int s, sparc32_caddr_t buf, int len, int flags); }
174102	COMPAT_43	{ int compat_sparc32_orecv(int s, sparc32_caddr_t buf, int len, int flags); }
175103	STD		{ int compat_sparc32_sigreturn(sparc32_sigcontextp_t sigcntxp); }
176104	STD		{ int compat_sparc32_bind(int s, const sparc32_sockaddrp_t name, int namelen); }
177105	STD		{ int compat_sparc32_setsockopt(int s, int level, int name, const sparc32_voidp val, int valsize); }
178106	STD		{ int compat_sparc32_listen(int s, int backlog); }
179107	OBSOL		vtimes
180108	COMPAT_43	{ int compat_sparc32_osigvec(int signum, sparc32_sigvecp_t nsv, sparc32_sigvecp_t osv); }
181#ifdef COMPAT_43
182109	COMPAT_43	{ int compat_sparc32_sigblock(int mask); }
183110	COMPAT_43	{ int compat_sparc32_sigsetmask(int mask); }
184#else
185109	OBSOL		sigblock
186110	OBSOL		sigsetmask
187#endif
188111	COMPAT_13	{ int compat_sparc32_sigsuspend(int mask); } sigsuspend13
189112	COMPAT_43	{ int compat_sparc32_osigstack(sparc32_sigstackp_t nss, sparc32_sigstackp_t oss); }
190113	COMPAT_43	{ int compat_sparc32_orecvmsg(int s, sparc32_omsghdrp_t msg, int flags); }
191114	COMPAT_43	{ int compat_sparc32_osendmsg(int s, sparc32_caddr_t msg, int flags); }
192#ifdef TRACE
193115	STD		{ int compat_sparc32_vtrace(int request, int value); }
194#else
195115	OBSOL		vtrace
196#endif
197116	STD		{ int compat_sparc32_gettimeofday(sparc32_timevalp_t tp, sparc32_timezonep_t tzp); }
198117	STD		{ int compat_sparc32_getrusage(int who, sparc32_rusagep_t rusage); }
199118	STD		{ int compat_sparc32_getsockopt(int s, int level, int name, sparc32_voidp val, sparc32_intp avalsize); }
200119	OBSOL		resuba
201120	STD		{ sparc32_ssize_t compat_sparc32_readv(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
202121	STD		{ sparc32_ssize_t compat_sparc32_writev(int fd, const sparc32_iovecp_t iovp, int iovcnt); }
203122	STD		{ int compat_sparc32_settimeofday(const sparc32_timevalp_t tv, const sparc32_timezonep_t tzp); }
204123	STD		{ int compat_sparc32_fchown(int fd, uid_t uid, gid_t gid); }
205124	STD		{ int compat_sparc32_fchmod(int fd, mode_t mode); }
206125	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); }
207126	STD		{ int compat_sparc32_setreuid(uid_t ruid, uid_t euid); }
208127	STD		{ int compat_sparc32_setregid(gid_t rgid, gid_t egid); }
209128	STD		{ int compat_sparc32_rename(const sparc32_charp from, const sparc32_charp to); }
210129	COMPAT_43	{ int compat_sparc32_otruncate(const sparc32_charp path, sparc32_long length); }
211130	COMPAT_43	{ int compat_sparc32_oftruncate(int fd, sparc32_long length); }
212131	STD		{ int compat_sparc32_flock(int fd, int how); }
213132	STD		{ int compat_sparc32_mkfifo(const sparc32_charp path, mode_t mode); }
214133	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); }
215134	STD		{ int compat_sparc32_shutdown(int s, int how); }
216135	STD		{ int compat_sparc32_socketpair(int domain, int type, int protocol, sparc32_intp rsv); }
217136	STD		{ int compat_sparc32_mkdir(const sparc32_charp path, mode_t mode); }
218137	STD		{ int compat_sparc32_rmdir(const sparc32_charp path); }
219138	STD		{ int compat_sparc32_utimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
220139	OBSOL		4.2 sigreturn
221140	STD		{ int compat_sparc32_adjtime(const sparc32_timevalp_t delta, sparc32_timevalp_t olddelta); }
222141	COMPAT_43	{ int compat_sparc32_ogetpeername(int fdes, sparc32_caddr_t asa, sparc32_intp alen); }
223142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
224#ifdef COMPAT_43
225143	COMPAT_43	{ int compat_sparc32_sethostid(int32_t hostid); }
226#else
227143	OBSOL		sethostid
228#endif
229144	COMPAT_43	{ int compat_sparc32_ogetrlimit(int which, sparc32_orlimitp_t rlp); }
230145	COMPAT_43	{ int compat_sparc32_osetrlimit(int which, const sparc32_orlimitp_t rlp); }
231#ifdef COMPAT_43
232146	COMPAT_43	{ int compat_sparc32_killpg(int pgid, int signum); }
233#else
234146	OBSOL		killpg
235#endif
236147	NOARGS		{ int sys_setsid(void); }
237148	STD		{ int compat_sparc32_quotactl(const sparc32_charp path, int cmd, int uid, sparc32_caddr_t arg); }
238149	COMPAT_43	{ int sys_quota(void); } oquota
239150	COMPAT_43	{ int compat_sparc32_ogetsockname(int fdec, sparc32_caddr_t asa, sparc32_intp alen); }
240
241; Syscalls 151-180 inclusive are reserved for vendor-specific
242; system calls.  (This includes various calls added for compatibity
243; with other Unix variants.)
244; Some of these calls are now supported by BSD...
245151	UNIMPL
246152	UNIMPL
247153	UNIMPL
248154	UNIMPL
249#if defined(NFS) || defined(NFSSERVER)
250155	STD		{ int compat_sparc32_nfssvc(int flag, sparc32_voidp argp); }
251#else
252155	UNIMPL
253#endif
254156	COMPAT_43	{ int compat_sparc32_ogetdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
255157	STD		{ int compat_sparc32_statfs(const sparc32_charp path, sparc32_statfsp_t buf); }
256158	STD		{ int compat_sparc32_fstatfs(int fd, sparc32_statfsp_t buf); }
257159	UNIMPL
258160	UNIMPL
259#if defined(NFS) || defined(NFSSERVER)
260161	STD		{ int compat_sparc32_getfh(const sparc32_charp fname, sparc32_fhandlep_t fhp); }
261#else
262161	UNIMPL		compat_sparc32_getfh
263#endif
264162	COMPAT_09	{ int compat_sparc32_ogetdomainname(sparc32_charp domainname, int len); }
265163	COMPAT_09	{ int compat_sparc32_osetdomainname(sparc32_charp domainname, int len); }
266164	COMPAT_09	{ int compat_sparc32_uname(sparc32_outsnamep_t name); }
267165	STD		{ int compat_sparc32_sysarch(int op, sparc32_voidp parms); }
268166	UNIMPL
269167	UNIMPL
270168	UNIMPL
271; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
272#if defined(SYSVSEM) && !defined(alpha)
273169	STD		{ int compat_sparc32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
274#else
275169	UNIMPL		1.0 semsys
276#endif
277; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
278#if defined(SYSVMSG) && !defined(alpha)
279170	STD		{ int compat_sparc32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
280#else
281170	UNIMPL		1.0 msgsys
282#endif
283; XXX more generally, never on machines where sizeof(sparc32_voidp ) != sizeof(int)
284#if defined(SYSVSHM) && !defined(alpha)
285171	STD		{ int compat_sparc32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
286#else
287171	UNIMPL		1.0 shmsys
288#endif
289172	UNIMPL
290173	STD		{ sparc32_ssize_t compat_sparc32_pread(int fd, sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
291174	STD		{ sparc32_ssize_t compat_sparc32_pwrite(int fd, const sparc32_voidp buf, sparc32_size_t nbyte, int pad, off_t offset); }
292#ifdef NTP
293175	STD		{ int compat_sparc32_ntp_gettime(sparc32_ntptimevalp_t ntvp); }
294176	STD		{ int compat_sparc32_ntp_adjtime(sparc32_timexp_t tp); }
295#else
296175	UNIMPL		compat_sparc32_ntp_gettime
297176	UNIMPL		compat_sparc32_ntp_adjtime
298#endif
299177	UNIMPL
300178	UNIMPL
301179	UNIMPL
302180	UNIMPL
303
304; Syscalls 180-199 are used by/reserved for BSD
305181	STD		{ int compat_sparc32_setgid(gid_t gid); }
306182	STD		{ int compat_sparc32_setegid(gid_t egid); }
307183	STD		{ int compat_sparc32_seteuid(uid_t euid); }
308#ifdef LFS
309184	STD		{ int compat_sparc32_lfs_bmapv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
310185	STD		{ int compat_sparc32_lfs_markv(sparc32_fsid_tp_t fsidp, sparc32_block_infop_t blkiov, int blkcnt); }
311186	STD		{ int compat_sparc32_lfs_segclean(sparc32_fsid_tp_t fsidp, sparc32_u_long segment); }
312187	STD		{ int compat_sparc32_lfs_segwait(sparc32_fsid_tp_t fsidp, sparc32_timevalp_t tv); }
313#else
314184	UNIMPL
315185	UNIMPL
316186	UNIMPL
317187	UNIMPL
318#endif
319188	COMPAT_12	{ int compat_sparc32_stat12(const sparc32_charp path, sparc32_stat12p_t ub); }
320189	COMPAT_12	{ int compat_sparc32_fstat12(int fd, sparc32_stat12p_t sb); }
321190	COMPAT_12	{ int compat_sparc32_lstat12(const sparc32_charp path, sparc32_stat12p_t ub); }
322191	STD		{ sparc32_long compat_sparc32_pathconf(const sparc32_charp path, int name); }
323192	STD		{ sparc32_long compat_sparc32_fpathconf(int fd, int name); }
324193	UNIMPL
325194	STD		{ int compat_sparc32_getrlimit(int which, sparc32_rlimitp_t rlp); }
326195	STD		{ int compat_sparc32_setrlimit(int which, const sparc32_rlimitp_t rlp); }
327196	COMPAT_12	{ int compat_sparc32_getdirentries(int fd, sparc32_charp buf, u_int count, sparc32_longp basep); }
328197	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); }
329198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
330199	STD		{ off_t compat_sparc32_lseek(int fd, int pad, off_t offset, int whence); }
331200	STD		{ int compat_sparc32_truncate(const sparc32_charp path, int pad, off_t length); }
332201	STD		{ int compat_sparc32_ftruncate(int fd, int pad, off_t length); }
333202	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); }
334203	STD		{ int compat_sparc32_mlock(const sparc32_voidp addr, sparc32_size_t len); }
335204	STD		{ int compat_sparc32_munlock(const sparc32_voidp addr, sparc32_size_t len); }
336205	STD		{ int compat_sparc32_undelete(const sparc32_charp path); }
337206	STD		{ int compat_sparc32_futimes(int fd, const sparc32_timevalp_t tptr); }
338207	STD		{ int compat_sparc32_getpgid(pid_t pid); }
339208	STD		{ int compat_sparc32_reboot(int opt, sparc32_charp bootstr); }
340209	STD		{ int compat_sparc32_poll(sparc32_pollfdp_t fds, u_int nfds, int timeout); }
341;
342; Syscalls 210-219 are reserved for dynamically loaded syscalls
343;
344#ifdef LKM
345210	NODEF		{ int sys_lkmnosys(void); }
346211	NODEF		{ int sys_lkmnosys(void); }
347212	NODEF		{ int sys_lkmnosys(void); }
348213	NODEF		{ int sys_lkmnosys(void); }
349214	NODEF		{ int sys_lkmnosys(void); }
350215	NODEF		{ int sys_lkmnosys(void); }
351216	NODEF		{ int sys_lkmnosys(void); }
352217	NODEF		{ int sys_lkmnosys(void); }
353218	NODEF		{ int sys_lkmnosys(void); }
354219	NODEF		{ int sys_lkmnosys(void); }
355#else	/* !LKM */
356210	UNIMPL
357211	UNIMPL
358212	UNIMPL
359213	UNIMPL
360214	UNIMPL
361215	UNIMPL
362216	UNIMPL
363217	UNIMPL
364218	UNIMPL
365219	UNIMPL
366#endif	/* !LKM */
367; System calls 220-300 are reserved for use by NetBSD
368#ifdef SYSVSEM
369220	STD		{ int compat_sparc32___semctl(int semid, int semnum, int cmd, sparc32_semunu_t arg); }
370221	STD		{ int compat_sparc32_semget(sparc32_key_t key, int nsems, int semflg); }
371222	STD		{ int compat_sparc32_semop(int semid, sparc32_sembufp_t sops, sparc32_size_t nsops); }
372223	STD		{ int compat_sparc32_semconfig(int flag); }
373#else
374220	UNIMPL		compat_sparc32_semctl
375221	UNIMPL		compat_sparc32_semget
376222	UNIMPL		compat_sparc32_semop
377223	UNIMPL		compat_sparc32_semconfig
378#endif
379#ifdef SYSVMSG
380224	STD		{ int compat_sparc32_msgctl(int msqid, int cmd, sparc32_msqid_dsp_t buf); }
381225	STD		{ int compat_sparc32_msgget(sparc32_key_t key, int msgflg); }
382226	STD		{ int compat_sparc32_msgsnd(int msqid, const sparc32_voidp msgp, sparc32_size_t msgsz, int msgflg); }
383227	STD		{ sparc32_ssize_t compat_sparc32_msgrcv(int msqid, sparc32_voidp msgp, sparc32_size_t msgsz, sparc32_long msgtyp, int msgflg); }
384#else
385224	UNIMPL		compat_sparc32_msgctl
386225	UNIMPL		compat_sparc32_msgget
387226	UNIMPL		compat_sparc32_msgsnd
388227	UNIMPL		compat_sparc32_msgrcv
389#endif
390#ifdef SYSVSHM
391228	STD		{ sparc32_voidp compat_sparc32_shmat(int shmid, const sparc32_voidp shmaddr, int shmflg); }
392229	STD		{ int compat_sparc32_shmctl(int shmid, int cmd, sparc32_shmid_dsp_t buf); }
393230	STD		{ int compat_sparc32_shmdt(const sparc32_voidp shmaddr); }
394231	STD		{ int compat_sparc32_shmget(sparc32_key_t key, sparc32_size_t size, int shmflg); }
395#else
396228	UNIMPL		compat_sparc32_shmat
397229	UNIMPL		compat_sparc32_shmctl
398230	UNIMPL		compat_sparc32_shmdt
399231	UNIMPL		compat_sparc32_shmget
400#endif
401232	STD		{ int compat_sparc32_clock_gettime(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
402233	STD		{ int compat_sparc32_clock_settime(sparc32_clockid_t clock_id, const sparc32_timespecp_t tp); }
403234	STD		{ int compat_sparc32_clock_getres(sparc32_clockid_t clock_id, sparc32_timespecp_t tp); }
404235	UNIMPL		timer_create
405236	UNIMPL		timer_delete
406237	UNIMPL		timer_settime
407238	UNIMPL		timer_gettime
408239	UNIMPL		timer_getoverrun
409;
410; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
411;
412240	STD		{ int compat_sparc32_nanosleep(const sparc32_timespecp_t rqtp, sparc32_timespecp_t rmtp); }
413241	STD		{ int compat_sparc32_fdatasync(int fd); }
414242	UNIMPL
415243	UNIMPL
416244	UNIMPL
417245	UNIMPL
418246	UNIMPL
419247	UNIMPL
420248	UNIMPL
421249	UNIMPL
422250	UNIMPL
423251	UNIMPL
424252	UNIMPL
425253	UNIMPL
426254	UNIMPL
427255	UNIMPL
428256	UNIMPL
429257	UNIMPL
430258	UNIMPL
431259	UNIMPL
432260	UNIMPL
433261	UNIMPL
434262	UNIMPL
435263	UNIMPL
436264	UNIMPL
437265	UNIMPL
438266	UNIMPL
439267	UNIMPL
440268	UNIMPL
441269	UNIMPL
442270	STD		{ int compat_sparc32___posix_rename(const sparc32_charp from, const sparc32_charp to); }
443271	STD		{ int compat_sparc32_swapctl(int cmd, const sparc32_voidp arg, int misc); }
444272	STD		{ int compat_sparc32_getdents(int fd, sparc32_charp buf, sparc32_size_t count); }
445273	STD		{ int compat_sparc32_minherit(sparc32_voidp addr, sparc32_size_t len, int inherit); }
446274	STD		{ int compat_sparc32_lchmod(const sparc32_charp path, mode_t mode); }
447275	STD		{ int compat_sparc32_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
448276	STD		{ int compat_sparc32_lutimes(const sparc32_charp path, const sparc32_timevalp_t tptr); }
449277	STD		{ int compat_sparc32___msync13(sparc32_voidp addr, sparc32_size_t len, int flags); }
450278	STD		{ int compat_sparc32___stat13(const sparc32_charp path, sparc32_statp_t ub); }
451279	STD		{ int compat_sparc32___fstat13(int fd, sparc32_statp_t sb); }
452280	STD		{ int compat_sparc32___lstat13(const sparc32_charp path, sparc32_statp_t ub); }
453281	STD		{ int compat_sparc32___sigaltstack14(const sparc32_sigaltstackp_t nss, sparc32_sigaltstackp_t oss); }
454282	NOARGS		{ int sys___vfork14(void); }
455283	STD		{ int compat_sparc32___posix_chown(const sparc32_charp path, uid_t uid, gid_t gid); }
456284	STD		{ int compat_sparc32___posix_fchown(int fd, uid_t uid, gid_t gid); }
457285	STD		{ int compat_sparc32___posix_lchown(const sparc32_charp path, uid_t uid, gid_t gid); }
458286	STD		{ pid_t compat_sparc32_getsid(pid_t pid); }
459287	UNIMPL
460#ifdef KTRACE
461288	STD		{ int compat_sparc32_fktrace(const int fd, int ops, int facs, int pid); }
462#else
463288	UNIMPL
464#endif
465289	STD		{ sparc32_ssize_t compat_sparc32_preadv(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
466290	STD		{ sparc32_ssize_t compat_sparc32_pwritev(int fd, const sparc32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
467