Home | History | Annotate | Line # | Download | only in kern
syscalls.c revision 1.123
      1  1.111       cgd /* $NetBSD: syscalls.c,v 1.123 2001/11/12 15:03:35 lukem Exp $ */
      2   1.72   thorpej 
      3    1.1       cgd /*
      4    1.1       cgd  * System call names.
      5    1.1       cgd  *
      6    1.1       cgd  * DO NOT EDIT-- this file is automatically generated.
      7  1.122   thorpej  * created from	NetBSD: syscalls.master,v 1.110 2001/07/01 18:06:11 thorpej Exp
      8    1.1       cgd  */
      9   1.75   thorpej 
     10  1.123     lukem #include <sys/cdefs.h>
     11  1.123     lukem __KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.123 2001/11/12 15:03:35 lukem Exp $");
     12  1.123     lukem 
     13  1.121       mrg #if defined(_KERNEL_OPT)
     14   1.84   thorpej #include "opt_ktrace.h"
     15   1.85   thorpej #include "opt_nfsserver.h"
     16  1.110     bjh21 #include "opt_ntp.h"
     17   1.88  jonathan #include "opt_compat_netbsd.h"
     18   1.93      tron #include "opt_sysv.h"
     19   1.95  christos #include "opt_compat_43.h"
     20   1.75   thorpej #include "fs_lfs.h"
     21   1.75   thorpej #include "fs_nfs.h"
     22   1.75   thorpej #include <sys/param.h>
     23   1.75   thorpej #include <sys/systm.h>
     24   1.75   thorpej #include <sys/signal.h>
     25   1.75   thorpej #include <sys/mount.h>
     26   1.75   thorpej #include <sys/syscallargs.h>
     27  1.121       mrg #endif /* _KERNEL_OPT */
     28    1.1       cgd 
     29  1.113   mycroft const char *const syscallnames[] = {
     30   1.12   deraadt 	"syscall",			/* 0 = syscall */
     31    1.1       cgd 	"exit",			/* 1 = exit */
     32    1.1       cgd 	"fork",			/* 2 = fork */
     33    1.1       cgd 	"read",			/* 3 = read */
     34    1.1       cgd 	"write",			/* 4 = write */
     35    1.1       cgd 	"open",			/* 5 = open */
     36    1.1       cgd 	"close",			/* 6 = close */
     37    1.1       cgd 	"wait4",			/* 7 = wait4 */
     38   1.33   mycroft 	"compat_43_ocreat",	/* 8 = compat_43 ocreat */
     39    1.1       cgd 	"link",			/* 9 = link */
     40    1.1       cgd 	"unlink",			/* 10 = unlink */
     41   1.25       cgd 	"#11 (obsolete execv)",		/* 11 = obsolete execv */
     42    1.1       cgd 	"chdir",			/* 12 = chdir */
     43    1.1       cgd 	"fchdir",			/* 13 = fchdir */
     44    1.1       cgd 	"mknod",			/* 14 = mknod */
     45    1.1       cgd 	"chmod",			/* 15 = chmod */
     46    1.1       cgd 	"chown",			/* 16 = chown */
     47    1.1       cgd 	"break",			/* 17 = break */
     48    1.1       cgd 	"getfsstat",			/* 18 = getfsstat */
     49   1.33   mycroft 	"compat_43_olseek",	/* 19 = compat_43 olseek */
     50  1.115   mycroft #ifdef COMPAT_43
     51    1.1       cgd 	"getpid",			/* 20 = getpid */
     52  1.115   mycroft #else
     53  1.115   mycroft 	"getpid",			/* 20 = getpid */
     54  1.115   mycroft #endif
     55    1.1       cgd 	"mount",			/* 21 = mount */
     56    1.1       cgd 	"unmount",			/* 22 = unmount */
     57    1.1       cgd 	"setuid",			/* 23 = setuid */
     58  1.115   mycroft #ifdef COMPAT_43
     59  1.115   mycroft 	"getuid",			/* 24 = getuid */
     60  1.115   mycroft #else
     61    1.1       cgd 	"getuid",			/* 24 = getuid */
     62  1.115   mycroft #endif
     63    1.1       cgd 	"geteuid",			/* 25 = geteuid */
     64    1.1       cgd 	"ptrace",			/* 26 = ptrace */
     65    1.1       cgd 	"recvmsg",			/* 27 = recvmsg */
     66    1.1       cgd 	"sendmsg",			/* 28 = sendmsg */
     67    1.1       cgd 	"recvfrom",			/* 29 = recvfrom */
     68    1.1       cgd 	"accept",			/* 30 = accept */
     69    1.1       cgd 	"getpeername",			/* 31 = getpeername */
     70    1.1       cgd 	"getsockname",			/* 32 = getsockname */
     71    1.1       cgd 	"access",			/* 33 = access */
     72    1.1       cgd 	"chflags",			/* 34 = chflags */
     73    1.1       cgd 	"fchflags",			/* 35 = fchflags */
     74    1.1       cgd 	"sync",			/* 36 = sync */
     75    1.1       cgd 	"kill",			/* 37 = kill */
     76   1.61  christos 	"compat_43_stat43",	/* 38 = compat_43 stat43 */
     77    1.1       cgd 	"getppid",			/* 39 = getppid */
     78   1.61  christos 	"compat_43_lstat43",	/* 40 = compat_43 lstat43 */
     79    1.1       cgd 	"dup",			/* 41 = dup */
     80    1.1       cgd 	"pipe",			/* 42 = pipe */
     81    1.1       cgd 	"getegid",			/* 43 = getegid */
     82    1.1       cgd 	"profil",			/* 44 = profil */
     83  1.100  christos #if defined(KTRACE) || !defined(_KERNEL)
     84    1.1       cgd 	"ktrace",			/* 45 = ktrace */
     85    1.1       cgd #else
     86  1.100  christos 	"#45 (excluded ktrace)",		/* 45 = excluded ktrace */
     87    1.1       cgd #endif
     88   1.89   thorpej 	"compat_13_sigaction13",	/* 46 = compat_13 sigaction13 */
     89  1.115   mycroft #ifdef COMPAT_43
     90  1.115   mycroft 	"getgid",			/* 47 = getgid */
     91  1.115   mycroft #else
     92    1.1       cgd 	"getgid",			/* 47 = getgid */
     93  1.115   mycroft #endif
     94   1.89   thorpej 	"compat_13_sigprocmask13",	/* 48 = compat_13 sigprocmask13 */
     95   1.41       jtc 	"__getlogin",			/* 49 = __getlogin */
     96    1.1       cgd 	"setlogin",			/* 50 = setlogin */
     97    1.1       cgd 	"acct",			/* 51 = acct */
     98   1.89   thorpej 	"compat_13_sigpending13",	/* 52 = compat_13 sigpending13 */
     99   1.66    kleink 	"compat_13_sigaltstack13",	/* 53 = compat_13 sigaltstack13 */
    100    1.1       cgd 	"ioctl",			/* 54 = ioctl */
    101   1.38       mrg 	"compat_12_oreboot",	/* 55 = compat_12 oreboot */
    102    1.1       cgd 	"revoke",			/* 56 = revoke */
    103    1.1       cgd 	"symlink",			/* 57 = symlink */
    104    1.1       cgd 	"readlink",			/* 58 = readlink */
    105    1.1       cgd 	"execve",			/* 59 = execve */
    106    1.1       cgd 	"umask",			/* 60 = umask */
    107    1.1       cgd 	"chroot",			/* 61 = chroot */
    108   1.61  christos 	"compat_43_fstat43",	/* 62 = compat_43 fstat43 */
    109   1.33   mycroft 	"compat_43_ogetkerninfo",	/* 63 = compat_43 ogetkerninfo */
    110   1.33   mycroft 	"compat_43_ogetpagesize",	/* 64 = compat_43 ogetpagesize */
    111   1.61  christos 	"compat_12_msync",	/* 65 = compat_12 msync */
    112    1.1       cgd 	"vfork",			/* 66 = vfork */
    113   1.25       cgd 	"#67 (obsolete vread)",		/* 67 = obsolete vread */
    114   1.25       cgd 	"#68 (obsolete vwrite)",		/* 68 = obsolete vwrite */
    115    1.1       cgd 	"sbrk",			/* 69 = sbrk */
    116    1.1       cgd 	"sstk",			/* 70 = sstk */
    117   1.33   mycroft 	"compat_43_ommap",	/* 71 = compat_43 ommap */
    118    1.1       cgd 	"vadvise",			/* 72 = vadvise */
    119    1.1       cgd 	"munmap",			/* 73 = munmap */
    120    1.1       cgd 	"mprotect",			/* 74 = mprotect */
    121    1.1       cgd 	"madvise",			/* 75 = madvise */
    122   1.25       cgd 	"#76 (obsolete vhangup)",		/* 76 = obsolete vhangup */
    123   1.25       cgd 	"#77 (obsolete vlimit)",		/* 77 = obsolete vlimit */
    124    1.1       cgd 	"mincore",			/* 78 = mincore */
    125    1.1       cgd 	"getgroups",			/* 79 = getgroups */
    126    1.1       cgd 	"setgroups",			/* 80 = setgroups */
    127    1.1       cgd 	"getpgrp",			/* 81 = getpgrp */
    128    1.1       cgd 	"setpgid",			/* 82 = setpgid */
    129    1.1       cgd 	"setitimer",			/* 83 = setitimer */
    130   1.33   mycroft 	"compat_43_owait",	/* 84 = compat_43 owait */
    131   1.53       mrg 	"compat_12_oswapon",	/* 85 = compat_12 oswapon */
    132    1.1       cgd 	"getitimer",			/* 86 = getitimer */
    133   1.33   mycroft 	"compat_43_ogethostname",	/* 87 = compat_43 ogethostname */
    134   1.33   mycroft 	"compat_43_osethostname",	/* 88 = compat_43 osethostname */
    135   1.33   mycroft 	"compat_43_ogetdtablesize",	/* 89 = compat_43 ogetdtablesize */
    136    1.1       cgd 	"dup2",			/* 90 = dup2 */
    137   1.25       cgd 	"#91 (unimplemented getdopt)",		/* 91 = unimplemented getdopt */
    138    1.1       cgd 	"fcntl",			/* 92 = fcntl */
    139    1.1       cgd 	"select",			/* 93 = select */
    140   1.25       cgd 	"#94 (unimplemented setdopt)",		/* 94 = unimplemented setdopt */
    141    1.1       cgd 	"fsync",			/* 95 = fsync */
    142    1.1       cgd 	"setpriority",			/* 96 = setpriority */
    143    1.1       cgd 	"socket",			/* 97 = socket */
    144    1.1       cgd 	"connect",			/* 98 = connect */
    145   1.33   mycroft 	"compat_43_oaccept",	/* 99 = compat_43 oaccept */
    146    1.1       cgd 	"getpriority",			/* 100 = getpriority */
    147   1.33   mycroft 	"compat_43_osend",	/* 101 = compat_43 osend */
    148   1.33   mycroft 	"compat_43_orecv",	/* 102 = compat_43 orecv */
    149   1.90   mycroft 	"compat_13_sigreturn13",	/* 103 = compat_13 sigreturn13 */
    150    1.1       cgd 	"bind",			/* 104 = bind */
    151    1.1       cgd 	"setsockopt",			/* 105 = setsockopt */
    152    1.1       cgd 	"listen",			/* 106 = listen */
    153   1.25       cgd 	"#107 (obsolete vtimes)",		/* 107 = obsolete vtimes */
    154   1.33   mycroft 	"compat_43_osigvec",	/* 108 = compat_43 osigvec */
    155   1.33   mycroft 	"compat_43_osigblock",	/* 109 = compat_43 osigblock */
    156   1.33   mycroft 	"compat_43_osigsetmask",	/* 110 = compat_43 osigsetmask */
    157   1.89   thorpej 	"compat_13_sigsuspend13",	/* 111 = compat_13 sigsuspend13 */
    158   1.33   mycroft 	"compat_43_osigstack",	/* 112 = compat_43 osigstack */
    159   1.33   mycroft 	"compat_43_orecvmsg",	/* 113 = compat_43 orecvmsg */
    160   1.33   mycroft 	"compat_43_osendmsg",	/* 114 = compat_43 osendmsg */
    161   1.25       cgd 	"#115 (obsolete vtrace)",		/* 115 = obsolete vtrace */
    162    1.1       cgd 	"gettimeofday",			/* 116 = gettimeofday */
    163    1.1       cgd 	"getrusage",			/* 117 = getrusage */
    164    1.1       cgd 	"getsockopt",			/* 118 = getsockopt */
    165   1.30       cgd 	"#119 (obsolete resuba)",		/* 119 = obsolete resuba */
    166    1.1       cgd 	"readv",			/* 120 = readv */
    167    1.1       cgd 	"writev",			/* 121 = writev */
    168    1.1       cgd 	"settimeofday",			/* 122 = settimeofday */
    169    1.1       cgd 	"fchown",			/* 123 = fchown */
    170    1.1       cgd 	"fchmod",			/* 124 = fchmod */
    171   1.33   mycroft 	"compat_43_orecvfrom",	/* 125 = compat_43 orecvfrom */
    172   1.37   mycroft 	"setreuid",			/* 126 = setreuid */
    173   1.37   mycroft 	"setregid",			/* 127 = setregid */
    174    1.1       cgd 	"rename",			/* 128 = rename */
    175   1.33   mycroft 	"compat_43_otruncate",	/* 129 = compat_43 otruncate */
    176   1.33   mycroft 	"compat_43_oftruncate",	/* 130 = compat_43 oftruncate */
    177    1.1       cgd 	"flock",			/* 131 = flock */
    178    1.1       cgd 	"mkfifo",			/* 132 = mkfifo */
    179    1.1       cgd 	"sendto",			/* 133 = sendto */
    180    1.1       cgd 	"shutdown",			/* 134 = shutdown */
    181    1.1       cgd 	"socketpair",			/* 135 = socketpair */
    182    1.1       cgd 	"mkdir",			/* 136 = mkdir */
    183    1.1       cgd 	"rmdir",			/* 137 = rmdir */
    184    1.1       cgd 	"utimes",			/* 138 = utimes */
    185   1.25       cgd 	"#139 (obsolete 4.2 sigreturn)",		/* 139 = obsolete 4.2 sigreturn */
    186    1.1       cgd 	"adjtime",			/* 140 = adjtime */
    187   1.33   mycroft 	"compat_43_ogetpeername",	/* 141 = compat_43 ogetpeername */
    188   1.33   mycroft 	"compat_43_ogethostid",	/* 142 = compat_43 ogethostid */
    189   1.33   mycroft 	"compat_43_osethostid",	/* 143 = compat_43 osethostid */
    190   1.33   mycroft 	"compat_43_ogetrlimit",	/* 144 = compat_43 ogetrlimit */
    191   1.33   mycroft 	"compat_43_osetrlimit",	/* 145 = compat_43 osetrlimit */
    192   1.33   mycroft 	"compat_43_okillpg",	/* 146 = compat_43 okillpg */
    193    1.1       cgd 	"setsid",			/* 147 = setsid */
    194    1.1       cgd 	"quotactl",			/* 148 = quotactl */
    195   1.33   mycroft 	"compat_43_oquota",	/* 149 = compat_43 oquota */
    196   1.33   mycroft 	"compat_43_ogetsockname",	/* 150 = compat_43 ogetsockname */
    197   1.25       cgd 	"#151 (unimplemented)",		/* 151 = unimplemented */
    198   1.25       cgd 	"#152 (unimplemented)",		/* 152 = unimplemented */
    199   1.25       cgd 	"#153 (unimplemented)",		/* 153 = unimplemented */
    200   1.25       cgd 	"#154 (unimplemented)",		/* 154 = unimplemented */
    201  1.100  christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    202    1.1       cgd 	"nfssvc",			/* 155 = nfssvc */
    203    1.1       cgd #else
    204  1.100  christos 	"#155 (excluded nfssvc)",		/* 155 = excluded nfssvc */
    205    1.1       cgd #endif
    206   1.33   mycroft 	"compat_43_ogetdirentries",	/* 156 = compat_43 ogetdirentries */
    207    1.1       cgd 	"statfs",			/* 157 = statfs */
    208    1.1       cgd 	"fstatfs",			/* 158 = fstatfs */
    209   1.25       cgd 	"#159 (unimplemented)",		/* 159 = unimplemented */
    210   1.25       cgd 	"#160 (unimplemented)",		/* 160 = unimplemented */
    211    1.1       cgd 	"getfh",			/* 161 = getfh */
    212   1.33   mycroft 	"compat_09_ogetdomainname",	/* 162 = compat_09 ogetdomainname */
    213   1.33   mycroft 	"compat_09_osetdomainname",	/* 163 = compat_09 osetdomainname */
    214   1.33   mycroft 	"compat_09_ouname",	/* 164 = compat_09 ouname */
    215    1.9    brezak 	"sysarch",			/* 165 = sysarch */
    216   1.25       cgd 	"#166 (unimplemented)",		/* 166 = unimplemented */
    217   1.25       cgd 	"#167 (unimplemented)",		/* 167 = unimplemented */
    218   1.25       cgd 	"#168 (unimplemented)",		/* 168 = unimplemented */
    219  1.100  christos #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
    220   1.33   mycroft 	"compat_10_osemsys",	/* 169 = compat_10 osemsys */
    221   1.11       cgd #else
    222  1.100  christos 	"#169 (excluded 1.0 semsys)",		/* 169 = excluded 1.0 semsys */
    223   1.11       cgd #endif
    224  1.100  christos #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
    225   1.33   mycroft 	"compat_10_omsgsys",	/* 170 = compat_10 omsgsys */
    226   1.11       cgd #else
    227  1.100  christos 	"#170 (excluded 1.0 msgsys)",		/* 170 = excluded 1.0 msgsys */
    228   1.11       cgd #endif
    229  1.100  christos #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
    230   1.33   mycroft 	"compat_10_oshmsys",	/* 171 = compat_10 oshmsys */
    231    1.1       cgd #else
    232  1.100  christos 	"#171 (excluded 1.0 shmsys)",		/* 171 = excluded 1.0 shmsys */
    233    1.1       cgd #endif
    234   1.25       cgd 	"#172 (unimplemented)",		/* 172 = unimplemented */
    235   1.86   thorpej 	"pread",			/* 173 = pread */
    236   1.86   thorpej 	"pwrite",			/* 174 = pwrite */
    237   1.35   mycroft 	"ntp_gettime",			/* 175 = ntp_gettime */
    238  1.110     bjh21 #if defined(NTP) || !defined(_KERNEL)
    239   1.35   mycroft 	"ntp_adjtime",			/* 176 = ntp_adjtime */
    240  1.110     bjh21 #else
    241  1.110     bjh21 	"#176 (excluded ntp_adjtime)",		/* 176 = excluded ntp_adjtime */
    242  1.110     bjh21 #endif
    243   1.25       cgd 	"#177 (unimplemented)",		/* 177 = unimplemented */
    244   1.25       cgd 	"#178 (unimplemented)",		/* 178 = unimplemented */
    245   1.25       cgd 	"#179 (unimplemented)",		/* 179 = unimplemented */
    246   1.25       cgd 	"#180 (unimplemented)",		/* 180 = unimplemented */
    247    1.1       cgd 	"setgid",			/* 181 = setgid */
    248    1.1       cgd 	"setegid",			/* 182 = setegid */
    249    1.1       cgd 	"seteuid",			/* 183 = seteuid */
    250  1.100  christos #if defined(LFS) || !defined(_KERNEL)
    251   1.19       cgd 	"lfs_bmapv",			/* 184 = lfs_bmapv */
    252   1.19       cgd 	"lfs_markv",			/* 185 = lfs_markv */
    253   1.19       cgd 	"lfs_segclean",			/* 186 = lfs_segclean */
    254   1.19       cgd 	"lfs_segwait",			/* 187 = lfs_segwait */
    255   1.19       cgd #else
    256  1.100  christos 	"#184 (excluded lfs_bmapv)",		/* 184 = excluded lfs_bmapv */
    257  1.100  christos 	"#185 (excluded lfs_markv)",		/* 185 = excluded lfs_markv */
    258  1.100  christos 	"#186 (excluded lfs_segclean)",		/* 186 = excluded lfs_segclean */
    259  1.100  christos 	"#187 (excluded lfs_segwait)",		/* 187 = excluded lfs_segwait */
    260   1.19       cgd #endif
    261   1.61  christos 	"compat_12_stat12",	/* 188 = compat_12 stat12 */
    262   1.61  christos 	"compat_12_fstat12",	/* 189 = compat_12 fstat12 */
    263   1.61  christos 	"compat_12_lstat12",	/* 190 = compat_12 lstat12 */
    264   1.20       cgd 	"pathconf",			/* 191 = pathconf */
    265   1.20       cgd 	"fpathconf",			/* 192 = fpathconf */
    266   1.25       cgd 	"#193 (unimplemented)",		/* 193 = unimplemented */
    267   1.19       cgd 	"getrlimit",			/* 194 = getrlimit */
    268   1.19       cgd 	"setrlimit",			/* 195 = setrlimit */
    269   1.58      fvdl 	"compat_12_getdirentries",	/* 196 = compat_12 getdirentries */
    270   1.17       cgd 	"mmap",			/* 197 = mmap */
    271   1.15       cgd 	"__syscall",			/* 198 = __syscall */
    272   1.17       cgd 	"lseek",			/* 199 = lseek */
    273   1.17       cgd 	"truncate",			/* 200 = truncate */
    274   1.17       cgd 	"ftruncate",			/* 201 = ftruncate */
    275   1.20       cgd 	"__sysctl",			/* 202 = __sysctl */
    276   1.20       cgd 	"mlock",			/* 203 = mlock */
    277   1.20       cgd 	"munlock",			/* 204 = munlock */
    278   1.28   mycroft 	"undelete",			/* 205 = undelete */
    279   1.36   mycroft 	"futimes",			/* 206 = futimes */
    280   1.38       mrg 	"getpgid",			/* 207 = getpgid */
    281   1.38       mrg 	"reboot",			/* 208 = reboot */
    282   1.39   mycroft 	"poll",			/* 209 = poll */
    283  1.100  christos #if defined(LKM) || !defined(_KERNEL)
    284   1.13       cgd 	"lkmnosys",			/* 210 = lkmnosys */
    285   1.13       cgd 	"lkmnosys",			/* 211 = lkmnosys */
    286   1.13       cgd 	"lkmnosys",			/* 212 = lkmnosys */
    287   1.13       cgd 	"lkmnosys",			/* 213 = lkmnosys */
    288   1.13       cgd 	"lkmnosys",			/* 214 = lkmnosys */
    289   1.13       cgd 	"lkmnosys",			/* 215 = lkmnosys */
    290   1.13       cgd 	"lkmnosys",			/* 216 = lkmnosys */
    291   1.13       cgd 	"lkmnosys",			/* 217 = lkmnosys */
    292   1.13       cgd 	"lkmnosys",			/* 218 = lkmnosys */
    293   1.13       cgd 	"lkmnosys",			/* 219 = lkmnosys */
    294   1.13       cgd #else	/* !LKM */
    295  1.100  christos 	"#210 (excluded lkmnosys)",		/* 210 = excluded lkmnosys */
    296  1.100  christos 	"#211 (excluded lkmnosys)",		/* 211 = excluded lkmnosys */
    297  1.100  christos 	"#212 (excluded lkmnosys)",		/* 212 = excluded lkmnosys */
    298  1.100  christos 	"#213 (excluded lkmnosys)",		/* 213 = excluded lkmnosys */
    299  1.100  christos 	"#214 (excluded lkmnosys)",		/* 214 = excluded lkmnosys */
    300  1.100  christos 	"#215 (excluded lkmnosys)",		/* 215 = excluded lkmnosys */
    301  1.100  christos 	"#216 (excluded lkmnosys)",		/* 216 = excluded lkmnosys */
    302  1.100  christos 	"#217 (excluded lkmnosys)",		/* 217 = excluded lkmnosys */
    303  1.100  christos 	"#218 (excluded lkmnosys)",		/* 218 = excluded lkmnosys */
    304  1.100  christos 	"#219 (excluded lkmnosys)",		/* 219 = excluded lkmnosys */
    305    1.9    brezak #endif	/* !LKM */
    306  1.100  christos #if defined(SYSVSEM) || !defined(_KERNEL)
    307  1.105   thorpej 	"compat_14___semctl",	/* 220 = compat_14 __semctl */
    308   1.25       cgd 	"semget",			/* 221 = semget */
    309   1.25       cgd 	"semop",			/* 222 = semop */
    310   1.25       cgd 	"semconfig",			/* 223 = semconfig */
    311   1.25       cgd #else
    312  1.105   thorpej 	"#220 (excluded compat_14_semctl)",		/* 220 = excluded compat_14_semctl */
    313  1.100  christos 	"#221 (excluded semget)",		/* 221 = excluded semget */
    314  1.100  christos 	"#222 (excluded semop)",		/* 222 = excluded semop */
    315  1.100  christos 	"#223 (excluded semconfig)",		/* 223 = excluded semconfig */
    316   1.25       cgd #endif
    317  1.100  christos #if defined(SYSVMSG) || !defined(_KERNEL)
    318  1.105   thorpej 	"compat_14_msgctl",	/* 224 = compat_14 msgctl */
    319   1.25       cgd 	"msgget",			/* 225 = msgget */
    320   1.25       cgd 	"msgsnd",			/* 226 = msgsnd */
    321   1.25       cgd 	"msgrcv",			/* 227 = msgrcv */
    322   1.25       cgd #else
    323  1.105   thorpej 	"#224 (excluded compat_14_msgctl)",		/* 224 = excluded compat_14_msgctl */
    324  1.100  christos 	"#225 (excluded msgget)",		/* 225 = excluded msgget */
    325  1.100  christos 	"#226 (excluded msgsnd)",		/* 226 = excluded msgsnd */
    326  1.100  christos 	"#227 (excluded msgrcv)",		/* 227 = excluded msgrcv */
    327   1.25       cgd #endif
    328  1.100  christos #if defined(SYSVSHM) || !defined(_KERNEL)
    329   1.25       cgd 	"shmat",			/* 228 = shmat */
    330  1.105   thorpej 	"compat_14_shmctl",	/* 229 = compat_14 shmctl */
    331   1.25       cgd 	"shmdt",			/* 230 = shmdt */
    332   1.25       cgd 	"shmget",			/* 231 = shmget */
    333   1.25       cgd #else
    334  1.100  christos 	"#228 (excluded shmat)",		/* 228 = excluded shmat */
    335  1.105   thorpej 	"#229 (excluded compat_14_shmctl)",		/* 229 = excluded compat_14_shmctl */
    336  1.100  christos 	"#230 (excluded shmdt)",		/* 230 = excluded shmdt */
    337  1.100  christos 	"#231 (excluded shmget)",		/* 231 = excluded shmget */
    338   1.25       cgd #endif
    339   1.43       jtc 	"clock_gettime",			/* 232 = clock_gettime */
    340   1.43       jtc 	"clock_settime",			/* 233 = clock_settime */
    341   1.43       jtc 	"clock_getres",			/* 234 = clock_getres */
    342   1.43       jtc 	"#235 (unimplemented timer_create)",		/* 235 = unimplemented timer_create */
    343   1.43       jtc 	"#236 (unimplemented timer_delete)",		/* 236 = unimplemented timer_delete */
    344   1.43       jtc 	"#237 (unimplemented timer_settime)",		/* 237 = unimplemented timer_settime */
    345   1.43       jtc 	"#238 (unimplemented timer_gettime)",		/* 238 = unimplemented timer_gettime */
    346   1.43       jtc 	"#239 (unimplemented timer_getoverrun)",		/* 239 = unimplemented timer_getoverrun */
    347   1.49       jtc 	"nanosleep",			/* 240 = nanosleep */
    348   1.83    kleink 	"fdatasync",			/* 241 = fdatasync */
    349  1.101   thorpej 	"mlockall",			/* 242 = mlockall */
    350  1.101   thorpej 	"munlockall",			/* 243 = munlockall */
    351   1.50    kleink 	"#244 (unimplemented)",		/* 244 = unimplemented */
    352   1.50    kleink 	"#245 (unimplemented)",		/* 245 = unimplemented */
    353   1.50    kleink 	"#246 (unimplemented)",		/* 246 = unimplemented */
    354   1.50    kleink 	"#247 (unimplemented)",		/* 247 = unimplemented */
    355   1.50    kleink 	"#248 (unimplemented)",		/* 248 = unimplemented */
    356   1.50    kleink 	"#249 (unimplemented)",		/* 249 = unimplemented */
    357   1.55     veego 	"#250 (unimplemented)",		/* 250 = unimplemented */
    358   1.50    kleink 	"#251 (unimplemented)",		/* 251 = unimplemented */
    359   1.50    kleink 	"#252 (unimplemented)",		/* 252 = unimplemented */
    360   1.50    kleink 	"#253 (unimplemented)",		/* 253 = unimplemented */
    361   1.50    kleink 	"#254 (unimplemented)",		/* 254 = unimplemented */
    362   1.50    kleink 	"#255 (unimplemented)",		/* 255 = unimplemented */
    363   1.50    kleink 	"#256 (unimplemented)",		/* 256 = unimplemented */
    364   1.50    kleink 	"#257 (unimplemented)",		/* 257 = unimplemented */
    365   1.50    kleink 	"#258 (unimplemented)",		/* 258 = unimplemented */
    366   1.50    kleink 	"#259 (unimplemented)",		/* 259 = unimplemented */
    367   1.50    kleink 	"#260 (unimplemented)",		/* 260 = unimplemented */
    368   1.50    kleink 	"#261 (unimplemented)",		/* 261 = unimplemented */
    369   1.50    kleink 	"#262 (unimplemented)",		/* 262 = unimplemented */
    370   1.50    kleink 	"#263 (unimplemented)",		/* 263 = unimplemented */
    371   1.50    kleink 	"#264 (unimplemented)",		/* 264 = unimplemented */
    372   1.50    kleink 	"#265 (unimplemented)",		/* 265 = unimplemented */
    373   1.50    kleink 	"#266 (unimplemented)",		/* 266 = unimplemented */
    374   1.50    kleink 	"#267 (unimplemented)",		/* 267 = unimplemented */
    375   1.50    kleink 	"#268 (unimplemented)",		/* 268 = unimplemented */
    376   1.50    kleink 	"#269 (unimplemented)",		/* 269 = unimplemented */
    377   1.74    kleink 	"__posix_rename",			/* 270 = __posix_rename */
    378   1.51       mrg 	"swapctl",			/* 271 = swapctl */
    379   1.58      fvdl 	"getdents",			/* 272 = getdents */
    380   1.55     veego 	"minherit",			/* 273 = minherit */
    381   1.56     enami 	"lchmod",			/* 274 = lchmod */
    382   1.56     enami 	"lchown",			/* 275 = lchown */
    383   1.56     enami 	"lutimes",			/* 276 = lutimes */
    384   1.64   thorpej 	"__msync13",			/* 277 = __msync13 */
    385   1.64   thorpej 	"__stat13",			/* 278 = __stat13 */
    386   1.64   thorpej 	"__fstat13",			/* 279 = __fstat13 */
    387   1.64   thorpej 	"__lstat13",			/* 280 = __lstat13 */
    388   1.68    kleink 	"__sigaltstack14",			/* 281 = __sigaltstack14 */
    389   1.69   thorpej 	"__vfork14",			/* 282 = __vfork14 */
    390   1.74    kleink 	"__posix_chown",			/* 283 = __posix_chown */
    391   1.74    kleink 	"__posix_fchown",			/* 284 = __posix_fchown */
    392   1.74    kleink 	"__posix_lchown",			/* 285 = __posix_lchown */
    393   1.73   thorpej 	"getsid",			/* 286 = getsid */
    394  1.122   thorpej 	"__clone",			/* 287 = __clone */
    395  1.100  christos #if defined(KTRACE) || !defined(_KERNEL)
    396   1.79  christos 	"fktrace",			/* 288 = fktrace */
    397   1.79  christos #else
    398  1.100  christos 	"#288 (excluded ktrace)",		/* 288 = excluded ktrace */
    399   1.79  christos #endif
    400   1.86   thorpej 	"preadv",			/* 289 = preadv */
    401   1.86   thorpej 	"pwritev",			/* 290 = pwritev */
    402   1.89   thorpej 	"__sigaction14",			/* 291 = __sigaction14 */
    403   1.89   thorpej 	"__sigpending14",			/* 292 = __sigpending14 */
    404   1.89   thorpej 	"__sigprocmask14",			/* 293 = __sigprocmask14 */
    405   1.89   thorpej 	"__sigsuspend14",			/* 294 = __sigsuspend14 */
    406   1.90   mycroft 	"__sigreturn14",			/* 295 = __sigreturn14 */
    407   1.97  sommerfe 	"__getcwd",			/* 296 = __getcwd */
    408   1.97  sommerfe 	"fchroot",			/* 297 = fchroot */
    409  1.102  wrstuden 	"fhopen",			/* 298 = fhopen */
    410  1.102  wrstuden 	"fhstat",			/* 299 = fhstat */
    411  1.102  wrstuden 	"fhstatfs",			/* 300 = fhstatfs */
    412  1.105   thorpej #if defined(SYSVSEM) || !defined(_KERNEL)
    413  1.107  christos 	"____semctl13",			/* 301 = ____semctl13 */
    414  1.105   thorpej #else
    415  1.107  christos 	"#301 (excluded ____semctl13)",		/* 301 = excluded ____semctl13 */
    416  1.105   thorpej #endif
    417  1.105   thorpej #if defined(SYSVMSG) || !defined(_KERNEL)
    418  1.105   thorpej 	"__msgctl13",			/* 302 = __msgctl13 */
    419  1.105   thorpej #else
    420  1.105   thorpej 	"#302 (excluded __msgctl13)",		/* 302 = excluded __msgctl13 */
    421  1.105   thorpej #endif
    422  1.105   thorpej #if defined(SYSVSHM) || !defined(_KERNEL)
    423  1.105   thorpej 	"__shmctl13",			/* 303 = __shmctl13 */
    424  1.105   thorpej #else
    425  1.105   thorpej 	"#303 (excluded __shmctl13)",		/* 303 = excluded __shmctl13 */
    426  1.105   thorpej #endif
    427  1.108       mrg 	"lchflags",			/* 304 = lchflags */
    428  1.109   minoura 	"issetugid",			/* 305 = issetugid */
    429  1.116  jdolecek 	"utrace",			/* 306 = utrace */
    430  1.118   thorpej 	"#307 (unimplemented)",		/* 307 = unimplemented */
    431  1.118   thorpej 	"#308 (unimplemented)",		/* 308 = unimplemented */
    432  1.118   thorpej 	"#309 (unimplemented)",		/* 309 = unimplemented */
    433  1.118   thorpej 	"#310 (unimplemented)",		/* 310 = unimplemented */
    434  1.118   thorpej 	"#311 (unimplemented)",		/* 311 = unimplemented */
    435  1.118   thorpej 	"#312 (unimplemented)",		/* 312 = unimplemented */
    436  1.118   thorpej 	"#313 (unimplemented)",		/* 313 = unimplemented */
    437  1.118   thorpej 	"#314 (unimplemented)",		/* 314 = unimplemented */
    438  1.118   thorpej 	"#315 (unimplemented)",		/* 315 = unimplemented */
    439  1.118   thorpej 	"#316 (unimplemented)",		/* 316 = unimplemented */
    440  1.118   thorpej 	"#317 (unimplemented)",		/* 317 = unimplemented */
    441  1.118   thorpej 	"#318 (unimplemented)",		/* 318 = unimplemented */
    442  1.118   thorpej 	"#319 (unimplemented)",		/* 319 = unimplemented */
    443  1.118   thorpej 	"#320 (unimplemented)",		/* 320 = unimplemented */
    444  1.118   thorpej 	"#321 (unimplemented)",		/* 321 = unimplemented */
    445  1.118   thorpej 	"#322 (unimplemented)",		/* 322 = unimplemented */
    446  1.118   thorpej 	"#323 (unimplemented)",		/* 323 = unimplemented */
    447  1.118   thorpej 	"#324 (unimplemented)",		/* 324 = unimplemented */
    448  1.118   thorpej 	"#325 (unimplemented)",		/* 325 = unimplemented */
    449  1.118   thorpej 	"#326 (unimplemented)",		/* 326 = unimplemented */
    450  1.118   thorpej 	"#327 (unimplemented)",		/* 327 = unimplemented */
    451  1.118   thorpej 	"#328 (unimplemented)",		/* 328 = unimplemented */
    452  1.118   thorpej 	"#329 (unimplemented)",		/* 329 = unimplemented */
    453  1.118   thorpej 	"#330 (unimplemented)",		/* 330 = unimplemented */
    454  1.118   thorpej 	"#331 (unimplemented)",		/* 331 = unimplemented */
    455  1.118   thorpej 	"#332 (unimplemented)",		/* 332 = unimplemented */
    456  1.118   thorpej 	"#333 (unimplemented)",		/* 333 = unimplemented */
    457  1.118   thorpej 	"#334 (unimplemented)",		/* 334 = unimplemented */
    458  1.118   thorpej 	"#335 (unimplemented)",		/* 335 = unimplemented */
    459  1.118   thorpej 	"#336 (unimplemented)",		/* 336 = unimplemented */
    460  1.118   thorpej 	"#337 (unimplemented)",		/* 337 = unimplemented */
    461  1.118   thorpej 	"#338 (unimplemented)",		/* 338 = unimplemented */
    462  1.118   thorpej 	"#339 (unimplemented)",		/* 339 = unimplemented */
    463    1.1       cgd };
    464