xref: /netbsd-src/sys/compat/ultrix/syscalls.master (revision fdecd6a253f999ae92b139670d9e15cc9df4497c)
1	$NetBSD: syscalls.master,v 1.21 1997/06/13 19:15:18 thorpej 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 switch definition file only.
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/signal.h>
37#include <sys/mount.h>
38#include <sys/syscallargs.h>
39#include <compat/ultrix/ultrix_syscallargs.h>
40
410	NOARGS		{ int sys_nosys(void); } syscall
421	NOARGS		{ int sys_exit(int rval); }
432	NOARGS		{ int sys_fork(void); }
443	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
454	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
465	STD		{ int ultrix_sys_open(char *path, int flags, \
47			    int mode); }
486	NOARGS		{ int sys_close(int fd); }
497	NOARGS		{ int compat_43_sys_wait(void); } owait
508	STD		{ int ultrix_sys_creat(char *path, int mode); }
519	NOARGS		{ int sys_link(char *path, char *link); }
5210	NOARGS		{ int sys_unlink(char *path); }
5311	STD		{ int ultrix_sys_execv(char *path, char **argp); }
5412	NOARGS		{ int sys_chdir(char *path); }
5513	OBSOL		time
5614	STD		{ int ultrix_sys_mknod(char *path, int mode, int dev); }
5715	NOARGS		{ int sys_chmod(char *path, int mode); }
5816	NOARGS		{ int sys_chown(char *path, int uid, int gid); }
5917	NOARGS		{ int sys_obreak(char *nsize); } break
6018	OBSOL		stat
6119	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
62			    int whence); }
6320	NOARGS		{ pid_t sys_getpid(void); }
6421	STD		{ int ultrix_sys_mount(char *special, char *dir, \
65			     int rdonly, int type, caddr_t data); }
6622	OBSOL		sysV_unmount
6723	NOARGS		{ int sys_setuid(uid_t uid); }
6824	NOARGS		{ uid_t sys_getuid(void); }
6925	OBSOL		v7 stime
7026	OBSOL		v7 ptrace
7127	OBSOL		v7 alarm
7228	OBSOL		v7 fstat
7329	OBSOL		v7 pause
7430	OBSOL		v7 utime
7531	OBSOL		v7 stty
7632	OBSOL		v7 gtty
7733	STD		{ int ultrix_sys_access(char *path, int flags); }
7834	OBSOL		v7 nice
7935	OBSOL		v7 ftime
8036	NOARGS		{ int sys_sync(void); }
8137	NOARGS		{ int sys_kill(int pid, int signum); }
8238	STD		{ int ultrix_sys_stat(char *path, \
83			    struct ostat *ub); } ostat
8439	OBSOL		v7 setpgrp
8540	STD		{ int ultrix_sys_lstat(char *path, \
86			    struct ostat *ub); } olstat
8741	NOARGS		{ int sys_dup(u_int fd); }
8842	NOARGS		{ int sys_pipe(void); }
8943	OBSOL		v7 times
9044	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
91			    u_int offset, u_int scale); }
9245	UNIMPL
9346	OBSOL		v7 setgid
9447	NOARGS		{ gid_t sys_getgid(void); }
9548	UNIMPL		ssig
9649	UNIMPL		reserved for USG
9750	UNIMPL		reserved for USG
9851	NOARGS		{ int sys_acct(char *path); }
9952	UNIMPL
10053	UNIMPL		syslock
10154	STD		{ int ultrix_sys_ioctl(int fd, u_long com, caddr_t data); }
10255	NOARGS		{ int sys_reboot(int opt); }
10356	UNIMPL		v7 mpxchan
10457	NOARGS		{ int sys_symlink(char *path, char *link); }
10558	NOARGS		{ int sys_readlink(char *path, char *buf, int count); }
10659	STD		{ int ultrix_sys_execve(char *path, char **argp, \
107			    char **envp); }
10860	NOARGS		{ int sys_umask(int newmask); }
10961	NOARGS		{ int sys_chroot(char *path); }
11062	NOARGS		{ int compat_43_sys_fstat(int fd, struct ostat *sb); }
11163	UNIMPL
11264	NOARGS		{ int compat_43_sys_getpagesize(void); }
11365	UNIMPL		mremap
11466	NOARGS		{ int sys_vfork(void); }
11567	OBSOL		vread
11668	OBSOL		vwrite
11769	NOARGS		{ int sys_sbrk(int incr); }
11870	NOARGS		{ int sys_sstk(int incr); }
11971	STD		{ int ultrix_sys_mmap(caddr_t addr, size_t len, \
120			    int prot, u_int flags, int fd, long pos); }
12172	NOARGS		{ int sys_ovadvise(int anom); } vadvise
12273	NOARGS		{ int sys_munmap(caddr_t addr, size_t len); }
12374	NOARGS		{ int sys_mprotect(caddr_t addr, size_t len, \
124			    int prot); }
12575	NOARGS		{ int sys_madvise(caddr_t addr, size_t len, \
126			    int behav); }
12776	STD		{ int ultrix_sys_vhangup(void); }
12877	UNIMPL		old vlimit
12978	NOARGS		{ int sys_mincore(caddr_t addr, int len, char *vec); }
13079	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
13180	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
13281	NOARGS		{ int sys_getpgrp(void); }
13382	STD		{ int ultrix_sys_setpgrp(int pid, int pgid); }
13483	NOARGS		{ int sys_setitimer(u_int which, \
135			    struct itimerval *itv, struct itimerval *oitv); }
13684	STD		{ int ultrix_sys_wait3(int *status, int options, \
137			    struct rusage *rusage);}
13885	NOARGS		{ int compat_12_sys_swapon(char *name); }
13986	NOARGS		{ int sys_getitimer(u_int which, \
140			    struct itimerval *itv); }
14187	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
142			    u_int len); }
14388	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
144			    u_int len); }
14589	NOARGS		{ int compat_43_sys_getdtablesize(void); }
14690	NOARGS		{ int sys_dup2(u_int from, u_int to); }
14791	UNIMPL		getdopt
14892	NOARGS		{ int sys_fcntl(int fd, int cmd, void *arg); }
14993	STD		{ int ultrix_sys_select(u_int nd, fd_set *in, fd_set *ou, \
150			    fd_set *ex, struct timeval *tv); }
15194	UNIMPL		setdopt
15295	NOARGS		{ int sys_fsync(int fd); }
15396	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
15497	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
15598	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
15699	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
157			    int *anamelen); }
158100	NOARGS		{ int sys_getpriority(int which, int who); }
159101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
160			    int flags); }
161102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
162			    int flags); }
163103	NOARGS		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
164104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
165105	STD		{ int ultrix_sys_setsockopt(int s, int level, \
166			    int name, caddr_t val, int valsize); }
167106	NOARGS		{ int sys_listen(int s, int backlog); }
168107	UNIMPL		vtimes
169108	NOARGS		{ int compat_43_sys_sigvec(int signum, \
170			    struct sigvec *nsv, struct sigvec *osv); }
171109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
172110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
173111	NOARGS		{ int sys_sigsuspend(int mask); }
174112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
175			    struct sigstack *oss); }
176113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
177			    struct omsghdr *msg, int flags); }
178114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
179			    int flags); }
180115	OBSOL		vtrace
181116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
182			    struct timezone *tzp); }
183117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
184118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
185			    caddr_t val, int *avalsize); }
186119	UNIMPL		resuba
187120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
188			    u_int iovcnt); }
189121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
190			    u_int iovcnt); }
191122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
192			    struct timezone *tzp); }
193123	NOARGS		{ int sys_fchown(int fd, int uid, int gid); }
194124	NOARGS		{ int sys_fchmod(int fd, int mode); }
195125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
196			    size_t len, int flags, caddr_t from, \
197			    int *fromlenaddr); }
198126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
199127	NOARGS		{ int sys_setregid(int rgid, int egid); }
200128	NOARGS		{ int sys_rename(char *from, char *to); }
201129	NOARGS		{ int compat_43_sys_truncate(char *path, long length); }
202130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
203131	NOARGS		{ int sys_flock(int fd, int how); }
204132	UNIMPL
205133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
206			    int flags, caddr_t to, int tolen); }
207134	NOARGS		{ int sys_shutdown(int s, int how); }
208135	NOARGS		{ int sys_socketpair(int domain, int type, \
209			    int protocol, int *rsv); }
210136	NOARGS		{ int sys_mkdir(char *path, int mode); }
211137	NOARGS		{ int sys_rmdir(char *path); }
212138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
213139	STD		{ int ultrix_sys_sigcleanup(struct sigcontext *sigcntxp); }
214140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
215			    struct timeval *olddelta); }
216141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
217			    int *alen); }
218142	NOARGS		{ int compat_43_sys_gethostid(void); }
219143	UNIMPL		old sethostid
220144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
221			    struct orlimit *rlp); }
222145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
223			    struct orlimit *rlp); }
224146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
225147	UNIMPL
226148	UNIMPL		setquota
227149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
228150	NOARGS		{ int compat_43_sys_getsockname(int fdes, caddr_t asa, \
229			    int *alen); }
230151	UNIMPL		sysmips /* 4 args */
231#ifdef __mips
232152	STD		{ int ultrix_sys_cacheflush(char *addr, int nbytes, \
233			    int whichcache); }
234153	STD	{ int ultrix_sys_cachectl(char *addr, int nbytes, int cacheop); }
235#else	/* !mips */
236152	UNIMPL
237153	UNIMPL
238#endif	/* !mips */
239154	UNIMPL
240155	UNIMPL		atomic_op
241156	UNIMPL
242157	UNIMPL
243#ifdef NFSSERVER
244158	STD		{ int ultrix_sys_nfssvc(int fd); }
245#else
246158	UNIMPL
247#endif
248159	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
249			    u_int count, long *basep); }
250160	STD		{ int ultrix_sys_statfs(char *path, \
251			    struct ultrix_statfs *buf); }
252161	STD		{ int ultrix_sys_fstatfs(int fd, \
253			    struct ultrix_statfs *buf); }
254162	UNIMPL		umount
255#ifdef NFS
256163	NOARGS		{ int async_daemon(void); }
257164	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
258#else
259163	UNIMPL		async_daemon
260164	UNIMPL		getfh
261#endif
262165	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
263			    int len); }
264166	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
265			    int len); }
266167	UNIMPL
267168	STD		{ int ultrix_sys_quotactl(int cmd, char *special, \
268			    int uid, caddr_t addr); }
269169	STD		{ int ultrix_sys_exportfs(char *path, char *ex); }
270170	UNIMPL		{ int ultrix_sys_mount(char *special, char *dir, \
271			     int rdonly, int type, caddr_t data); }
272171	UNIMPL	4 hdwconf
273172	UNIMPL		msgctl
274173	UNIMPL		msgget
275174	UNIMPL		msgrcv
276175	UNIMPL		msgsnd
277176	UNIMPL		semctl
278177	UNIMPL		semget
279178	UNIMPL		semop
280179	STD		{ int ultrix_sys_uname(struct ultrix_utsname *name); }
281180	STD		{ int ultrix_sys_shmsys(u_int shmop, \
282						u_int a2, u_int a3, u_int a4); }
283181	UNIMPL	0 plock
284182	UNIMPL	0 lockf
285183	STD		{ int ultrix_sys_ustat(int dev, \
286			    struct ultrix_ustat *buf); }
287184	STD		{ int ultrix_sys_getmnt(int *start, \
288				struct ultrix_fs_data *buf, \
289				int bufsize, int mode, char *path); }
290185	UNIMPL	 	notdef
291186	UNIMPL	 	notdef
292187	STD		{ int ultrix_sys_sigpending(int *mask); }
293188	NOARGS		{ int sys_setsid(void); }
294189	STD		{ int ultrix_sys_waitpid(int pid, int *status, \
295			    int options); }
296190	UNIMPL
297191	UNIMPL
298192	UNIMPL
299193	UNIMPL
300194	UNIMPL
301195	UNIMPL
302196	UNIMPL
303197	UNIMPL
304198	UNIMPL
305199	UNIMPL
306200	UNIMPL
307201	UNIMPL
308202	UNIMPL
309203	UNIMPL
310204	UNIMPL
311205	UNIMPL
312206	UNIMPL
313207	UNIMPL
314208	UNIMPL
315209	UNIMPL
316210	UNIMPL
317211	UNIMPL
318212	UNIMPL
319213	UNIMPL
320214	UNIMPL
321215	UNIMPL
322216	UNIMPL
323217	UNIMPL
324218	UNIMPL
325219	UNIMPL
326220	UNIMPL
327221	UNIMPL
328222	UNIMPL
329223	UNIMPL
330224	UNIMPL
331225	UNIMPL
332226	UNIMPL
333227	UNIMPL
334228	UNIMPL
335229	UNIMPL
336230	UNIMPL
337231	UNIMPL
338232	UNIMPL
339233	UNIMPL	1 utc_gettime
340234	UNIMPL	2 utc_adjtime
341235	UNIMPL
342236	UNIMPL
343237	UNIMPL
344238	UNIMPL
345239	UNIMPL
346240	UNIMPL
347241	UNIMPL
348242	UNIMPL
349243	UNIMPL
350244	UNIMPL
351245	UNIMPL
352246	UNIMPL
353247	UNIMPL
354248	UNIMPL
355249	UNIMPL
356250	UNIMPL
357251	UNIMPL
358252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
359253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
360254	UNIMPL		startcpu
361255	UNIMPL		stopcpu
362256	STD		{ int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
363			    unsigned nbytes, int *start, char *arg); }
364257	STD		{ int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
365			    unsigned nbytes, unsigned arg, unsigned flag); }
366
367