6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.62 2009/01/13 22:27:43 pooka Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #if defined(_KERNEL_OPT)
15 #include "opt_ktrace.h"
18 #include "opt_compat_43.h"
19 #include "opt_posix.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/freebsd/freebsd_syscallargs.h>
30 #include <machine/freebsd_machdep.h>
31 #endif /* _KERNEL_OPT */
33 const char *const freebsd_syscallnames
[] = {
45 /* 11 */ "#11 (obsolete execv)",
54 /* 20 */ "getpid_with_ppid",
58 /* 24 */ "getuid_with_euid",
65 /* 31 */ "getpeername",
66 /* 32 */ "getsockname",
82 /* 45 */ "#45 (excluded ktrace)",
85 /* 47 */ "getgid_with_egid",
86 /* 48 */ "sigprocmask",
87 /* 49 */ "__getlogin",
88 /* 50 */ "__setlogin",
90 /* 52 */ "sigpending",
91 /* 53 */ "sigaltstack",
101 /* 63 */ "ogetkerninfo",
102 /* 64 */ "ogetpagesize",
105 /* 67 */ "#67 (obsolete vread)",
106 /* 68 */ "#68 (obsolete vwrite)",
114 /* 76 */ "#76 (obsolete vhangup)",
115 /* 77 */ "#77 (obsolete vlimit)",
117 /* 79 */ "getgroups",
118 /* 80 */ "setgroups",
121 /* 83 */ "setitimer",
124 /* 86 */ "getitimer",
125 /* 87 */ "ogethostname",
126 /* 88 */ "osethostname",
127 /* 89 */ "ogetdtablesize",
129 /* 91 */ "#91 (unimplemented getdopt)",
132 /* 94 */ "#94 (unimplemented setdopt)",
134 /* 96 */ "setpriority",
138 /* 100 */ "getpriority",
141 /* 103 */ "sigreturn",
143 /* 105 */ "setsockopt",
145 /* 107 */ "#107 (obsolete vtimes)",
147 /* 109 */ "osigblock",
148 /* 110 */ "osigsetmask",
149 /* 111 */ "sigsuspend",
150 /* 112 */ "osigstack",
151 /* 113 */ "orecvmsg",
152 /* 114 */ "osendmsg",
156 /* 115 */ "#115 (obsolete vtrace)",
158 /* 116 */ "gettimeofday",
159 /* 117 */ "getrusage",
160 /* 118 */ "getsockopt",
161 /* 119 */ "#119 (obsolete resuba)",
164 /* 122 */ "settimeofday",
167 /* 125 */ "orecvfrom",
168 /* 126 */ "setreuid",
169 /* 127 */ "setregid",
171 /* 129 */ "otruncate",
172 /* 130 */ "oftruncate",
176 /* 134 */ "shutdown",
177 /* 135 */ "socketpair",
181 /* 139 */ "#139 (obsolete 4.2 sigreturn)",
183 /* 141 */ "ogetpeername",
184 /* 142 */ "ogethostid",
185 /* 143 */ "osethostid",
186 /* 144 */ "ogetrlimit",
187 /* 145 */ "osetrlimit",
190 /* 148 */ "quotactl",
192 /* 150 */ "ogetsockname",
193 /* 151 */ "#151 (unimplemented sem_lock)",
194 /* 152 */ "#152 (unimplemented sem_wakeup)",
195 /* 153 */ "#153 (unimplemented asyncdaemon)",
196 /* 154 */ "#154 (unimplemented)",
197 /* 155 */ "#155 (unimplemented nfssvc)",
198 /* 156 */ "ogetdirentries",
201 /* 159 */ "#159 (unimplemented)",
202 /* 160 */ "#160 (unimplemented)",
206 /* 161 */ "#161 (unimplemented getfh)",
208 /* 162 */ "getdomainname",
209 /* 163 */ "setdomainname",
213 /* 167 */ "#167 (unimplemented)",
214 /* 168 */ "#168 (unimplemented)",
215 #if defined(SYSVSEM) && !defined(_LP64)
218 /* 169 */ "#169 (unimplemented 1.0 semsys)",
220 #if defined(SYSVMSG) && !defined(_LP64)
223 /* 170 */ "#170 (unimplemented 1.0 msgsys)",
225 #if defined(SYSVSHM) && !defined(_LP64)
228 /* 171 */ "#171 (unimplemented 1.0 shmsys)",
230 /* 172 */ "#172 (unimplemented)",
233 /* 175 */ "#175 (unimplemented)",
235 /* 176 */ "freebsd_ntp_adjtime",
237 /* 176 */ "#176 (excluded ntp_adjtime)",
239 /* 177 */ "#177 (unimplemented sfork)",
240 /* 178 */ "#178 (unimplemented getdescriptor)",
241 /* 179 */ "#179 (unimplemented setdescriptor)",
242 /* 180 */ "#180 (unimplemented)",
247 /* 184 */ "lfs_bmapv",
248 /* 185 */ "lfs_markv",
249 /* 186 */ "lfs_segclean",
250 /* 187 */ "lfs_segwait",
252 /* 184 */ "#184 (unimplemented)",
253 /* 185 */ "#185 (unimplemented)",
254 /* 186 */ "#186 (unimplemented)",
255 /* 187 */ "#187 (unimplemented)",
260 /* 191 */ "pathconf",
261 /* 192 */ "fpathconf",
262 /* 193 */ "#193 (unimplemented)",
263 /* 194 */ "getrlimit",
264 /* 195 */ "setrlimit",
265 /* 196 */ "getdirentries",
267 /* 198 */ "__syscall",
269 /* 200 */ "truncate",
270 /* 201 */ "ftruncate",
274 #ifdef FREEBSD_BASED_ON_44LITE_R2
275 /* 205 */ "undelete",
277 /* 205 */ "#205 (unimplemented undelete)",
284 /* 208 */ "#208 (unimplemented newreboot)",
287 /* 210 */ "#210 (unimplemented)",
288 /* 211 */ "#211 (unimplemented)",
289 /* 212 */ "#212 (unimplemented)",
290 /* 213 */ "#213 (unimplemented)",
291 /* 214 */ "#214 (unimplemented)",
292 /* 215 */ "#215 (unimplemented)",
293 /* 216 */ "#216 (unimplemented)",
294 /* 217 */ "#217 (unimplemented)",
295 /* 218 */ "#218 (unimplemented)",
296 /* 219 */ "#219 (unimplemented)",
298 /* 220 */ "__semctl",
301 /* 223 */ "semconfig",
303 /* 220 */ "#220 (unimplemented semctl)",
304 /* 221 */ "#221 (unimplemented semget)",
305 /* 222 */ "#222 (unimplemented semop)",
306 /* 223 */ "#223 (unimplemented semconfig)",
314 /* 224 */ "#224 (unimplemented msgctl)",
315 /* 225 */ "#225 (unimplemented msgget)",
316 /* 226 */ "#226 (unimplemented msgsnd)",
317 /* 227 */ "#227 (unimplemented msgrcv)",
325 /* 228 */ "#228 (unimplemented shmat)",
326 /* 229 */ "#229 (unimplemented shmctl)",
327 /* 230 */ "#230 (unimplemented shmdt)",
328 /* 231 */ "#231 (unimplemented shmget)",
330 /* 232 */ "clock_gettime",
331 /* 233 */ "clock_settime",
332 /* 234 */ "clock_getres",
333 /* 235 */ "#235 (unimplemented timer_create)",
334 /* 236 */ "#236 (unimplemented timer_delete)",
335 /* 237 */ "#237 (unimplemented timer_settime)",
336 /* 238 */ "#238 (unimplemented timer_gettime)",
337 /* 239 */ "#239 (unimplemented timer_getoverrun)",
338 /* 240 */ "nanosleep",
339 /* 241 */ "#241 (unimplemented)",
340 /* 242 */ "#242 (unimplemented)",
341 /* 243 */ "#243 (unimplemented)",
342 /* 244 */ "#244 (unimplemented)",
343 /* 245 */ "#245 (unimplemented)",
344 /* 246 */ "#246 (unimplemented)",
345 /* 247 */ "#247 (unimplemented)",
346 /* 248 */ "#248 (unimplemented)",
347 /* 249 */ "#249 (unimplemented)",
348 /* 250 */ "minherit",
350 /* 252 */ "#252 (unimplemented openbsd_poll)",
351 /* 253 */ "issetugid",
353 /* 255 */ "#255 (unimplemented)",
354 /* 256 */ "#256 (unimplemented)",
355 /* 257 */ "#257 (unimplemented)",
356 /* 258 */ "#258 (unimplemented)",
357 /* 259 */ "#259 (unimplemented)",
358 /* 260 */ "#260 (unimplemented)",
359 /* 261 */ "#261 (unimplemented)",
360 /* 262 */ "#262 (unimplemented)",
361 /* 263 */ "#263 (unimplemented)",
362 /* 264 */ "#264 (unimplemented)",
363 /* 265 */ "#265 (unimplemented)",
364 /* 266 */ "#266 (unimplemented)",
365 /* 267 */ "#267 (unimplemented)",
366 /* 268 */ "#268 (unimplemented)",
367 /* 269 */ "#269 (unimplemented)",
368 /* 270 */ "#270 (unimplemented)",
369 /* 271 */ "#271 (unimplemented)",
370 /* 272 */ "getdents",
371 /* 273 */ "#273 (unimplemented)",
373 /* 275 */ "netbsd_lchown",
375 /* 277 */ "__msync13",
376 /* 278 */ "__stat13",
377 /* 279 */ "__fstat13",
378 /* 280 */ "__lstat13",
379 /* 281 */ "#281 (unimplemented)",
380 /* 282 */ "#282 (unimplemented)",
381 /* 283 */ "#283 (unimplemented)",
382 /* 284 */ "#284 (unimplemented)",
383 /* 285 */ "#285 (unimplemented)",
384 /* 286 */ "#286 (unimplemented)",
385 /* 287 */ "#287 (unimplemented)",
386 /* 288 */ "#288 (unimplemented)",
387 /* 289 */ "#289 (unimplemented)",
388 /* 290 */ "#290 (unimplemented)",
389 /* 291 */ "#291 (unimplemented)",
390 /* 292 */ "#292 (unimplemented)",
391 /* 293 */ "#293 (unimplemented)",
392 /* 294 */ "#294 (unimplemented)",
393 /* 295 */ "#295 (unimplemented)",
394 /* 296 */ "#296 (unimplemented)",
395 /* 297 */ "fhstatfs",
398 /* 300 */ "#300 (unimplemented modnext)",
399 /* 301 */ "#301 (unimplemented modstat)",
400 /* 302 */ "#302 (unimplemented modfnext)",
401 /* 303 */ "#303 (unimplemented modfind)",
402 /* 304 */ "#304 (unimplemented kldload)",
403 /* 305 */ "#305 (unimplemented kldunload)",
404 /* 306 */ "#306 (unimplemented kldfind)",
405 /* 307 */ "#307 (unimplemented kldnext)",
406 /* 308 */ "#308 (unimplemented kldstat)",
407 /* 309 */ "#309 (unimplemented kldfirstmod)",
409 /* 311 */ "#311 (unimplemented setresuid)",
410 /* 312 */ "#312 (unimplemented setresgid)",
411 /* 313 */ "#313 (unimplemented signanosleep)",
412 /* 314 */ "#314 (unimplemented aio_return)",
413 /* 315 */ "#315 (unimplemented aio_suspend)",
414 /* 316 */ "#316 (unimplemented aio_cancel)",
415 /* 317 */ "#317 (unimplemented aio_error)",
416 /* 318 */ "#318 (unimplemented aio_read)",
417 /* 319 */ "#319 (unimplemented aio_write)",
418 /* 320 */ "#320 (unimplemented lio_listio)",
420 /* 322 */ "#322 (unimplemented thr_sleep)",
421 /* 323 */ "#323 (unimplemented thr_wakeup)",
422 /* 324 */ "mlockall",
423 /* 325 */ "munlockall",
424 /* 326 */ "__getcwd",
425 /* 327 */ "sched_setparam",
426 /* 328 */ "sched_getparam",
427 /* 329 */ "sched_setscheduler",
428 /* 330 */ "sched_getscheduler",
429 /* 331 */ "sched_yield",
430 /* 332 */ "sched_get_priority_max",
431 /* 333 */ "sched_get_priority_min",
432 /* 334 */ "#334 (unimplemented sched_rr_get_interval)",
434 /* 336 */ "#336 (unimplemented sendfile)",
435 /* 337 */ "#337 (unimplemented kldsym)",
436 /* 338 */ "#338 (unimplemented jail)",
437 /* 339 */ "#339 (unimplemented pioctl)",
438 /* 340 */ "__sigprocmask14",
439 /* 341 */ "__sigsuspend14",
440 /* 342 */ "sigaction4",
441 /* 343 */ "__sigpending14",
442 /* 344 */ "#344 (unimplemented 4.0 sigreturn)",
443 /* 345 */ "#345 (unimplemented sigtimedwait)",
444 /* 346 */ "#346 (unimplemented sigwaitinfo)",
445 /* 347 */ "#347 (unimplemented __acl_get_file)",
446 /* 348 */ "#348 (unimplemented __acl_set_file)",
447 /* 349 */ "#349 (unimplemented __acl_get_fd)",
448 /* 350 */ "#350 (unimplemented __acl_set_fd)",
449 /* 351 */ "#351 (unimplemented __acl_delete_file)",
450 /* 352 */ "#352 (unimplemented __acl_delete_fd)",
451 /* 353 */ "#353 (unimplemented __acl_aclcheck_file)",
452 /* 354 */ "#354 (unimplemented __acl_aclcheck_fd)",
453 /* 355 */ "#355 (unimplemented extattrctl)",
454 /* 356 */ "#356 (unimplemented extattr_set_file)",
455 /* 357 */ "#357 (unimplemented extattr_get_file)",
456 /* 358 */ "#358 (unimplemented extattr_delete_file)",
457 /* 359 */ "#359 (unimplemented aio_waitcomplete)",
458 /* 360 */ "#360 (unimplemented getresuid)",
459 /* 361 */ "#361 (unimplemented getresgid)",
460 /* 362 */ "#362 (unimplemented kqueue)",
461 /* 363 */ "#363 (unimplemented kevent)",
462 /* 364 */ "#364 (unimplemented __cap_get_proc)",
463 /* 365 */ "#365 (unimplemented __cap_set_proc)",
464 /* 366 */ "#366 (unimplemented __cap_get_fd)",
465 /* 367 */ "#367 (unimplemented __cap_get_file)",
466 /* 368 */ "#368 (unimplemented __cap_set_fd)",
467 /* 369 */ "#369 (unimplemented __cap_set_file)",
468 /* 370 */ "#370 (unimplemented lkmressym)",
469 /* 371 */ "#371 (unimplemented extattr_set_fd)",
470 /* 372 */ "#372 (unimplemented extattr_get_fd)",
471 /* 373 */ "#373 (unimplemented extattr_delete_fd)",
472 /* 374 */ "#374 (unimplemented __setugid)",
473 /* 375 */ "#375 (unimplemented nfsclnt)",
474 /* 376 */ "#376 (unimplemented eaccess)",
475 /* 377 */ "#377 (unimplemented afs_syscall)",
476 /* 378 */ "#378 (unimplemented nmount)",
477 /* 379 */ "#379 (unimplemented kse_exit)",
478 /* 380 */ "#380 (unimplemented kse_wakeup)",
479 /* 381 */ "#381 (unimplemented kse_create)",
480 /* 382 */ "#382 (unimplemented kse_thr_interrupt)",
481 /* 383 */ "#383 (unimplemented kse_release)",
482 /* 384 */ "#384 (unimplemented __mac_get_proc)",
483 /* 385 */ "#385 (unimplemented __mac_set_proc)",
484 /* 386 */ "#386 (unimplemented __mac_get_fd)",
485 /* 387 */ "#387 (unimplemented __mac_get_file)",
486 /* 388 */ "#388 (unimplemented __mac_set_fd)",
487 /* 389 */ "#389 (unimplemented __mac_set_file)",
488 /* 390 */ "#390 (unimplemented kenv)",
489 /* 391 */ "lchflags",
491 /* 393 */ "#393 (unimplemented sendfile)",
492 /* 394 */ "#394 (unimplemented mac_syscall)",
493 /* 395 */ "#395 (unimplemented getfsstat)",
494 /* 396 */ "#396 (unimplemented statfs)",
495 /* 397 */ "#397 (unimplemented fsstatfs)",
496 /* 398 */ "#398 (unimplemented fhstatfs)",
497 /* 399 */ "#399 (unimplemented nosys)",
498 #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
499 /* 400 */ "_ksem_close",
500 /* 401 */ "_ksem_post",
501 /* 402 */ "_ksem_wait",
502 /* 403 */ "_ksem_trywait",
503 /* 404 */ "#404 (unimplemented ksem_init)",
504 /* 405 */ "#405 (unimplemented ksem_open)",
505 /* 406 */ "_ksem_unlink",
506 /* 407 */ "_ksem_getvalue",
507 /* 408 */ "_ksem_destroy",
509 /* 400 */ "#400 (excluded ksem_close)",
510 /* 401 */ "#401 (excluded ksem_post)",
511 /* 402 */ "#402 (excluded ksem_wait)",
512 /* 403 */ "#403 (excluded ksem_trywait)",
513 /* 404 */ "#404 (excluded ksem_init)",
514 /* 405 */ "#405 (excluded ksem_open)",
515 /* 406 */ "#406 (excluded ksem_unlink)",
516 /* 407 */ "#407 (excluded ksem_getvalue)",
517 /* 408 */ "#408 (excluded ksem_destroy)",
519 /* 409 */ "#409 (unimplemented __mac_get_pid)",
520 /* 410 */ "#410 (unimplemented __mac_get_link)",
521 /* 411 */ "#411 (unimplemented __mac_set_link)",
522 /* 412 */ "#412 (unimplemented extattr_set_link)",
523 /* 413 */ "#413 (unimplemented extattr_get_link)",
524 /* 414 */ "#414 (unimplemented extattr_delete_link)",
525 /* 415 */ "#415 (unimplemented __mac_execve)",
526 /* 416 */ "#416 (unimplemented sigaction)",
527 /* 417 */ "#417 (unimplemented sigreturn)",
528 /* 418 */ "#418 (unimplemented __xstat)",
529 /* 419 */ "#419 (unimplemented __xfstat)",
530 /* 420 */ "#420 (unimplemented __xlstat)",
531 /* 421 */ "#421 (unimplemented getcontext)",
532 /* 422 */ "#422 (unimplemented setcontext)",
533 /* 423 */ "#423 (unimplemented swapcontext)",
534 /* 424 */ "#424 (unimplemented swapoff)",
535 /* 425 */ "#425 (unimplemented __acl_get_link)",
536 /* 426 */ "#426 (unimplemented __acl_set_link)",
537 /* 427 */ "#427 (unimplemented __acl_delete_link)",
538 /* 428 */ "#428 (unimplemented __acl_aclcheck_link)",
539 /* 429 */ "#429 (unimplemented sigwait)",
540 /* 430 */ "#430 (unimplemented thr_create)",
541 /* 431 */ "#431 (unimplemented thr_exit)",
542 /* 432 */ "#432 (unimplemented thr_self)",
543 /* 433 */ "#433 (unimplemented thr_kill)",
544 /* 434 */ "#434 (unimplemented _umtx_lock)",
545 /* 435 */ "#435 (unimplemented _umtx_unlock)",
546 /* 436 */ "#436 (unimplemented jail_attach)",
547 /* 437 */ "#437 (unimplemented extattr_list_fd)",
548 /* 438 */ "#438 (unimplemented extattr_list_file)",
549 /* 439 */ "#439 (unimplemented extattr_list_link)",