syscalls.master revision 1.54
1	$NetBSD: syscalls.master,v 1.54 2000/04/09 06:47:39 mrg 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#include "opt_sysv.h"
36
37#include "fs_nfs.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/signal.h>
42#include <sys/mount.h>
43#include <sys/poll.h>
44#include <sys/syscallargs.h>
45
46#include <compat/sunos/sunos.h>
47#include <compat/sunos/sunos_syscallargs.h>
48
490	NOARGS		{ int sys_nosys(void); } syscall
501	NOARGS		{ int sys_exit(int rval); }
512	NOARGS		{ int sys_fork(void); }
523	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
534	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
545	STD		{ int sunos_sys_open(const char *path, int flags, \
55			    int mode); }
566	NOARGS		{ int sys_close(int fd); }
577	STD		{ int sunos_sys_wait4(int pid, int *status, \
58			    int options, struct rusage *rusage); }
598	STD		{ int sunos_sys_creat(const char *path, int mode); }
609	NOARGS		{ int sys_link(char *path, char *link); }
6110	NOARGS		{ int sys_unlink(char *path); }
6211	STD		{ int sunos_sys_execv(const char *path, char **argp); }
6312	NOARGS		{ int sys_chdir(char *path); }
6413	OBSOL		old_time
6514	STD		{ int sunos_sys_mknod(const char *path, int mode, \
66			    int dev); }
6715	NOARGS		{ int sys_chmod(char *path, int mode); }
6816	NOARGS		{ int sys_chown(char *path, int uid, int gid); }
6917	NOARGS		{ int sys_obreak(char *nsize); } break
7018	OBSOL		old_stat
7119	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, int whence); }
7220	NOARGS		{ pid_t sys_getpid(void); }
7321	OBSOL		sunos_old_mount
7422	UNIMPL		System V umount
7523	NOARGS		{ int sys_setuid(uid_t uid); }
7624	NOARGS		{ uid_t sys_getuid(void); }
7725	STD		{ int sunos_sys_stime(time_t *tp); }
7826	STD		{ long sunos_sys_ptrace(int req, pid_t pid, \
79			    caddr_t addr, int data, char *addr2); }
8027	UNIMPL		old_sunos_alarm
8128	UNIMPL		old_sunos_fstat
8229	UNIMPL		old_sunos_pause
8330	UNIMPL		old_sunos_utime
8431	UNIMPL		old_sunos_stty
8532	UNIMPL		old_sunos_gtty
8633	STD		{ int sunos_sys_access(const char *path, int flags); }
8734	UNIMPL		old_sunos_nice
8835	UNIMPL		old_sunos_ftime
8936	NOARGS		{ int sys_sync(void); }
9037	NOARGS		{ int sys_kill(int pid, int signum); }
9138	STD		{ int sunos_sys_stat(const char *path, \
92			    struct stat43 *ub); }
9339	UNIMPL		sunos_setpgrp
9440	STD		{ int sunos_sys_lstat(const char *path, \
95			    struct stat43 *ub); }
9641	NOARGS		{ int sys_dup(u_int fd); }
9742	NOARGS		{ int sys_pipe(void); }
9843	UNIMPL		sunos_times
9944	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
100			    u_int offset, u_int scale); }
10145	UNIMPL		
10246	NOARGS		{ int sys_setgid(uid_t gid); }
10347	NOARGS		{ gid_t sys_getgid(void); }
10448	UNIMPL		sunos_ssig
10549	UNIMPL		reserved for USG
10650	UNIMPL		reserved for USG
10751	NOARGS		{ int sys_acct(char *path); }
10852	UNIMPL		
10953	STD		{ int sunos_sys_mctl(void *addr, int len, int func, \
110			    void *arg); }
11154	STD		{ int sunos_sys_ioctl(int fd, u_long com, \
112			    caddr_t data); }
11355	STD		{ int sunos_sys_reboot(int howto, char *bootstr); }
11456	OBSOL		sunos_owait3
11557	NOARGS		{ int sys_symlink(char *path, char *link); }
11658	NOARGS		{ int sys_readlink(char *path, char *buf, int count); }
11759	STD		{ int sunos_sys_execve(const char *path, char **argp, \
118			    char **envp); }
11960	NOARGS		{ int sys_umask(int newmask); }
12061	NOARGS		{ int sys_chroot(char *path); }
12162	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); }
12263	UNIMPL		
12364	NOARGS		{ int compat_43_sys_getpagesize(void); }
12465	STD		{ int sunos_sys_omsync(caddr_t addr, size_t len, \
125			    int flags); }
12666	NOARGS		{ int sys_vfork(void); }
12767	OBSOL		vread
12868	OBSOL		vwrite
12969	NOARGS		{ int sys_sbrk(intptr_t incr); }
13070	NOARGS		{ int sys_sstk(int incr); }
13171	STD		{ void *sunos_sys_mmap(void *addr, size_t len, \
132			    int prot, int flags, int fd, long pos); }
13372	NOARGS		{ int sys_ovadvise(int anom); } vadvise
13473	NOARGS		{ int sys_munmap(void *addr, size_t len); }
13574	NOARGS		{ int sys_mprotect(void *addr, size_t len, \
136			    int prot); }
13775	NOARGS		{ int sys_madvise(void *addr, size_t len, \
138			    int behav); }
13976	STD		{ int sunos_sys_vhangup(void); }
14077	UNIMPL		vlimit
14178	NOARGS		{ int sys_mincore(void *addr, size_t len, \
142			    char *vec); }
14379	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
14480	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
14581	NOARGS		{ int sys_getpgrp(void); }
14682	STD		{ int sunos_sys_setpgrp(int pid, int pgid); }
14783	NOARGS		{ int sys_setitimer(u_int which, \
148			    struct itimerval *itv, struct itimerval *oitv); }
14984	UNIMPL		{ int sunos_sys_wait(void); }
15085	NOARGS		{ int compat_12_sys_swapon(char *name); }
15186	NOARGS		{ int sys_getitimer(u_int which, \
152			    struct itimerval *itv); }
15387	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
154			    u_int len); }
15588	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
156			    u_int len); }
15789	NOARGS		{ int compat_43_sys_getdtablesize(void); }
15890	NOARGS		{ int sys_dup2(u_int from, u_int to); }
15991	UNIMPL		getdopt
16092	STD		{ int sunos_sys_fcntl(int fd, int cmd, void *arg); }
16193	NOARGS		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
162			    fd_set *ex, struct timeval *tv); }
16394	UNIMPL		setdopt
16495	NOARGS		{ int sys_fsync(int fd); }
16596	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
16697	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
16798	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
16899	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
169			    int *anamelen); }
170100	NOARGS		{ int sys_getpriority(int which, int who); }
171101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
172			    int flags); }
173102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
174			    int flags); }
175103	UNIMPL		old socketaddr
176104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
177105	STD		{ int sunos_sys_setsockopt(int s, int level, int name, \
178			    caddr_t val, int valsize); }
179106	NOARGS		{ int sys_listen(int s, int backlog); }
180107	UNIMPL		vtimes
181108	STD		{ int sunos_sys_sigvec(int signum, struct sigvec *nsv, \
182			    struct sigvec *osv); }
183109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
184110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
185111	STD		{ int sunos_sys_sigsuspend(int mask); }
186112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
187			    struct sigstack *oss); }
188113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
189			    struct omsghdr *msg, int flags); }
190114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
191			    int flags); }
192115	OBSOL		vtrace
193116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
194			    struct timezone *tzp); }
195117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
196118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
197			    caddr_t val, int *avalsize); }
198119	UNIMPL		
199120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
200			    u_int iovcnt); }
201121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
202			    u_int iovcnt); }
203122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
204			    struct timezone *tzp); }
205123	NOARGS		{ int sys_fchown(int fd, int uid, int gid); }
206124	NOARGS		{ int sys_fchmod(int fd, int mode); }
207125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
208			    size_t len, int flags, caddr_t from, \
209			    int *fromlenaddr); }
210126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
211127	NOARGS		{ int sys_setregid(int rgid, int egid); }
212128	NOARGS		{ int sys_rename(char *from, char *to); }
213129	NOARGS		{ int compat_43_sys_truncate(char *path, long length); }
214130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
215131	NOARGS		{ int sys_flock(int fd, int how); }
216132	UNIMPL		
217133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
218			    int flags, caddr_t to, int tolen); }
219134	NOARGS		{ int sys_shutdown(int s, int how); }
220135	NOARGS		{ int sys_socketpair(int domain, int type, \
221			    int protocol, int *rsv); }
222136	NOARGS		{ int sys_mkdir(char *path, int mode); }
223137	NOARGS		{ int sys_rmdir(char *path); }
224138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
225139	STD		{ int sunos_sys_sigreturn(struct sigcontext *sigcntxp); }
226140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
227			    struct timeval *olddelta); }
228141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
229			    int *alen); }
230142	NOARGS		{ int compat_43_sys_gethostid(void); }
231143	UNIMPL		old sethostid
232144	STD		{ int sunos_sys_getrlimit(u_int which, \
233			    struct orlimit *rlp); }
234145	STD		{ int sunos_sys_setrlimit(u_int which, \
235			    struct orlimit *rlp); }
236146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
237147	UNIMPL		
238148	UNIMPL		
239149	UNIMPL		
240150	NOARGS		{ int compat_43_sys_getsockname(int fdes, caddr_t asa, \
241			    int *alen); }
242151	UNIMPL		getmsg
243152	UNIMPL		putmsg
244153	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
245			    int timeout); }
246154	UNIMPL		
247#ifdef NFSSERVER
248155	STD		{ int sunos_sys_nfssvc(int fd); }
249#else
250155	UNIMPL		
251#endif
252156	NOARGS		{ int compat_12_sys_getdirentries(int fd, char *buf, \
253			    u_int count, long *basep); }
254157	STD		{ int sunos_sys_statfs(const char *path, \
255			    struct sunos_statfs *buf); }
256158	STD		{ int sunos_sys_fstatfs(int fd, \
257			    struct sunos_statfs *buf); }
258159	STD		{ int sunos_sys_unmount(char *path); }
259#ifdef NFS
260160	NOARGS		{ int async_daemon(void); }
261161	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
262#else
263160	UNIMPL		
264161	UNIMPL		
265#endif
266162	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
267			    int len); }
268163	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
269			    int len); }
270164	UNIMPL		rtschedule
271165	STD		{ int sunos_sys_quotactl(int cmd, char *special, \
272			    int uid, caddr_t addr); }
273166	STD		{ int sunos_sys_exportfs(char *path, char *ex); }
274167	STD		{ int sunos_sys_mount(char *type, char *dir, \
275			    int flags, caddr_t data); }
276168	STD		{ int sunos_sys_ustat(int dev, \
277			    struct sunos_ustat *buf); }
278#ifdef SYSVSEM
279169	NOARGS		{ int compat_10_sys_semsys(int which, int a2, int a3, \
280			    int a4, int a5); }
281#else
282169	UNIMPL		semsys
283#endif
284#ifdef SYSVMSG
285170	NOARGS		{ int compat_10_sys_msgsys(int which, int a2, int a3, \
286			    int a4, int a5, int a6); }
287#else
288170	UNIMPL		msgsys
289#endif
290#ifdef SYSVSHM
291171	NOARGS		{ int compat_10_sys_shmsys(int which, int a2, int a3, \
292			    int a4); }
293#else
294171	UNIMPL		shmsys
295#endif
296172	STD		{ int sunos_sys_auditsys(char *record); }
297173	UNIMPL		rfssys
298174	STD		{ int sunos_sys_getdents(int fd, char *buf, \
299			    int nbytes); }
300175	NOARGS		{ int sys_setsid(void); }
301176	NOARGS		{ int sys_fchdir(int fd); }
302177	NOARGS		{ int sys_fchroot(int fd); }
303178	UNIMPL		vpixsys
304179	UNIMPL		aioread
305180	UNIMPL		aiowrite
306181	UNIMPL		aiowait
307182	UNIMPL		aiocancel
308183	STD		{ int sunos_sys_sigpending(int *mask); }
309184	UNIMPL		
310185	NOARGS		{ int sys_setpgid(int pid, int pgid); }
311186	NOARGS		{ long sys_pathconf(char *path, int name); }
312187	NOARGS		{ long sys_fpathconf(int fd, int name); }
313188	STD		{ int sunos_sys_sysconf(int name); }
314189	STD		{ int sunos_sys_uname(struct sunos_utsname *name); }
315