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