/*
 * System call switch table.
 *
 * DO NOT EDIT-- this file is automatically generated.
 * created from	@(#)ult_syscalls.master	3.1	 (Digital) 1/16/92
 */

#include <unix_locks.h>
#include <sys/param.h>
#include <sys/systm.h>

#if	UNIX_LOCKS
#define	UPAR	1
#else
#define	UPAR	0
#endif

#include <sys/secdefines.h>

int	nosys();

int	nosys();
int	rexit();
int	fork();
int	read();
int	write();
int	ult_open();
int	ult_close();
int	ocreat();
int	link();
int	unlink();
int	ult_execv();
int	chdir();
int	mknod();
int	chmod();
int	chown();
int	ult_obreak();
int	lseek();
int	getpid();
int	mount();
int	unmount();
int	getuid();
int	ptrace();
int	saccess();
int	sync();
int	kill();
int	ult_stat();
int	ult_lstat();
int	dup();
int	pipe();
int	profil();
int	getgid();
int	sysacct();
int	ult_ioctl();
int	reboot();
int	symlink();
int	readlink();
int	ult_execve();
int	umask();
int	chroot();
int	ult_fstat();
int	getpagesize();
int	mremap();
int	vfork();
int	sbrk();
int	sstk();
int	smmap();
int	ovadvise();
int	munmap();
int	mprotect();
int	madvise();
int	ovhangup();
int	mincore();
int	getgroups();
int	setgroups();
int	ogetpgrp();
int	setpgrp();
int	setitimer();
int	owait();
int	swapon();
int	getitimer();
int	gethostname();
int	sethostname();
int	getdtablesize();
int	dup2();
int	ult_fcntl();
int	select();
int	fsync();
int	setpriority();
int	socket();
int	connect();
int	oaccept();
int	getpriority();
int	osend();
int	orecv();
int	sigreturn();
int	bind();
int	setsockopt();
int	listen();
int	osigvec();
int	osigblock();
int	osigsetmask();
int	sigsuspend();
int	sigstack();
int	orecvmsg();
int	osendmsg();
int	gettimeofday();
int	ult_getrusage();
int	getsockopt();
int	readv();
int	writev();
int	settimeofday();
int	fchown();
int	fchmod();
int	orecvfrom();
int	setreuid();
int	setregid();
int	rename();
int	truncate();
int	ftruncate();
int	flock();
int	sendto();
int	shutdown();
int	socketpair();
int	mkdir();
int	rmdir();
int	utimes();
int	adjtime();
int	ogetpeername();
int	gethostid();
int	sethostid();
int	ult_getrlimit();
int	ult_setrlimit();
int	okillpg();
int	quotactl();
int	oldquota();
int	ogetsockname();
int	sysmips();
int	cacheflush();
int	ult_atomic_op();
int	nfssvc();
int	getdirentries();
int	async_daemon();
int	getfh();
int	getdomainname();
int	setdomainname();
int	exportfs();
int	msgctl();
int	msgget();
int	msgrcv();
int	msgsnd();
int	ult_semctl();
int	semget();
int	ult_semop();
int	uname();
int	ult_shmsys();
int	plock();
int	getmnt();
int	sigpending();
int	setsid();
int	ult_waitpid();
int	utc_gettime();
int	utc_adjtime();
int	ult_getsysinfo();
int	ult_setsysinfo();

#if COMPAT_43
#ifdef __STDC__
#define compat(n, name) n, 0, o##name
#define pcompat(n, name) n, 1, o##name
#define upcompat(n, name) n, UPAR, o##name

#else
#define compat(n, name) n, 0, o/**/name
#define pcompat(n, name) n, 1, o/**/name
#define upcompat(n, name) n, UPAR, o/**/name

#endif

#else /* COMPAT_43 */
#define compat(n, name) 0, 0, nosys
#define pcompat(n, name) 0, 1, nosys
#define upcompat(n, name) 0, UPAR, nosys
#endif /* COMPAT_43 */

