xref: /netbsd-src/sys/compat/ultrix/syscalls.master (revision 500db002748d9818288e46e10f026a2b09548086)
1	$NetBSD: syscalls.master,v 1.50 2009/01/17 15:48:06 he 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 "fs_nfs.h"
36#endif
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/signal.h>
41#include <sys/mount.h>
42#include <sys/sched.h>
43#include <sys/syscallargs.h>
44#include <compat/ultrix/ultrix_syscallargs.h>
45
46%%
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|ultrix_sys||open(const char *path, int flags, \
54			    int mode); }
556	NOARGS		{ int|sys||close(int fd); }
567	NOARGS		{ int|compat_43_sys||wait(void); } owait
578	STD		{ int|ultrix_sys||creat(const char *path, int mode); }
589	NOARGS		{ int|sys||link(char *path, char *link); }
5910	NOARGS		{ int|sys||unlink(char *path); }
6011	STD		{ int|ultrix_sys||execv(const char *path, char **argp); }
6112	NOARGS		{ int|sys||chdir(char *path); }
6213	OBSOL		time
6314	STD		{ int|ultrix_sys||mknod(const char *path, int mode, \
64			    int dev); }
6515	NOARGS		{ int|sys||chmod(char *path, int mode); }
6616	NOARGS		{ int|sys||__posix_chown(char *path, int uid, int gid); }
6717	NOARGS		{ int|sys||obreak(char *nsize); } break
6818	OBSOL		stat
6919	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
70			    int whence); }
7120	NOARGS 		{ pid_t|sys||getpid(void); }
7221	STD		{ int|ultrix_sys||mount(char *special, char *dir, \
73			     int rdonly, int type, void *data); }
7422	OBSOL		sysV_unmount
7523	NOARGS		{ int|sys||setuid(uid_t uid); }
7624	NOARGS		{ uid_t|sys||getuid(void); }
7725	OBSOL		v7 stime
7826	OBSOL		v7 ptrace
7927	OBSOL		v7 alarm
8028	OBSOL		v7 fstat
8129	OBSOL		v7 pause
8230	OBSOL		v7 utime
8331	OBSOL		v7 stty
8432	OBSOL		v7 gtty
8533	STD		{ int|ultrix_sys||access(const char *path, int flags); }
8634	OBSOL		v7 nice
8735	OBSOL		v7 ftime
8836	NOARGS		{ int|sys||sync(void); }
8937	NOARGS		{ int|sys||kill(int pid, int signum); }
9038	STD		{ int|ultrix_sys||stat(const char *path, \
91			    struct stat43 *ub); } stat43
9239	OBSOL		v7 setpgrp
9340	STD		{ int|ultrix_sys||lstat(const char *path, \
94			    struct stat43 *ub); } lstat43
9541	NOARGS		{ int|sys||dup(u_int fd); }
9642	NOARGS		{ int|sys||pipe(void); }
9743	OBSOL		v7 times
9844	NOARGS		{ int|sys||profil(void *samples, u_int size, \
99			    u_int offset, u_int scale); }
10045	UNIMPL
10146	OBSOL		v7 setgid
10247	NOARGS		{ gid_t|sys||getgid(void); }
10348	UNIMPL		ssig
10449	UNIMPL		reserved for USG
10550	UNIMPL		reserved for USG
10651	NOARGS		{ int|sys||acct(char *path); }
10752	UNIMPL
10853	UNIMPL		syslock
10954	STD		{ int|ultrix_sys||ioctl(int fd, u_long com, void *data); }
11055	NOARGS		{ int|sys||reboot(int opt); }
11156	UNIMPL		v7 mpxchan
11257	NOARGS		{ int|sys||symlink(char *path, char *link); }
11358	NOARGS		{ int|sys||readlink(char *path, char *buf, int count); }
11459	STD		{ int|ultrix_sys||execve(const char *path, char **argp, \
115			    char **envp); }
11660	NOARGS		{ int|sys||umask(int newmask); }
11761	NOARGS		{ int|sys||chroot(char *path); }
11862	NOARGS		{ int|compat_43_sys||fstat(int fd, struct stat43 *sb); }
11963	UNIMPL
12064	NOARGS		{ int|compat_43_sys||getpagesize(void); }
12165	UNIMPL		mremap
12266	NOARGS		{ int|sys||vfork(void); }
12367	OBSOL		vread
12468	OBSOL		vwrite
12569	NOARGS		{ int|sys||sbrk(intptr_t incr); }
12670	NOARGS		{ int|sys||sstk(int incr); }
12771	STD		{ int|ultrix_sys||mmap(void *addr, size_t len, \
128			    int prot, u_int flags, int fd, long pos); }
12972	NOARGS		{ int|sys||ovadvise(int anom); } vadvise
13073	NOARGS		{ int|sys||munmap(void *addr, size_t len); }
13174	NOARGS		{ int|sys||mprotect(void *addr, size_t len, \
132			    int prot); }
13375	NOARGS		{ int|sys||madvise(void *addr, size_t len, \
134			    int behav); }
13576	STD		{ int|ultrix_sys||vhangup(void); }
13677	UNIMPL		old vlimit
13778	NOARGS		{ int|sys||mincore(void *addr, int len, 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|ultrix_sys||setpgrp(int pid, int pgid); }
14283	NOARGS		{ int|sys|50|setitimer(u_int which, \
143			    struct itimerval50 *itv, struct itimerval50 *oitv); }
14484	STD		{ int|ultrix_sys||wait3(int *status, int options, \
145			    struct rusage50 *rusage);}
14685	NOARGS		{ int|compat_12_sys||swapon(char *name); }
14786	NOARGS		{ int|sys|50|getitimer(u_int which, \
148			    struct itimerval50 *itv); }
14987	NOARGS		{ int|compat_43_sys||gethostname(char *hostname, \
150			    u_int len); }
15188	NOARGS		{ int|compat_43_sys||sethostname(char *hostname, \
152			    u_int len); }
15389	NOARGS		{ int|compat_43_sys||getdtablesize(void); }
15490	NOARGS		{ int|sys||dup2(u_int from, u_int to); }
15591	UNIMPL		getdopt
15692	STD		{ int|ultrix_sys||fcntl(int fd, int cmd, void *arg); }
15793	STD		{ int|ultrix_sys||select(u_int nd, fd_set *in, fd_set *ou, \
158			    fd_set *ex, struct timeval50 *tv); }
15994	UNIMPL		setdopt
16095	NOARGS		{ int|sys||fsync(int fd); }
16196	NOARGS		{ int|sys||setpriority(int which, int who, int prio); }
16297	NOARGS		{ int|compat_30_sys||socket(int domain, int type, int protocol); }
16398	NOARGS		{ int|sys||connect(int s, void *name, int namelen); }
16499	NOARGS		{ int|compat_43_sys||accept(int s, void *name, \
165			    int *anamelen); }
166100	NOARGS		{ int|sys||getpriority(int which, int who); }
167101	NOARGS		{ int|compat_43_sys||send(int s, void *buf, int len, \
168			    int flags); }
169102	NOARGS		{ int|compat_43_sys||recv(int s, void *buf, int len, \
170			    int flags); }
171103	STD			{ int|ultrix_sys||sigreturn(struct sigcontext * \
172							sigcntxp); }
173104	NOARGS		{ int|sys||bind(int s, void *name, int namelen); }
174105	STD		{ int|ultrix_sys||setsockopt(int s, int level, \
175			    int name, void *val, int valsize); }
176106	NOARGS		{ int|sys||listen(int s, int backlog); }
177107	UNIMPL		vtimes
178108	STD		{ int|ultrix_sys||sigvec(int signum, \
179			    struct sigvec *nsv, struct sigvec *osv); }
180109	NOARGS		{ int|compat_43_sys||sigblock(int mask); }
181110	NOARGS		{ int|compat_43_sys||sigsetmask(int mask); }
182111	STD			{ int|ultrix_sys||sigsuspend(int mask); }
183112	NOARGS		{ int|compat_43_sys||sigstack(struct sigstack *nss, \
184			    struct sigstack *oss); }
185113	NOARGS		{ int|compat_43_sys||recvmsg(int s, \
186			    struct omsghdr *msg, int flags); }
187114	NOARGS		{ int|compat_43_sys||sendmsg(int s, void *msg, \
188			    int flags); }
189115	OBSOL		vtrace
190116	NOARGS		{ int|sys|50|gettimeofday(struct timeval50 *tp, \
191			    struct timezone *tzp); }
192117	NOARGS		{ int|sys|50|getrusage(int who, struct rusage50 *rusage); }
193118	NOARGS		{ int|sys||getsockopt(int s, int level, int name, \
194			    void *val, int *avalsize); }
195119	UNIMPL		resuba
196120	NOARGS		{ int|sys||readv(int fd, struct iovec *iovp, \
197			    u_int iovcnt); }
198121	NOARGS		{ int|sys||writev(int fd, struct iovec *iovp, \
199			    u_int iovcnt); }
200122	NOARGS		{ int|sys|50|settimeofday(struct timeval50 *tv, \
201			    struct timezone *tzp); }
202123	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); }
203124	NOARGS		{ int|sys||fchmod(int fd, int mode); }
204125	NOARGS		{ int|compat_43_sys||recvfrom(int s, void *buf, \
205			    size_t len, int flags, void *from, \
206			    int *fromlenaddr); }
207126	NOARGS		{ int|sys||setreuid(int ruid, int euid); }
208127	NOARGS		{ int|sys||setregid(int rgid, int egid); }
209128	NOARGS		{ int|sys||rename(char *from, char *to); }
210129	NOARGS		{ int|compat_43_sys||truncate(char *path, long length); }
211130	NOARGS		{ int|compat_43_sys||ftruncate(int fd, long length); }
212131	NOARGS		{ int|sys||flock(int fd, int how); }
213132	UNIMPL
214133	NOARGS		{ int|sys||sendto(int s, void *buf, size_t len, \
215			    int flags, void *to, int tolen); }
216134	NOARGS		{ int|sys||shutdown(int s, int how); }
217135	NOARGS		{ int|sys||socketpair(int domain, int type, \
218			    int protocol, int *rsv); }
219136	NOARGS		{ int|sys||mkdir(char *path, int mode); }
220137	NOARGS		{ int|sys||rmdir(char *path); }
221138	NOARGS		{ int|sys|50|utimes(char *path, struct timeval50 *tptr); }
222139	STD		{ int|ultrix_sys||sigcleanup(struct sigcontext *sigcntxp); }
223140	NOARGS		{ int|sys|50|adjtime(struct timeval50 *delta, \
224			    struct timeval50 *olddelta); }
225141	NOARGS		{ int|compat_43_sys||getpeername(int fdes, void *asa, \
226			    int *alen); }
227142	NOARGS		{ int|compat_43_sys||gethostid(void); }
228143	UNIMPL		old sethostid
229144	NOARGS		{ int|compat_43_sys||getrlimit(u_int which, \
230			    struct orlimit *rlp); }
231145	NOARGS		{ int|compat_43_sys||setrlimit(u_int which, \
232			    struct orlimit *rlp); }
233146	NOARGS		{ int|compat_43_sys||killpg(int pgid, int signum); }
234147	UNIMPL
235148	UNIMPL		setquota
236149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
237150	NOARGS		{ int|compat_43_sys||getsockname(int fdes, void *asa, \
238			    int *alen); }
239151	UNIMPL		sysmips /* 4 args */
240#ifdef __mips
241152	STD		{ int|ultrix_sys||cacheflush(char *addr, int nbytes, \
242			    int whichcache); }
243153	STD	{ int|ultrix_sys||cachectl(char *addr, int nbytes, int cacheop); }
244#else	/* !mips */
245152	UNIMPL
246153	UNIMPL
247#endif	/* !mips */
248154	UNIMPL
249155	UNIMPL		atomic_op
250156	UNIMPL
251157	UNIMPL
252158	STD		{ int|ultrix_sys||nfssvc(int fd); }
253159	NOARGS		{ int|compat_43_sys||getdirentries(int fd, char *buf, \
254			    u_int count, long *basep); }
255160	STD		{ int|ultrix_sys||statfs(const char *path, \
256			    struct ultrix_statfs *buf); }
257161	STD		{ int|ultrix_sys||fstatfs(int fd, \
258			    struct ultrix_statfs *buf); }
259162	UNIMPL		umount
260#ifdef NFS
261163	NOARGS		{ int|async||daemon(void); }
262164	NOARGS		{ int|compat_30_sys||getfh(char *fname, fhandle_t *fhp); }
263#else
264163	UNIMPL		async_daemon
265164	UNIMPL		getfh
266#endif
267165	NOARGS		{ int|compat_09_sys||getdomainname(char *domainname, \
268			    int len); }
269166	NOARGS		{ int|compat_09_sys||setdomainname(char *domainname, \
270			    int len); }
271167	UNIMPL
272168	STD		{ int|ultrix_sys||quotactl(int cmd, char *special, \
273			    int uid, void *addr); }
274169	STD		{ int|ultrix_sys||exportfs(char *path, char *ex); }
275170	UNIMPL		ultrix_sys_mount
276171	UNIMPL	4 hdwconf
277172	UNIMPL		msgctl
278173	UNIMPL		msgget
279174	UNIMPL		msgrcv
280175	UNIMPL		msgsnd
281176	UNIMPL		semctl
282177	UNIMPL		semget
283178	UNIMPL		semop
284179	STD		{ int|ultrix_sys||uname(struct ultrix_utsname *name); }
285180	STD		{ int|ultrix_sys||shmsys(u_int shmop, \
286						u_int a2, u_int a3, u_int a4); }
287181	UNIMPL	0 plock
288182	UNIMPL	0 lockf
289183	STD		{ int|ultrix_sys||ustat(int dev, \
290			    struct ultrix_ustat *buf); }
291184	STD		{ int|ultrix_sys||getmnt(int *start, \
292				struct ultrix_fs_data *buf, \
293				int bufsize, int mode, char *path); }
294185	UNIMPL	 	notdef
295186	UNIMPL	 	notdef
296187	STD		{ int|ultrix_sys||sigpending(int *mask); }
297188	NOARGS		{ int|sys||setsid(void); }
298189	STD		{ int|ultrix_sys||waitpid(int pid, int *status, \
299			    int options); }
300190	UNIMPL
301191	UNIMPL
302192	UNIMPL
303193	UNIMPL
304194	UNIMPL
305195	UNIMPL
306196	UNIMPL
307197	UNIMPL
308198	UNIMPL
309199	UNIMPL
310200	UNIMPL
311201	UNIMPL
312202	UNIMPL
313203	UNIMPL
314204	UNIMPL
315205	UNIMPL
316206	UNIMPL
317207	UNIMPL
318208	UNIMPL
319209	UNIMPL
320210	UNIMPL
321211	UNIMPL
322212	UNIMPL
323213	UNIMPL
324214	UNIMPL
325215	UNIMPL
326216	UNIMPL
327217	UNIMPL
328218	UNIMPL
329219	UNIMPL
330220	UNIMPL
331221	UNIMPL
332222	UNIMPL
333223	UNIMPL
334224	UNIMPL
335225	UNIMPL
336226	UNIMPL
337227	UNIMPL
338228	UNIMPL
339229	UNIMPL
340230	UNIMPL
341231	UNIMPL
342232	UNIMPL
343233	UNIMPL	1 utc_gettime
344234	UNIMPL	2 utc_adjtime
345235	UNIMPL
346236	UNIMPL
347237	UNIMPL
348238	UNIMPL
349239	UNIMPL
350240	UNIMPL
351241	UNIMPL
352242	UNIMPL
353243	UNIMPL
354244	UNIMPL
355245	UNIMPL
356246	UNIMPL
357247	UNIMPL
358248	UNIMPL
359249	UNIMPL
360250	UNIMPL
361251	UNIMPL
362252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
363253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
364254	UNIMPL		startcpu
365255	UNIMPL		stopcpu
366256	STD		{ int|ultrix_sys||getsysinfo(unsigned op, char *buffer, \
367			    unsigned nbytes, int *start, char *arg); }
368257	STD		{ int|ultrix_sys||setsysinfo(unsigned op, char *buffer, \
369			    unsigned nbytes, unsigned arg, unsigned flag); }
370
371