Home | History | Annotate | Line # | Download | only in freebsd
freebsd_syscalls.c revision 1.50.2.4
      1  1.50.2.4     skrll /* $NetBSD: freebsd_syscalls.c,v 1.50.2.4 2005/03/04 16:39:35 skrll Exp $ */
      2      1.16   thorpej 
      3       1.1   mycroft /*
      4       1.1   mycroft  * System call names.
      5       1.1   mycroft  *
      6       1.1   mycroft  * DO NOT EDIT-- this file is automatically generated.
      7  1.50.2.4     skrll  * created from	NetBSD: syscalls.master,v 1.47 2005/02/22 16:14:50 heas Exp
      8       1.1   mycroft  */
      9      1.19   thorpej 
     10      1.45     lukem #include <sys/cdefs.h>
     11  1.50.2.4     skrll __KERNEL_RCSID(0, "$NetBSD: freebsd_syscalls.c,v 1.50.2.4 2005/03/04 16:39:35 skrll Exp $");
     12      1.45     lukem 
     13      1.43       mrg #if defined(_KERNEL_OPT)
     14      1.43       mrg #if defined(_KERNEL_OPT)
     15      1.22   thorpej #include "opt_ktrace.h"
     16      1.23   thorpej #include "opt_nfsserver.h"
     17      1.34     bjh21 #include "opt_ntp.h"
     18      1.25      tron #include "opt_sysv.h"
     19      1.26  christos #include "opt_compat_43.h"
     20  1.50.2.1     skrll #include "opt_posix.h"
     21      1.19   thorpej #include "fs_lfs.h"
     22      1.19   thorpej #include "fs_nfs.h"
     23      1.38   mycroft #endif
     24      1.19   thorpej #include <sys/param.h>
     25      1.19   thorpej #include <sys/systm.h>
     26      1.19   thorpej #include <sys/signal.h>
     27      1.19   thorpej #include <sys/mount.h>
     28      1.49   thorpej #include <sys/sa.h>
     29      1.19   thorpej #include <sys/syscallargs.h>
     30      1.19   thorpej #include <compat/freebsd/freebsd_syscallargs.h>
     31      1.19   thorpej #include <machine/freebsd_machdep.h>
     32      1.43       mrg #endif /* _KERNEL_OPT */
     33       1.1   mycroft 
     34      1.38   mycroft const char *const freebsd_syscallnames[] = {
     35       1.1   mycroft 	"syscall",			/* 0 = syscall */
     36       1.1   mycroft 	"exit",			/* 1 = exit */
     37       1.1   mycroft 	"fork",			/* 2 = fork */
     38       1.1   mycroft 	"read",			/* 3 = read */
     39       1.1   mycroft 	"write",			/* 4 = write */
     40       1.1   mycroft 	"open",			/* 5 = open */
     41       1.1   mycroft 	"close",			/* 6 = close */
     42       1.1   mycroft 	"wait4",			/* 7 = wait4 */
     43       1.1   mycroft 	"ocreat",			/* 8 = ocreat */
     44       1.1   mycroft 	"link",			/* 9 = link */
     45       1.1   mycroft 	"unlink",			/* 10 = unlink */
     46       1.1   mycroft 	"#11 (obsolete execv)",		/* 11 = obsolete execv */
     47       1.1   mycroft 	"chdir",			/* 12 = chdir */
     48       1.1   mycroft 	"fchdir",			/* 13 = fchdir */
     49       1.1   mycroft 	"mknod",			/* 14 = mknod */
     50       1.1   mycroft 	"chmod",			/* 15 = chmod */
     51       1.1   mycroft 	"chown",			/* 16 = chown */
     52       1.1   mycroft 	"break",			/* 17 = break */
     53       1.1   mycroft 	"getfsstat",			/* 18 = getfsstat */
     54       1.1   mycroft 	"olseek",			/* 19 = olseek */
     55      1.40   mycroft 	"getpid_with_ppid",			/* 20 = getpid_with_ppid */
     56       1.1   mycroft 	"mount",			/* 21 = mount */
     57       1.1   mycroft 	"unmount",			/* 22 = unmount */
     58       1.1   mycroft 	"setuid",			/* 23 = setuid */
     59      1.40   mycroft 	"getuid_with_euid",			/* 24 = getuid_with_euid */
     60       1.1   mycroft 	"geteuid",			/* 25 = geteuid */
     61       1.1   mycroft 	"ptrace",			/* 26 = ptrace */
     62       1.1   mycroft 	"recvmsg",			/* 27 = recvmsg */
     63       1.1   mycroft 	"sendmsg",			/* 28 = sendmsg */
     64       1.1   mycroft 	"recvfrom",			/* 29 = recvfrom */
     65       1.1   mycroft 	"accept",			/* 30 = accept */
     66       1.1   mycroft 	"getpeername",			/* 31 = getpeername */
     67       1.1   mycroft 	"getsockname",			/* 32 = getsockname */
     68       1.1   mycroft 	"access",			/* 33 = access */
     69       1.1   mycroft 	"chflags",			/* 34 = chflags */
     70       1.1   mycroft 	"fchflags",			/* 35 = fchflags */
     71       1.1   mycroft 	"sync",			/* 36 = sync */
     72       1.1   mycroft 	"kill",			/* 37 = kill */
     73      1.11  christos 	"stat43",			/* 38 = stat43 */
     74       1.1   mycroft 	"getppid",			/* 39 = getppid */
     75      1.11  christos 	"lstat43",			/* 40 = lstat43 */
     76       1.1   mycroft 	"dup",			/* 41 = dup */
     77       1.1   mycroft 	"pipe",			/* 42 = pipe */
     78       1.1   mycroft 	"getegid",			/* 43 = getegid */
     79       1.1   mycroft 	"profil",			/* 44 = profil */
     80       1.1   mycroft #ifdef KTRACE
     81       1.1   mycroft 	"ktrace",			/* 45 = ktrace */
     82       1.1   mycroft #else
     83      1.41  jdolecek 	"#45 (excluded ktrace)",		/* 45 = excluded ktrace */
     84       1.1   mycroft #endif
     85       1.1   mycroft 	"sigaction",			/* 46 = sigaction */
     86      1.40   mycroft 	"getgid_with_egid",			/* 47 = getgid_with_egid */
     87       1.1   mycroft 	"sigprocmask",			/* 48 = sigprocmask */
     88       1.5  christos 	"__getlogin",			/* 49 = __getlogin */
     89      1.49   thorpej 	"__setlogin",			/* 50 = __setlogin */
     90       1.1   mycroft 	"acct",			/* 51 = acct */
     91       1.1   mycroft 	"sigpending",			/* 52 = sigpending */
     92       1.1   mycroft 	"sigaltstack",			/* 53 = sigaltstack */
     93       1.1   mycroft 	"ioctl",			/* 54 = ioctl */
     94      1.27  christos 	"oreboot",			/* 55 = oreboot */
     95       1.1   mycroft 	"revoke",			/* 56 = revoke */
     96       1.1   mycroft 	"symlink",			/* 57 = symlink */
     97       1.1   mycroft 	"readlink",			/* 58 = readlink */
     98       1.1   mycroft 	"execve",			/* 59 = execve */
     99       1.1   mycroft 	"umask",			/* 60 = umask */
    100       1.1   mycroft 	"chroot",			/* 61 = chroot */
    101      1.11  christos 	"fstat43",			/* 62 = fstat43 */
    102       1.1   mycroft 	"ogetkerninfo",			/* 63 = ogetkerninfo */
    103       1.1   mycroft 	"ogetpagesize",			/* 64 = ogetpagesize */
    104       1.1   mycroft 	"msync",			/* 65 = msync */
    105       1.1   mycroft 	"vfork",			/* 66 = vfork */
    106       1.1   mycroft 	"#67 (obsolete vread)",		/* 67 = obsolete vread */
    107       1.1   mycroft 	"#68 (obsolete vwrite)",		/* 68 = obsolete vwrite */
    108       1.1   mycroft 	"sbrk",			/* 69 = sbrk */
    109       1.1   mycroft 	"sstk",			/* 70 = sstk */
    110       1.1   mycroft 	"ommap",			/* 71 = ommap */
    111       1.1   mycroft 	"vadvise",			/* 72 = vadvise */
    112       1.1   mycroft 	"munmap",			/* 73 = munmap */
    113       1.1   mycroft 	"mprotect",			/* 74 = mprotect */
    114       1.1   mycroft 	"madvise",			/* 75 = madvise */
    115       1.1   mycroft 	"#76 (obsolete vhangup)",		/* 76 = obsolete vhangup */
    116       1.1   mycroft 	"#77 (obsolete vlimit)",		/* 77 = obsolete vlimit */
    117       1.1   mycroft 	"mincore",			/* 78 = mincore */
    118       1.1   mycroft 	"getgroups",			/* 79 = getgroups */
    119       1.1   mycroft 	"setgroups",			/* 80 = setgroups */
    120       1.1   mycroft 	"getpgrp",			/* 81 = getpgrp */
    121       1.1   mycroft 	"setpgid",			/* 82 = setpgid */
    122       1.1   mycroft 	"setitimer",			/* 83 = setitimer */
    123       1.1   mycroft 	"owait",			/* 84 = owait */
    124       1.1   mycroft 	"swapon",			/* 85 = swapon */
    125       1.1   mycroft 	"getitimer",			/* 86 = getitimer */
    126       1.1   mycroft 	"ogethostname",			/* 87 = ogethostname */
    127       1.1   mycroft 	"osethostname",			/* 88 = osethostname */
    128       1.1   mycroft 	"ogetdtablesize",			/* 89 = ogetdtablesize */
    129       1.1   mycroft 	"dup2",			/* 90 = dup2 */
    130       1.1   mycroft 	"#91 (unimplemented getdopt)",		/* 91 = unimplemented getdopt */
    131       1.1   mycroft 	"fcntl",			/* 92 = fcntl */
    132       1.1   mycroft 	"select",			/* 93 = select */
    133       1.1   mycroft 	"#94 (unimplemented setdopt)",		/* 94 = unimplemented setdopt */
    134       1.1   mycroft 	"fsync",			/* 95 = fsync */
    135       1.1   mycroft 	"setpriority",			/* 96 = setpriority */
    136       1.1   mycroft 	"socket",			/* 97 = socket */
    137       1.1   mycroft 	"connect",			/* 98 = connect */
    138       1.1   mycroft 	"oaccept",			/* 99 = oaccept */
    139       1.1   mycroft 	"getpriority",			/* 100 = getpriority */
    140       1.1   mycroft 	"osend",			/* 101 = osend */
    141       1.1   mycroft 	"orecv",			/* 102 = orecv */
    142       1.1   mycroft 	"sigreturn",			/* 103 = sigreturn */
    143       1.1   mycroft 	"bind",			/* 104 = bind */
    144       1.1   mycroft 	"setsockopt",			/* 105 = setsockopt */
    145       1.1   mycroft 	"listen",			/* 106 = listen */
    146       1.1   mycroft 	"#107 (obsolete vtimes)",		/* 107 = obsolete vtimes */
    147       1.1   mycroft 	"osigvec",			/* 108 = osigvec */
    148       1.1   mycroft 	"osigblock",			/* 109 = osigblock */
    149       1.1   mycroft 	"osigsetmask",			/* 110 = osigsetmask */
    150       1.1   mycroft 	"sigsuspend",			/* 111 = sigsuspend */
    151       1.1   mycroft 	"osigstack",			/* 112 = osigstack */
    152       1.1   mycroft 	"orecvmsg",			/* 113 = orecvmsg */
    153       1.1   mycroft 	"osendmsg",			/* 114 = osendmsg */
    154       1.1   mycroft #ifdef TRACE
    155       1.1   mycroft 	"vtrace",			/* 115 = vtrace */
    156       1.1   mycroft #else
    157       1.1   mycroft 	"#115 (obsolete vtrace)",		/* 115 = obsolete vtrace */
    158       1.1   mycroft #endif
    159       1.1   mycroft 	"gettimeofday",			/* 116 = gettimeofday */
    160       1.1   mycroft 	"getrusage",			/* 117 = getrusage */
    161       1.1   mycroft 	"getsockopt",			/* 118 = getsockopt */
    162       1.1   mycroft 	"#119 (obsolete resuba)",		/* 119 = obsolete resuba */
    163       1.1   mycroft 	"readv",			/* 120 = readv */
    164       1.1   mycroft 	"writev",			/* 121 = writev */
    165       1.1   mycroft 	"settimeofday",			/* 122 = settimeofday */
    166       1.1   mycroft 	"fchown",			/* 123 = fchown */
    167       1.1   mycroft 	"fchmod",			/* 124 = fchmod */
    168       1.1   mycroft 	"orecvfrom",			/* 125 = orecvfrom */
    169       1.4   mycroft 	"setreuid",			/* 126 = setreuid */
    170       1.4   mycroft 	"setregid",			/* 127 = setregid */
    171       1.1   mycroft 	"rename",			/* 128 = rename */
    172       1.1   mycroft 	"otruncate",			/* 129 = otruncate */
    173       1.2   mycroft 	"oftruncate",			/* 130 = oftruncate */
    174       1.2   mycroft 	"flock",			/* 131 = flock */
    175       1.1   mycroft 	"mkfifo",			/* 132 = mkfifo */
    176       1.1   mycroft 	"sendto",			/* 133 = sendto */
    177       1.1   mycroft 	"shutdown",			/* 134 = shutdown */
    178       1.1   mycroft 	"socketpair",			/* 135 = socketpair */
    179       1.1   mycroft 	"mkdir",			/* 136 = mkdir */
    180       1.1   mycroft 	"rmdir",			/* 137 = rmdir */
    181       1.1   mycroft 	"utimes",			/* 138 = utimes */
    182       1.1   mycroft 	"#139 (obsolete 4.2 sigreturn)",		/* 139 = obsolete 4.2 sigreturn */
    183       1.1   mycroft 	"adjtime",			/* 140 = adjtime */
    184       1.1   mycroft 	"ogetpeername",			/* 141 = ogetpeername */
    185       1.1   mycroft 	"ogethostid",			/* 142 = ogethostid */
    186       1.1   mycroft 	"osethostid",			/* 143 = osethostid */
    187       1.1   mycroft 	"ogetrlimit",			/* 144 = ogetrlimit */
    188       1.1   mycroft 	"osetrlimit",			/* 145 = osetrlimit */
    189       1.1   mycroft 	"okillpg",			/* 146 = okillpg */
    190       1.1   mycroft 	"setsid",			/* 147 = setsid */
    191       1.1   mycroft 	"quotactl",			/* 148 = quotactl */
    192       1.1   mycroft 	"oquota",			/* 149 = oquota */
    193       1.1   mycroft 	"ogetsockname",			/* 150 = ogetsockname */
    194      1.32        tv 	"#151 (unimplemented sem_lock)",		/* 151 = unimplemented sem_lock */
    195      1.32        tv 	"#152 (unimplemented sem_wakeup)",		/* 152 = unimplemented sem_wakeup */
    196      1.32        tv 	"#153 (unimplemented asyncdaemon)",		/* 153 = unimplemented asyncdaemon */
    197       1.1   mycroft 	"#154 (unimplemented)",		/* 154 = unimplemented */
    198       1.6   thorpej #if defined(NFS) || defined(NFSSERVER)
    199       1.1   mycroft 	"nfssvc",			/* 155 = nfssvc */
    200       1.1   mycroft #else
    201      1.32        tv 	"#155 (unimplemented nfssvc)",		/* 155 = unimplemented nfssvc */
    202       1.1   mycroft #endif
    203       1.1   mycroft 	"ogetdirentries",			/* 156 = ogetdirentries */
    204       1.1   mycroft 	"statfs",			/* 157 = statfs */
    205       1.1   mycroft 	"fstatfs",			/* 158 = fstatfs */
    206       1.1   mycroft 	"#159 (unimplemented)",		/* 159 = unimplemented */
    207       1.1   mycroft 	"#160 (unimplemented)",		/* 160 = unimplemented */
    208       1.6   thorpej #ifdef NFS
    209       1.1   mycroft 	"getfh",			/* 161 = getfh */
    210       1.1   mycroft #else
    211       1.1   mycroft 	"#161 (unimplemented getfh)",		/* 161 = unimplemented getfh */
    212       1.1   mycroft #endif
    213       1.1   mycroft 	"getdomainname",			/* 162 = getdomainname */
    214       1.1   mycroft 	"setdomainname",			/* 163 = setdomainname */
    215       1.1   mycroft 	"uname",			/* 164 = uname */
    216       1.1   mycroft 	"sysarch",			/* 165 = sysarch */
    217       1.1   mycroft 	"rtprio",			/* 166 = rtprio */
    218       1.1   mycroft 	"#167 (unimplemented)",		/* 167 = unimplemented */
    219       1.1   mycroft 	"#168 (unimplemented)",		/* 168 = unimplemented */
    220      1.46       eeh #if defined(SYSVSEM) && !defined(_LP64)
    221       1.1   mycroft 	"semsys",			/* 169 = semsys */
    222       1.1   mycroft #else
    223       1.1   mycroft 	"#169 (unimplemented 1.0 semsys)",		/* 169 = unimplemented 1.0 semsys */
    224       1.1   mycroft #endif
    225      1.46       eeh #if defined(SYSVMSG) && !defined(_LP64)
    226       1.1   mycroft 	"msgsys",			/* 170 = msgsys */
    227       1.1   mycroft #else
    228       1.1   mycroft 	"#170 (unimplemented 1.0 msgsys)",		/* 170 = unimplemented 1.0 msgsys */
    229       1.1   mycroft #endif
    230      1.46       eeh #if defined(SYSVSHM) && !defined(_LP64)
    231       1.1   mycroft 	"shmsys",			/* 171 = shmsys */
    232       1.1   mycroft #else
    233       1.1   mycroft 	"#171 (unimplemented 1.0 shmsys)",		/* 171 = unimplemented 1.0 shmsys */
    234       1.1   mycroft #endif
    235       1.1   mycroft 	"#172 (unimplemented)",		/* 172 = unimplemented */
    236      1.32        tv 	"pread",			/* 173 = pread */
    237      1.32        tv 	"pwrite",			/* 174 = pwrite */
    238       1.1   mycroft 	"#175 (unimplemented)",		/* 175 = unimplemented */
    239      1.35    itojun #ifdef NTP
    240       1.1   mycroft 	"freebsd_ntp_adjtime",			/* 176 = freebsd_ntp_adjtime */
    241      1.34     bjh21 #else
    242      1.34     bjh21 	"#176 (excluded ntp_adjtime)",		/* 176 = excluded ntp_adjtime */
    243      1.34     bjh21 #endif
    244      1.32        tv 	"#177 (unimplemented sfork)",		/* 177 = unimplemented sfork */
    245      1.32        tv 	"#178 (unimplemented getdescriptor)",		/* 178 = unimplemented getdescriptor */
    246      1.32        tv 	"#179 (unimplemented setdescriptor)",		/* 179 = unimplemented setdescriptor */
    247       1.1   mycroft 	"#180 (unimplemented)",		/* 180 = unimplemented */
    248       1.1   mycroft 	"setgid",			/* 181 = setgid */
    249       1.1   mycroft 	"setegid",			/* 182 = setegid */
    250       1.1   mycroft 	"seteuid",			/* 183 = seteuid */
    251       1.1   mycroft #ifdef LFS
    252       1.1   mycroft 	"lfs_bmapv",			/* 184 = lfs_bmapv */
    253       1.1   mycroft 	"lfs_markv",			/* 185 = lfs_markv */
    254       1.1   mycroft 	"lfs_segclean",			/* 186 = lfs_segclean */
    255       1.1   mycroft 	"lfs_segwait",			/* 187 = lfs_segwait */
    256       1.1   mycroft #else
    257       1.1   mycroft 	"#184 (unimplemented)",		/* 184 = unimplemented */
    258       1.1   mycroft 	"#185 (unimplemented)",		/* 185 = unimplemented */
    259       1.1   mycroft 	"#186 (unimplemented)",		/* 186 = unimplemented */
    260       1.1   mycroft 	"#187 (unimplemented)",		/* 187 = unimplemented */
    261       1.1   mycroft #endif
    262       1.1   mycroft 	"stat",			/* 188 = stat */
    263       1.1   mycroft 	"fstat",			/* 189 = fstat */
    264       1.1   mycroft 	"lstat",			/* 190 = lstat */
    265       1.1   mycroft 	"pathconf",			/* 191 = pathconf */
    266       1.1   mycroft 	"fpathconf",			/* 192 = fpathconf */
    267       1.1   mycroft 	"#193 (unimplemented)",		/* 193 = unimplemented */
    268       1.1   mycroft 	"getrlimit",			/* 194 = getrlimit */
    269       1.1   mycroft 	"setrlimit",			/* 195 = setrlimit */
    270       1.1   mycroft 	"getdirentries",			/* 196 = getdirentries */
    271       1.1   mycroft 	"mmap",			/* 197 = mmap */
    272       1.1   mycroft 	"__syscall",			/* 198 = __syscall */
    273       1.1   mycroft 	"lseek",			/* 199 = lseek */
    274       1.1   mycroft 	"truncate",			/* 200 = truncate */
    275       1.1   mycroft 	"ftruncate",			/* 201 = ftruncate */
    276  1.50.2.4     skrll 	"sysctl",			/* 202 = sysctl */
    277       1.1   mycroft 	"mlock",			/* 203 = mlock */
    278       1.1   mycroft 	"munlock",			/* 204 = munlock */
    279       1.1   mycroft #ifdef FREEBSD_BASED_ON_44LITE_R2
    280       1.1   mycroft 	"undelete",			/* 205 = undelete */
    281       1.1   mycroft #else
    282      1.32        tv 	"#205 (unimplemented undelete)",		/* 205 = unimplemented undelete */
    283       1.1   mycroft #endif
    284      1.27  christos 	"futimes",			/* 206 = futimes */
    285      1.27  christos 	"getpgid",			/* 207 = getpgid */
    286      1.27  christos #if 0
    287      1.27  christos 	"reboot",			/* 208 = reboot */
    288      1.27  christos #else
    289      1.27  christos 	"#208 (unimplemented newreboot)",		/* 208 = unimplemented newreboot */
    290      1.27  christos #endif
    291      1.27  christos 	"poll",			/* 209 = poll */
    292       1.1   mycroft 	"#210 (unimplemented)",		/* 210 = unimplemented */
    293       1.1   mycroft 	"#211 (unimplemented)",		/* 211 = unimplemented */
    294       1.1   mycroft 	"#212 (unimplemented)",		/* 212 = unimplemented */
    295       1.1   mycroft 	"#213 (unimplemented)",		/* 213 = unimplemented */
    296       1.1   mycroft 	"#214 (unimplemented)",		/* 214 = unimplemented */
    297       1.1   mycroft 	"#215 (unimplemented)",		/* 215 = unimplemented */
    298       1.1   mycroft 	"#216 (unimplemented)",		/* 216 = unimplemented */
    299       1.1   mycroft 	"#217 (unimplemented)",		/* 217 = unimplemented */
    300       1.1   mycroft 	"#218 (unimplemented)",		/* 218 = unimplemented */
    301       1.1   mycroft 	"#219 (unimplemented)",		/* 219 = unimplemented */
    302      1.27  christos #ifdef SYSVSEM
    303      1.27  christos 	"__semctl",			/* 220 = __semctl */
    304      1.27  christos 	"semget",			/* 221 = semget */
    305      1.27  christos 	"semop",			/* 222 = semop */
    306      1.27  christos 	"semconfig",			/* 223 = semconfig */
    307      1.27  christos #else
    308      1.27  christos 	"#220 (unimplemented semctl)",		/* 220 = unimplemented semctl */
    309      1.27  christos 	"#221 (unimplemented semget)",		/* 221 = unimplemented semget */
    310      1.27  christos 	"#222 (unimplemented semop)",		/* 222 = unimplemented semop */
    311      1.27  christos 	"#223 (unimplemented semconfig)",		/* 223 = unimplemented semconfig */
    312      1.27  christos #endif
    313      1.27  christos #ifdef SYSVMSG
    314      1.27  christos 	"msgctl",			/* 224 = msgctl */
    315      1.27  christos 	"msgget",			/* 225 = msgget */
    316      1.27  christos 	"msgsnd",			/* 226 = msgsnd */
    317      1.27  christos 	"msgrcv",			/* 227 = msgrcv */
    318      1.27  christos #else
    319      1.27  christos 	"#224 (unimplemented msgctl)",		/* 224 = unimplemented msgctl */
    320      1.27  christos 	"#225 (unimplemented msgget)",		/* 225 = unimplemented msgget */
    321      1.27  christos 	"#226 (unimplemented msgsnd)",		/* 226 = unimplemented msgsnd */
    322      1.27  christos 	"#227 (unimplemented msgrcv)",		/* 227 = unimplemented msgrcv */
    323      1.27  christos #endif
    324      1.27  christos #ifdef SYSVSHM
    325      1.27  christos 	"shmat",			/* 228 = shmat */
    326      1.27  christos 	"shmctl",			/* 229 = shmctl */
    327      1.27  christos 	"shmdt",			/* 230 = shmdt */
    328      1.27  christos 	"shmget",			/* 231 = shmget */
    329      1.27  christos #else
    330      1.27  christos 	"#228 (unimplemented shmat)",		/* 228 = unimplemented shmat */
    331      1.27  christos 	"#229 (unimplemented shmctl)",		/* 229 = unimplemented shmctl */
    332      1.27  christos 	"#230 (unimplemented shmdt)",		/* 230 = unimplemented shmdt */
    333      1.27  christos 	"#231 (unimplemented shmget)",		/* 231 = unimplemented shmget */
    334      1.27  christos #endif
    335      1.27  christos 	"clock_gettime",			/* 232 = clock_gettime */
    336      1.27  christos 	"clock_settime",			/* 233 = clock_settime */
    337      1.27  christos 	"clock_getres",			/* 234 = clock_getres */
    338      1.27  christos 	"#235 (unimplemented timer_create)",		/* 235 = unimplemented timer_create */
    339      1.27  christos 	"#236 (unimplemented timer_delete)",		/* 236 = unimplemented timer_delete */
    340      1.27  christos 	"#237 (unimplemented timer_settime)",		/* 237 = unimplemented timer_settime */
    341      1.27  christos 	"#238 (unimplemented timer_gettime)",		/* 238 = unimplemented timer_gettime */
    342      1.27  christos 	"#239 (unimplemented timer_getoverrun)",		/* 239 = unimplemented timer_getoverrun */
    343      1.27  christos 	"nanosleep",			/* 240 = nanosleep */
    344       1.9     enami 	"#241 (unimplemented)",		/* 241 = unimplemented */
    345       1.9     enami 	"#242 (unimplemented)",		/* 242 = unimplemented */
    346       1.9     enami 	"#243 (unimplemented)",		/* 243 = unimplemented */
    347       1.9     enami 	"#244 (unimplemented)",		/* 244 = unimplemented */
    348       1.9     enami 	"#245 (unimplemented)",		/* 245 = unimplemented */
    349       1.9     enami 	"#246 (unimplemented)",		/* 246 = unimplemented */
    350       1.9     enami 	"#247 (unimplemented)",		/* 247 = unimplemented */
    351       1.9     enami 	"#248 (unimplemented)",		/* 248 = unimplemented */
    352       1.9     enami 	"#249 (unimplemented)",		/* 249 = unimplemented */
    353      1.44  jdolecek 	"minherit",			/* 250 = minherit */
    354      1.47     pooka 	"rfork",			/* 251 = rfork */
    355      1.27  christos 	"#252 (unimplemented openbsd_poll)",		/* 252 = unimplemented openbsd_poll */
    356      1.21  christos 	"issetugid",			/* 253 = issetugid */
    357       1.9     enami 	"lchown",			/* 254 = lchown */
    358      1.27  christos 	"#255 (unimplemented)",		/* 255 = unimplemented */
    359      1.27  christos 	"#256 (unimplemented)",		/* 256 = unimplemented */
    360      1.27  christos 	"#257 (unimplemented)",		/* 257 = unimplemented */
    361      1.27  christos 	"#258 (unimplemented)",		/* 258 = unimplemented */
    362      1.27  christos 	"#259 (unimplemented)",		/* 259 = unimplemented */
    363      1.27  christos 	"#260 (unimplemented)",		/* 260 = unimplemented */
    364      1.27  christos 	"#261 (unimplemented)",		/* 261 = unimplemented */
    365      1.27  christos 	"#262 (unimplemented)",		/* 262 = unimplemented */
    366      1.27  christos 	"#263 (unimplemented)",		/* 263 = unimplemented */
    367      1.27  christos 	"#264 (unimplemented)",		/* 264 = unimplemented */
    368      1.27  christos 	"#265 (unimplemented)",		/* 265 = unimplemented */
    369      1.27  christos 	"#266 (unimplemented)",		/* 266 = unimplemented */
    370      1.27  christos 	"#267 (unimplemented)",		/* 267 = unimplemented */
    371      1.27  christos 	"#268 (unimplemented)",		/* 268 = unimplemented */
    372      1.27  christos 	"#269 (unimplemented)",		/* 269 = unimplemented */
    373      1.27  christos 	"#270 (unimplemented)",		/* 270 = unimplemented */
    374      1.27  christos 	"#271 (unimplemented)",		/* 271 = unimplemented */
    375      1.27  christos 	"getdents",			/* 272 = getdents */
    376      1.27  christos 	"#273 (unimplemented)",		/* 273 = unimplemented */
    377      1.27  christos 	"lchmod",			/* 274 = lchmod */
    378      1.27  christos 	"netbsd_lchown",			/* 275 = netbsd_lchown */
    379      1.27  christos 	"lutimes",			/* 276 = lutimes */
    380      1.27  christos 	"__msync13",			/* 277 = __msync13 */
    381      1.27  christos 	"__stat13",			/* 278 = __stat13 */
    382      1.27  christos 	"__fstat13",			/* 279 = __fstat13 */
    383      1.27  christos 	"__lstat13",			/* 280 = __lstat13 */
    384      1.27  christos 	"#281 (unimplemented)",		/* 281 = unimplemented */
    385      1.27  christos 	"#282 (unimplemented)",		/* 282 = unimplemented */
    386      1.27  christos 	"#283 (unimplemented)",		/* 283 = unimplemented */
    387      1.27  christos 	"#284 (unimplemented)",		/* 284 = unimplemented */
    388      1.27  christos 	"#285 (unimplemented)",		/* 285 = unimplemented */
    389      1.27  christos 	"#286 (unimplemented)",		/* 286 = unimplemented */
    390      1.27  christos 	"#287 (unimplemented)",		/* 287 = unimplemented */
    391      1.27  christos 	"#288 (unimplemented)",		/* 288 = unimplemented */
    392      1.27  christos 	"#289 (unimplemented)",		/* 289 = unimplemented */
    393      1.27  christos 	"#290 (unimplemented)",		/* 290 = unimplemented */
    394      1.27  christos 	"#291 (unimplemented)",		/* 291 = unimplemented */
    395      1.27  christos 	"#292 (unimplemented)",		/* 292 = unimplemented */
    396      1.27  christos 	"#293 (unimplemented)",		/* 293 = unimplemented */
    397      1.27  christos 	"#294 (unimplemented)",		/* 294 = unimplemented */
    398      1.27  christos 	"#295 (unimplemented)",		/* 295 = unimplemented */
    399      1.27  christos 	"#296 (unimplemented)",		/* 296 = unimplemented */
    400      1.44  jdolecek 	"fhstatfs",			/* 297 = fhstatfs */
    401      1.44  jdolecek 	"fhopen",			/* 298 = fhopen */
    402      1.44  jdolecek 	"fhstat",			/* 299 = fhstat */
    403      1.27  christos 	"#300 (unimplemented modnext)",		/* 300 = unimplemented modnext */
    404      1.27  christos 	"#301 (unimplemented modstat)",		/* 301 = unimplemented modstat */
    405      1.27  christos 	"#302 (unimplemented modfnext)",		/* 302 = unimplemented modfnext */
    406      1.27  christos 	"#303 (unimplemented modfind)",		/* 303 = unimplemented modfind */
    407      1.27  christos 	"#304 (unimplemented kldload)",		/* 304 = unimplemented kldload */
    408      1.27  christos 	"#305 (unimplemented kldunload)",		/* 305 = unimplemented kldunload */
    409      1.27  christos 	"#306 (unimplemented kldfind)",		/* 306 = unimplemented kldfind */
    410      1.27  christos 	"#307 (unimplemented kldnext)",		/* 307 = unimplemented kldnext */
    411      1.27  christos 	"#308 (unimplemented kldstat)",		/* 308 = unimplemented kldstat */
    412      1.27  christos 	"#309 (unimplemented kldfirstmod)",		/* 309 = unimplemented kldfirstmod */
    413      1.32        tv 	"getsid",			/* 310 = getsid */
    414      1.27  christos 	"#311 (unimplemented setresuid)",		/* 311 = unimplemented setresuid */
    415      1.27  christos 	"#312 (unimplemented setresgid)",		/* 312 = unimplemented setresgid */
    416      1.27  christos 	"#313 (unimplemented signanosleep)",		/* 313 = unimplemented signanosleep */
    417      1.27  christos 	"#314 (unimplemented aio_return)",		/* 314 = unimplemented aio_return */
    418      1.27  christos 	"#315 (unimplemented aio_suspend)",		/* 315 = unimplemented aio_suspend */
    419      1.27  christos 	"#316 (unimplemented aio_cancel)",		/* 316 = unimplemented aio_cancel */
    420      1.27  christos 	"#317 (unimplemented aio_error)",		/* 317 = unimplemented aio_error */
    421      1.27  christos 	"#318 (unimplemented aio_read)",		/* 318 = unimplemented aio_read */
    422      1.27  christos 	"#319 (unimplemented aio_write)",		/* 319 = unimplemented aio_write */
    423      1.27  christos 	"#320 (unimplemented lio_listio)",		/* 320 = unimplemented lio_listio */
    424      1.48  gmcgarry 	"yield",			/* 321 = yield */
    425      1.27  christos 	"#322 (unimplemented thr_sleep)",		/* 322 = unimplemented thr_sleep */
    426      1.27  christos 	"#323 (unimplemented thr_wakeup)",		/* 323 = unimplemented thr_wakeup */
    427      1.32        tv 	"mlockall",			/* 324 = mlockall */
    428      1.32        tv 	"munlockall",			/* 325 = munlockall */
    429      1.32        tv 	"__getcwd",			/* 326 = __getcwd */
    430      1.48  gmcgarry 	"sched_setparam",			/* 327 = sched_setparam */
    431      1.48  gmcgarry 	"sched_getparam",			/* 328 = sched_getparam */
    432      1.48  gmcgarry 	"sched_setscheduler",			/* 329 = sched_setscheduler */
    433      1.48  gmcgarry 	"sched_getscheduler",			/* 330 = sched_getscheduler */
    434      1.48  gmcgarry 	"sched_yield",			/* 331 = sched_yield */
    435      1.48  gmcgarry 	"sched_get_priority_max",			/* 332 = sched_get_priority_max */
    436      1.48  gmcgarry 	"sched_get_priority_min",			/* 333 = sched_get_priority_min */
    437      1.27  christos 	"#334 (unimplemented sched_rr_get_interval)",		/* 334 = unimplemented sched_rr_get_interval */
    438      1.41  jdolecek 	"utrace",			/* 335 = utrace */
    439      1.27  christos 	"#336 (unimplemented sendfile)",		/* 336 = unimplemented sendfile */
    440      1.27  christos 	"#337 (unimplemented kldsym)",		/* 337 = unimplemented kldsym */
    441      1.32        tv 	"#338 (unimplemented jail)",		/* 338 = unimplemented jail */
    442      1.32        tv 	"#339 (unimplemented pioctl)",		/* 339 = unimplemented pioctl */
    443      1.33      onoe 	"__sigprocmask14",			/* 340 = __sigprocmask14 */
    444      1.33      onoe 	"__sigsuspend14",			/* 341 = __sigsuspend14 */
    445      1.33      onoe 	"sigaction4",			/* 342 = sigaction4 */
    446      1.33      onoe 	"__sigpending14",			/* 343 = __sigpending14 */
    447      1.32        tv 	"#344 (unimplemented 4.0 sigreturn)",		/* 344 = unimplemented 4.0 sigreturn */
    448      1.32        tv 	"#345 (unimplemented sigtimedwait)",		/* 345 = unimplemented sigtimedwait */
    449      1.32        tv 	"#346 (unimplemented sigwaitinfo)",		/* 346 = unimplemented sigwaitinfo */
    450      1.32        tv 	"#347 (unimplemented __acl_get_file)",		/* 347 = unimplemented __acl_get_file */
    451      1.32        tv 	"#348 (unimplemented __acl_set_file)",		/* 348 = unimplemented __acl_set_file */
    452      1.32        tv 	"#349 (unimplemented __acl_get_fd)",		/* 349 = unimplemented __acl_get_fd */
    453      1.32        tv 	"#350 (unimplemented __acl_set_fd)",		/* 350 = unimplemented __acl_set_fd */
    454      1.32        tv 	"#351 (unimplemented __acl_delete_file)",		/* 351 = unimplemented __acl_delete_file */
    455      1.32        tv 	"#352 (unimplemented __acl_delete_fd)",		/* 352 = unimplemented __acl_delete_fd */
    456      1.32        tv 	"#353 (unimplemented __acl_aclcheck_file)",		/* 353 = unimplemented __acl_aclcheck_file */
    457      1.32        tv 	"#354 (unimplemented __acl_aclcheck_fd)",		/* 354 = unimplemented __acl_aclcheck_fd */
    458      1.32        tv 	"#355 (unimplemented extattrctl)",		/* 355 = unimplemented extattrctl */
    459      1.32        tv 	"#356 (unimplemented extattr_set_file)",		/* 356 = unimplemented extattr_set_file */
    460      1.32        tv 	"#357 (unimplemented extattr_get_file)",		/* 357 = unimplemented extattr_get_file */
    461      1.32        tv 	"#358 (unimplemented extattr_delete_file)",		/* 358 = unimplemented extattr_delete_file */
    462      1.32        tv 	"#359 (unimplemented aio_waitcomplete)",		/* 359 = unimplemented aio_waitcomplete */
    463      1.32        tv 	"#360 (unimplemented getresuid)",		/* 360 = unimplemented getresuid */
    464      1.32        tv 	"#361 (unimplemented getresgid)",		/* 361 = unimplemented getresgid */
    465      1.32        tv 	"#362 (unimplemented kqueue)",		/* 362 = unimplemented kqueue */
    466      1.32        tv 	"#363 (unimplemented kevent)",		/* 363 = unimplemented kevent */
    467  1.50.2.1     skrll 	"#364 (unimplemented __cap_get_proc)",		/* 364 = unimplemented __cap_get_proc */
    468  1.50.2.1     skrll 	"#365 (unimplemented __cap_set_proc)",		/* 365 = unimplemented __cap_set_proc */
    469  1.50.2.1     skrll 	"#366 (unimplemented __cap_get_fd)",		/* 366 = unimplemented __cap_get_fd */
    470  1.50.2.1     skrll 	"#367 (unimplemented __cap_get_file)",		/* 367 = unimplemented __cap_get_file */
    471  1.50.2.1     skrll 	"#368 (unimplemented __cap_set_fd)",		/* 368 = unimplemented __cap_set_fd */
    472  1.50.2.1     skrll 	"#369 (unimplemented __cap_set_file)",		/* 369 = unimplemented __cap_set_file */
    473  1.50.2.1     skrll 	"#370 (unimplemented lkmressym)",		/* 370 = unimplemented lkmressym */
    474  1.50.2.1     skrll 	"#371 (unimplemented extattr_set_fd)",		/* 371 = unimplemented extattr_set_fd */
    475  1.50.2.1     skrll 	"#372 (unimplemented extattr_get_fd)",		/* 372 = unimplemented extattr_get_fd */
    476  1.50.2.1     skrll 	"#373 (unimplemented extattr_delete_fd)",		/* 373 = unimplemented extattr_delete_fd */
    477  1.50.2.1     skrll 	"#374 (unimplemented __setugid)",		/* 374 = unimplemented __setugid */
    478  1.50.2.1     skrll 	"#375 (unimplemented nfsclnt)",		/* 375 = unimplemented nfsclnt */
    479  1.50.2.1     skrll 	"#376 (unimplemented eaccess)",		/* 376 = unimplemented eaccess */
    480  1.50.2.1     skrll 	"#377 (unimplemented afs_syscall)",		/* 377 = unimplemented afs_syscall */
    481  1.50.2.1     skrll 	"#378 (unimplemented nmount)",		/* 378 = unimplemented nmount */
    482  1.50.2.1     skrll 	"#379 (unimplemented kse_exit)",		/* 379 = unimplemented kse_exit */
    483  1.50.2.1     skrll 	"#380 (unimplemented kse_wakeup)",		/* 380 = unimplemented kse_wakeup */
    484  1.50.2.1     skrll 	"#381 (unimplemented kse_create)",		/* 381 = unimplemented kse_create */
    485  1.50.2.1     skrll 	"#382 (unimplemented kse_thr_interrupt)",		/* 382 = unimplemented kse_thr_interrupt */
    486  1.50.2.1     skrll 	"#383 (unimplemented kse_release)",		/* 383 = unimplemented kse_release */
    487  1.50.2.1     skrll 	"#384 (unimplemented __mac_get_proc)",		/* 384 = unimplemented __mac_get_proc */
    488  1.50.2.1     skrll 	"#385 (unimplemented __mac_set_proc)",		/* 385 = unimplemented __mac_set_proc */
    489  1.50.2.1     skrll 	"#386 (unimplemented __mac_get_fd)",		/* 386 = unimplemented __mac_get_fd */
    490  1.50.2.1     skrll 	"#387 (unimplemented __mac_get_file)",		/* 387 = unimplemented __mac_get_file */
    491  1.50.2.1     skrll 	"#388 (unimplemented __mac_set_fd)",		/* 388 = unimplemented __mac_set_fd */
    492  1.50.2.1     skrll 	"#389 (unimplemented __mac_set_file)",		/* 389 = unimplemented __mac_set_file */
    493  1.50.2.1     skrll 	"#390 (unimplemented kenv)",		/* 390 = unimplemented kenv */
    494  1.50.2.1     skrll 	"lchflags",			/* 391 = lchflags */
    495  1.50.2.1     skrll 	"uuidgen",			/* 392 = uuidgen */
    496  1.50.2.1     skrll 	"#393 (unimplemented sendfile)",		/* 393 = unimplemented sendfile */
    497  1.50.2.1     skrll 	"#394 (unimplemented mac_syscall)",		/* 394 = unimplemented mac_syscall */
    498  1.50.2.1     skrll 	"#395 (unimplemented getfsstat)",		/* 395 = unimplemented getfsstat */
    499  1.50.2.1     skrll 	"#396 (unimplemented statfs)",		/* 396 = unimplemented statfs */
    500  1.50.2.1     skrll 	"#397 (unimplemented fsstatfs)",		/* 397 = unimplemented fsstatfs */
    501  1.50.2.1     skrll 	"#398 (unimplemented fhstatfs)",		/* 398 = unimplemented fhstatfs */
    502  1.50.2.1     skrll 	"#399 (unimplemented nosys)",		/* 399 = unimplemented nosys */
    503  1.50.2.1     skrll #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
    504  1.50.2.1     skrll 	"_ksem_close",			/* 400 = _ksem_close */
    505  1.50.2.1     skrll 	"_ksem_post",			/* 401 = _ksem_post */
    506  1.50.2.1     skrll 	"_ksem_wait",			/* 402 = _ksem_wait */
    507  1.50.2.1     skrll 	"_ksem_trywait",			/* 403 = _ksem_trywait */
    508  1.50.2.1     skrll 	"#404 (unimplemented ksem_init)",		/* 404 = unimplemented ksem_init */
    509  1.50.2.1     skrll 	"#405 (unimplemented ksem_open)",		/* 405 = unimplemented ksem_open */
    510  1.50.2.1     skrll 	"_ksem_unlink",			/* 406 = _ksem_unlink */
    511  1.50.2.1     skrll 	"_ksem_getvalue",			/* 407 = _ksem_getvalue */
    512  1.50.2.1     skrll 	"_ksem_destroy",			/* 408 = _ksem_destroy */
    513  1.50.2.1     skrll #else
    514  1.50.2.1     skrll 	"#400 (excluded ksem_close)",		/* 400 = excluded ksem_close */
    515  1.50.2.1     skrll 	"#401 (excluded ksem_post)",		/* 401 = excluded ksem_post */
    516  1.50.2.1     skrll 	"#402 (excluded ksem_wait)",		/* 402 = excluded ksem_wait */
    517  1.50.2.1     skrll 	"#403 (excluded ksem_trywait)",		/* 403 = excluded ksem_trywait */
    518  1.50.2.1     skrll 	"#404 (excluded ksem_init)",		/* 404 = excluded ksem_init */
    519  1.50.2.1     skrll 	"#405 (excluded ksem_open)",		/* 405 = excluded ksem_open */
    520  1.50.2.1     skrll 	"#406 (excluded ksem_unlink)",		/* 406 = excluded ksem_unlink */
    521  1.50.2.1     skrll 	"#407 (excluded ksem_getvalue)",		/* 407 = excluded ksem_getvalue */
    522  1.50.2.1     skrll 	"#408 (excluded ksem_destroy)",		/* 408 = excluded ksem_destroy */
    523  1.50.2.1     skrll #endif
    524  1.50.2.1     skrll 	"#409 (unimplemented __mac_get_pid)",		/* 409 = unimplemented __mac_get_pid */
    525  1.50.2.1     skrll 	"#410 (unimplemented __mac_get_link)",		/* 410 = unimplemented __mac_get_link */
    526  1.50.2.1     skrll 	"#411 (unimplemented __mac_set_link)",		/* 411 = unimplemented __mac_set_link */
    527  1.50.2.1     skrll 	"#412 (unimplemented extattr_set_link)",		/* 412 = unimplemented extattr_set_link */
    528  1.50.2.1     skrll 	"#413 (unimplemented extattr_get_link)",		/* 413 = unimplemented extattr_get_link */
    529  1.50.2.1     skrll 	"#414 (unimplemented extattr_delete_link)",		/* 414 = unimplemented extattr_delete_link */
    530  1.50.2.1     skrll 	"#415 (unimplemented __mac_execve)",		/* 415 = unimplemented __mac_execve */
    531  1.50.2.1     skrll 	"#416 (unimplemented sigaction)",		/* 416 = unimplemented sigaction */
    532  1.50.2.1     skrll 	"#417 (unimplemented sigreturn)",		/* 417 = unimplemented sigreturn */
    533  1.50.2.1     skrll 	"#418 (unimplemented __xstat)",		/* 418 = unimplemented __xstat */
    534  1.50.2.1     skrll 	"#419 (unimplemented __xfstat)",		/* 419 = unimplemented __xfstat */
    535  1.50.2.1     skrll 	"#420 (unimplemented __xlstat)",		/* 420 = unimplemented __xlstat */
    536  1.50.2.1     skrll 	"#421 (unimplemented getcontext)",		/* 421 = unimplemented getcontext */
    537  1.50.2.1     skrll 	"#422 (unimplemented setcontext)",		/* 422 = unimplemented setcontext */
    538  1.50.2.1     skrll 	"#423 (unimplemented swapcontext)",		/* 423 = unimplemented swapcontext */
    539  1.50.2.1     skrll 	"#424 (unimplemented swapoff)",		/* 424 = unimplemented swapoff */
    540  1.50.2.1     skrll 	"#425 (unimplemented __acl_get_link)",		/* 425 = unimplemented __acl_get_link */
    541  1.50.2.1     skrll 	"#426 (unimplemented __acl_set_link)",		/* 426 = unimplemented __acl_set_link */
    542  1.50.2.1     skrll 	"#427 (unimplemented __acl_delete_link)",		/* 427 = unimplemented __acl_delete_link */
    543  1.50.2.1     skrll 	"#428 (unimplemented __acl_aclcheck_link)",		/* 428 = unimplemented __acl_aclcheck_link */
    544  1.50.2.1     skrll 	"#429 (unimplemented sigwait)",		/* 429 = unimplemented sigwait */
    545  1.50.2.1     skrll 	"#430 (unimplemented thr_create)",		/* 430 = unimplemented thr_create */
    546  1.50.2.1     skrll 	"#431 (unimplemented thr_exit)",		/* 431 = unimplemented thr_exit */
    547  1.50.2.1     skrll 	"#432 (unimplemented thr_self)",		/* 432 = unimplemented thr_self */
    548  1.50.2.1     skrll 	"#433 (unimplemented thr_kill)",		/* 433 = unimplemented thr_kill */
    549  1.50.2.1     skrll 	"#434 (unimplemented _umtx_lock)",		/* 434 = unimplemented _umtx_lock */
    550  1.50.2.1     skrll 	"#435 (unimplemented _umtx_unlock)",		/* 435 = unimplemented _umtx_unlock */
    551  1.50.2.1     skrll 	"#436 (unimplemented jail_attach)",		/* 436 = unimplemented jail_attach */
    552  1.50.2.1     skrll 	"#437 (unimplemented extattr_list_fd)",		/* 437 = unimplemented extattr_list_fd */
    553  1.50.2.1     skrll 	"#438 (unimplemented extattr_list_file)",		/* 438 = unimplemented extattr_list_file */
    554  1.50.2.1     skrll 	"#439 (unimplemented extattr_list_link)",		/* 439 = unimplemented extattr_list_link */
    555       1.1   mycroft };
    556