Home | History | Annotate | Line # | Download | only in kern
init_sysent.c revision 1.25
      1   1.1      cgd /*
      2   1.1      cgd  * System call switch table.
      3   1.1      cgd  *
      4   1.1      cgd  * DO NOT EDIT-- this file is automatically generated.
      5  1.25  mycroft  * created from: syscalls.master,v 1.18 1994/05/07 00:39:06
      6   1.1      cgd  */
      7   1.1      cgd 
      8  1.17      cgd #include <sys/param.h>
      9  1.17      cgd #include <sys/systm.h>
     10   1.1      cgd 
     11   1.1      cgd int	nosys();
     12   1.1      cgd 
     13  1.14  deraadt int	nosys();
     14  1.21      cgd int	exit();
     15   1.1      cgd int	fork();
     16   1.1      cgd int	read();
     17   1.1      cgd int	write();
     18   1.1      cgd int	open();
     19   1.1      cgd int	close();
     20   1.1      cgd int	wait4();
     21   1.1      cgd int	link();
     22   1.1      cgd int	unlink();
     23   1.1      cgd int	chdir();
     24   1.1      cgd int	fchdir();
     25   1.1      cgd int	mknod();
     26   1.1      cgd int	chmod();
     27   1.1      cgd int	chown();
     28   1.1      cgd int	obreak();
     29   1.1      cgd int	getfsstat();
     30   1.1      cgd int	getpid();
     31   1.1      cgd int	mount();
     32   1.1      cgd int	unmount();
     33   1.1      cgd int	setuid();
     34   1.1      cgd int	getuid();
     35   1.1      cgd int	geteuid();
     36   1.1      cgd int	ptrace();
     37   1.1      cgd int	recvmsg();
     38   1.1      cgd int	sendmsg();
     39   1.1      cgd int	recvfrom();
     40   1.1      cgd int	accept();
     41   1.1      cgd int	getpeername();
     42   1.1      cgd int	getsockname();
     43  1.21      cgd int	access();
     44   1.1      cgd int	chflags();
     45   1.1      cgd int	fchflags();
     46   1.1      cgd int	sync();
     47   1.1      cgd int	kill();
     48   1.1      cgd int	getppid();
     49   1.1      cgd int	dup();
     50   1.1      cgd int	pipe();
     51   1.1      cgd int	getegid();
     52   1.1      cgd int	profil();
     53   1.1      cgd #ifdef KTRACE
     54   1.1      cgd int	ktrace();
     55   1.1      cgd #else
     56   1.1      cgd #endif
     57   1.1      cgd int	sigaction();
     58   1.1      cgd int	getgid();
     59   1.1      cgd int	sigprocmask();
     60   1.1      cgd int	getlogin();
     61   1.1      cgd int	setlogin();
     62  1.21      cgd int	acct();
     63   1.1      cgd int	sigpending();
     64   1.1      cgd int	sigaltstack();
     65   1.1      cgd int	ioctl();
     66   1.1      cgd int	reboot();
     67   1.1      cgd int	revoke();
     68   1.1      cgd int	symlink();
     69   1.1      cgd int	readlink();
     70   1.1      cgd int	execve();
     71   1.1      cgd int	umask();
     72   1.1      cgd int	chroot();
     73   1.1      cgd int	msync();
     74   1.1      cgd int	vfork();
     75   1.1      cgd int	sbrk();
     76   1.1      cgd int	sstk();
     77   1.1      cgd int	ovadvise();
     78   1.1      cgd int	munmap();
     79   1.1      cgd int	mprotect();
     80   1.1      cgd int	madvise();
     81   1.1      cgd int	mincore();
     82   1.1      cgd int	getgroups();
     83   1.1      cgd int	setgroups();
     84   1.1      cgd int	getpgrp();
     85   1.1      cgd int	setpgid();
     86   1.1      cgd int	setitimer();
     87   1.1      cgd int	swapon();
     88   1.1      cgd int	getitimer();
     89   1.1      cgd int	getdtablesize();
     90   1.1      cgd int	dup2();
     91   1.1      cgd int	fcntl();
     92   1.1      cgd int	select();
     93   1.1      cgd int	fsync();
     94   1.1      cgd int	setpriority();
     95   1.1      cgd int	socket();
     96   1.1      cgd int	connect();
     97   1.1      cgd int	getpriority();
     98   1.1      cgd int	sigreturn();
     99   1.1      cgd int	bind();
    100   1.1      cgd int	setsockopt();
    101   1.1      cgd int	listen();
    102   1.1      cgd int	sigsuspend();
    103   1.1      cgd #ifdef TRACE
    104   1.1      cgd int	vtrace();
    105   1.1      cgd #else
    106   1.1      cgd #endif
    107   1.1      cgd int	gettimeofday();
    108   1.1      cgd int	getrusage();
    109   1.1      cgd int	getsockopt();
    110  1.22      cgd #ifdef vax
    111  1.22      cgd int	resuba();
    112  1.22      cgd #else
    113  1.22      cgd #endif
    114   1.1      cgd int	readv();
    115   1.1      cgd int	writev();
    116   1.1      cgd int	settimeofday();
    117   1.1      cgd int	fchown();
    118   1.1      cgd int	fchmod();
    119   1.1      cgd int	rename();
    120   1.1      cgd int	flock();
    121   1.1      cgd int	mkfifo();
    122   1.1      cgd int	sendto();
    123   1.1      cgd int	shutdown();
    124   1.1      cgd int	socketpair();
    125   1.1      cgd int	mkdir();
    126   1.1      cgd int	rmdir();
    127   1.1      cgd int	utimes();
    128   1.1      cgd int	adjtime();
    129   1.1      cgd int	setsid();
    130   1.1      cgd int	quotactl();
    131  1.25  mycroft #if defined(NFSCLIENT) || defined(NFSSERVER)
    132   1.1      cgd int	nfssvc();
    133   1.1      cgd #else
    134   1.1      cgd #endif
    135   1.1      cgd int	statfs();
    136   1.1      cgd int	fstatfs();
    137   1.5    glass #ifdef NFSCLIENT
    138   1.1      cgd int	getfh();
    139   1.1      cgd #else
    140   1.1      cgd #endif
    141  1.11   brezak int	sysarch();
    142  1.13      cgd #ifdef SYSVSEM
    143  1.13      cgd int	semsys();
    144  1.13      cgd #else
    145  1.13      cgd #endif
    146  1.13      cgd #ifdef SYSVMSG
    147  1.13      cgd int	msgsys();
    148  1.13      cgd #else
    149  1.13      cgd #endif
    150   1.1      cgd #ifdef SYSVSHM
    151   1.1      cgd int	shmsys();
    152   1.1      cgd #else
    153   1.1      cgd #endif
    154   1.1      cgd int	setgid();
    155   1.1      cgd int	setegid();
    156   1.1      cgd int	seteuid();
    157  1.22      cgd #ifdef LFS
    158  1.22      cgd int	lfs_bmapv();
    159  1.22      cgd int	lfs_markv();
    160  1.22      cgd int	lfs_segclean();
    161  1.22      cgd int	lfs_segwait();
    162  1.22      cgd #else
    163  1.22      cgd #endif
    164  1.17      cgd int	stat();
    165  1.17      cgd int	fstat();
    166  1.17      cgd int	lstat();
    167  1.23      cgd int	pathconf();
    168  1.23      cgd int	fpathconf();
    169  1.22      cgd int	getrlimit();
    170  1.22      cgd int	setrlimit();
    171  1.25  mycroft int	getdirentries();
    172  1.21      cgd int	mmap();
    173  1.18      cgd int	nosys();
    174  1.17      cgd int	lseek();
    175  1.17      cgd int	truncate();
    176  1.17      cgd int	ftruncate();
    177  1.23      cgd int	__sysctl();
    178  1.23      cgd int	mlock();
    179  1.23      cgd int	munlock();
    180  1.10      cgd #ifdef LKM
    181  1.10      cgd int	lkmnosys();
    182  1.10      cgd int	lkmnosys();
    183  1.10      cgd int	lkmnosys();
    184  1.10      cgd int	lkmnosys();
    185  1.10      cgd int	lkmnosys();
    186  1.10      cgd int	lkmnosys();
    187  1.10      cgd int	lkmnosys();
    188  1.10      cgd int	lkmnosys();
    189  1.10      cgd int	lkmnosys();
    190  1.10      cgd int	lkmnosys();
    191  1.11   brezak #else	/* !LKM */
    192  1.11   brezak #endif	/* !LKM */
    193   1.1      cgd 
    194   1.1      cgd #ifdef COMPAT_43
    195   1.1      cgd #define compat(n, name) n, __CONCAT(o,name)
    196   1.1      cgd 
    197   1.1      cgd int	ocreat();
    198  1.17      cgd int	olseek();
    199  1.17      cgd int	ostat();
    200  1.17      cgd int	olstat();
    201   1.1      cgd #ifdef KTRACE
    202   1.1      cgd #else
    203   1.1      cgd #endif
    204  1.17      cgd int	ofstat();
    205  1.23      cgd int	ogetkerninfo();
    206  1.23      cgd int	ogetpagesize();
    207  1.17      cgd int	ommap();
    208   1.1      cgd int	owait();
    209  1.23      cgd int	ogethostname();
    210  1.23      cgd int	osethostname();
    211   1.1      cgd int	oaccept();
    212   1.1      cgd int	osend();
    213   1.1      cgd int	orecv();
    214   1.1      cgd int	osigvec();
    215   1.1      cgd int	osigblock();
    216   1.1      cgd int	osigsetmask();
    217  1.23      cgd int	osigstack();
    218   1.1      cgd int	orecvmsg();
    219   1.1      cgd int	osendmsg();
    220   1.1      cgd #ifdef TRACE
    221   1.1      cgd #else
    222   1.1      cgd #endif
    223  1.22      cgd #ifdef vax
    224  1.22      cgd #else
    225  1.22      cgd #endif
    226   1.1      cgd int	orecvfrom();
    227   1.1      cgd int	osetreuid();
    228   1.1      cgd int	osetregid();
    229  1.17      cgd int	otruncate();
    230  1.17      cgd int	oftruncate();
    231   1.1      cgd int	ogetpeername();
    232  1.23      cgd int	ogethostid();
    233  1.23      cgd int	osethostid();
    234  1.22      cgd int	ogetrlimit();
    235  1.22      cgd int	osetrlimit();
    236   1.1      cgd int	okillpg();
    237   1.1      cgd int	oquota();
    238   1.1      cgd int	ogetsockname();
    239  1.25  mycroft #if defined(NFSCLIENT) || defined(NFSSERVER)
    240   1.1      cgd #else
    241   1.1      cgd #endif
    242  1.25  mycroft int	ogetdirentries();
    243   1.5    glass #ifdef NFSCLIENT
    244   1.1      cgd #else
    245   1.1      cgd #endif
    246  1.13      cgd #ifdef SYSVSEM
    247  1.13      cgd #else
    248  1.13      cgd #endif
    249  1.13      cgd #ifdef SYSVMSG
    250  1.13      cgd #else
    251  1.13      cgd #endif
    252   1.1      cgd #ifdef SYSVSHM
    253   1.1      cgd #else
    254   1.1      cgd #endif
    255  1.22      cgd #ifdef LFS
    256  1.22      cgd #else
    257  1.22      cgd #endif
    258  1.10      cgd #ifdef LKM
    259  1.11   brezak #else	/* !LKM */
    260  1.11   brezak #endif	/* !LKM */
    261   1.1      cgd 
    262   1.1      cgd #else /* COMPAT_43 */
    263   1.1      cgd #define compat(n, name) 0, nosys
    264   1.1      cgd #endif /* COMPAT_43 */
    265   1.1      cgd 
    266  1.24      cgd 
    267  1.24      cgd #ifdef COMPAT_09
    268  1.24      cgd #define ncompat(n, name) n, __CONCAT(o,name)
    269  1.24      cgd 
    270  1.24      cgd int	ogetdomainname();
    271  1.24      cgd int	osetdomainname();
    272  1.24      cgd int	ouname();
    273  1.24      cgd 
    274  1.24      cgd #else /* COMPAT_43 */
    275  1.24      cgd #define ncompat(n, name) 0, nosys
    276  1.24      cgd #endif /* COMPAT_43 */
    277  1.24      cgd 
    278   1.1      cgd struct sysent sysent[] = {
    279  1.25  mycroft 	{ 0, nosys },			/* 0 = syscall */
    280  1.25  mycroft 	{ 1, exit },			/* 1 = exit */
    281  1.25  mycroft 	{ 0, fork },			/* 2 = fork */
    282  1.25  mycroft 	{ 3, read },			/* 3 = read */
    283  1.25  mycroft 	{ 3, write },			/* 4 = write */
    284  1.25  mycroft 	{ 3, open },			/* 5 = open */
    285  1.25  mycroft 	{ 1, close },			/* 6 = close */
    286  1.25  mycroft 	{ 4, wait4 },			/* 7 = wait4 */
    287  1.25  mycroft 	{ compat(2,creat) },		/* 8 = old creat */
    288  1.25  mycroft 	{ 2, link },			/* 9 = link */
    289  1.25  mycroft 	{ 1, unlink },			/* 10 = unlink */
    290  1.25  mycroft 	{ 0, nosys },			/* 11 = obsolete execv */
    291  1.25  mycroft 	{ 1, chdir },			/* 12 = chdir */
    292  1.25  mycroft 	{ 1, fchdir },			/* 13 = fchdir */
    293  1.25  mycroft 	{ 3, mknod },			/* 14 = mknod */
    294  1.25  mycroft 	{ 2, chmod },			/* 15 = chmod */
    295  1.25  mycroft 	{ 3, chown },			/* 16 = chown */
    296  1.25  mycroft 	{ 1, obreak },			/* 17 = break */
    297  1.25  mycroft 	{ 3, getfsstat },			/* 18 = getfsstat */
    298  1.25  mycroft 	{ compat(3,lseek) },		/* 19 = old lseek */
    299  1.25  mycroft 	{ 0, getpid },			/* 20 = getpid */
    300  1.25  mycroft 	{ 4, mount },			/* 21 = mount */
    301  1.25  mycroft 	{ 2, unmount },			/* 22 = unmount */
    302  1.25  mycroft 	{ 1, setuid },			/* 23 = setuid */
    303  1.25  mycroft 	{ 0, getuid },			/* 24 = getuid */
    304  1.25  mycroft 	{ 0, geteuid },			/* 25 = geteuid */
    305  1.25  mycroft 	{ 4, ptrace },			/* 26 = ptrace */
    306  1.25  mycroft 	{ 3, recvmsg },			/* 27 = recvmsg */
    307  1.25  mycroft 	{ 3, sendmsg },			/* 28 = sendmsg */
    308  1.25  mycroft 	{ 6, recvfrom },			/* 29 = recvfrom */
    309  1.25  mycroft 	{ 3, accept },			/* 30 = accept */
    310  1.25  mycroft 	{ 3, getpeername },			/* 31 = getpeername */
    311  1.25  mycroft 	{ 3, getsockname },			/* 32 = getsockname */
    312  1.25  mycroft 	{ 2, access },			/* 33 = access */
    313  1.25  mycroft 	{ 2, chflags },			/* 34 = chflags */
    314  1.25  mycroft 	{ 2, fchflags },			/* 35 = fchflags */
    315  1.25  mycroft 	{ 0, sync },			/* 36 = sync */
    316  1.25  mycroft 	{ 2, kill },			/* 37 = kill */
    317  1.25  mycroft 	{ compat(2,stat) },		/* 38 = old stat */
    318  1.25  mycroft 	{ 0, getppid },			/* 39 = getppid */
    319  1.25  mycroft 	{ compat(2,lstat) },		/* 40 = old lstat */
    320  1.25  mycroft 	{ 2, dup },			/* 41 = dup */
    321  1.25  mycroft 	{ 0, pipe },			/* 42 = pipe */
    322  1.25  mycroft 	{ 0, getegid },			/* 43 = getegid */
    323  1.25  mycroft 	{ 4, profil },			/* 44 = profil */
    324   1.1      cgd #ifdef KTRACE
    325  1.25  mycroft 	{ 4, ktrace },			/* 45 = ktrace */
    326   1.1      cgd #else
    327  1.25  mycroft 	{ 0, nosys },			/* 45 = ktrace */
    328   1.1      cgd #endif
    329  1.25  mycroft 	{ 3, sigaction },			/* 46 = sigaction */
    330  1.25  mycroft 	{ 0, getgid },			/* 47 = getgid */
    331  1.25  mycroft 	{ 2, sigprocmask },			/* 48 = sigprocmask */
    332  1.25  mycroft 	{ 2, getlogin },			/* 49 = getlogin */
    333  1.25  mycroft 	{ 1, setlogin },			/* 50 = setlogin */
    334  1.25  mycroft 	{ 1, acct },			/* 51 = acct */
    335  1.25  mycroft 	{ 0, sigpending },			/* 52 = sigpending */
    336  1.25  mycroft 	{ 2, sigaltstack },			/* 53 = sigaltstack */
    337  1.25  mycroft 	{ 3, ioctl },			/* 54 = ioctl */
    338  1.25  mycroft 	{ 1, reboot },			/* 55 = reboot */
    339  1.25  mycroft 	{ 1, revoke },			/* 56 = revoke */
    340  1.25  mycroft 	{ 2, symlink },			/* 57 = symlink */
    341  1.25  mycroft 	{ 3, readlink },			/* 58 = readlink */
    342  1.25  mycroft 	{ 3, execve },			/* 59 = execve */
    343  1.25  mycroft 	{ 1, umask },			/* 60 = umask */
    344  1.25  mycroft 	{ 1, chroot },			/* 61 = chroot */
    345  1.25  mycroft 	{ compat(2,fstat) },		/* 62 = old fstat */
    346  1.25  mycroft 	{ compat(4,getkerninfo) },		/* 63 = old getkerninfo */
    347  1.25  mycroft 	{ compat(0,getpagesize) },		/* 64 = old getpagesize */
    348  1.25  mycroft 	{ 2, msync },			/* 65 = msync */
    349  1.25  mycroft 	{ 0, vfork },			/* 66 = vfork */
    350  1.25  mycroft 	{ 0, nosys },			/* 67 = obsolete vread */
    351  1.25  mycroft 	{ 0, nosys },			/* 68 = obsolete vwrite */
    352  1.25  mycroft 	{ 1, sbrk },			/* 69 = sbrk */
    353  1.25  mycroft 	{ 1, sstk },			/* 70 = sstk */
    354  1.25  mycroft 	{ compat(7,mmap) },		/* 71 = old mmap */
    355  1.25  mycroft 	{ 1, ovadvise },			/* 72 = vadvise */
    356  1.25  mycroft 	{ 2, munmap },			/* 73 = munmap */
    357  1.25  mycroft 	{ 3, mprotect },			/* 74 = mprotect */
    358  1.25  mycroft 	{ 3, madvise },			/* 75 = madvise */
    359  1.25  mycroft 	{ 0, nosys },			/* 76 = obsolete vhangup */
    360  1.25  mycroft 	{ 0, nosys },			/* 77 = obsolete vlimit */
    361  1.25  mycroft 	{ 3, mincore },			/* 78 = mincore */
    362  1.25  mycroft 	{ 2, getgroups },			/* 79 = getgroups */
    363  1.25  mycroft 	{ 2, setgroups },			/* 80 = setgroups */
    364  1.25  mycroft 	{ 0, getpgrp },			/* 81 = getpgrp */
    365  1.25  mycroft 	{ 2, setpgid },			/* 82 = setpgid */
    366  1.25  mycroft 	{ 3, setitimer },			/* 83 = setitimer */
    367  1.25  mycroft 	{ compat(0,wait) },		/* 84 = old wait */
    368  1.25  mycroft 	{ 1, swapon },			/* 85 = swapon */
    369  1.25  mycroft 	{ 2, getitimer },			/* 86 = getitimer */
    370  1.25  mycroft 	{ compat(2,gethostname) },		/* 87 = old gethostname */
    371  1.25  mycroft 	{ compat(2,sethostname) },		/* 88 = old sethostname */
    372  1.25  mycroft 	{ 0, getdtablesize },			/* 89 = getdtablesize */
    373  1.25  mycroft 	{ 2, dup2 },			/* 90 = dup2 */
    374  1.25  mycroft 	{ 0, nosys },			/* 91 = getdopt */
    375  1.25  mycroft 	{ 3, fcntl },			/* 92 = fcntl */
    376  1.25  mycroft 	{ 5, select },			/* 93 = select */
    377  1.25  mycroft 	{ 0, nosys },			/* 94 = setdopt */
    378  1.25  mycroft 	{ 1, fsync },			/* 95 = fsync */
    379  1.25  mycroft 	{ 3, setpriority },			/* 96 = setpriority */
    380  1.25  mycroft 	{ 3, socket },			/* 97 = socket */
    381  1.25  mycroft 	{ 3, connect },			/* 98 = connect */
    382  1.25  mycroft 	{ compat(3,accept) },		/* 99 = old accept */
    383  1.25  mycroft 	{ 2, getpriority },			/* 100 = getpriority */
    384  1.25  mycroft 	{ compat(4,send) },		/* 101 = old send */
    385  1.25  mycroft 	{ compat(4,recv) },		/* 102 = old recv */
    386  1.25  mycroft 	{ 1, sigreturn },			/* 103 = sigreturn */
    387  1.25  mycroft 	{ 3, bind },			/* 104 = bind */
    388  1.25  mycroft 	{ 5, setsockopt },			/* 105 = setsockopt */
    389  1.25  mycroft 	{ 2, listen },			/* 106 = listen */
    390  1.25  mycroft 	{ 0, nosys },			/* 107 = obsolete vtimes */
    391  1.25  mycroft 	{ compat(3,sigvec) },		/* 108 = old sigvec */
    392  1.25  mycroft 	{ compat(1,sigblock) },		/* 109 = old sigblock */
    393  1.25  mycroft 	{ compat(1,sigsetmask) },		/* 110 = old sigsetmask */
    394  1.25  mycroft 	{ 1, sigsuspend },			/* 111 = sigsuspend */
    395  1.25  mycroft 	{ compat(2,sigstack) },		/* 112 = old sigstack */
    396  1.25  mycroft 	{ compat(3,recvmsg) },		/* 113 = old recvmsg */
    397  1.25  mycroft 	{ compat(3,sendmsg) },		/* 114 = old sendmsg */
    398   1.1      cgd #ifdef TRACE
    399  1.25  mycroft 	{ 2, vtrace },			/* 115 = vtrace */
    400   1.1      cgd #else
    401  1.25  mycroft 	{ 0, nosys },			/* 115 = obsolete vtrace */
    402   1.1      cgd #endif
    403  1.25  mycroft 	{ 2, gettimeofday },			/* 116 = gettimeofday */
    404  1.25  mycroft 	{ 2, getrusage },			/* 117 = getrusage */
    405  1.25  mycroft 	{ 5, getsockopt },			/* 118 = getsockopt */
    406  1.22      cgd #ifdef vax
    407  1.25  mycroft 	{ 1, resuba },			/* 119 = resuba */
    408  1.22      cgd #else
    409  1.25  mycroft 	{ 0, nosys },			/* 119 = nosys */
    410  1.22      cgd #endif
    411  1.25  mycroft 	{ 3, readv },			/* 120 = readv */
    412  1.25  mycroft 	{ 3, writev },			/* 121 = writev */
    413  1.25  mycroft 	{ 2, settimeofday },			/* 122 = settimeofday */
    414  1.25  mycroft 	{ 3, fchown },			/* 123 = fchown */
    415  1.25  mycroft 	{ 2, fchmod },			/* 124 = fchmod */
    416  1.25  mycroft 	{ compat(6,recvfrom) },		/* 125 = old recvfrom */
    417  1.25  mycroft 	{ compat(2,setreuid) },		/* 126 = old setreuid */
    418  1.25  mycroft 	{ compat(2,setregid) },		/* 127 = old setregid */
    419  1.25  mycroft 	{ 2, rename },			/* 128 = rename */
    420  1.25  mycroft 	{ compat(2,truncate) },		/* 129 = old truncate */
    421  1.25  mycroft 	{ compat(2,ftruncate) },		/* 130 = old ftruncate */
    422  1.25  mycroft 	{ 2, flock },			/* 131 = flock */
    423  1.25  mycroft 	{ 2, mkfifo },			/* 132 = mkfifo */
    424  1.25  mycroft 	{ 6, sendto },			/* 133 = sendto */
    425  1.25  mycroft 	{ 2, shutdown },			/* 134 = shutdown */
    426  1.25  mycroft 	{ 5, socketpair },			/* 135 = socketpair */
    427  1.25  mycroft 	{ 2, mkdir },			/* 136 = mkdir */
    428  1.25  mycroft 	{ 1, rmdir },			/* 137 = rmdir */
    429  1.25  mycroft 	{ 2, utimes },			/* 138 = utimes */
    430  1.25  mycroft 	{ 0, nosys },			/* 139 = obsolete 4.2 sigreturn */
    431  1.25  mycroft 	{ 2, adjtime },			/* 140 = adjtime */
    432  1.25  mycroft 	{ compat(3,getpeername) },		/* 141 = old getpeername */
    433  1.25  mycroft 	{ compat(0,gethostid) },		/* 142 = old gethostid */
    434  1.25  mycroft 	{ compat(1,sethostid) },		/* 143 = old sethostid */
    435  1.25  mycroft 	{ compat(2,getrlimit) },		/* 144 = old getrlimit */
    436  1.25  mycroft 	{ compat(2,setrlimit) },		/* 145 = old setrlimit */
    437  1.25  mycroft 	{ compat(2,killpg) },		/* 146 = old killpg */
    438  1.25  mycroft 	{ 0, setsid },			/* 147 = setsid */
    439  1.25  mycroft 	{ 4, quotactl },			/* 148 = quotactl */
    440  1.25  mycroft 	{ compat(4,quota) },		/* 149 = old quota */
    441  1.25  mycroft 	{ compat(3,getsockname) },		/* 150 = old getsockname */
    442  1.25  mycroft 	{ 0, nosys },			/* 151 = nosys */
    443  1.25  mycroft 	{ 0, nosys },			/* 152 = nosys */
    444  1.25  mycroft 	{ 0, nosys },			/* 153 = nosys */
    445  1.25  mycroft 	{ 0, nosys },			/* 154 = nosys */
    446  1.25  mycroft #if defined(NFSCLIENT) || defined(NFSSERVER)
    447  1.25  mycroft 	{ 2, nfssvc },			/* 155 = nfssvc */
    448  1.25  mycroft #else
    449  1.25  mycroft 	{ 0, nosys },			/* 155 = nosys */
    450  1.25  mycroft #endif
    451  1.25  mycroft 	{ compat(4,getdirentries) },		/* 156 = old getdirentries */
    452  1.25  mycroft 	{ 2, statfs },			/* 157 = statfs */
    453  1.25  mycroft 	{ 2, fstatfs },			/* 158 = fstatfs */
    454  1.25  mycroft 	{ 0, nosys },			/* 159 = nosys */
    455  1.25  mycroft 	{ 0, nosys },			/* 160 = nosys */
    456   1.5    glass #ifdef NFSCLIENT
    457  1.25  mycroft 	{ 2, getfh },			/* 161 = getfh */
    458   1.1      cgd #else
    459  1.25  mycroft 	{ 0, nosys },			/* 161 = nosys */
    460   1.1      cgd #endif
    461  1.25  mycroft 	{ ncompat(2,getdomainname) },		/* 162 = old getdomainname */
    462  1.25  mycroft 	{ ncompat(2,setdomainname) },		/* 163 = old setdomainname */
    463  1.25  mycroft 	{ ncompat(1,uname) },		/* 164 = old uname */
    464  1.25  mycroft 	{ 2, sysarch },			/* 165 = sysarch */
    465  1.25  mycroft 	{ 0, nosys },			/* 166 = nosys */
    466  1.25  mycroft 	{ 0, nosys },			/* 167 = nosys */
    467  1.25  mycroft 	{ 0, nosys },			/* 168 = nosys */
    468  1.13      cgd #ifdef SYSVSEM
    469  1.25  mycroft 	{ 5, semsys },			/* 169 = semsys */
    470  1.13      cgd #else
    471  1.25  mycroft 	{ 0, nosys },			/* 169 = nosys */
    472  1.13      cgd #endif
    473  1.13      cgd #ifdef SYSVMSG
    474  1.25  mycroft 	{ 6, msgsys },			/* 170 = msgsys */
    475  1.13      cgd #else
    476  1.25  mycroft 	{ 0, nosys },			/* 170 = nosys */
    477  1.13      cgd #endif
    478   1.1      cgd #ifdef SYSVSHM
    479  1.25  mycroft 	{ 4, shmsys },			/* 171 = shmsys */
    480   1.1      cgd #else
    481  1.25  mycroft 	{ 0, nosys },			/* 171 = nosys */
    482   1.1      cgd #endif
    483  1.25  mycroft 	{ 0, nosys },			/* 172 = nosys */
    484  1.25  mycroft 	{ 0, nosys },			/* 173 = nosys */
    485  1.25  mycroft 	{ 0, nosys },			/* 174 = nosys */
    486  1.25  mycroft 	{ 0, nosys },			/* 175 = nosys */
    487  1.25  mycroft 	{ 0, nosys },			/* 176 = nosys */
    488  1.25  mycroft 	{ 0, nosys },			/* 177 = nosys */
    489  1.25  mycroft 	{ 0, nosys },			/* 178 = nosys */
    490  1.25  mycroft 	{ 0, nosys },			/* 179 = nosys */
    491  1.25  mycroft 	{ 0, nosys },			/* 180 = nosys */
    492  1.25  mycroft 	{ 1, setgid },			/* 181 = setgid */
    493  1.25  mycroft 	{ 1, setegid },			/* 182 = setegid */
    494  1.25  mycroft 	{ 1, seteuid },			/* 183 = seteuid */
    495  1.22      cgd #ifdef LFS
    496  1.25  mycroft 	{ 3, lfs_bmapv },			/* 184 = lfs_bmapv */
    497  1.25  mycroft 	{ 3, lfs_markv },			/* 185 = lfs_markv */
    498  1.25  mycroft 	{ 2, lfs_segclean },			/* 186 = lfs_segclean */
    499  1.25  mycroft 	{ 2, lfs_segwait },			/* 187 = lfs_segwait */
    500  1.25  mycroft #else
    501  1.25  mycroft 	{ 0, nosys },			/* 184 = nosys */
    502  1.25  mycroft 	{ 0, nosys },			/* 185 = nosys */
    503  1.25  mycroft 	{ 0, nosys },			/* 186 = nosys */
    504  1.25  mycroft 	{ 0, nosys },			/* 187 = nosys */
    505  1.25  mycroft #endif
    506  1.25  mycroft 	{ 2, stat },			/* 188 = stat */
    507  1.25  mycroft 	{ 2, fstat },			/* 189 = fstat */
    508  1.25  mycroft 	{ 2, lstat },			/* 190 = lstat */
    509  1.25  mycroft 	{ 2, pathconf },			/* 191 = pathconf */
    510  1.25  mycroft 	{ 2, fpathconf },			/* 192 = fpathconf */
    511  1.25  mycroft 	{ 0, nosys },			/* 193 = nosys */
    512  1.25  mycroft 	{ 2, getrlimit },			/* 194 = getrlimit */
    513  1.25  mycroft 	{ 2, setrlimit },			/* 195 = setrlimit */
    514  1.25  mycroft 	{ 4, getdirentries },			/* 196 = getdirentries */
    515  1.25  mycroft 	{ 8, mmap },			/* 197 = mmap */
    516  1.25  mycroft 	{ 0, nosys },			/* 198 = __syscall */
    517  1.25  mycroft 	{ 5, lseek },			/* 199 = lseek */
    518  1.25  mycroft 	{ 4, truncate },			/* 200 = truncate */
    519  1.25  mycroft 	{ 4, ftruncate },			/* 201 = ftruncate */
    520  1.25  mycroft 	{ 6, __sysctl },			/* 202 = __sysctl */
    521  1.25  mycroft 	{ 2, mlock },			/* 203 = mlock */
    522  1.25  mycroft 	{ 2, munlock },			/* 204 = munlock */
    523  1.25  mycroft 	{ 0, nosys },			/* 205 = nosys */
    524  1.25  mycroft 	{ 0, nosys },			/* 206 = nosys */
    525  1.25  mycroft 	{ 0, nosys },			/* 207 = nosys */
    526  1.25  mycroft 	{ 0, nosys },			/* 208 = nosys */
    527  1.25  mycroft 	{ 0, nosys },			/* 209 = nosys */
    528  1.16      cgd #ifdef LKM
    529  1.25  mycroft 	{ 0, lkmnosys },			/* 210 = lkmnosys */
    530  1.25  mycroft 	{ 0, lkmnosys },			/* 211 = lkmnosys */
    531  1.25  mycroft 	{ 0, lkmnosys },			/* 212 = lkmnosys */
    532  1.25  mycroft 	{ 0, lkmnosys },			/* 213 = lkmnosys */
    533  1.25  mycroft 	{ 0, lkmnosys },			/* 214 = lkmnosys */
    534  1.25  mycroft 	{ 0, lkmnosys },			/* 215 = lkmnosys */
    535  1.25  mycroft 	{ 0, lkmnosys },			/* 216 = lkmnosys */
    536  1.25  mycroft 	{ 0, lkmnosys },			/* 217 = lkmnosys */
    537  1.25  mycroft 	{ 0, lkmnosys },			/* 218 = lkmnosys */
    538  1.25  mycroft 	{ 0, lkmnosys },			/* 219 = lkmnosys */
    539  1.16      cgd #else	/* !LKM */
    540  1.25  mycroft 	{ 0, nosys },			/* 210 = nosys */
    541  1.25  mycroft 	{ 0, nosys },			/* 211 = nosys */
    542  1.25  mycroft 	{ 0, nosys },			/* 212 = nosys */
    543  1.25  mycroft 	{ 0, nosys },			/* 213 = nosys */
    544  1.25  mycroft 	{ 0, nosys },			/* 214 = nosys */
    545  1.25  mycroft 	{ 0, nosys },			/* 215 = nosys */
    546  1.25  mycroft 	{ 0, nosys },			/* 216 = nosys */
    547  1.25  mycroft 	{ 0, nosys },			/* 217 = nosys */
    548  1.25  mycroft 	{ 0, nosys },			/* 218 = nosys */
    549  1.25  mycroft 	{ 0, nosys },			/* 219 = nosys */
    550  1.11   brezak #endif	/* !LKM */
    551   1.1      cgd };
    552   1.1      cgd 
    553   1.1      cgd int	nsysent = sizeof(sysent) / sizeof(sysent[0]);
    554