syscalls.master revision 1.47
1	$NetBSD: syscalls.master,v 1.47 1998/09/13 22:28:17 pk Exp $
2
3;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
4
5; NetBSD COMPAT_SUNOS system call name/number "master" file.
6; (See syscalls.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#include "opt_nfsserver.h"
35
36#include "fs_nfs.h"
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/signal.h>
41#include <sys/mount.h>
42#include <sys/poll.h>
43#include <sys/syscallargs.h>
44
45#include <compat/sunos/sunos.h>
46#include <compat/sunos/sunos_syscallargs.h>
47
480	NOARGS		{ int sys_nosys(void); } syscall
491	NOARGS		{ int sys_exit(int rval); }
502	NOARGS		{ int sys_fork(void); }
513	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
524	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
535	STD		{ int sunos_sys_open(char *path, int flags, int mode); }
546	NOARGS		{ int sys_close(int fd); }
557	STD		{ int sunos_sys_wait4(int pid, int *status, \
56			    int options, struct rusage *rusage); }
578	STD		{ int sunos_sys_creat(char *path, int mode); }
589	NOARGS		{ int sys_link(char *path, char *link); }
5910	NOARGS		{ int sys_unlink(char *path); }
6011	STD		{ int sunos_sys_execv(char *path, char **argp); }
6112	NOARGS		{ int sys_chdir(char *path); }
6213	OBSOL		time
6314	STD		{ int sunos_sys_mknod(char *path, int mode, int dev); }
6415	NOARGS		{ int sys_chmod(char *path, int mode); }
6516	NOARGS		{ int sys_chown(char *path, int uid, int gid); }
6617	NOARGS		{ int sys_obreak(char *nsize); } break
6718	OBSOL		stat
6819	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, int whence); }
6920	NOARGS		{ pid_t sys_getpid(void); }
7021	OBSOL		sunos_old_mount
7122	UNIMPL		System V umount
7223	NOARGS		{ int sys_setuid(uid_t uid); }
7324	NOARGS		{ uid_t sys_getuid(void); }
7425	STD		{ int sunos_sys_stime(time_t *tp); }
7526	STD		{ long sunos_sys_ptrace(int req, pid_t pid, \
76			    caddr_t addr, int data, char *addr2); }
7727	UNIMPL		sunos_alarm
7828	UNIMPL		sunos_fstat
7929	UNIMPL		sunos_pause
8030	UNIMPL		sunos_utime
8131	UNIMPL		sunos_stty
8232	UNIMPL		sunos_gtty
8333	STD		{ int sunos_sys_access(char *path, int flags); }
8434	UNIMPL		sunos_nice
8535	UNIMPL		sunos_ftime
8636	NOARGS		{ int sys_sync(void); }
8737	NOARGS		{ int sys_kill(int pid, int signum); }
8838	STD		{ int sunos_sys_stat(char *path, struct stat43 *ub); }
8939	UNIMPL		sunos_setpgrp
9040	STD		{ int sunos_sys_lstat(char *path, struct stat43 *ub); }
9141	NOARGS		{ int sys_dup(u_int fd); }
9242	NOARGS		{ int sys_pipe(void); }
9343	UNIMPL		sunos_times
9444	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
95			    u_int offset, u_int scale); }
9645	UNIMPL		
9746	NOARGS		{ int sys_setgid(uid_t gid); }
9847	NOARGS		{ gid_t sys_getgid(void); }
9948	UNIMPL		sunos_ssig
10049	UNIMPL		reserved for USG
10150	UNIMPL		reserved for USG
10251	NOARGS		{ int sys_acct(char *path); }
10352	UNIMPL		
10453	STD		{ int sunos_sys_mctl(void *addr, int len, int func, \
105			    void *arg); }
10654	STD		{ int sunos_sys_ioctl(int fd, u_long com, \
107			    caddr_t data); }
10855	STD		{ int sunos_sys_reboot(int howto, char *bootstr); }
10956	OBSOL		sunos_owait3
11057	NOARGS		{ int sys_symlink(char *path, char *link); }
11158	NOARGS		{ int sys_readlink(char *path, char *buf, int count); }
11259	STD		{ int sunos_sys_execve(char *path, char **argp, \
113			    char **envp); }
11460	NOARGS		{ int sys_umask(int newmask); }
11561	NOARGS		{ int sys_chroot(char *path); }
11662	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); }
11763	UNIMPL		
11864	NOARGS		{ int compat_43_sys_getpagesize(void); }
11965	STD		{ int sunos_sys_omsync(caddr_t addr, size_t len, \
120			    int flags); }
12166	NOARGS		{ int sys_vfork(void); }
12267	OBSOL		vread
12368	OBSOL		vwrite
12469	NOARGS		{ int sys_sbrk(int incr); }
12570	NOARGS		{ int sys_sstk(int incr); }
12671	STD		{ void *sunos_sys_mmap(void *addr, size_t len, \
127			    int prot, int flags, int fd, long pos); }
12872	NOARGS		{ int sys_ovadvise(int anom); } vadvise
12973	NOARGS		{ int sys_munmap(void *addr, size_t len); }
13074	NOARGS		{ int sys_mprotect(void *addr, size_t len, \
131			    int prot); }
13275	NOARGS		{ int sys_madvise(void *addr, size_t len, \
133			    int behav); }
13476	STD		{ int sunos_sys_vhangup(void); }
13577	UNIMPL		vlimit
13678	NOARGS		{ int sys_mincore(void *addr, size_t len, \
137			    char *vec); }
13879	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
13980	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
14081	NOARGS		{ int sys_getpgrp(void); }
14182	STD		{ int sunos_sys_setpgrp(int pid, int pgid); }
14283	NOARGS		{ int sys_setitimer(u_int which, \
143			    struct itimerval *itv, struct itimerval *oitv); }
14484	UNIMPL		{ int sunos_sys_wait(void); }
14585	NOARGS		{ int compat_12_sys_swapon(char *name); }
14686	NOARGS		{ int sys_getitimer(u_int which, \
147			    struct itimerval *itv); }
14887	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
149			    u_int len); }
15088	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
151			    u_int len); }
15289	NOARGS		{ int compat_43_sys_getdtablesize(void); }
15390	NOARGS		{ int sys_dup2(u_int from, u_int to); }
15491	UNIMPL		getdopt
15592	STD		{ int sunos_sys_fcntl(int fd, int cmd, void *arg); }
15693	NOARGS		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
157			    fd_set *ex, struct timeval *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	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
16399	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
164			    int *anamelen); }
165100	NOARGS		{ int sys_getpriority(int which, int who); }
166101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
167			    int flags); }
168102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
169			    int flags); }
170103	UNIMPL		old socketaddr
171104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
172105	STD		{ int sunos_sys_setsockopt(int s, int level, int name, \
173			    caddr_t val, int valsize); }
174106	NOARGS		{ int sys_listen(int s, int backlog); }
175107	UNIMPL		vtimes
176108	STD		{ int sunos_sys_sigvec(int signum, struct sigvec *nsv, \
177			    struct sigvec *osv); }
178109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
179110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
180111	STD		{ int sunos_sys_sigsuspend(int mask); }
181112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
182			    struct sigstack *oss); }
183113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
184			    struct omsghdr *msg, int flags); }
185114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
186			    int flags); }
187115	OBSOL		vtrace
188116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
189			    struct timezone *tzp); }
190117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
191118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
192			    caddr_t val, int *avalsize); }
193119	UNIMPL		
194120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
195			    u_int iovcnt); }
196121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
197			    u_int iovcnt); }
198122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
199			    struct timezone *tzp); }
200123	NOARGS		{ int sys_fchown(int fd, int uid, int gid); }
201124	NOARGS		{ int sys_fchmod(int fd, int mode); }
202125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
203			    size_t len, int flags, caddr_t from, \
204			    int *fromlenaddr); }
205126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
206127	NOARGS		{ int sys_setregid(int rgid, int egid); }
207128	NOARGS		{ int sys_rename(char *from, char *to); }
208129	NOARGS		{ int compat_43_sys_truncate(char *path, long length); }
209130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
210131	NOARGS		{ int sys_flock(int fd, int how); }
211132	UNIMPL		
212133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
213			    int flags, caddr_t to, int tolen); }
214134	NOARGS		{ int sys_shutdown(int s, int how); }
215135	NOARGS		{ int sys_socketpair(int domain, int type, \
216			    int protocol, int *rsv); }
217136	NOARGS		{ int sys_mkdir(char *path, int mode); }
218137	NOARGS		{ int sys_rmdir(char *path); }
219138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
220139	STD		{ int sunos_sys_sigreturn(struct sigcontext *sigcntxp); }
221140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
222			    struct timeval *olddelta); }
223141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
224			    int *alen); }
225142	NOARGS		{ int compat_43_sys_gethostid(void); }
226143	UNIMPL		old sethostid
227144	STD		{ int sunos_sys_getrlimit(u_int which, \
228			    struct orlimit *rlp); }
229145	STD		{ int sunos_sys_setrlimit(u_int which, \
230			    struct orlimit *rlp); }
231146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
232147	UNIMPL		
233148	UNIMPL		
234149	UNIMPL		
235150	NOARGS		{ int compat_43_sys_getsockname(int fdes, caddr_t asa, \
236			    int *alen); }
237151	UNIMPL		getmsg
238152	UNIMPL		putmsg
239153	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
240			    int timeout); }
241154	UNIMPL		
242#ifdef NFSSERVER
243155	STD		{ int sunos_sys_nfssvc(int fd); }
244#else
245155	UNIMPL		
246#endif
247156	NOARGS		{ int compat_12_sys_getdirentries(int fd, char *buf, \
248			    u_int count, long *basep); }
249157	STD		{ int sunos_sys_statfs(char *path, \
250			    struct sunos_statfs *buf); }
251158	STD		{ int sunos_sys_fstatfs(int fd, \
252			    struct sunos_statfs *buf); }
253159	STD		{ int sunos_sys_unmount(char *path); }
254#ifdef NFS
255160	NOARGS		{ int async_daemon(void); }
256161	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
257#else
258160	UNIMPL		
259161	UNIMPL		
260#endif
261162	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
262			    int len); }
263163	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
264			    int len); }
265164	UNIMPL		rtschedule
266165	STD		{ int sunos_sys_quotactl(int cmd, char *special, \
267			    int uid, caddr_t addr); }
268166	STD		{ int sunos_sys_exportfs(char *path, char *ex); }
269167	STD		{ int sunos_sys_mount(char *type, char *dir, \
270			    int flags, caddr_t data); }
271168	STD		{ int sunos_sys_ustat(int dev, \
272			    struct sunos_ustat *buf); }
273#ifdef SYSVSEM
274169	NOARGS		{ int compat_10_sys_semsys(int which, int a2, int a3, \
275			    int a4, int a5); }
276#else
277169	UNIMPL		semsys
278#endif
279#ifdef SYSVMSG
280170	NOARGS		{ int compat_10_sys_msgsys(int which, int a2, int a3, \
281			    int a4, int a5, int a6); }
282#else
283170	UNIMPL		msgsys
284#endif
285#ifdef SYSVSHM
286171	NOARGS		{ int compat_10_sys_shmsys(int which, int a2, int a3, \
287			    int a4); }
288#else
289171	UNIMPL		shmsys
290#endif
291172	STD		{ int sunos_sys_auditsys(char *record); }
292173	UNIMPL		rfssys
293174	STD		{ int sunos_sys_getdents(int fd, char *buf, \
294			    int nbytes); }
295175	NOARGS		{ int sys_setsid(void); }
296176	NOARGS		{ int sys_fchdir(int fd); }
297177	STD		{ int sunos_sys_fchroot(int fd); }
298178	UNIMPL		vpixsys
299179	UNIMPL		aioread
300180	UNIMPL		aiowrite
301181	UNIMPL		aiowait
302182	UNIMPL		aiocancel
303183	STD		{ int sunos_sys_sigpending(int *mask); }
304184	UNIMPL		
305185	NOARGS		{ int sys_setpgid(int pid, int pgid); }
306186	NOARGS		{ long sys_pathconf(char *path, int name); }
307187	NOARGS		{ long sys_fpathconf(int fd, int name); }
308188	STD		{ int sunos_sys_sysconf(int name); }
309189	STD		{ int sunos_sys_uname(struct sunos_utsname *name); }
310