struct sysent ult_sysent[] = {
	0, 1, nosys,			/* 0 = syscall */
	1, 0, rexit,			/* 1 = exit */
	0, 0, fork,			/* 2 = fork */
	3, UPAR, read,			/* 3 = read */
	3, UPAR, write,			/* 4 = write */
	3, UPAR, ult_open,			/* 5 = open */
	1, UPAR, ult_close,			/* 6 = close */
	0, 1, nosys,			/* 7 = obsolete wait */
	2, UPAR, ocreat,			/* 8 = creat */
	2, UPAR, link,			/* 9 = link */
	1, UPAR, unlink,			/* 10 = unlink */
	2, UPAR, ult_execv,			/* 11 = execv */
	1, UPAR, chdir,			/* 12 = chdir */
	0, 1, nosys,			/* 13 = obsolete time */
	3, UPAR, mknod,			/* 14 = mknod */
	2, UPAR, chmod,			/* 15 = chmod */
	3, UPAR, chown,			/* 16 = chown */
	1, 0, ult_obreak,			/* 17 = obreak */
	0, 1, nosys,			/* 18 = obsolete stat */
	3, UPAR, lseek,			/* 19 = lseek */
	0, 1, getpid,			/* 20 = getpid */
	4, UPAR, mount,			/* 21 = mount */
	2, UPAR, unmount,			/* 22 = umount */
	0, 1, nosys,			/* 23 = obsolete setuid */
	0, UPAR, getuid,			/* 24 = getuid */
	0, 1, nosys,			/* 25 = obsolete stime */
	4, 0, ptrace,			/* 26 = ptrace */
	0, 1, nosys,			/* 27 = obsolete alarm */
	0, 1, nosys,			/* 28 = obsolete fstat */
	0, 1, nosys,			/* 29 = obsolete pause */
	0, 1, nosys,			/* 30 = obsolete utime */
	0, 1, nosys,			/* 31 = obsolete stty */
	0, 1, nosys,			/* 32 = obsolete gtty */
	2, UPAR, saccess,			/* 33 = access */
	0, 1, nosys,			/* 34 = obsolete nice */
	0, 1, nosys,			/* 35 = obsolete ftime */
	0, UPAR, sync,			/* 36 = sync */
	2, 0, kill,			/* 37 = kill */
	2, UPAR, ult_stat,			/* 38 = stat */
	0, 1, nosys,			/* 39 = obsolete setpgrp */
	2, UPAR, ult_lstat,			/* 40 = lstat */
	2, UPAR, dup,			/* 41 = dup */
	0, UPAR, pipe,			/* 42 = pipe */
	0, 1, nosys,			/* 43 = obsolete times */
	4, 0, profil,			/* 44 = profil */
	0, 1, nosys,			/* 45 = nosys */
	0, 1, nosys,			/* 46 = obsolete setgid */
	0, UPAR, getgid,			/* 47 = getgid */
	0, 1, nosys,			/* 48 = obsolete sig */
	0, 1, nosys,			/* 49 = nosys */
	0, 1, nosys,			/* 50 = nosys */
	1, UPAR, sysacct,			/* 51 = acct */
	0, 1, nosys,			/* 52 = obsolete phys */
	0, 1, nosys,			/* 53 = obsolete syslock */
	3, UPAR, ult_ioctl,			/* 54 = ioctl */
	1, 0, reboot,			/* 55 = reboot */
	0, 1, nosys,			/* 56 = obsolete mpxchan */
	2, UPAR, symlink,			/* 57 = symlink */
	3, UPAR, readlink,			/* 58 = readlink */
	3, UPAR, ult_execve,			/* 59 = execve */
	1, UPAR, umask,			/* 60 = umask */
	1, UPAR, chroot,			/* 61 = chroot */
	2, UPAR, ult_fstat,			/* 62 = fstat */
	0, 1, nosys,			/* 63 = nosys */
	1, 1, getpagesize,			/* 64 = getpagesize */
	5, 0, mremap,			/* 65 = mremap */
	0, 0, vfork,			/* 66 = vfork */
	0, 1, nosys,			/* 67 = obsolete vread */
	0, 1, nosys,			/* 68 = obsolete vwrite */
	1, 0, sbrk,			/* 69 = sbrk */
	1, 0, sstk,			/* 70 = sstk */
	6, 0, smmap,			/* 71 = mmap */
	1, 0, ovadvise,			/* 72 = vadvise */
	2, 0, munmap,			/* 73 = munmap */
	3, 0, mprotect,			/* 74 = mprotect */
	3, 0, madvise,			/* 75 = madvise */
	1, UPAR, ovhangup,			/* 76 = vhangup */
	0, 1, nosys,			/* 77 = obsolete vlimit */
	3, 0, mincore,			/* 78 = mincore */
	2, UPAR, getgroups,			/* 79 = getgroups */
	2, UPAR, setgroups,			/* 80 = setgroups */
	1, 0, ogetpgrp,			/* 81 = getpgrp */
	2, 0, setpgrp,			/* 82 = setpgrp */
	3, UPAR, setitimer,			/* 83 = setitimer */
	3, 0, owait,			/* 84 = wait3 */
	4, UPAR, swapon,			/* 85 = swapon */
	2, UPAR, getitimer,			/* 86 = getitimer */
	2, UPAR, gethostname,			/* 87 = gethostname */
	2, UPAR, sethostname,			/* 88 = sethostname */
	0, UPAR, getdtablesize,			/* 89 = getdtablesize */
	2, UPAR, dup2,			/* 90 = dup2 */
	0, 1, nosys,			/* 91 = obsolete getdopt ?? */
	3, UPAR, ult_fcntl,			/* 92 = fcntl */
	5, UPAR, select,			/* 93 = select */
	0, 1, nosys,			/* 94 = obsolete setdopt ?? */
	1, UPAR, fsync,			/* 95 = fsync */
	3, 0, setpriority,			/* 96 = setpriority */
	3, UPAR, socket,			/* 97 = socket */
	3, UPAR, connect,			/* 98 = connect */
	3, UPAR, oaccept,			/* 99 = accept */
	2, 0, getpriority,			/* 100 = getpriority */
	4, UPAR, osend,			/* 101 = send */
	4, UPAR, orecv,			/* 102 = recv */
	1, 0, sigreturn,			/* 103 = sigreturn */
	3, UPAR, bind,			/* 104 = bind */
	5, UPAR, setsockopt,			/* 105 = setsockopt */
	2, UPAR, listen,			/* 106 = listen */
	0, 1, nosys,			/* 107 = obsolete vtimes */
	4, UPAR, osigvec,			/* 108 = sigvec */
	1, UPAR, osigblock,			/* 109 = sigblock */
	1, UPAR, osigsetmask,			/* 110 = sigsetmask */
	1, 0, sigsuspend,			/* 111 = sigpause */
	2, 0, sigstack,			/* 112 = sigstack */
	3, UPAR, orecvmsg,			/* 113 = recvmsg */
	3, UPAR, osendmsg,			/* 114 = sendmsg */
	0, 1, nosys,			/* 115 = obsolete vtrace */
	2, UPAR, gettimeofday,			/* 116 = gettimeofday */
	2, 0, ult_getrusage,			/* 117 = getrusage */
	5, UPAR, getsockopt,			/* 118 = getsockopt */
	0, 1, nosys,			/* 119 = obsolete resuba */
	3, UPAR, readv,			/* 120 = readv */
	3, UPAR, writev,			/* 121 = writev */
	2, UPAR, settimeofday,			/* 122 = settimeofday */
	3, UPAR, fchown,			/* 123 = fchown */
	2, UPAR, fchmod,			/* 124 = fchmod */
	6, UPAR, orecvfrom,			/* 125 = recvfrom */
	2, UPAR, setreuid,			/* 126 = setreuid */
	2, UPAR, setregid,			/* 127 = setregid */
	2, UPAR, rename,			/* 128 = rename */
	2, UPAR, truncate,			/* 129 = truncate */
	2, UPAR, ftruncate,			/* 130 = ftruncate */
	2, UPAR, flock,			/* 131 = flock */
	0, 1, nosys,			/* 132 = nosys */
	6, UPAR, sendto,			/* 133 = sendto */
	2, UPAR, shutdown,			/* 134 = shutdown */
	5, UPAR, socketpair,			/* 135 = socketpair */
	2, UPAR, mkdir,			/* 136 = mkdir */
	1, UPAR, rmdir,			/* 137 = rmdir */
	2, UPAR, utimes,			/* 138 = utimes */
	1, 0, sigreturn,			/* 139 = sigreturn (alternate) */
	2, UPAR, adjtime,			/* 140 = adjtime */
	3, UPAR, ogetpeername,			/* 141 = getpeername */
	0, UPAR, gethostid,			/* 142 = gethostid */
	1, UPAR, sethostid,			/* 143 = sethostid */
	2, 0, ult_getrlimit,			/* 144 = getrlimit */
	2, 0, ult_setrlimit,			/* 145 = setrlimit */
	2, 0, okillpg,			/* 146 = killpg */
	0, 1, nosys,			/* 147 = nosys */
	4, 0, quotactl,			/* 148 = quota */
	4, 0, oldquota,			/* 149 = qquota */
	3, UPAR, ogetsockname,			/* 150 = getsockname */
	5, 0, sysmips,			/* 151 = sysmips */
	3, 0, cacheflush,			/* 152 = cacheflush */
	0, 1, nosys,			/* 153 = obsolete cachectl */
	0, 1, nosys,			/* 154 = nosys */
	2, 1, ult_atomic_op,			/* 155 = atomic_op */
	0, 1, nosys,			/* 156 = nosys */
	0, 1, nosys,			/* 157 = obsolete nfs_mount */
	3, UPAR, nfssvc,			/* 158 = nfs_svc */
	4, UPAR, getdirentries,			/* 159 = getdirentries */
	0, 1, nosys,			/* 160 = obsolete statfs */
	0, 1, nosys,			/* 161 = obsolete fstatfs */
	0, 1, nosys,			/* 162 = obsolete unmount */
	0, 0, async_daemon,			/* 163 = async_daemon */
	3, UPAR, getfh,			/* 164 = getfh */
	2, UPAR, getdomainname,			/* 165 = getdomainname */
	2, UPAR, setdomainname,			/* 166 = setdomainname */
	0, 1, nosys,			/* 167 = obsolete pcfs_mount */
	0, 1, nosys,			/* 168 = obsolete quotactl */
	3, UPAR, exportfs,			/* 169 = exportfs */
	0, 1, nosys,			/* 170 = obsolete mount */
	0, 1, nosys,			/* 171 = obsolete mipshwconf */
	3, 0, msgctl,			/* 172 = msgctl */
	2, 0, msgget,			/* 173 = msgget */
	5, 0, msgrcv,			/* 174 = msgrcv */
	4, 0, msgsnd,			/* 175 = msgsnd */
	4, 0, ult_semctl,			/* 176 = semctl */
	3, 0, semget,			/* 177 = semget */
	3, 0, ult_semop,			/* 178 = semop */
	1, UPAR, uname,			/* 179 = uname */
	4, 0, ult_shmsys,			/* 180 = shmsys */
	1, 0, plock,			/* 181 = plock */
	0, 1, nosys,			/* 182 = obsolete lockf */
	0, 1, nosys,			/* 183 = obsolete ustat */
	5, 0, getmnt,			/* 184 = getmnt */
	0, 1, nosys,			/* 185 = obsolete mount */
	0, 1, nosys,			/* 186 = obsolete umount */
	1, 0, sigpending,			/* 187 = sigpending */
	0, 0, setsid,			/* 188 = setsid */
	3, 0, ult_waitpid,			/* 189 = waitpid */
	0, 1, nosys,			/* 190 = nosys */
	0, 1, nosys,			/* 191 = nosys */
	0, 1, nosys,			/* 192 = nosys */
	0, 1, nosys,			/* 193 = nosys */
	0, 1, nosys,			/* 194 = nosys */
	0, 1, nosys,			/* 195 = nosys */
	0, 1, nosys,			/* 196 = nosys */
	0, 1, nosys,			/* 197 = nosys */
	0, 1, nosys,			/* 198 = nosys */
	0, 1, nosys,			/* 199 = nosys */
	0, 1, nosys,			/* 200 = nosys */
	0, 1, nosys,			/* 201 = nosys */
	0, 1, nosys,			/* 202 = nosys */
	0, 1, nosys,			/* 203 = nosys */
	0, 1, nosys,			/* 204 = nosys */
	0, 1, nosys,			/* 205 = nosys */
	0, 1, nosys,			/* 206 = nosys */
	0, 1, nosys,			/* 207 = nosys */
	0, 1, nosys,			/* 208 = nosys */
	0, 1, nosys,			/* 209 = nosys */
	0, 1, nosys,			/* 210 = nosys */
	0, 1, nosys,			/* 211 = nosys */
	0, 1, nosys,			/* 212 = nosys */
	0, 1, nosys,			/* 213 = nosys */
	0, 1, nosys,			/* 214 = nosys */
	0, 1, nosys,			/* 215 = nosys */
	0, 1, nosys,			/* 216 = nosys */
	0, 1, nosys,			/* 217 = nosys */
	0, 1, nosys,			/* 218 = nosys */
	0, 1, nosys,			/* 219 = nosys */
	0, 1, nosys,			/* 220 = nosys */
	0, 1, nosys,			/* 221 = nosys */
	0, 1, nosys,			/* 222 = nosys */
	0, 1, nosys,			/* 223 = nosys */
	0, 1, nosys,			/* 224 = nosys */
	0, 1, nosys,			/* 225 = nosys */
	0, 1, nosys,			/* 226 = nosys */
	0, 1, nosys,			/* 227 = nosys */
	0, 1, nosys,			/* 228 = nosys */
	0, 1, nosys,			/* 229 = nosys */
	0, 1, nosys,			/* 230 = nosys */
	0, 1, nosys,			/* 231 = nosys */
	0, 1, nosys,			/* 232 = nosys */
	0, 1, utc_gettime,			/* 233 = utc_gettime */
	0, 1, utc_adjtime,			/* 234 = utc_adjtime */
	0, 1, nosys,			/* 235 = nosys */
	0, 1, nosys,			/* 236 = nosys */
	0, 1, nosys,			/* 237 = nosys */
	0, 1, nosys,			/* 238 = nosys */
	0, 1, nosys,			/* 239 = nosys */
	0, 1, nosys,			/* 240 = nosys */
	0, 1, nosys,			/* 241 = nosys */
	0, 1, nosys,			/* 242 = nosys */
	0, 1, nosys,			/* 243 = nosys */
	0, 1, nosys,			/* 244 = nosys */
	0, 1, nosys,			/* 245 = nosys */
	0, 1, nosys,			/* 246 = nosys */
	0, 1, nosys,			/* 247 = nosys */
	0, 1, nosys,			/* 248 = nosys */
	0, 1, nosys,			/* 249 = nosys */
	0, 1, nosys,			/* 250 = nosys */
	0, 1, nosys,			/* 251 = nosys */
	0, 1, nosys,			/* 252 = obsolete audcntl */
	0, 1, nosys,			/* 253 = obsolete audgen */
	0, 1, nosys,			/* 254 = obsolete startcpu */
	0, 1, nosys,			/* 255 = obsolete stopcpu */
	6, 0, ult_getsysinfo,			/* 256 = getsysinfo */
	5, 0, ult_setsysinfo,			/* 257 = setsysinfo */
};

int	ult_nsysent = sizeof(ult_sysent) / sizeof(ult_sysent[0]);
