6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.38 2009/01/13 22:27:43 pooka Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #include "opt_ktrace.h"
15 #include "opt_nfsserver.h"
17 #include "opt_compat_netbsd.h"
19 #include "opt_compat_43.h"
22 #include <sys/param.h>
23 #include <sys/systm.h>
24 #include <sys/signal.h>
25 #include <sys/mount.h>
26 #include <sys/syscallargs.h>
27 #include <compat/sys/signal.h>
28 #include <compat/sys/time.h>
29 #include <compat/mach/mach_types.h>
30 #include <compat/mach/mach_vm.h>
31 #include <compat/darwin/darwin_types.h>
32 #include <compat/darwin/darwin_signal.h>
33 #include <compat/darwin/darwin_audit.h>
34 #include <compat/darwin/darwin_syscallargs.h>
35 #endif /* _KERNEL_OPT */
37 const char *const darwin_syscallnames
[] = {
49 /* 11 */ "#11 (unimplemented execv)",
73 /* 31 */ "getpeername",
74 /* 32 */ "getsockname",
87 #if defined(KTRACE) || !defined(_KERNEL)
90 /* 45 */ "#45 (excluded ktrace)",
98 /* 48 */ "sigprocmask",
99 /* 49 */ "__getlogin",
100 /* 50 */ "__setlogin",
102 /* 52 */ "sigpending13",
103 /* 53 */ "sigaltstack13",
113 /* 63 */ "#63 (unimplemented)",
114 /* 64 */ "ogetpagesize",
117 /* 67 */ "#67 (obsolete vread)",
118 /* 68 */ "#68 (obsolete vwrite)",
126 /* 76 */ "#76 (unimplemented)",
127 /* 77 */ "#77 (unimplemented)",
129 /* 79 */ "getgroups",
130 /* 80 */ "setgroups",
133 /* 83 */ "setitimer",
136 /* 86 */ "getitimer",
137 /* 87 */ "ogethostname",
138 /* 88 */ "osethostname",
139 /* 89 */ "ogetdtablesize",
141 /* 91 */ "#91 (unimplemented)",
144 /* 94 */ "#94 (unimplemented)",
146 /* 96 */ "setpriority",
150 /* 100 */ "getpriority",
153 /* 103 */ "sigreturn_x2",
155 /* 105 */ "setsockopt",
157 /* 107 */ "#107 (unimplemented)",
159 /* 109 */ "osigblock",
160 /* 110 */ "osigsetmask",
161 /* 111 */ "sigsuspend13",
162 /* 112 */ "osigstack",
163 /* 113 */ "orecvmsg",
164 /* 114 */ "osendmsg",
165 /* 115 */ "#115 (unimplemented)",
166 /* 116 */ "gettimeofday",
167 /* 117 */ "getrusage",
168 /* 118 */ "getsockopt",
169 /* 119 */ "#119 (unimplemented)",
172 /* 122 */ "settimeofday",
175 /* 125 */ "orecvfrom",
176 /* 126 */ "setreuid",
177 /* 127 */ "setregid",
179 /* 129 */ "otruncate",
180 /* 130 */ "oftruncate",
184 /* 134 */ "shutdown",
185 /* 135 */ "socketpair",
189 /* 139 */ "#139 (unimplemented futimes)",
191 /* 141 */ "ogetpeername",
192 /* 142 */ "ogethostid",
193 /* 143 */ "#143 (unimplemented)",
194 /* 144 */ "ogetrlimit",
195 /* 145 */ "osetrlimit",
198 /* 148 */ "#148 (unimplemented)",
199 /* 149 */ "#149 (unimplemented)",
200 /* 150 */ "ogetsockname",
201 /* 151 */ "#151 (unimplemented getpgid)",
202 /* 152 */ "#152 (unimplemented setprivexec)",
203 /* 153 */ "#153 (unimplemented pread)",
204 /* 154 */ "#154 (unimplemented pwrite)",
205 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
208 /* 155 */ "#155 (excluded nfssvc)",
210 /* 156 */ "ogetdirentries",
213 /* 159 */ "#159 (unimplemented unmount)",
214 /* 160 */ "#160 (unimplemented)",
215 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
218 /* 161 */ "#161 (excluded getfh)",
220 /* 162 */ "ogetdomainname",
221 /* 163 */ "osetdomainname",
222 /* 164 */ "#164 (unimplemented)",
223 /* 165 */ "#165 (unimplemented quotactl)",
224 /* 166 */ "#166 (unimplemented)",
225 /* 167 */ "#167 (unimplemented mount)",
226 /* 168 */ "#168 (unimplemented)",
227 /* 169 */ "#169 (unimplemented)",
228 /* 170 */ "#170 (unimplemented)",
229 /* 171 */ "#171 (unimplemented wait3)",
230 /* 172 */ "#172 (unimplemented)",
231 /* 173 */ "#173 (unimplemented)",
232 /* 174 */ "#174 (unimplemented)",
233 /* 175 */ "#175 (unimplemented)",
234 /* 176 */ "#176 (unimplemented add_profil)",
235 /* 177 */ "#177 (unimplemented)",
236 /* 178 */ "#178 (unimplemented)",
237 /* 179 */ "#179 (unimplemented)",
238 /* 180 */ "kdebug_trace",
242 /* 184 */ "sigreturn",
243 /* 185 */ "#185 (unimplemented)",
244 /* 186 */ "#186 (unimplemented)",
245 /* 187 */ "#187 (unimplemented)",
249 /* 191 */ "pathconf",
250 /* 192 */ "fpathconf",
251 /* 193 */ "#193 (unimplemented getfsstat)",
252 /* 194 */ "getrlimit",
253 /* 195 */ "setrlimit",
254 /* 196 */ "getdirentries",
256 /* 198 */ "#198 (unimplemented)",
258 /* 200 */ "truncate",
259 /* 201 */ "ftruncate",
260 /* 202 */ "__sysctl",
263 /* 205 */ "undelete",
264 /* 206 */ "#206 (unimplemented atsocket)",
265 /* 207 */ "#207 (unimplemented atgetmsg)",
266 /* 208 */ "#208 (unimplemented atputmsg)",
267 /* 209 */ "#209 (unimplemented atpsndreq)",
268 /* 210 */ "#210 (unimplemented atpsndrsp)",
269 /* 211 */ "#211 (unimplemented atpgetreq)",
270 /* 212 */ "#212 (unimplemented atpgetrsp)",
271 /* 213 */ "#213 (unimplemented)",
272 /* 214 */ "#214 (unimplemented)",
273 /* 215 */ "#215 (unimplemented)",
274 /* 216 */ "#216 (unimplemented)",
275 /* 217 */ "#217 (unimplemented)",
276 /* 218 */ "#218 (unimplemented)",
277 /* 219 */ "#219 (unimplemented)",
278 /* 220 */ "getattrlist",
279 /* 221 */ "#221 (unimplemented setattrlist)",
280 /* 222 */ "#222 (unimplemented getdirentriesattr)",
281 /* 223 */ "#223 (unimplemented exchangedata)",
282 /* 224 */ "#224 (unimplemented checkuseraccess)",
283 /* 225 */ "#225 (unimplemented searchfs)",
284 /* 226 */ "#226 (unimplemented delete)",
285 /* 227 */ "#227 (unimplemented copyfile)",
286 /* 228 */ "#228 (unimplemented)",
287 /* 229 */ "#229 (unimplemented)",
288 /* 230 */ "#230 (unimplemented)",
289 /* 231 */ "#231 (unimplemented watchevent)",
290 /* 232 */ "#232 (unimplemented waitevent)",
291 /* 233 */ "#233 (unimplemented modwatch)",
292 /* 234 */ "#234 (unimplemented)",
293 /* 235 */ "#235 (unimplemented)",
294 /* 236 */ "#236 (unimplemented)",
295 /* 237 */ "#237 (unimplemented)",
296 /* 238 */ "#238 (unimplemented)",
297 /* 239 */ "#239 (unimplemented)",
298 /* 240 */ "#240 (unimplemented)",
299 /* 241 */ "#241 (unimplemented)",
300 /* 242 */ "#242 (unimplemented fsctl)",
301 /* 243 */ "#243 (unimplemented)",
302 /* 244 */ "#244 (unimplemented)",
303 /* 245 */ "#245 (unimplemented)",
304 /* 246 */ "#246 (unimplemented)",
305 /* 247 */ "#247 (unimplemented)",
306 /* 248 */ "#248 (unimplemented)",
307 /* 249 */ "#249 (unimplemented)",
308 /* 250 */ "#250 (unimplemented minherit)",
309 /* 251 */ "#251 (unimplemented semsys)",
310 /* 252 */ "#252 (unimplemented msgsys)",
311 /* 253 */ "#253 (unimplemented semop)",
312 /* 254 */ "#254 (unimplemented semctl)",
313 /* 255 */ "#255 (unimplemented semget)",
314 /* 256 */ "#256 (unimplemented semop)",
315 /* 257 */ "#257 (unimplemented semconfig)",
316 /* 258 */ "#258 (unimplemented msgctl)",
317 /* 259 */ "#259 (unimplemented msgget)",
318 /* 260 */ "#260 (unimplemented msgsnd)",
319 /* 261 */ "#261 (unimplemented msgrcv)",
320 /* 262 */ "#262 (unimplemented shmat)",
321 /* 263 */ "#263 (unimplemented shmctl)",
322 /* 264 */ "#264 (unimplemented shmdt)",
323 /* 265 */ "#265 (unimplemented shmget)",
324 /* 266 */ "#266 (unimplemented shm_open)",
325 /* 267 */ "#267 (unimplemented shm_unlink)",
326 /* 268 */ "#268 (unimplemented sem_open)",
327 /* 269 */ "#269 (unimplemented sem_close)",
328 /* 270 */ "#270 (unimplemented sem_unlink)",
329 /* 271 */ "#271 (unimplemented sem_wait)",
330 /* 272 */ "#272 (unimplemented sem_trywait)",
331 /* 273 */ "#273 (unimplemented sem_post)",
332 /* 274 */ "#274 (unimplemented sem_getvalue)",
333 /* 275 */ "#275 (unimplemented sem_init)",
334 /* 276 */ "#276 (unimplemented sem_destroy)",
335 /* 277 */ "#277 (unimplemented)",
336 /* 278 */ "#278 (unimplemented)",
337 /* 279 */ "#279 (unimplemented)",
338 /* 280 */ "#280 (unimplemented)",
339 /* 281 */ "#281 (unimplemented)",
340 /* 282 */ "#282 (unimplemented)",
341 /* 283 */ "#283 (unimplemented)",
342 /* 284 */ "#284 (unimplemented)",
343 /* 285 */ "#285 (unimplemented)",
344 /* 286 */ "#286 (unimplemented)",
345 /* 287 */ "#287 (unimplemented)",
346 /* 288 */ "#288 (unimplemented)",
347 /* 289 */ "#289 (unimplemented)",
348 /* 290 */ "#290 (unimplemented)",
349 /* 291 */ "#291 (unimplemented)",
350 /* 292 */ "#292 (unimplemented)",
351 /* 293 */ "#293 (unimplemented)",
352 /* 294 */ "#294 (unimplemented)",
353 /* 295 */ "#295 (unimplemented)",
354 /* 296 */ "load_shared_file",
355 /* 297 */ "#297 (unimplemented reset_shared_file)",
356 /* 298 */ "#298 (unimplemented new_system_shared_regions)",
357 /* 299 */ "#299 (unimplemented)",
358 /* 300 */ "#300 (unimplemented)",
359 /* 301 */ "#301 (unimplemented)",
360 /* 302 */ "#302 (unimplemented)",
361 /* 303 */ "#303 (unimplemented)",
362 /* 304 */ "#304 (unimplemented)",
363 /* 305 */ "#305 (unimplemented)",
364 /* 306 */ "#306 (unimplemented)",
365 /* 307 */ "#307 (unimplemented)",
366 /* 308 */ "#308 (unimplemented)",
367 /* 309 */ "#309 (unimplemented)",
368 /* 310 */ "#310 (unimplemented getsid)",
369 /* 311 */ "#311 (unimplemented)",
370 /* 312 */ "#312 (unimplemented)",
371 /* 313 */ "#313 (unimplemented)",
372 /* 314 */ "#314 (unimplemented)",
373 /* 315 */ "#315 (unimplemented)",
374 /* 316 */ "#316 (unimplemented)",
375 /* 317 */ "#317 (unimplemented)",
376 /* 318 */ "#318 (unimplemented)",
377 /* 319 */ "#319 (unimplemented)",
378 /* 320 */ "#320 (unimplemented)",
379 /* 321 */ "#321 (unimplemented)",
380 /* 322 */ "#322 (unimplemented)",
381 /* 323 */ "#323 (unimplemented)",
382 /* 324 */ "#324 (unimplemented mlockall)",
383 /* 325 */ "#325 (unimplemented munlockall)",
384 /* 326 */ "#326 (unimplemented)",
385 /* 327 */ "#327 (unimplemented issetugid)",
386 /* 328 */ "#328 (unimplemented __pthread_kill)",
387 /* 329 */ "#329 (unimplemented pthread_sigmask)",
388 /* 330 */ "#330 (unimplemented sigwait)",
389 /* 331 */ "pthread_exit",
390 /* 332 */ "#332 (unimplemented)",
391 /* 333 */ "#333 (unimplemented)",
392 /* 334 */ "#334 (unimplemented)",
394 /* 336 */ "#336 (unimplemented)",
395 /* 337 */ "#337 (unimplemented)",
396 /* 338 */ "#338 (unimplemented)",
397 /* 339 */ "#339 (unimplemented)",
398 /* 340 */ "#340 (unimplemented)",
399 /* 341 */ "#341 (unimplemented)",
400 /* 342 */ "#342 (unimplemented)",
401 /* 343 */ "#343 (unimplemented)",
402 /* 344 */ "#344 (unimplemented)",
403 /* 345 */ "#345 (unimplemented)",
404 /* 346 */ "#346 (unimplemented)",
405 /* 347 */ "#347 (unimplemented)",
406 /* 348 */ "#348 (unimplemented)",
407 /* 349 */ "#349 (unimplemented)",
410 /* 352 */ "#352 (unimplemented)",
413 /* 355 */ "getauditinfo",
414 /* 356 */ "setauditinfo",
415 /* 357 */ "getaudit_addr",
416 /* 358 */ "setaudit_addr",
417 /* 359 */ "auditctl",
418 /* 360 */ "#360 (unimplemented)",
419 /* 361 */ "#361 (unimplemented)",
420 /* 362 */ "#362 (unimplemented kqueue)",
421 /* 363 */ "#363 (unimplemented kevent)",