xref: /netbsd-src/sys/compat/ultrix/syscalls.master (revision e5548b402ae4c44fb816de42c7bba9581ce23ef5)
1	$NetBSD: syscalls.master,v 1.40 2005/12/11 12:20:30 christos Exp $
2
3;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
4
5; NetBSD COMPAT_ULTRIX 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#if defined(_KERNEL_OPT)
35#include "opt_nfsserver.h"
36#include "fs_nfs.h"
37#endif
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/signal.h>
42#include <sys/mount.h>
43#include <sys/sa.h>
44#include <sys/syscallargs.h>
45#include <compat/ultrix/ultrix_syscallargs.h>
46
47%%
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 ultrix_sys_open(const char *path, int flags, \
55			    int mode); }
566	NOARGS		{ int sys_close(int fd); }
577	NOARGS		{ int compat_43_sys_wait(void); } owait
588	STD		{ int ultrix_sys_creat(const char *path, int mode); }
599	NOARGS		{ int sys_link(char *path, char *link); }
6010	NOARGS		{ int sys_unlink(char *path); }
6111	STD		{ int ultrix_sys_execv(const char *path, char **argp); }
6212	NOARGS		{ int sys_chdir(char *path); }
6313	OBSOL		time
6414	STD		{ int ultrix_sys_mknod(const char *path, int mode, \
65			    int dev); }
6615	NOARGS		{ int sys_chmod(char *path, int mode); }
6716	NOARGS		{ int sys___posix_chown(char *path, int uid, int gid); }
6817	NOARGS		{ int sys_obreak(char *nsize); } break
6918	OBSOL		stat
7019	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
71			    int whence); }
7220	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
7321	STD		{ int ultrix_sys_mount(char *special, char *dir, \
74			     int rdonly, int type, caddr_t data); }
7522	OBSOL		sysV_unmount
7623	NOARGS		{ int sys_setuid(uid_t uid); }
7724	NOARGS		{ uid_t sys_getuid(void); }
7825	OBSOL		v7 stime
7926	OBSOL		v7 ptrace
8027	OBSOL		v7 alarm
8128	OBSOL		v7 fstat
8229	OBSOL		v7 pause
8330	OBSOL		v7 utime
8431	OBSOL		v7 stty
8532	OBSOL		v7 gtty
8633	STD		{ int ultrix_sys_access(const char *path, int flags); }
8734	OBSOL		v7 nice
8835	OBSOL		v7 ftime
8936	NOARGS		{ int sys_sync(void); }
9037	NOARGS		{ int sys_kill(int pid, int signum); }
9138	STD		{ int ultrix_sys_stat(const char *path, \
92			    struct stat43 *ub); } stat43
9339	OBSOL		v7 setpgrp
9440	STD		{ int ultrix_sys_lstat(const char *path, \
95			    struct stat43 *ub); } lstat43
9641	NOARGS		{ int sys_dup(u_int fd); }
9742	NOARGS		{ int sys_pipe(void); }
9843	OBSOL		v7 times
9944	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
100			    u_int offset, u_int scale); }
10145	UNIMPL
10246	OBSOL		v7 setgid
10347	NOARGS		{ gid_t sys_getgid(void); }
10448	UNIMPL		ssig
10549	UNIMPL		reserved for USG
10650	UNIMPL		reserved for USG
10751	NOARGS		{ int sys_acct(char *path); }
10852	UNIMPL
10953	UNIMPL		syslock
11054	STD		{ int ultrix_sys_ioctl(int fd, u_long com, caddr_t data); }
11155	NOARGS		{ int sys_reboot(int opt); }
11256	UNIMPL		v7 mpxchan
11357	NOARGS		{ int sys_symlink(char *path, char *link); }
11458	NOARGS		{ int sys_readlink(char *path, char *buf, int count); }
11559	STD		{ int ultrix_sys_execve(const char *path, char **argp, \
116			    char **envp); }
11760	NOARGS		{ int sys_umask(int newmask); }
11861	NOARGS		{ int sys_chroot(char *path); }
11962	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); }
12063	UNIMPL
12164	NOARGS		{ int compat_43_sys_getpagesize(void); }
12265	UNIMPL		mremap
12366	NOARGS		{ int sys_vfork(void); }
12467	OBSOL		vread
12568	OBSOL		vwrite
12669	NOARGS		{ int sys_sbrk(intptr_t incr); }
12770	NOARGS		{ int sys_sstk(int incr); }
12871	STD		{ int ultrix_sys_mmap(caddr_t addr, size_t len, \
129			    int prot, u_int flags, int fd, long pos); }
13072	NOARGS		{ int sys_ovadvise(int anom); } vadvise
13173	NOARGS		{ int sys_munmap(caddr_t addr, size_t len); }
13274	NOARGS		{ int sys_mprotect(caddr_t addr, size_t len, \
133			    int prot); }
13475	NOARGS		{ int sys_madvise(caddr_t addr, size_t len, \
135			    int behav); }
13676	STD		{ int ultrix_sys_vhangup(void); }
13777	UNIMPL		old vlimit
13878	NOARGS		{ int sys_mincore(caddr_t addr, int len, char *vec); }
13979	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
14080	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
14181	NOARGS		{ int sys_getpgrp(void); }
14282	STD		{ int ultrix_sys_setpgrp(int pid, int pgid); }
14383	NOARGS		{ int sys_setitimer(u_int which, \
144			    struct itimerval *itv, struct itimerval *oitv); }
14584	STD		{ int ultrix_sys_wait3(int *status, int options, \
146			    struct rusage *rusage);}
14785	NOARGS		{ int compat_12_sys_swapon(char *name); }
14886	NOARGS		{ int sys_getitimer(u_int which, \
149			    struct itimerval *itv); }
15087	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
151			    u_int len); }
15288	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
153			    u_int len); }
15489	NOARGS		{ int compat_43_sys_getdtablesize(void); }
15590	NOARGS		{ int sys_dup2(u_int from, u_int to); }
15691	UNIMPL		getdopt
15792	STD		{ int ultrix_sys_fcntl(int fd, int cmd, void *arg); }
15893	STD		{ int ultrix_sys_select(u_int nd, fd_set *in, fd_set *ou, \
159			    fd_set *ex, struct timeval *tv); }
16094	UNIMPL		setdopt
16195	NOARGS		{ int sys_fsync(int fd); }
16296	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
16397	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
16498	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
16599	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
166			    int *anamelen); }
167100	NOARGS		{ int sys_getpriority(int which, int who); }
168101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
169			    int flags); }
170102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
171			    int flags); }
172103	STD			{ int ultrix_sys_sigreturn(struct sigcontext * \
173							sigcntxp); }
174104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
175105	STD		{ int ultrix_sys_setsockopt(int s, int level, \
176			    int name, caddr_t val, int valsize); }
177106	NOARGS		{ int sys_listen(int s, int backlog); }
178107	UNIMPL		vtimes
179108	STD		{ int ultrix_sys_sigvec(int signum, \
180			    struct sigvec *nsv, struct sigvec *osv); }
181109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
182110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
183111	STD			{ int ultrix_sys_sigsuspend(int mask); }
184112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
185			    struct sigstack *oss); }
186113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
187			    struct omsghdr *msg, int flags); }
188114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
189			    int flags); }
190115	OBSOL		vtrace
191116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
192			    struct timezone *tzp); }
193117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
194118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
195			    caddr_t val, int *avalsize); }
196119	UNIMPL		resuba
197120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
198			    u_int iovcnt); }
199121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
200			    u_int iovcnt); }
201122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
202			    struct timezone *tzp); }
203123	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
204124	NOARGS		{ int sys_fchmod(int fd, int mode); }
205125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
206			    size_t len, int flags, caddr_t from, \
207			    int *fromlenaddr); }
208126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
209127	NOARGS		{ int sys_setregid(int rgid, int egid); }
210128	NOARGS		{ int sys_rename(char *from, char *to); }
211129	NOARGS		{ int compat_43_sys_truncate(char *path, long length); }
212130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
213131	NOARGS		{ int sys_flock(int fd, int how); }
214132	UNIMPL
215133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
216			    int flags, caddr_t to, int tolen); }
217134	NOARGS		{ int sys_shutdown(int s, int how); }
218135	NOARGS		{ int sys_socketpair(int domain, int type, \
219			    int protocol, int *rsv); }
220136	NOARGS		{ int sys_mkdir(char *path, int mode); }
221137	NOARGS		{ int sys_rmdir(char *path); }
222138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
223139	STD		{ int ultrix_sys_sigcleanup(struct sigcontext *sigcntxp); }
224140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
225			    struct timeval *olddelta); }
226141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
227			    int *alen); }
228142	NOARGS		{ int compat_43_sys_gethostid(void); }
229143	UNIMPL		old sethostid
230144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
231			    struct orlimit *rlp); }
232145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
233			    struct orlimit *rlp); }
234146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
235147	UNIMPL
236148	UNIMPL		setquota
237149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
238150	NOARGS		{ int compat_43_sys_getsockname(int fdes, caddr_t asa, \
239			    int *alen); }
240151	UNIMPL		sysmips /* 4 args */
241#ifdef __mips
242152	STD		{ int ultrix_sys_cacheflush(char *addr, int nbytes, \
243			    int whichcache); }
244153	STD	{ int ultrix_sys_cachectl(char *addr, int nbytes, int cacheop); }
245#else	/* !mips */
246152	UNIMPL
247153	UNIMPL
248#endif	/* !mips */
249154	UNIMPL
250155	UNIMPL		atomic_op
251156	UNIMPL
252157	UNIMPL
253#ifdef NFSSERVER
254158	STD		{ int ultrix_sys_nfssvc(int fd); }
255#else
256158	UNIMPL
257#endif
258159	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
259			    u_int count, long *basep); }
260160	STD		{ int ultrix_sys_statfs(const char *path, \
261			    struct ultrix_statfs *buf); }
262161	STD		{ int ultrix_sys_fstatfs(int fd, \
263			    struct ultrix_statfs *buf); }
264162	UNIMPL		umount
265#ifdef NFS
266163	NOARGS		{ int async_daemon(void); }
267164	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
268#else
269163	UNIMPL		async_daemon
270164	UNIMPL		getfh
271#endif
272165	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
273			    int len); }
274166	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
275			    int len); }
276167	UNIMPL
277168	STD		{ int ultrix_sys_quotactl(int cmd, char *special, \
278			    int uid, caddr_t addr); }
279169	STD		{ int ultrix_sys_exportfs(char *path, char *ex); }
280170	UNIMPL		{ int ultrix_sys_mount(char *special, char *dir, \
281			     int rdonly, int type, caddr_t data); }
282171	UNIMPL	4 hdwconf
283172	UNIMPL		msgctl
284173	UNIMPL		msgget
285174	UNIMPL		msgrcv
286175	UNIMPL		msgsnd
287176	UNIMPL		semctl
288177	UNIMPL		semget
289178	UNIMPL		semop
290179	STD		{ int ultrix_sys_uname(struct ultrix_utsname *name); }
291180	STD		{ int ultrix_sys_shmsys(u_int shmop, \
292						u_int a2, u_int a3, u_int a4); }
293181	UNIMPL	0 plock
294182	UNIMPL	0 lockf
295183	STD		{ int ultrix_sys_ustat(int dev, \
296			    struct ultrix_ustat *buf); }
297184	STD		{ int ultrix_sys_getmnt(int *start, \
298				struct ultrix_fs_data *buf, \
299				int bufsize, int mode, char *path); }
300185	UNIMPL	 	notdef
301186	UNIMPL	 	notdef
302187	STD		{ int ultrix_sys_sigpending(int *mask); }
303188	NOARGS		{ int sys_setsid(void); }
304189	STD		{ int ultrix_sys_waitpid(int pid, int *status, \
305			    int options); }
306190	UNIMPL
307191	UNIMPL
308192	UNIMPL
309193	UNIMPL
310194	UNIMPL
311195	UNIMPL
312196	UNIMPL
313197	UNIMPL
314198	UNIMPL
315199	UNIMPL
316200	UNIMPL
317201	UNIMPL
318202	UNIMPL
319203	UNIMPL
320204	UNIMPL
321205	UNIMPL
322206	UNIMPL
323207	UNIMPL
324208	UNIMPL
325209	UNIMPL
326210	UNIMPL
327211	UNIMPL
328212	UNIMPL
329213	UNIMPL
330214	UNIMPL
331215	UNIMPL
332216	UNIMPL
333217	UNIMPL
334218	UNIMPL
335219	UNIMPL
336220	UNIMPL
337221	UNIMPL
338222	UNIMPL
339223	UNIMPL
340224	UNIMPL
341225	UNIMPL
342226	UNIMPL
343227	UNIMPL
344228	UNIMPL
345229	UNIMPL
346230	UNIMPL
347231	UNIMPL
348232	UNIMPL
349233	UNIMPL	1 utc_gettime
350234	UNIMPL	2 utc_adjtime
351235	UNIMPL
352236	UNIMPL
353237	UNIMPL
354238	UNIMPL
355239	UNIMPL
356240	UNIMPL
357241	UNIMPL
358242	UNIMPL
359243	UNIMPL
360244	UNIMPL
361245	UNIMPL
362246	UNIMPL
363247	UNIMPL
364248	UNIMPL
365249	UNIMPL
366250	UNIMPL
367251	UNIMPL
368252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
369253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
370254	UNIMPL		startcpu
371255	UNIMPL		stopcpu
372256	STD		{ int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
373			    unsigned nbytes, int *start, char *arg); }
374257	STD		{ int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
375			    unsigned nbytes, unsigned arg, unsigned flag); }
376
377