xref: /netbsd/sys/compat/sunos32/syscalls.master (revision bf9ec67e)
1;	$NetBSD: syscalls.master,v 1.8 2002/04/29 09:53:42 mrg Exp $
2
3;	from :NetBSD: syscalls.master,v 1.57 2000/12/09 07:10:36 mycroft Exp
4
5; NetBSD COMPAT_SUNOS, 32 bit mode for sparc64 system call name/number "master" file.
6; (See syscalls32.conf to see what it is processed into.)
7;
8; Fields: number type [type-dependent ...]
9;	number	system call number, must be in order
10;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11;		the compatibility options defined in syscalls.conf.
12;
13; types:
14;	STD	always included
15;	OBSOL	obsolete, not included in system
16;	UNIMPL	unimplemented, not included in system
17;	NODEF	included, but don't define the syscall number
18;	NOARGS	included, but don't define the syscall args structure
19;
20; The compat options are defined in the syscalls.conf file, and the
21; compat option name is prefixed to the syscall name.  Other than
22; that, they're like NODEF (for 'compat' options), or STD (for
23; 'libcompat' options).
24;
25; The type-dependent arguments are as follows:
26; For STD, NODEF, NOARGS, and compat syscalls:
27;	{ pseudo-proto } [alias]
28; For other syscalls:
29;	[comment]
30;
31; #ifdef's, etc. may be included, and are copied to the output files.
32; #include's are copied to the syscall names and switch definition files only.
33
34#if defined(_KERNEL_OPT)
35#include "opt_nfsserver.h"
36#include "opt_sysv.h"
37
38#include "fs_nfs.h"
39#endif
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/signal.h>
44#include <sys/mount.h>
45#include <sys/poll.h>
46#include <sys/syscallargs.h>
47
48#include <compat/sunos/sunos.h>
49#include <compat/sunos/sunos_syscallargs.h>
50
51#include <compat/netbsd32/netbsd32.h>
52#include <compat/netbsd32/netbsd32_syscallargs.h>
53
54#include <compat/sunos32/sunos32.h>
55#include <compat/sunos32/sunos32_syscallargs.h>
56
57%%
58
590	NOARGS		{ int sys_nosys(void); } syscall
601	NOARGS		{ int netbsd32_exit(int rval); }
612	NOARGS		{ int sys_fork(void); }
623	NOARGS		{ netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
634	NOARGS		{ netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
645	STD		{ int sunos32_sys_open(const netbsd32_charp path, int flags, \
65			    int mode); }
666	NOARGS		{ int netbsd32_close(int fd); }
677	STD		{ int sunos32_sys_wait4(int pid, netbsd32_intp status, \
68			    int options, netbsd32_rusagep_t rusage); }
698	STD		{ int sunos32_sys_creat(const netbsd32_charp path, int mode); }
709	NOARGS		{ int netbsd32_link(netbsd32_charp path, netbsd32_charp link); }
7110	NOARGS		{ int netbsd32_unlink(netbsd32_charp path); }
7211	STD		{ int sunos32_sys_execv(const netbsd32_charp path, netbsd32_charpp argp); }
7312	NOARGS		{ int netbsd32_chdir(netbsd32_charp path); }
7413	OBSOL		old_time
7514	STD		{ int sunos32_sys_mknod(const netbsd32_charp path, int mode, \
76			    int dev); }
7715	NOARGS		{ int netbsd32_chmod(netbsd32_charp path, int mode); }
7816	NOARGS		{ int netbsd32_chown(netbsd32_charp path, int uid, int gid); }
7917	NOARGS		{ int netbsd32_break(netbsd32_charp nsize); }
8018	OBSOL		old_stat
8119	NOARGS		{ netbsd32_long compat_43_netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
8220	NOARGS		{ pid_t sys_getpid_with_ppid(void); }
8321	OBSOL		sunos_old_mount
8422	UNIMPL		System V umount
8523	NOARGS		{ int netbsd32_setuid(uid_t uid); }
8624	NOARGS		{ uid_t sys_getuid_with_euid(void); }
8725	STD		{ int sunos32_sys_stime(sunos32_time_tp tp); }
8826	STD		{ netbsd32_long sunos32_sys_ptrace(int req, pid_t pid, \
89			    netbsd32_caddr_t addr, int data, netbsd32_charp addr2); }
9027	UNIMPL		old_sunos_alarm
9128	UNIMPL		old_sunos_fstat
9229	UNIMPL		old_sunos_pause
9330	UNIMPL		old_sunos_utime
9431	UNIMPL		old_sunos_stty
9532	UNIMPL		old_sunos_gtty
9633	STD		{ int sunos32_sys_access(const netbsd32_charp path, int flags); }
9734	UNIMPL		old_sunos_nice
9835	UNIMPL		old_sunos_ftime
9936	NOARGS		{ int sys_sync(void); }
10037	NOARGS		{ int netbsd32_kill(int pid, int signum); }
10138	STD		{ int sunos32_sys_stat(const netbsd32_charp path, \
102			    netbsd32_stat43p_t ub); }
10339	UNIMPL		sunos_setpgrp
10440	STD		{ int sunos32_sys_lstat(const netbsd32_charp path, \
105			    netbsd32_stat43p_t ub); }
10641	NOARGS		{ int netbsd32_dup(u_int fd); }
10742	NOARGS		{ int sys_pipe(void); }
10843	UNIMPL		sunos_times
10944	NOARGS		{ int netbsd32_profil(netbsd32_caddr_t samples, u_int size, \
110			    u_int offset, u_int scale); }
11145	UNIMPL
11246	NOARGS		{ int netbsd32_setgid(uid_t gid); }
11347	NOARGS		{ gid_t sys_getgid_with_egid(void); }
11448	UNIMPL		sunos_ssig
11549	UNIMPL		reserved for USG
11650	UNIMPL		reserved for USG
11751	NOARGS		{ int netbsd32_acct(netbsd32_charp path); }
11852	UNIMPL
11953	STD		{ int sunos32_sys_mctl(netbsd32_voidp addr, int len, int func, \
120			    netbsd32_voidp arg); }
12154	STD		{ int sunos32_sys_ioctl(int fd, netbsd32_u_long com, \
122			    netbsd32_caddr_t data); }
12355	STD		{ int sunos32_sys_reboot(int howto, netbsd32_charp bootstr); }
12456	OBSOL		sunos_owait3
12557	NOARGS		{ int netbsd32_symlink(netbsd32_charp path, netbsd32_charp link); }
12658	NOARGS		{ int netbsd32_readlink(netbsd32_charp path, netbsd32_charp buf, int count); }
12759	STD		{ int sunos32_sys_execve(const netbsd32_charp path, netbsd32_charpp argp, \
128			    netbsd32_charpp envp); }
12960	NOARGS		{ int netbsd32_umask(int newmask); }
13061	NOARGS		{ int netbsd32_chroot(netbsd32_charp path); }
13162	NOARGS		{ int compat_43_netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
13263	UNIMPL
13364	NOARGS		{ int compat_43_sys_getpagesize(void); } ogetpagesize
13465	STD		{ int sunos32_sys_omsync(netbsd32_caddr_t addr, netbsd32_size_t len, \
135			    int flags); }
13666	NOARGS		{ int sys_vfork(void); }
13767	OBSOL		vread
13868	OBSOL		vwrite
13969	NOARGS		{ int netbsd32_sbrk(netbsd32_intptr_t incr); }
14070	NOARGS		{ int netbsd32_sstk(int incr); }
14171	STD		{ netbsd32_voidp sunos32_sys_mmap(netbsd32_voidp addr, netbsd32_size_t len, \
142			    int prot, int flags, int fd, netbsd32_long pos); }
14372	NOARGS		{ int netbsd32_ovadvise(int anom); } vadvise
14473	NOARGS		{ int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
14574	NOARGS		{ int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, \
146			    int prot); }
14775	NOARGS		{ int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, \
148			    int behav); }
14976	STD		{ int sunos32_sys_vhangup(void); }
15077	UNIMPL		vlimit
15178	NOARGS		{ int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
15279	NOARGS		{ int netbsd32_getgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
15380	NOARGS		{ int netbsd32_setgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
15481	NOARGS		{ int sys_getpgrp(void); }
15582	STD		{ int sunos32_sys_setpgrp(int pid, int pgid); }
15683	NOARGS		{ int netbsd32_setitimer(u_int which, netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
15784	UNIMPL		{ int sunos32_sys_wait(void); }
15885	NOARGS		{ int compat_12_netbsd32_oswapon(netbsd32_charp name); }
15986	NOARGS		{ int netbsd32_getitimer(u_int which, netbsd32_itimervalp_t itv); }
16087	NOARGS		{ int compat_43_netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
16188	NOARGS		{ int compat_43_netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
16289	NOARGS		{ int compat_43_sys_getdtablesize(void); } ogetdtablesize
16390	NOARGS		{ int netbsd32_dup2(u_int from, u_int to); }
16491	UNIMPL		getdopt
16592	STD		{ int sunos32_sys_fcntl(int fd, int cmd, netbsd32_voidp arg); }
16693	NOARGS		{ int netbsd32_select(u_int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \
167			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
16894	UNIMPL		setdopt
16995	NOARGS		{ int netbsd32_fsync(int fd); }
17096	NOARGS		{ int netbsd32_setpriority(int which, int who, int prio); }
17197	STD		{ int sunos32_sys_socket(int domain, int type, int protocol); }
17298	NOARGS		{ int netbsd32_connect(int s, netbsd32_caddr_t name, int namelen); }
17399	NOARGS		{ int compat_43_netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
174100	NOARGS		{ int netbsd32_getpriority(int which, int who); }
175101	NOARGS		{ int compat_43_netbsd32_osend(int s, netbsd32_caddr_t buf, int len, \
176			    int flags); }
177102	NOARGS		{ int compat_43_netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, \
178			    int flags); }
179103	UNIMPL		old socketaddr
180104	NOARGS		{ int netbsd32_bind(int s, netbsd32_caddr_t name, int namelen); }
181105	STD		{ int sunos32_sys_setsockopt(int s, int level, int name, \
182			    netbsd32_caddr_t val, int valsize); }
183106	NOARGS		{ int netbsd32_listen(int s, int backlog); }
184107	UNIMPL		vtimes
185108	STD		{ int sunos32_sys_sigvec(int signum, netbsd32_sigvecp_t nsv, \
186			    netbsd32_sigvecp_t osv); }
187109	NOARGS		{ int compat_43_netbsd32_sigblock(int mask); }
188110	NOARGS		{ int compat_43_netbsd32_sigsetmask(int mask); }
189111	STD		{ int sunos32_sys_sigsuspend(int mask); }
190112	NOARGS		{ int compat_43_netbsd32_osigstack(netbsd32_sigstackp_t nss, \
191			    netbsd32_sigstackp_t oss); }
192113	NOARGS		{ int compat_43_netbsd32_orecvmsg(int s, \
193			    netbsd32_omsghdrp_t msg, int flags); }
194114	NOARGS		{ int compat_43_netbsd32_osendmsg(int s, netbsd32_caddr_t msg, \
195			    int flags); }
196115	OBSOL		vtrace
197116	NOARGS		{ int netbsd32_gettimeofday(netbsd32_timevalp_t tp, \
198			    netbsd32_timezonep_t tzp); }
199117	NOARGS		{ int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
200118	NOARGS		{ int netbsd32_getsockopt(int s, int level, int name, \
201			    netbsd32_caddr_t val, netbsd32_intp avalsize); }
202119	UNIMPL
203120	NOARGS		{ int netbsd32_readv(int fd, netbsd32_iovecp_t iovp, \
204			    u_int iovcnt); }
205121	NOARGS		{ int netbsd32_writev(int fd, netbsd32_iovecp_t iovp, \
206			    u_int iovcnt); }
207122	NOARGS		{ int netbsd32_settimeofday(netbsd32_timevalp_t tv, \
208			    netbsd32_timezonep_t tzp); }
209123	NOARGS		{ int netbsd32_fchown(int fd, int uid, int gid); }
210124	NOARGS		{ int netbsd32_fchmod(int fd, int mode); }
211125	NOARGS		{ int compat_43_netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, \
212			    netbsd32_size_t len, int flags, netbsd32_caddr_t from, \
213			    netbsd32_intp fromlenaddr); }
214126	NOARGS		{ int netbsd32_setreuid(int ruid, int euid); }
215127	NOARGS		{ int netbsd32_setregid(int rgid, int egid); }
216128	NOARGS		{ int netbsd32_rename(netbsd32_charp from, netbsd32_charp to); }
217129	NOARGS		{ int compat_43_netbsd32_otruncate(netbsd32_charp path, netbsd32_long length); }
218130	NOARGS		{ int compat_43_netbsd32_oftruncate(int fd, netbsd32_long length); }
219131	NOARGS		{ int netbsd32_flock(int fd, int how); }
220132	UNIMPL
221133	NOARGS		{ int netbsd32_sendto(int s, netbsd32_caddr_t buf, netbsd32_size_t len, \
222			    int flags, netbsd32_caddr_t to, int tolen); }
223134	NOARGS		{ int netbsd32_shutdown(int s, int how); }
224135	STD		{ int sunos32_sys_socketpair(int domain, int type, \
225			    int protocol, netbsd32_intp rsv); }
226136	NOARGS		{ int netbsd32_mkdir(netbsd32_charp path, int mode); }
227137	NOARGS		{ int netbsd32_rmdir(netbsd32_charp path); }
228138	NOARGS		{ int netbsd32_utimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
229139	STD		{ int sunos32_sys_sigreturn(netbsd32_sigcontextp_t sigcntxp); }
230140	NOARGS		{ int netbsd32_adjtime(netbsd32_timevalp_t delta, \
231			    netbsd32_timevalp_t olddelta); }
232141	NOARGS		{ int compat_43_netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, \
233			    netbsd32_intp alen); }
234142	NOARGS		{ int compat_43_sys_gethostid(void); }
235143	UNIMPL		old sethostid
236144	STD		{ int sunos32_sys_getrlimit(u_int which, \
237			    netbsd32_orlimitp_t rlp); }
238145	STD		{ int sunos32_sys_setrlimit(u_int which, \
239			    netbsd32_orlimitp_t rlp); }
240146	NOARGS		{ int compat_43_netbsd32_killpg(int pgid, int signum); }
241147	UNIMPL
242148	UNIMPL
243149	UNIMPL
244150	NOARGS		{ int compat_43_netbsd32_ogetsockname(int fdes, netbsd32_caddr_t asa, \
245			    netbsd32_intp alen); }
246151	UNIMPL		getmsg
247152	UNIMPL		putmsg
248153	NOARGS		{ int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \
249			    int timeout); }
250154	UNIMPL
251#ifdef NFSSERVER
252155	STD		{ int sunos32_sys_nfssvc(int fd); }
253#else
254155	UNIMPL
255#endif
256156	NOARGS		{ int compat_43_netbsd32_ogetdirentries(int fd, netbsd32_charp buf, \
257			    u_int count, netbsd32_longp basep); }
258157	STD		{ int sunos32_sys_statfs(const netbsd32_charp path, \
259			    sunos32_statfsp_t buf); }
260158	STD		{ int sunos32_sys_fstatfs(int fd, \
261			    sunos32_statfsp_t buf); }
262159	STD		{ int sunos32_sys_unmount(netbsd32_charp path); }
263#ifdef NFS
264160	NOARGS		{ int async_daemon(void); }
265161	NOARGS		{ int sys_getfh(netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
266#else
267160	UNIMPL
268161	UNIMPL
269#endif
270162	NOARGS		{ int compat_09_netbsd32_ogetdomainname(netbsd32_charp domainname, \
271			    int len); }
272163	NOARGS		{ int compat_09_netbsd32_osetdomainname(netbsd32_charp domainname, \
273			    int len); }
274164	UNIMPL		rtschedule
275165	STD		{ int sunos32_sys_quotactl(int cmd, netbsd32_charp special, \
276			    int uid, netbsd32_caddr_t addr); }
277166	STD		{ int sunos32_sys_exportfs(netbsd32_charp path, netbsd32_charp ex); }
278167	STD		{ int sunos32_sys_mount(netbsd32_charp type, netbsd32_charp path, \
279			    int flags, netbsd32_caddr_t data); }
280168	STD		{ int sunos32_sys_ustat(int dev, \
281			    sunos32_ustatp_t buf); }
282#ifdef SYSVSEM
283169	NOARGS		{ int compat_10_netbsd32_sys_semsys(int which, int a2, int a3, \
284			    int a4, int a5); } osemsys
285#else
286169	UNIMPL		semsys
287#endif
288#ifdef SYSVMSG
289170	NOARGS		{ int compat_10_netbsd32_sys_msgsys(int which, int a2, int a3, \
290			    int a4, int a5, int a6); } omsgsys
291#else
292170	UNIMPL		msgsys
293#endif
294#ifdef SYSVSHM
295171	NOARGS		{ int compat_10_netbsd32_sys_shmsys(int which, int a2, int a3, \
296			    int a4); } oshmsys
297#else
298171	UNIMPL		shmsys
299#endif
300172	STD		{ int sunos32_sys_auditsys(netbsd32_charp record); }
301173	UNIMPL		rfssys
302174	STD		{ int sunos32_sys_getdents(int fd, netbsd32_charp buf, \
303			    int nbytes); }
304175	NOARGS		{ int sys_setsid(void); }
305176	NOARGS		{ int netbsd32_fchdir(int fd); }
306177	NOARGS		{ int netbsd32_fchroot(int fd); }
307178	UNIMPL		vpixsys
308179	UNIMPL		aioread
309180	UNIMPL		aiowrite
310181	UNIMPL		aiowait
311182	UNIMPL		aiocancel
312183	STD		{ int sunos32_sys_sigpending(netbsd32_intp mask); }
313184	UNIMPL
314185	NOARGS		{ int netbsd32_setpgid(int pid, int pgid); }
315186	NOARGS		{ netbsd32_long netbsd32_pathconf(netbsd32_charp path, int name); }
316187	NOARGS		{ netbsd32_long netbsd32_fpathconf(int fd, int name); }
317188	STD		{ int sunos32_sys_sysconf(int name); }
318189	STD		{ int sunos32_sys_uname(sunos32_utsnamep_t name); }
319