6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #include "opt_modular.h"
18 #include <sys/param.h>
19 #include <sys/systm.h>
20 #include <sys/signal.h>
21 #include <sys/mount.h>
22 #include <sys/sched.h>
23 #include <sys/syscallargs.h>
24 #endif /* _KERNEL_OPT */
26 const char *const syscallnames
[] = {
34 /* 7 */ "compat_50_wait4",
35 /* 8 */ "compat_43_ocreat",
38 /* 11 */ "#11 (obsolete execv)",
41 /* 14 */ "compat_50_mknod",
45 /* 18 */ "compat_20_getfsstat",
46 /* 19 */ "compat_43_olseek",
48 /* 21 */ "compat_40_mount",
58 /* 31 */ "getpeername",
59 /* 32 */ "getsockname",
65 /* 38 */ "compat_43_stat43",
67 /* 40 */ "compat_43_lstat43",
73 /* 46 */ "compat_13_sigaction13",
75 /* 48 */ "compat_13_sigprocmask13",
76 /* 49 */ "__getlogin",
77 /* 50 */ "__setlogin",
79 /* 52 */ "compat_13_sigpending13",
80 /* 53 */ "compat_13_sigaltstack13",
82 /* 55 */ "compat_12_oreboot",
89 /* 62 */ "compat_43_fstat43",
90 /* 63 */ "compat_43_ogetkerninfo",
91 /* 64 */ "compat_43_ogetpagesize",
92 /* 65 */ "compat_12_msync",
94 /* 67 */ "#67 (obsolete vread)",
95 /* 68 */ "#68 (obsolete vwrite)",
98 /* 71 */ "compat_43_ommap",
103 /* 76 */ "#76 (obsolete vhangup)",
104 /* 77 */ "#77 (obsolete vlimit)",
106 /* 79 */ "getgroups",
107 /* 80 */ "setgroups",
110 /* 83 */ "compat_50_setitimer",
111 /* 84 */ "compat_43_owait",
112 /* 85 */ "compat_12_oswapon",
113 /* 86 */ "compat_50_getitimer",
114 /* 87 */ "compat_43_ogethostname",
115 /* 88 */ "compat_43_osethostname",
116 /* 89 */ "compat_43_ogetdtablesize",
118 /* 91 */ "#91 (unimplemented getdopt)",
120 /* 93 */ "compat_50_select",
121 /* 94 */ "#94 (unimplemented setdopt)",
123 /* 96 */ "setpriority",
124 /* 97 */ "compat_30_socket",
126 /* 99 */ "compat_43_oaccept",
127 /* 100 */ "getpriority",
128 /* 101 */ "compat_43_osend",
129 /* 102 */ "compat_43_orecv",
130 /* 103 */ "compat_13_sigreturn13",
132 /* 105 */ "setsockopt",
134 /* 107 */ "#107 (obsolete vtimes)",
135 /* 108 */ "compat_43_osigvec",
136 /* 109 */ "compat_43_osigblock",
137 /* 110 */ "compat_43_osigsetmask",
138 /* 111 */ "compat_13_sigsuspend13",
139 /* 112 */ "compat_43_osigstack",
140 /* 113 */ "compat_43_orecvmsg",
141 /* 114 */ "compat_43_osendmsg",
142 /* 115 */ "#115 (obsolete vtrace)",
143 /* 116 */ "compat_50_gettimeofday",
144 /* 117 */ "compat_50_getrusage",
145 /* 118 */ "getsockopt",
146 /* 119 */ "#119 (obsolete resuba)",
149 /* 122 */ "compat_50_settimeofday",
152 /* 125 */ "compat_43_orecvfrom",
153 /* 126 */ "setreuid",
154 /* 127 */ "setregid",
156 /* 129 */ "compat_43_otruncate",
157 /* 130 */ "compat_43_oftruncate",
161 /* 134 */ "shutdown",
162 /* 135 */ "socketpair",
165 /* 138 */ "compat_50_utimes",
166 /* 139 */ "#139 (obsolete 4.2 sigreturn)",
167 /* 140 */ "compat_50_adjtime",
168 /* 141 */ "compat_43_ogetpeername",
169 /* 142 */ "compat_43_ogethostid",
170 /* 143 */ "compat_43_osethostid",
171 /* 144 */ "compat_43_ogetrlimit",
172 /* 145 */ "compat_43_osetrlimit",
173 /* 146 */ "compat_43_okillpg",
175 /* 148 */ "quotactl",
176 /* 149 */ "compat_43_oquota",
177 /* 150 */ "compat_43_ogetsockname",
178 /* 151 */ "#151 (unimplemented)",
179 /* 152 */ "#152 (unimplemented)",
180 /* 153 */ "#153 (unimplemented)",
181 /* 154 */ "#154 (unimplemented)",
183 /* 156 */ "compat_43_ogetdirentries",
184 /* 157 */ "compat_20_statfs",
185 /* 158 */ "compat_20_fstatfs",
186 /* 159 */ "#159 (unimplemented)",
187 /* 160 */ "#160 (unimplemented)",
188 /* 161 */ "compat_30_getfh",
189 /* 162 */ "compat_09_ogetdomainname",
190 /* 163 */ "compat_09_osetdomainname",
191 /* 164 */ "compat_09_ouname",
193 /* 166 */ "#166 (unimplemented)",
194 /* 167 */ "#167 (unimplemented)",
195 /* 168 */ "#168 (unimplemented)",
196 #if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
197 /* 169 */ "compat_10_osemsys",
199 /* 169 */ "#169 (excluded 1.0 semsys)",
201 #if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
202 /* 170 */ "compat_10_omsgsys",
204 /* 170 */ "#170 (excluded 1.0 msgsys)",
206 #if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
207 /* 171 */ "compat_10_oshmsys",
209 /* 171 */ "#171 (excluded 1.0 shmsys)",
211 /* 172 */ "#172 (unimplemented)",
214 /* 175 */ "compat_30_ntp_gettime",
215 #if defined(NTP) || !defined(_KERNEL_OPT)
216 /* 176 */ "ntp_adjtime",
218 /* 176 */ "#176 (excluded ntp_adjtime)",
220 /* 177 */ "#177 (unimplemented)",
221 /* 178 */ "#178 (unimplemented)",
222 /* 179 */ "#179 (unimplemented)",
223 /* 180 */ "#180 (unimplemented)",
227 #if defined(LFS) || !defined(_KERNEL)
228 /* 184 */ "lfs_bmapv",
229 /* 185 */ "lfs_markv",
230 /* 186 */ "lfs_segclean",
231 /* 187 */ "compat_50_lfs_segwait",
233 /* 184 */ "#184 (excluded lfs_bmapv)",
234 /* 185 */ "#185 (excluded lfs_markv)",
235 /* 186 */ "#186 (excluded lfs_segclean)",
236 /* 187 */ "#187 (excluded lfs_segwait)",
238 /* 188 */ "compat_12_stat12",
239 /* 189 */ "compat_12_fstat12",
240 /* 190 */ "compat_12_lstat12",
241 /* 191 */ "pathconf",
242 /* 192 */ "fpathconf",
243 /* 193 */ "#193 (unimplemented)",
244 /* 194 */ "getrlimit",
245 /* 195 */ "setrlimit",
246 /* 196 */ "compat_12_getdirentries",
248 /* 198 */ "__syscall",
250 /* 200 */ "truncate",
251 /* 201 */ "ftruncate",
252 /* 202 */ "__sysctl",
255 /* 205 */ "undelete",
256 /* 206 */ "compat_50_futimes",
260 /* 210 */ "#210 (unimplemented)",
261 /* 211 */ "#211 (unimplemented)",
262 /* 212 */ "#212 (unimplemented)",
263 /* 213 */ "#213 (unimplemented)",
264 /* 214 */ "#214 (unimplemented)",
265 /* 215 */ "#215 (unimplemented)",
266 /* 216 */ "#216 (unimplemented)",
267 /* 217 */ "#217 (unimplemented)",
268 /* 218 */ "#218 (unimplemented)",
269 /* 219 */ "#219 (unimplemented)",
270 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
271 /* 220 */ "compat_14___semctl",
274 /* 223 */ "semconfig",
276 /* 220 */ "#220 (excluded compat_14_semctl)",
277 /* 221 */ "#221 (excluded semget)",
278 /* 222 */ "#222 (excluded semop)",
279 /* 223 */ "#223 (excluded semconfig)",
281 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
282 /* 224 */ "compat_14_msgctl",
287 /* 224 */ "#224 (excluded compat_14_msgctl)",
288 /* 225 */ "#225 (excluded msgget)",
289 /* 226 */ "#226 (excluded msgsnd)",
290 /* 227 */ "#227 (excluded msgrcv)",
292 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
294 /* 229 */ "compat_14_shmctl",
298 /* 228 */ "#228 (excluded shmat)",
299 /* 229 */ "#229 (excluded compat_14_shmctl)",
300 /* 230 */ "#230 (excluded shmdt)",
301 /* 231 */ "#231 (excluded shmget)",
303 /* 232 */ "compat_50_clock_gettime",
304 /* 233 */ "compat_50_clock_settime",
305 /* 234 */ "compat_50_clock_getres",
306 /* 235 */ "timer_create",
307 /* 236 */ "timer_delete",
308 /* 237 */ "compat_50_timer_settime",
309 /* 238 */ "compat_50_timer_gettime",
310 /* 239 */ "timer_getoverrun",
311 /* 240 */ "compat_50_nanosleep",
312 /* 241 */ "fdatasync",
313 /* 242 */ "mlockall",
314 /* 243 */ "munlockall",
315 /* 244 */ "compat_50___sigtimedwait",
316 /* 245 */ "#245 (unimplemented sys_sigqueue)",
318 /* 247 */ "_ksem_init",
319 /* 248 */ "_ksem_open",
320 /* 249 */ "_ksem_unlink",
321 /* 250 */ "_ksem_close",
322 /* 251 */ "_ksem_post",
323 /* 252 */ "_ksem_wait",
324 /* 253 */ "_ksem_trywait",
325 /* 254 */ "_ksem_getvalue",
326 /* 255 */ "_ksem_destroy",
327 /* 256 */ "#256 (unimplemented sys__ksem_timedwait)",
329 /* 258 */ "mq_close",
330 /* 259 */ "mq_unlink",
331 /* 260 */ "mq_getattr",
332 /* 261 */ "mq_setattr",
333 /* 262 */ "mq_notify",
335 /* 264 */ "mq_receive",
336 /* 265 */ "compat_50_mq_timedsend",
337 /* 266 */ "compat_50_mq_timedreceive",
338 /* 267 */ "#267 (unimplemented)",
339 /* 268 */ "#268 (unimplemented)",
340 /* 269 */ "#269 (unimplemented)",
341 /* 270 */ "__posix_rename",
343 /* 272 */ "compat_30_getdents",
344 /* 273 */ "minherit",
347 /* 276 */ "compat_50_lutimes",
348 /* 277 */ "__msync13",
349 /* 278 */ "compat_30___stat13",
350 /* 279 */ "compat_30___fstat13",
351 /* 280 */ "compat_30___lstat13",
352 /* 281 */ "__sigaltstack14",
353 /* 282 */ "__vfork14",
354 /* 283 */ "__posix_chown",
355 /* 284 */ "__posix_fchown",
356 /* 285 */ "__posix_lchown",
362 /* 291 */ "compat_16___sigaction14",
363 /* 292 */ "__sigpending14",
364 /* 293 */ "__sigprocmask14",
365 /* 294 */ "__sigsuspend14",
366 /* 295 */ "compat_16___sigreturn14",
367 /* 296 */ "__getcwd",
369 /* 298 */ "compat_30_fhopen",
370 /* 299 */ "compat_30_fhstat",
371 /* 300 */ "compat_20_fhstatfs",
372 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
373 /* 301 */ "compat_50_____semctl13",
375 /* 301 */ "#301 (excluded ____semctl13)",
377 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
378 /* 302 */ "compat_50___msgctl13",
380 /* 302 */ "#302 (excluded __msgctl13)",
382 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
383 /* 303 */ "compat_50___shmctl13",
385 /* 303 */ "#303 (excluded __shmctl13)",
387 /* 304 */ "lchflags",
388 /* 305 */ "issetugid",
390 /* 307 */ "getcontext",
391 /* 308 */ "setcontext",
392 /* 309 */ "_lwp_create",
393 /* 310 */ "_lwp_exit",
394 /* 311 */ "_lwp_self",
395 /* 312 */ "_lwp_wait",
396 /* 313 */ "_lwp_suspend",
397 /* 314 */ "_lwp_continue",
398 /* 315 */ "_lwp_wakeup",
399 /* 316 */ "_lwp_getprivate",
400 /* 317 */ "_lwp_setprivate",
401 /* 318 */ "_lwp_kill",
402 /* 319 */ "_lwp_detach",
403 /* 320 */ "compat_50__lwp_park",
404 /* 321 */ "_lwp_unpark",
405 /* 322 */ "_lwp_unpark_all",
406 /* 323 */ "_lwp_setname",
407 /* 324 */ "_lwp_getname",
408 /* 325 */ "_lwp_ctl",
409 /* 326 */ "#326 (unimplemented)",
410 /* 327 */ "#327 (unimplemented)",
411 /* 328 */ "#328 (unimplemented)",
412 /* 329 */ "#329 (unimplemented)",
413 /* 330 */ "sa_register",
414 /* 331 */ "sa_stacks",
415 /* 332 */ "sa_enable",
416 /* 333 */ "sa_setconcurrency",
417 /* 334 */ "sa_yield",
418 /* 335 */ "sa_preempt",
419 /* 336 */ "#336 (obsolete sys_sa_unblockyield)",
420 /* 337 */ "#337 (unimplemented)",
421 /* 338 */ "#338 (unimplemented)",
422 /* 339 */ "#339 (unimplemented)",
423 /* 340 */ "__sigaction_sigtramp",
424 /* 341 */ "pmc_get_info",
425 /* 342 */ "pmc_control",
428 /* 345 */ "compat_50_kevent",
429 /* 346 */ "_sched_setparam",
430 /* 347 */ "_sched_getparam",
431 /* 348 */ "_sched_setaffinity",
432 /* 349 */ "_sched_getaffinity",
433 /* 350 */ "sched_yield",
434 /* 351 */ "#351 (unimplemented)",
435 /* 352 */ "#352 (unimplemented)",
436 /* 353 */ "#353 (unimplemented)",
437 /* 354 */ "fsync_range",
439 /* 356 */ "getvfsstat",
440 /* 357 */ "statvfs1",
441 /* 358 */ "fstatvfs1",
442 /* 359 */ "compat_30_fhstatvfs1",
443 /* 360 */ "extattrctl",
444 /* 361 */ "extattr_set_file",
445 /* 362 */ "extattr_get_file",
446 /* 363 */ "extattr_delete_file",
447 /* 364 */ "extattr_set_fd",
448 /* 365 */ "extattr_get_fd",
449 /* 366 */ "extattr_delete_fd",
450 /* 367 */ "extattr_set_link",
451 /* 368 */ "extattr_get_link",
452 /* 369 */ "extattr_delete_link",
453 /* 370 */ "extattr_list_fd",
454 /* 371 */ "extattr_list_file",
455 /* 372 */ "extattr_list_link",
456 /* 373 */ "compat_50_pselect",
457 /* 374 */ "compat_50_pollts",
458 /* 375 */ "setxattr",
459 /* 376 */ "lsetxattr",
460 /* 377 */ "fsetxattr",
461 /* 378 */ "getxattr",
462 /* 379 */ "lgetxattr",
463 /* 380 */ "fgetxattr",
464 /* 381 */ "listxattr",
465 /* 382 */ "llistxattr",
466 /* 383 */ "flistxattr",
467 /* 384 */ "removexattr",
468 /* 385 */ "lremovexattr",
469 /* 386 */ "fremovexattr",
470 /* 387 */ "compat_50___stat30",
471 /* 388 */ "compat_50___fstat30",
472 /* 389 */ "compat_50___lstat30",
473 /* 390 */ "__getdents30",
474 /* 391 */ "#391 (ignored old posix_fadvise)",
475 /* 392 */ "compat_30___fhstat30",
476 /* 393 */ "compat_50___ntp_gettime30",
477 /* 394 */ "__socket30",
478 /* 395 */ "__getfh30",
479 /* 396 */ "__fhopen40",
480 /* 397 */ "__fhstatvfs140",
481 /* 398 */ "compat_50___fhstat40",
482 /* 399 */ "aio_cancel",
483 /* 400 */ "aio_error",
484 /* 401 */ "aio_fsync",
485 /* 402 */ "aio_read",
486 /* 403 */ "aio_return",
487 /* 404 */ "compat_50_aio_suspend",
488 /* 405 */ "aio_write",
489 /* 406 */ "lio_listio",
490 /* 407 */ "#407 (unimplemented)",
491 /* 408 */ "#408 (unimplemented)",
492 /* 409 */ "#409 (unimplemented)",
493 /* 410 */ "__mount50",
495 /* 412 */ "pset_create",
496 /* 413 */ "pset_destroy",
497 /* 414 */ "pset_assign",
498 /* 415 */ "_pset_bind",
499 /* 416 */ "__posix_fadvise50",
500 /* 417 */ "__select50",
501 /* 418 */ "__gettimeofday50",
502 /* 419 */ "__settimeofday50",
503 /* 420 */ "__utimes50",
504 /* 421 */ "__adjtime50",
505 #if defined(LFS) || !defined(_KERNEL)
506 /* 422 */ "__lfs_segwait50",
508 /* 422 */ "#422 (excluded __lfs_segwait50)",
510 /* 423 */ "__futimes50",
511 /* 424 */ "__lutimes50",
512 /* 425 */ "__setitimer50",
513 /* 426 */ "__getitimer50",
514 /* 427 */ "__clock_gettime50",
515 /* 428 */ "__clock_settime50",
516 /* 429 */ "__clock_getres50",
517 /* 430 */ "__nanosleep50",
518 /* 431 */ "____sigtimedwait50",
519 /* 432 */ "__mq_timedsend50",
520 /* 433 */ "__mq_timedreceive50",
521 /* 434 */ "___lwp_park50",
522 /* 435 */ "__kevent50",
523 /* 436 */ "__pselect50",
524 /* 437 */ "__pollts50",
525 /* 438 */ "__aio_suspend50",
526 /* 439 */ "__stat50",
527 /* 440 */ "__fstat50",
528 /* 441 */ "__lstat50",
529 #if defined(SYSVSEM) || !defined(_KERNEL_OPT)
530 /* 442 */ "____semctl50",
532 /* 442 */ "#442 (excluded ____semctl50)",
534 #if defined(SYSVSHM) || !defined(_KERNEL_OPT)
535 /* 443 */ "__shmctl50",
537 /* 443 */ "#443 (excluded ____shmctl50)",
539 #if defined(SYSVMSG) || !defined(_KERNEL_OPT)
540 /* 444 */ "__msgctl50",
542 /* 444 */ "#444 (excluded ____msgctl50)",
544 /* 445 */ "__getrusage50",
545 /* 446 */ "__timer_settime50",
546 /* 447 */ "__timer_gettime50",
547 #if defined(NTP) || !defined(_KERNEL_OPT)
548 /* 448 */ "__ntp_gettime50",
550 /* 448 */ "#448 (excluded ___ntp_gettime50)",
552 /* 449 */ "__wait450",
553 /* 450 */ "__mknod50",
554 /* 451 */ "__fhstat50",