Home | History | Annotate | Line # | Download | only in kern
syscalls.c revision 1.165
      1  1.111       cgd /* $NetBSD: syscalls.c,v 1.165 2005/11/29 23:01:20 yamt 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.165      yamt  * created from	NetBSD: syscalls.master,v 1.150 2005/11/29 22:52:02 yamt 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.165 2005/11/29 23:01:20 yamt 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.133  christos #include "opt_posix.h"
     21   1.75   thorpej #include "fs_lfs.h"
     22   1.75   thorpej #include "fs_nfs.h"
     23   1.75   thorpej #include <sys/param.h>
     24   1.75   thorpej #include <sys/systm.h>
     25   1.75   thorpej #include <sys/signal.h>
     26   1.75   thorpej #include <sys/mount.h>
     27  1.131   thorpej #include <sys/sa.h>
     28   1.75   thorpej #include <sys/syscallargs.h>
     29  1.121       mrg #endif /* _KERNEL_OPT */
     30    1.1       cgd 
     31  1.113   mycroft const char *const syscallnames[] = {
     32   1.12   deraadt 	"syscall",			/* 0 = syscall */
     33    1.1       cgd 	"exit",			/* 1 = exit */
     34    1.1       cgd 	"fork",			/* 2 = fork */
     35    1.1       cgd 	"read",			/* 3 = read */
     36    1.1       cgd 	"write",			/* 4 = write */
     37    1.1       cgd 	"open",			/* 5 = open */
     38    1.1       cgd 	"close",			/* 6 = close */
     39    1.1       cgd 	"wait4",			/* 7 = wait4 */
     40   1.33   mycroft 	"compat_43_ocreat",	/* 8 = compat_43 ocreat */
     41    1.1       cgd 	"link",			/* 9 = link */
     42    1.1       cgd 	"unlink",			/* 10 = unlink */
     43   1.25       cgd 	"#11 (obsolete execv)",		/* 11 = obsolete execv */
     44    1.1       cgd 	"chdir",			/* 12 = chdir */
     45    1.1       cgd 	"fchdir",			/* 13 = fchdir */
     46    1.1       cgd 	"mknod",			/* 14 = mknod */
     47    1.1       cgd 	"chmod",			/* 15 = chmod */
     48    1.1       cgd 	"chown",			/* 16 = chown */
     49    1.1       cgd 	"break",			/* 17 = break */
     50  1.151  christos 	"compat_20_getfsstat",	/* 18 = compat_20 getfsstat */
     51   1.33   mycroft 	"compat_43_olseek",	/* 19 = compat_43 olseek */
     52  1.115   mycroft #ifdef COMPAT_43
     53    1.1       cgd 	"getpid",			/* 20 = getpid */
     54  1.115   mycroft #else
     55  1.115   mycroft 	"getpid",			/* 20 = getpid */
     56  1.115   mycroft #endif
     57    1.1       cgd 	"mount",			/* 21 = mount */
     58    1.1       cgd 	"unmount",			/* 22 = unmount */
     59    1.1       cgd 	"setuid",			/* 23 = setuid */
     60  1.115   mycroft #ifdef COMPAT_43
     61  1.115   mycroft 	"getuid",			/* 24 = getuid */
     62  1.115   mycroft #else
     63    1.1       cgd 	"getuid",			/* 24 = getuid */
     64  1.115   mycroft #endif
     65    1.1       cgd 	"geteuid",			/* 25 = geteuid */
     66    1.1       cgd 	"ptrace",			/* 26 = ptrace */
     67    1.1       cgd 	"recvmsg",			/* 27 = recvmsg */
     68    1.1       cgd 	"sendmsg",			/* 28 = sendmsg */
     69    1.1       cgd 	"recvfrom",			/* 29 = recvfrom */
     70    1.1       cgd 	"accept",			/* 30 = accept */
     71    1.1       cgd 	"getpeername",			/* 31 = getpeername */
     72    1.1       cgd 	"getsockname",			/* 32 = getsockname */
     73    1.1       cgd 	"access",			/* 33 = access */
     74    1.1       cgd 	"chflags",			/* 34 = chflags */
     75    1.1       cgd 	"fchflags",			/* 35 = fchflags */
     76    1.1       cgd 	"sync",			/* 36 = sync */
     77    1.1       cgd 	"kill",			/* 37 = kill */
     78   1.61  christos 	"compat_43_stat43",	/* 38 = compat_43 stat43 */
     79    1.1       cgd 	"getppid",			/* 39 = getppid */
     80   1.61  christos 	"compat_43_lstat43",	/* 40 = compat_43 lstat43 */
     81    1.1       cgd 	"dup",			/* 41 = dup */
     82    1.1       cgd 	"pipe",			/* 42 = pipe */
     83    1.1       cgd 	"getegid",			/* 43 = getegid */
     84    1.1       cgd 	"profil",			/* 44 = profil */
     85  1.100  christos #if defined(KTRACE) || !defined(_KERNEL)
     86    1.1       cgd 	"ktrace",			/* 45 = ktrace */
     87    1.1       cgd #else
     88  1.100  christos 	"#45 (excluded ktrace)",		/* 45 = excluded ktrace */
     89    1.1       cgd #endif
     90   1.89   thorpej 	"compat_13_sigaction13",	/* 46 = compat_13 sigaction13 */
     91  1.115   mycroft #ifdef COMPAT_43
     92  1.115   mycroft 	"getgid",			/* 47 = getgid */
     93  1.115   mycroft #else
     94    1.1       cgd 	"getgid",			/* 47 = getgid */
     95  1.115   mycroft #endif
     96   1.89   thorpej 	"compat_13_sigprocmask13",	/* 48 = compat_13 sigprocmask13 */
     97   1.41       jtc 	"__getlogin",			/* 49 = __getlogin */
     98  1.131   thorpej 	"__setlogin",			/* 50 = __setlogin */
     99    1.1       cgd 	"acct",			/* 51 = acct */
    100   1.89   thorpej 	"compat_13_sigpending13",	/* 52 = compat_13 sigpending13 */
    101   1.66    kleink 	"compat_13_sigaltstack13",	/* 53 = compat_13 sigaltstack13 */
    102    1.1       cgd 	"ioctl",			/* 54 = ioctl */
    103   1.38       mrg 	"compat_12_oreboot",	/* 55 = compat_12 oreboot */
    104    1.1       cgd 	"revoke",			/* 56 = revoke */
    105    1.1       cgd 	"symlink",			/* 57 = symlink */
    106    1.1       cgd 	"readlink",			/* 58 = readlink */
    107    1.1       cgd 	"execve",			/* 59 = execve */
    108    1.1       cgd 	"umask",			/* 60 = umask */
    109    1.1       cgd 	"chroot",			/* 61 = chroot */
    110   1.61  christos 	"compat_43_fstat43",	/* 62 = compat_43 fstat43 */
    111   1.33   mycroft 	"compat_43_ogetkerninfo",	/* 63 = compat_43 ogetkerninfo */
    112   1.33   mycroft 	"compat_43_ogetpagesize",	/* 64 = compat_43 ogetpagesize */
    113   1.61  christos 	"compat_12_msync",	/* 65 = compat_12 msync */
    114    1.1       cgd 	"vfork",			/* 66 = vfork */
    115   1.25       cgd 	"#67 (obsolete vread)",		/* 67 = obsolete vread */
    116   1.25       cgd 	"#68 (obsolete vwrite)",		/* 68 = obsolete vwrite */
    117    1.1       cgd 	"sbrk",			/* 69 = sbrk */
    118    1.1       cgd 	"sstk",			/* 70 = sstk */
    119   1.33   mycroft 	"compat_43_ommap",	/* 71 = compat_43 ommap */
    120    1.1       cgd 	"vadvise",			/* 72 = vadvise */
    121    1.1       cgd 	"munmap",			/* 73 = munmap */
    122    1.1       cgd 	"mprotect",			/* 74 = mprotect */
    123    1.1       cgd 	"madvise",			/* 75 = madvise */
    124   1.25       cgd 	"#76 (obsolete vhangup)",		/* 76 = obsolete vhangup */
    125   1.25       cgd 	"#77 (obsolete vlimit)",		/* 77 = obsolete vlimit */
    126    1.1       cgd 	"mincore",			/* 78 = mincore */
    127    1.1       cgd 	"getgroups",			/* 79 = getgroups */
    128    1.1       cgd 	"setgroups",			/* 80 = setgroups */
    129    1.1       cgd 	"getpgrp",			/* 81 = getpgrp */
    130    1.1       cgd 	"setpgid",			/* 82 = setpgid */
    131    1.1       cgd 	"setitimer",			/* 83 = setitimer */
    132   1.33   mycroft 	"compat_43_owait",	/* 84 = compat_43 owait */
    133   1.53       mrg 	"compat_12_oswapon",	/* 85 = compat_12 oswapon */
    134    1.1       cgd 	"getitimer",			/* 86 = getitimer */
    135   1.33   mycroft 	"compat_43_ogethostname",	/* 87 = compat_43 ogethostname */
    136   1.33   mycroft 	"compat_43_osethostname",	/* 88 = compat_43 osethostname */
    137   1.33   mycroft 	"compat_43_ogetdtablesize",	/* 89 = compat_43 ogetdtablesize */
    138    1.1       cgd 	"dup2",			/* 90 = dup2 */
    139   1.25       cgd 	"#91 (unimplemented getdopt)",		/* 91 = unimplemented getdopt */
    140    1.1       cgd 	"fcntl",			/* 92 = fcntl */
    141    1.1       cgd 	"select",			/* 93 = select */
    142   1.25       cgd 	"#94 (unimplemented setdopt)",		/* 94 = unimplemented setdopt */
    143    1.1       cgd 	"fsync",			/* 95 = fsync */
    144    1.1       cgd 	"setpriority",			/* 96 = setpriority */
    145    1.1       cgd 	"socket",			/* 97 = socket */
    146    1.1       cgd 	"connect",			/* 98 = connect */
    147   1.33   mycroft 	"compat_43_oaccept",	/* 99 = compat_43 oaccept */
    148    1.1       cgd 	"getpriority",			/* 100 = getpriority */
    149   1.33   mycroft 	"compat_43_osend",	/* 101 = compat_43 osend */
    150   1.33   mycroft 	"compat_43_orecv",	/* 102 = compat_43 orecv */
    151   1.90   mycroft 	"compat_13_sigreturn13",	/* 103 = compat_13 sigreturn13 */
    152    1.1       cgd 	"bind",			/* 104 = bind */
    153    1.1       cgd 	"setsockopt",			/* 105 = setsockopt */
    154    1.1       cgd 	"listen",			/* 106 = listen */
    155   1.25       cgd 	"#107 (obsolete vtimes)",		/* 107 = obsolete vtimes */
    156   1.33   mycroft 	"compat_43_osigvec",	/* 108 = compat_43 osigvec */
    157   1.33   mycroft 	"compat_43_osigblock",	/* 109 = compat_43 osigblock */
    158   1.33   mycroft 	"compat_43_osigsetmask",	/* 110 = compat_43 osigsetmask */
    159   1.89   thorpej 	"compat_13_sigsuspend13",	/* 111 = compat_13 sigsuspend13 */
    160   1.33   mycroft 	"compat_43_osigstack",	/* 112 = compat_43 osigstack */
    161   1.33   mycroft 	"compat_43_orecvmsg",	/* 113 = compat_43 orecvmsg */
    162   1.33   mycroft 	"compat_43_osendmsg",	/* 114 = compat_43 osendmsg */
    163   1.25       cgd 	"#115 (obsolete vtrace)",		/* 115 = obsolete vtrace */
    164    1.1       cgd 	"gettimeofday",			/* 116 = gettimeofday */
    165    1.1       cgd 	"getrusage",			/* 117 = getrusage */
    166    1.1       cgd 	"getsockopt",			/* 118 = getsockopt */
    167   1.30       cgd 	"#119 (obsolete resuba)",		/* 119 = obsolete resuba */
    168    1.1       cgd 	"readv",			/* 120 = readv */
    169    1.1       cgd 	"writev",			/* 121 = writev */
    170    1.1       cgd 	"settimeofday",			/* 122 = settimeofday */
    171    1.1       cgd 	"fchown",			/* 123 = fchown */
    172    1.1       cgd 	"fchmod",			/* 124 = fchmod */
    173   1.33   mycroft 	"compat_43_orecvfrom",	/* 125 = compat_43 orecvfrom */
    174   1.37   mycroft 	"setreuid",			/* 126 = setreuid */
    175   1.37   mycroft 	"setregid",			/* 127 = setregid */
    176    1.1       cgd 	"rename",			/* 128 = rename */
    177   1.33   mycroft 	"compat_43_otruncate",	/* 129 = compat_43 otruncate */
    178   1.33   mycroft 	"compat_43_oftruncate",	/* 130 = compat_43 oftruncate */
    179    1.1       cgd 	"flock",			/* 131 = flock */
    180    1.1       cgd 	"mkfifo",			/* 132 = mkfifo */
    181    1.1       cgd 	"sendto",			/* 133 = sendto */
    182    1.1       cgd 	"shutdown",			/* 134 = shutdown */
    183    1.1       cgd 	"socketpair",			/* 135 = socketpair */
    184    1.1       cgd 	"mkdir",			/* 136 = mkdir */
    185    1.1       cgd 	"rmdir",			/* 137 = rmdir */
    186    1.1       cgd 	"utimes",			/* 138 = utimes */
    187   1.25       cgd 	"#139 (obsolete 4.2 sigreturn)",		/* 139 = obsolete 4.2 sigreturn */
    188    1.1       cgd 	"adjtime",			/* 140 = adjtime */
    189   1.33   mycroft 	"compat_43_ogetpeername",	/* 141 = compat_43 ogetpeername */
    190   1.33   mycroft 	"compat_43_ogethostid",	/* 142 = compat_43 ogethostid */
    191   1.33   mycroft 	"compat_43_osethostid",	/* 143 = compat_43 osethostid */
    192   1.33   mycroft 	"compat_43_ogetrlimit",	/* 144 = compat_43 ogetrlimit */
    193   1.33   mycroft 	"compat_43_osetrlimit",	/* 145 = compat_43 osetrlimit */
    194   1.33   mycroft 	"compat_43_okillpg",	/* 146 = compat_43 okillpg */
    195    1.1       cgd 	"setsid",			/* 147 = setsid */
    196    1.1       cgd 	"quotactl",			/* 148 = quotactl */
    197   1.33   mycroft 	"compat_43_oquota",	/* 149 = compat_43 oquota */
    198   1.33   mycroft 	"compat_43_ogetsockname",	/* 150 = compat_43 ogetsockname */
    199   1.25       cgd 	"#151 (unimplemented)",		/* 151 = unimplemented */
    200   1.25       cgd 	"#152 (unimplemented)",		/* 152 = unimplemented */
    201   1.25       cgd 	"#153 (unimplemented)",		/* 153 = unimplemented */
    202   1.25       cgd 	"#154 (unimplemented)",		/* 154 = unimplemented */
    203  1.100  christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    204    1.1       cgd 	"nfssvc",			/* 155 = nfssvc */
    205    1.1       cgd #else
    206  1.100  christos 	"#155 (excluded nfssvc)",		/* 155 = excluded nfssvc */
    207    1.1       cgd #endif
    208   1.33   mycroft 	"compat_43_ogetdirentries",	/* 156 = compat_43 ogetdirentries */
    209  1.151  christos 	"compat_20_statfs",	/* 157 = compat_20 statfs */
    210  1.151  christos 	"compat_20_fstatfs",	/* 158 = compat_20 fstatfs */
    211   1.25       cgd 	"#159 (unimplemented)",		/* 159 = unimplemented */
    212   1.25       cgd 	"#160 (unimplemented)",		/* 160 = unimplemented */
    213    1.1       cgd 	"getfh",			/* 161 = getfh */
    214   1.33   mycroft 	"compat_09_ogetdomainname",	/* 162 = compat_09 ogetdomainname */
    215   1.33   mycroft 	"compat_09_osetdomainname",	/* 163 = compat_09 osetdomainname */
    216   1.33   mycroft 	"compat_09_ouname",	/* 164 = compat_09 ouname */
    217    1.9    brezak 	"sysarch",			/* 165 = sysarch */
    218   1.25       cgd 	"#166 (unimplemented)",		/* 166 = unimplemented */
    219   1.25       cgd 	"#167 (unimplemented)",		/* 167 = unimplemented */
    220   1.25       cgd 	"#168 (unimplemented)",		/* 168 = unimplemented */
    221  1.124       eeh #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
    222   1.33   mycroft 	"compat_10_osemsys",	/* 169 = compat_10 osemsys */
    223   1.11       cgd #else
    224  1.100  christos 	"#169 (excluded 1.0 semsys)",		/* 169 = excluded 1.0 semsys */
    225   1.11       cgd #endif
    226  1.124       eeh #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
    227   1.33   mycroft 	"compat_10_omsgsys",	/* 170 = compat_10 omsgsys */
    228   1.11       cgd #else
    229  1.100  christos 	"#170 (excluded 1.0 msgsys)",		/* 170 = excluded 1.0 msgsys */
    230   1.11       cgd #endif
    231  1.124       eeh #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
    232   1.33   mycroft 	"compat_10_oshmsys",	/* 171 = compat_10 oshmsys */
    233    1.1       cgd #else
    234  1.100  christos 	"#171 (excluded 1.0 shmsys)",		/* 171 = excluded 1.0 shmsys */
    235    1.1       cgd #endif
    236   1.25       cgd 	"#172 (unimplemented)",		/* 172 = unimplemented */
    237   1.86   thorpej 	"pread",			/* 173 = pread */
    238   1.86   thorpej 	"pwrite",			/* 174 = pwrite */
    239   1.35   mycroft 	"ntp_gettime",			/* 175 = ntp_gettime */
    240  1.110     bjh21 #if defined(NTP) || !defined(_KERNEL)
    241   1.35   mycroft 	"ntp_adjtime",			/* 176 = ntp_adjtime */
    242  1.110     bjh21 #else
    243  1.110     bjh21 	"#176 (excluded ntp_adjtime)",		/* 176 = excluded ntp_adjtime */
    244  1.110     bjh21 #endif
    245   1.25       cgd 	"#177 (unimplemented)",		/* 177 = unimplemented */
    246   1.25       cgd 	"#178 (unimplemented)",		/* 178 = unimplemented */
    247   1.25       cgd 	"#179 (unimplemented)",		/* 179 = unimplemented */
    248   1.25       cgd 	"#180 (unimplemented)",		/* 180 = unimplemented */
    249    1.1       cgd 	"setgid",			/* 181 = setgid */
    250    1.1       cgd 	"setegid",			/* 182 = setegid */
    251    1.1       cgd 	"seteuid",			/* 183 = seteuid */
    252  1.100  christos #if defined(LFS) || !defined(_KERNEL)
    253   1.19       cgd 	"lfs_bmapv",			/* 184 = lfs_bmapv */
    254   1.19       cgd 	"lfs_markv",			/* 185 = lfs_markv */
    255   1.19       cgd 	"lfs_segclean",			/* 186 = lfs_segclean */
    256   1.19       cgd 	"lfs_segwait",			/* 187 = lfs_segwait */
    257   1.19       cgd #else
    258  1.100  christos 	"#184 (excluded lfs_bmapv)",		/* 184 = excluded lfs_bmapv */
    259  1.100  christos 	"#185 (excluded lfs_markv)",		/* 185 = excluded lfs_markv */
    260  1.100  christos 	"#186 (excluded lfs_segclean)",		/* 186 = excluded lfs_segclean */
    261  1.100  christos 	"#187 (excluded lfs_segwait)",		/* 187 = excluded lfs_segwait */
    262   1.19       cgd #endif
    263   1.61  christos 	"compat_12_stat12",	/* 188 = compat_12 stat12 */
    264   1.61  christos 	"compat_12_fstat12",	/* 189 = compat_12 fstat12 */
    265   1.61  christos 	"compat_12_lstat12",	/* 190 = compat_12 lstat12 */
    266   1.20       cgd 	"pathconf",			/* 191 = pathconf */
    267   1.20       cgd 	"fpathconf",			/* 192 = fpathconf */
    268   1.25       cgd 	"#193 (unimplemented)",		/* 193 = unimplemented */
    269   1.19       cgd 	"getrlimit",			/* 194 = getrlimit */
    270   1.19       cgd 	"setrlimit",			/* 195 = setrlimit */
    271   1.58      fvdl 	"compat_12_getdirentries",	/* 196 = compat_12 getdirentries */
    272   1.17       cgd 	"mmap",			/* 197 = mmap */
    273   1.15       cgd 	"__syscall",			/* 198 = __syscall */
    274   1.17       cgd 	"lseek",			/* 199 = lseek */
    275   1.17       cgd 	"truncate",			/* 200 = truncate */
    276   1.17       cgd 	"ftruncate",			/* 201 = ftruncate */
    277   1.20       cgd 	"__sysctl",			/* 202 = __sysctl */
    278   1.20       cgd 	"mlock",			/* 203 = mlock */
    279   1.20       cgd 	"munlock",			/* 204 = munlock */
    280   1.28   mycroft 	"undelete",			/* 205 = undelete */
    281   1.36   mycroft 	"futimes",			/* 206 = futimes */
    282   1.38       mrg 	"getpgid",			/* 207 = getpgid */
    283   1.38       mrg 	"reboot",			/* 208 = reboot */
    284   1.39   mycroft 	"poll",			/* 209 = poll */
    285  1.100  christos #if defined(LKM) || !defined(_KERNEL)
    286   1.13       cgd 	"lkmnosys",			/* 210 = lkmnosys */
    287   1.13       cgd 	"lkmnosys",			/* 211 = lkmnosys */
    288   1.13       cgd 	"lkmnosys",			/* 212 = lkmnosys */
    289   1.13       cgd 	"lkmnosys",			/* 213 = lkmnosys */
    290   1.13       cgd 	"lkmnosys",			/* 214 = lkmnosys */
    291   1.13       cgd 	"lkmnosys",			/* 215 = lkmnosys */
    292   1.13       cgd 	"lkmnosys",			/* 216 = lkmnosys */
    293   1.13       cgd 	"lkmnosys",			/* 217 = lkmnosys */
    294   1.13       cgd 	"lkmnosys",			/* 218 = lkmnosys */
    295   1.13       cgd 	"lkmnosys",			/* 219 = lkmnosys */
    296   1.13       cgd #else	/* !LKM */
    297  1.100  christos 	"#210 (excluded lkmnosys)",		/* 210 = excluded lkmnosys */
    298  1.100  christos 	"#211 (excluded lkmnosys)",		/* 211 = excluded lkmnosys */
    299  1.100  christos 	"#212 (excluded lkmnosys)",		/* 212 = excluded lkmnosys */
    300  1.100  christos 	"#213 (excluded lkmnosys)",		/* 213 = excluded lkmnosys */
    301  1.100  christos 	"#214 (excluded lkmnosys)",		/* 214 = excluded lkmnosys */
    302  1.100  christos 	"#215 (excluded lkmnosys)",		/* 215 = excluded lkmnosys */
    303  1.100  christos 	"#216 (excluded lkmnosys)",		/* 216 = excluded lkmnosys */
    304  1.100  christos 	"#217 (excluded lkmnosys)",		/* 217 = excluded lkmnosys */
    305  1.100  christos 	"#218 (excluded lkmnosys)",		/* 218 = excluded lkmnosys */
    306  1.100  christos 	"#219 (excluded lkmnosys)",		/* 219 = excluded lkmnosys */
    307    1.9    brezak #endif	/* !LKM */
    308  1.100  christos #if defined(SYSVSEM) || !defined(_KERNEL)
    309  1.105   thorpej 	"compat_14___semctl",	/* 220 = compat_14 __semctl */
    310   1.25       cgd 	"semget",			/* 221 = semget */
    311   1.25       cgd 	"semop",			/* 222 = semop */
    312   1.25       cgd 	"semconfig",			/* 223 = semconfig */
    313   1.25       cgd #else
    314  1.105   thorpej 	"#220 (excluded compat_14_semctl)",		/* 220 = excluded compat_14_semctl */
    315  1.100  christos 	"#221 (excluded semget)",		/* 221 = excluded semget */
    316  1.100  christos 	"#222 (excluded semop)",		/* 222 = excluded semop */
    317  1.100  christos 	"#223 (excluded semconfig)",		/* 223 = excluded semconfig */
    318   1.25       cgd #endif
    319  1.100  christos #if defined(SYSVMSG) || !defined(_KERNEL)
    320  1.105   thorpej 	"compat_14_msgctl",	/* 224 = compat_14 msgctl */
    321   1.25       cgd 	"msgget",			/* 225 = msgget */
    322   1.25       cgd 	"msgsnd",			/* 226 = msgsnd */
    323   1.25       cgd 	"msgrcv",			/* 227 = msgrcv */
    324   1.25       cgd #else
    325  1.105   thorpej 	"#224 (excluded compat_14_msgctl)",		/* 224 = excluded compat_14_msgctl */
    326  1.100  christos 	"#225 (excluded msgget)",		/* 225 = excluded msgget */
    327  1.100  christos 	"#226 (excluded msgsnd)",		/* 226 = excluded msgsnd */
    328  1.100  christos 	"#227 (excluded msgrcv)",		/* 227 = excluded msgrcv */
    329   1.25       cgd #endif
    330  1.100  christos #if defined(SYSVSHM) || !defined(_KERNEL)
    331   1.25       cgd 	"shmat",			/* 228 = shmat */
    332  1.105   thorpej 	"compat_14_shmctl",	/* 229 = compat_14 shmctl */
    333   1.25       cgd 	"shmdt",			/* 230 = shmdt */
    334   1.25       cgd 	"shmget",			/* 231 = shmget */
    335   1.25       cgd #else
    336  1.100  christos 	"#228 (excluded shmat)",		/* 228 = excluded shmat */
    337  1.105   thorpej 	"#229 (excluded compat_14_shmctl)",		/* 229 = excluded compat_14_shmctl */
    338  1.100  christos 	"#230 (excluded shmdt)",		/* 230 = excluded shmdt */
    339  1.100  christos 	"#231 (excluded shmget)",		/* 231 = excluded shmget */
    340   1.25       cgd #endif
    341   1.43       jtc 	"clock_gettime",			/* 232 = clock_gettime */
    342   1.43       jtc 	"clock_settime",			/* 233 = clock_settime */
    343   1.43       jtc 	"clock_getres",			/* 234 = clock_getres */
    344  1.131   thorpej 	"timer_create",			/* 235 = timer_create */
    345  1.131   thorpej 	"timer_delete",			/* 236 = timer_delete */
    346  1.131   thorpej 	"timer_settime",			/* 237 = timer_settime */
    347  1.131   thorpej 	"timer_gettime",			/* 238 = timer_gettime */
    348  1.131   thorpej 	"timer_getoverrun",			/* 239 = timer_getoverrun */
    349   1.49       jtc 	"nanosleep",			/* 240 = nanosleep */
    350   1.83    kleink 	"fdatasync",			/* 241 = fdatasync */
    351  1.101   thorpej 	"mlockall",			/* 242 = mlockall */
    352  1.101   thorpej 	"munlockall",			/* 243 = munlockall */
    353  1.138  jdolecek 	"__sigtimedwait",			/* 244 = __sigtimedwait */
    354  1.138  jdolecek 	"#245 (unimplemented sys_sigqueue)",		/* 245 = unimplemented sys_sigqueue */
    355  1.138  jdolecek 	"#246 (unimplemented)",		/* 246 = unimplemented */
    356  1.145  christos #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
    357  1.134  christos 	"_ksem_init",			/* 247 = _ksem_init */
    358  1.134  christos 	"_ksem_open",			/* 248 = _ksem_open */
    359  1.134  christos 	"_ksem_unlink",			/* 249 = _ksem_unlink */
    360  1.134  christos 	"_ksem_close",			/* 250 = _ksem_close */
    361  1.134  christos 	"_ksem_post",			/* 251 = _ksem_post */
    362  1.134  christos 	"_ksem_wait",			/* 252 = _ksem_wait */
    363  1.134  christos 	"_ksem_trywait",			/* 253 = _ksem_trywait */
    364  1.134  christos 	"_ksem_getvalue",			/* 254 = _ksem_getvalue */
    365  1.134  christos 	"_ksem_destroy",			/* 255 = _ksem_destroy */
    366  1.136   thorpej 	"#256 (unimplemented sys__ksem_timedwait)",		/* 256 = unimplemented sys__ksem_timedwait */
    367  1.134  christos #else
    368  1.134  christos 	"#247 (excluded sys__ksem_init)",		/* 247 = excluded sys__ksem_init */
    369  1.134  christos 	"#248 (excluded sys__ksem_open)",		/* 248 = excluded sys__ksem_open */
    370  1.134  christos 	"#249 (excluded sys__ksem_unlink)",		/* 249 = excluded sys__ksem_unlink */
    371  1.134  christos 	"#250 (excluded sys__ksem_close)",		/* 250 = excluded sys__ksem_close */
    372  1.134  christos 	"#251 (excluded sys__ksem_post)",		/* 251 = excluded sys__ksem_post */
    373  1.134  christos 	"#252 (excluded sys__ksem_wait)",		/* 252 = excluded sys__ksem_wait */
    374  1.134  christos 	"#253 (excluded sys__ksem_trywait)",		/* 253 = excluded sys__ksem_trywait */
    375  1.134  christos 	"#254 (excluded sys__ksem_getvalue)",		/* 254 = excluded sys__ksem_getvalue */
    376  1.134  christos 	"#255 (excluded sys__ksem_destroy)",		/* 255 = excluded sys__ksem_destroy */
    377  1.136   thorpej 	"#256 (unimplemented sys__ksem_timedwait)",		/* 256 = unimplemented sys__ksem_timedwait */
    378  1.133  christos #endif
    379  1.137   thorpej 	"#257 (unimplemented sys_mq_open)",		/* 257 = unimplemented sys_mq_open */
    380  1.137   thorpej 	"#258 (unimplemented sys_mq_close)",		/* 258 = unimplemented sys_mq_close */
    381  1.137   thorpej 	"#259 (unimplemented sys_mq_unlink)",		/* 259 = unimplemented sys_mq_unlink */
    382  1.137   thorpej 	"#260 (unimplemented sys_mq_getattr)",		/* 260 = unimplemented sys_mq_getattr */
    383  1.137   thorpej 	"#261 (unimplemented sys_mq_setattr)",		/* 261 = unimplemented sys_mq_setattr */
    384  1.137   thorpej 	"#262 (unimplemented sys_mq_notify)",		/* 262 = unimplemented sys_mq_notify */
    385  1.137   thorpej 	"#263 (unimplemented sys_mq_send)",		/* 263 = unimplemented sys_mq_send */
    386  1.137   thorpej 	"#264 (unimplemented sys_mq_receive)",		/* 264 = unimplemented sys_mq_receive */
    387  1.137   thorpej 	"#265 (unimplemented sys_mq_timedsend)",		/* 265 = unimplemented sys_mq_timedsend */
    388  1.137   thorpej 	"#266 (unimplemented sys_mq_timedreceive)",		/* 266 = unimplemented sys_mq_timedreceive */
    389   1.50    kleink 	"#267 (unimplemented)",		/* 267 = unimplemented */
    390   1.50    kleink 	"#268 (unimplemented)",		/* 268 = unimplemented */
    391   1.50    kleink 	"#269 (unimplemented)",		/* 269 = unimplemented */
    392   1.74    kleink 	"__posix_rename",			/* 270 = __posix_rename */
    393   1.51       mrg 	"swapctl",			/* 271 = swapctl */
    394  1.161  christos 	"compat_30_getdents",	/* 272 = compat_30 getdents */
    395   1.55     veego 	"minherit",			/* 273 = minherit */
    396   1.56     enami 	"lchmod",			/* 274 = lchmod */
    397   1.56     enami 	"lchown",			/* 275 = lchown */
    398   1.56     enami 	"lutimes",			/* 276 = lutimes */
    399   1.64   thorpej 	"__msync13",			/* 277 = __msync13 */
    400  1.161  christos 	"compat_30___stat13",	/* 278 = compat_30 __stat13 */
    401  1.161  christos 	"compat_30___fstat13",	/* 279 = compat_30 __fstat13 */
    402  1.161  christos 	"compat_30___lstat13",	/* 280 = compat_30 __lstat13 */
    403   1.68    kleink 	"__sigaltstack14",			/* 281 = __sigaltstack14 */
    404   1.69   thorpej 	"__vfork14",			/* 282 = __vfork14 */
    405   1.74    kleink 	"__posix_chown",			/* 283 = __posix_chown */
    406   1.74    kleink 	"__posix_fchown",			/* 284 = __posix_fchown */
    407   1.74    kleink 	"__posix_lchown",			/* 285 = __posix_lchown */
    408   1.73   thorpej 	"getsid",			/* 286 = getsid */
    409  1.122   thorpej 	"__clone",			/* 287 = __clone */
    410  1.100  christos #if defined(KTRACE) || !defined(_KERNEL)
    411   1.79  christos 	"fktrace",			/* 288 = fktrace */
    412   1.79  christos #else
    413  1.100  christos 	"#288 (excluded ktrace)",		/* 288 = excluded ktrace */
    414   1.79  christos #endif
    415   1.86   thorpej 	"preadv",			/* 289 = preadv */
    416   1.86   thorpej 	"pwritev",			/* 290 = pwritev */
    417  1.143  christos 	"compat_16___sigaction14",	/* 291 = compat_16 __sigaction14 */
    418   1.89   thorpej 	"__sigpending14",			/* 292 = __sigpending14 */
    419   1.89   thorpej 	"__sigprocmask14",			/* 293 = __sigprocmask14 */
    420   1.89   thorpej 	"__sigsuspend14",			/* 294 = __sigsuspend14 */
    421  1.140  christos 	"compat_16___sigreturn14",	/* 295 = compat_16 __sigreturn14 */
    422   1.97  sommerfe 	"__getcwd",			/* 296 = __getcwd */
    423   1.97  sommerfe 	"fchroot",			/* 297 = fchroot */
    424  1.102  wrstuden 	"fhopen",			/* 298 = fhopen */
    425  1.102  wrstuden 	"fhstat",			/* 299 = fhstat */
    426  1.151  christos 	"compat_20_fhstatfs",	/* 300 = compat_20 fhstatfs */
    427  1.105   thorpej #if defined(SYSVSEM) || !defined(_KERNEL)
    428  1.107  christos 	"____semctl13",			/* 301 = ____semctl13 */
    429  1.105   thorpej #else
    430  1.107  christos 	"#301 (excluded ____semctl13)",		/* 301 = excluded ____semctl13 */
    431  1.105   thorpej #endif
    432  1.105   thorpej #if defined(SYSVMSG) || !defined(_KERNEL)
    433  1.105   thorpej 	"__msgctl13",			/* 302 = __msgctl13 */
    434  1.105   thorpej #else
    435  1.105   thorpej 	"#302 (excluded __msgctl13)",		/* 302 = excluded __msgctl13 */
    436  1.105   thorpej #endif
    437  1.105   thorpej #if defined(SYSVSHM) || !defined(_KERNEL)
    438  1.105   thorpej 	"__shmctl13",			/* 303 = __shmctl13 */
    439  1.105   thorpej #else
    440  1.105   thorpej 	"#303 (excluded __shmctl13)",		/* 303 = excluded __shmctl13 */
    441  1.105   thorpej #endif
    442  1.108       mrg 	"lchflags",			/* 304 = lchflags */
    443  1.109   minoura 	"issetugid",			/* 305 = issetugid */
    444  1.116  jdolecek 	"utrace",			/* 306 = utrace */
    445  1.131   thorpej 	"getcontext",			/* 307 = getcontext */
    446  1.131   thorpej 	"setcontext",			/* 308 = setcontext */
    447  1.131   thorpej 	"_lwp_create",			/* 309 = _lwp_create */
    448  1.131   thorpej 	"_lwp_exit",			/* 310 = _lwp_exit */
    449  1.131   thorpej 	"_lwp_self",			/* 311 = _lwp_self */
    450  1.131   thorpej 	"_lwp_wait",			/* 312 = _lwp_wait */
    451  1.131   thorpej 	"_lwp_suspend",			/* 313 = _lwp_suspend */
    452  1.131   thorpej 	"_lwp_continue",			/* 314 = _lwp_continue */
    453  1.131   thorpej 	"_lwp_wakeup",			/* 315 = _lwp_wakeup */
    454  1.131   thorpej 	"_lwp_getprivate",			/* 316 = _lwp_getprivate */
    455  1.131   thorpej 	"_lwp_setprivate",			/* 317 = _lwp_setprivate */
    456  1.118   thorpej 	"#318 (unimplemented)",		/* 318 = unimplemented */
    457  1.118   thorpej 	"#319 (unimplemented)",		/* 319 = unimplemented */
    458  1.118   thorpej 	"#320 (unimplemented)",		/* 320 = unimplemented */
    459  1.118   thorpej 	"#321 (unimplemented)",		/* 321 = unimplemented */
    460  1.118   thorpej 	"#322 (unimplemented)",		/* 322 = unimplemented */
    461  1.118   thorpej 	"#323 (unimplemented)",		/* 323 = unimplemented */
    462  1.118   thorpej 	"#324 (unimplemented)",		/* 324 = unimplemented */
    463  1.118   thorpej 	"#325 (unimplemented)",		/* 325 = unimplemented */
    464  1.118   thorpej 	"#326 (unimplemented)",		/* 326 = unimplemented */
    465  1.118   thorpej 	"#327 (unimplemented)",		/* 327 = unimplemented */
    466  1.118   thorpej 	"#328 (unimplemented)",		/* 328 = unimplemented */
    467  1.118   thorpej 	"#329 (unimplemented)",		/* 329 = unimplemented */
    468  1.131   thorpej 	"sa_register",			/* 330 = sa_register */
    469  1.131   thorpej 	"sa_stacks",			/* 331 = sa_stacks */
    470  1.131   thorpej 	"sa_enable",			/* 332 = sa_enable */
    471  1.131   thorpej 	"sa_setconcurrency",			/* 333 = sa_setconcurrency */
    472  1.131   thorpej 	"sa_yield",			/* 334 = sa_yield */
    473  1.131   thorpej 	"sa_preempt",			/* 335 = sa_preempt */
    474  1.149        cl 	"#336 (obsolete sys_sa_unblockyield)",		/* 336 = obsolete sys_sa_unblockyield */
    475  1.118   thorpej 	"#337 (unimplemented)",		/* 337 = unimplemented */
    476  1.118   thorpej 	"#338 (unimplemented)",		/* 338 = unimplemented */
    477  1.118   thorpej 	"#339 (unimplemented)",		/* 339 = unimplemented */
    478  1.125   thorpej 	"__sigaction_sigtramp",			/* 340 = __sigaction_sigtramp */
    479  1.126    briggs 	"pmc_get_info",			/* 341 = pmc_get_info */
    480  1.126    briggs 	"pmc_control",			/* 342 = pmc_control */
    481  1.127  gmcgarry 	"rasctl",			/* 343 = rasctl */
    482  1.129  jdolecek 	"kqueue",			/* 344 = kqueue */
    483  1.129  jdolecek 	"kevent",			/* 345 = kevent */
    484  1.137   thorpej 	"#346 (unimplemented sys_sched_setparam)",		/* 346 = unimplemented sys_sched_setparam */
    485  1.137   thorpej 	"#347 (unimplemented sys_sched_getparam)",		/* 347 = unimplemented sys_sched_getparam */
    486  1.137   thorpej 	"#348 (unimplemented sys_sched_setscheduler)",		/* 348 = unimplemented sys_sched_setscheduler */
    487  1.137   thorpej 	"#349 (unimplemented sys_sched_getscheduler)",		/* 349 = unimplemented sys_sched_getscheduler */
    488  1.137   thorpej 	"#350 (unimplemented sys_sched_yield)",		/* 350 = unimplemented sys_sched_yield */
    489  1.137   thorpej 	"#351 (unimplemented sys_sched_get_priority_max)",		/* 351 = unimplemented sys_sched_get_priority_max */
    490  1.137   thorpej 	"#352 (unimplemented sys_sched_get_priority_min)",		/* 352 = unimplemented sys_sched_get_priority_min */
    491  1.137   thorpej 	"#353 (unimplemented sys_sched_rr_get_interval)",		/* 353 = unimplemented sys_sched_rr_get_interval */
    492  1.146   thorpej 	"fsync_range",			/* 354 = fsync_range */
    493  1.148    tsarna 	"uuidgen",			/* 355 = uuidgen */
    494  1.151  christos 	"getvfsstat",			/* 356 = getvfsstat */
    495  1.151  christos 	"statvfs1",			/* 357 = statvfs1 */
    496  1.151  christos 	"fstatvfs1",			/* 358 = fstatvfs1 */
    497  1.151  christos 	"fhstatvfs1",			/* 359 = fhstatvfs1 */
    498  1.155   thorpej 	"extattrctl",			/* 360 = extattrctl */
    499  1.155   thorpej 	"extattr_set_file",			/* 361 = extattr_set_file */
    500  1.155   thorpej 	"extattr_get_file",			/* 362 = extattr_get_file */
    501  1.155   thorpej 	"extattr_delete_file",			/* 363 = extattr_delete_file */
    502  1.155   thorpej 	"extattr_set_fd",			/* 364 = extattr_set_fd */
    503  1.155   thorpej 	"extattr_get_fd",			/* 365 = extattr_get_fd */
    504  1.155   thorpej 	"extattr_delete_fd",			/* 366 = extattr_delete_fd */
    505  1.155   thorpej 	"extattr_set_link",			/* 367 = extattr_set_link */
    506  1.155   thorpej 	"extattr_get_link",			/* 368 = extattr_get_link */
    507  1.155   thorpej 	"extattr_delete_link",			/* 369 = extattr_delete_link */
    508  1.155   thorpej 	"extattr_list_fd",			/* 370 = extattr_list_fd */
    509  1.155   thorpej 	"extattr_list_file",			/* 371 = extattr_list_file */
    510  1.155   thorpej 	"extattr_list_link",			/* 372 = extattr_list_link */
    511  1.157      matt 	"pselect",			/* 373 = pselect */
    512  1.157      matt 	"pollts",			/* 374 = pollts */
    513  1.160   thorpej 	"setxattr",			/* 375 = setxattr */
    514  1.160   thorpej 	"lsetxattr",			/* 376 = lsetxattr */
    515  1.160   thorpej 	"fsetxattr",			/* 377 = fsetxattr */
    516  1.160   thorpej 	"getxattr",			/* 378 = getxattr */
    517  1.160   thorpej 	"lgetxattr",			/* 379 = lgetxattr */
    518  1.160   thorpej 	"fgetxattr",			/* 380 = fgetxattr */
    519  1.160   thorpej 	"listxattr",			/* 381 = listxattr */
    520  1.160   thorpej 	"llistxattr",			/* 382 = llistxattr */
    521  1.160   thorpej 	"flistxattr",			/* 383 = flistxattr */
    522  1.160   thorpej 	"removexattr",			/* 384 = removexattr */
    523  1.160   thorpej 	"lremovexattr",			/* 385 = lremovexattr */
    524  1.160   thorpej 	"fremovexattr",			/* 386 = fremovexattr */
    525  1.161  christos 	"__stat30",			/* 387 = __stat30 */
    526  1.161  christos 	"__fstat30",			/* 388 = __fstat30 */
    527  1.161  christos 	"__lstat30",			/* 389 = __lstat30 */
    528  1.161  christos 	"__getdents30",			/* 390 = __getdents30 */
    529  1.163      yamt 	"posix_fadvise",			/* 391 = posix_fadvise */
    530    1.1       cgd };
    531