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