1 /* $OpenBSD: syscalls.c,v 1.104 2008/03/16 19:43:41 otto Exp $ */ 2 3 /* 4 * System call names. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from; OpenBSD: syscalls.master,v 1.90 2008/03/16 19:42:57 otto Exp 8 */ 9 10 char *syscallnames[] = { 11 "syscall", /* 0 = syscall */ 12 "exit", /* 1 = exit */ 13 "fork", /* 2 = fork */ 14 "read", /* 3 = read */ 15 "write", /* 4 = write */ 16 "open", /* 5 = open */ 17 "close", /* 6 = close */ 18 "wait4", /* 7 = wait4 */ 19 "compat_43_ocreat", /* 8 = compat_43 ocreat */ 20 "link", /* 9 = link */ 21 "unlink", /* 10 = unlink */ 22 "#11 (obsolete execv)", /* 11 = obsolete execv */ 23 "chdir", /* 12 = chdir */ 24 "fchdir", /* 13 = fchdir */ 25 "mknod", /* 14 = mknod */ 26 "chmod", /* 15 = chmod */ 27 "chown", /* 16 = chown */ 28 "break", /* 17 = break */ 29 "compat_25_ogetfsstat", /* 18 = compat_25 ogetfsstat */ 30 "compat_43_olseek", /* 19 = compat_43 olseek */ 31 "getpid", /* 20 = getpid */ 32 "mount", /* 21 = mount */ 33 "unmount", /* 22 = unmount */ 34 "setuid", /* 23 = setuid */ 35 "getuid", /* 24 = getuid */ 36 "geteuid", /* 25 = geteuid */ 37 #ifdef PTRACE 38 "ptrace", /* 26 = ptrace */ 39 #else 40 "#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */ 41 #endif 42 "recvmsg", /* 27 = recvmsg */ 43 "sendmsg", /* 28 = sendmsg */ 44 "recvfrom", /* 29 = recvfrom */ 45 "accept", /* 30 = accept */ 46 "getpeername", /* 31 = getpeername */ 47 "getsockname", /* 32 = getsockname */ 48 "access", /* 33 = access */ 49 "chflags", /* 34 = chflags */ 50 "fchflags", /* 35 = fchflags */ 51 "sync", /* 36 = sync */ 52 "kill", /* 37 = kill */ 53 "compat_43_stat43", /* 38 = compat_43 stat43 */ 54 "getppid", /* 39 = getppid */ 55 "compat_43_lstat43", /* 40 = compat_43 lstat43 */ 56 "dup", /* 41 = dup */ 57 "opipe", /* 42 = opipe */ 58 "getegid", /* 43 = getegid */ 59 "profil", /* 44 = profil */ 60 #ifdef KTRACE 61 "ktrace", /* 45 = ktrace */ 62 #else 63 "#45 (unimplemented ktrace)", /* 45 = unimplemented ktrace */ 64 #endif 65 "sigaction", /* 46 = sigaction */ 66 "getgid", /* 47 = getgid */ 67 "sigprocmask", /* 48 = sigprocmask */ 68 "getlogin", /* 49 = getlogin */ 69 "setlogin", /* 50 = setlogin */ 70 #ifdef ACCOUNTING 71 "acct", /* 51 = acct */ 72 #else 73 "#51 (unimplemented acct)", /* 51 = unimplemented acct */ 74 #endif 75 "sigpending", /* 52 = sigpending */ 76 "osigaltstack", /* 53 = osigaltstack */ 77 "ioctl", /* 54 = ioctl */ 78 "reboot", /* 55 = reboot */ 79 "revoke", /* 56 = revoke */ 80 "symlink", /* 57 = symlink */ 81 "readlink", /* 58 = readlink */ 82 "execve", /* 59 = execve */ 83 "umask", /* 60 = umask */ 84 "chroot", /* 61 = chroot */ 85 "compat_43_fstat43", /* 62 = compat_43 fstat43 */ 86 "compat_43_ogetkerninfo", /* 63 = compat_43 ogetkerninfo */ 87 "compat_43_ogetpagesize", /* 64 = compat_43 ogetpagesize */ 88 "compat_25_omsync", /* 65 = compat_25 omsync */ 89 "vfork", /* 66 = vfork */ 90 "#67 (obsolete vread)", /* 67 = obsolete vread */ 91 "#68 (obsolete vwrite)", /* 68 = obsolete vwrite */ 92 "sbrk", /* 69 = sbrk */ 93 "sstk", /* 70 = sstk */ 94 "compat_43_ommap", /* 71 = compat_43 ommap */ 95 "#72 (obsolete vadvise)", /* 72 = obsolete vadvise */ 96 "munmap", /* 73 = munmap */ 97 "mprotect", /* 74 = mprotect */ 98 "madvise", /* 75 = madvise */ 99 "#76 (obsolete vhangup)", /* 76 = obsolete vhangup */ 100 "#77 (obsolete vlimit)", /* 77 = obsolete vlimit */ 101 "mincore", /* 78 = mincore */ 102 "getgroups", /* 79 = getgroups */ 103 "setgroups", /* 80 = setgroups */ 104 "getpgrp", /* 81 = getpgrp */ 105 "setpgid", /* 82 = setpgid */ 106 "setitimer", /* 83 = setitimer */ 107 "compat_43_owait", /* 84 = compat_43 owait */ 108 "compat_25_swapon", /* 85 = compat_25 swapon */ 109 "getitimer", /* 86 = getitimer */ 110 "compat_43_ogethostname", /* 87 = compat_43 ogethostname */ 111 "compat_43_osethostname", /* 88 = compat_43 osethostname */ 112 "compat_43_ogetdtablesize", /* 89 = compat_43 ogetdtablesize */ 113 "dup2", /* 90 = dup2 */ 114 "#91 (unimplemented getdopt)", /* 91 = unimplemented getdopt */ 115 "fcntl", /* 92 = fcntl */ 116 "select", /* 93 = select */ 117 "#94 (unimplemented setdopt)", /* 94 = unimplemented setdopt */ 118 "fsync", /* 95 = fsync */ 119 "setpriority", /* 96 = setpriority */ 120 "socket", /* 97 = socket */ 121 "connect", /* 98 = connect */ 122 "compat_43_oaccept", /* 99 = compat_43 oaccept */ 123 "getpriority", /* 100 = getpriority */ 124 "compat_43_osend", /* 101 = compat_43 osend */ 125 "compat_43_orecv", /* 102 = compat_43 orecv */ 126 "sigreturn", /* 103 = sigreturn */ 127 "bind", /* 104 = bind */ 128 "setsockopt", /* 105 = setsockopt */ 129 "listen", /* 106 = listen */ 130 "#107 (obsolete vtimes)", /* 107 = obsolete vtimes */ 131 "compat_43_osigvec", /* 108 = compat_43 osigvec */ 132 "compat_43_osigblock", /* 109 = compat_43 osigblock */ 133 "compat_43_osigsetmask", /* 110 = compat_43 osigsetmask */ 134 "sigsuspend", /* 111 = sigsuspend */ 135 "compat_43_osigstack", /* 112 = compat_43 osigstack */ 136 "compat_43_orecvmsg", /* 113 = compat_43 orecvmsg */ 137 "compat_43_osendmsg", /* 114 = compat_43 osendmsg */ 138 "#115 (obsolete vtrace)", /* 115 = obsolete vtrace */ 139 "gettimeofday", /* 116 = gettimeofday */ 140 "getrusage", /* 117 = getrusage */ 141 "getsockopt", /* 118 = getsockopt */ 142 "#119 (obsolete resuba)", /* 119 = obsolete resuba */ 143 "readv", /* 120 = readv */ 144 "writev", /* 121 = writev */ 145 "settimeofday", /* 122 = settimeofday */ 146 "fchown", /* 123 = fchown */ 147 "fchmod", /* 124 = fchmod */ 148 "compat_43_orecvfrom", /* 125 = compat_43 orecvfrom */ 149 "setreuid", /* 126 = setreuid */ 150 "setregid", /* 127 = setregid */ 151 "rename", /* 128 = rename */ 152 "compat_43_otruncate", /* 129 = compat_43 otruncate */ 153 "compat_43_oftruncate", /* 130 = compat_43 oftruncate */ 154 "flock", /* 131 = flock */ 155 "mkfifo", /* 132 = mkfifo */ 156 "sendto", /* 133 = sendto */ 157 "shutdown", /* 134 = shutdown */ 158 "socketpair", /* 135 = socketpair */ 159 "mkdir", /* 136 = mkdir */ 160 "rmdir", /* 137 = rmdir */ 161 "utimes", /* 138 = utimes */ 162 "#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */ 163 "adjtime", /* 140 = adjtime */ 164 "compat_43_ogetpeername", /* 141 = compat_43 ogetpeername */ 165 "compat_43_ogethostid", /* 142 = compat_43 ogethostid */ 166 "compat_43_osethostid", /* 143 = compat_43 osethostid */ 167 "compat_43_ogetrlimit", /* 144 = compat_43 ogetrlimit */ 168 "compat_43_osetrlimit", /* 145 = compat_43 osetrlimit */ 169 "compat_43_okillpg", /* 146 = compat_43 okillpg */ 170 "setsid", /* 147 = setsid */ 171 "quotactl", /* 148 = quotactl */ 172 "compat_43_oquota", /* 149 = compat_43 oquota */ 173 "compat_43_ogetsockname", /* 150 = compat_43 ogetsockname */ 174 "#151 (unimplemented)", /* 151 = unimplemented */ 175 "#152 (unimplemented)", /* 152 = unimplemented */ 176 "#153 (unimplemented)", /* 153 = unimplemented */ 177 "#154 (unimplemented)", /* 154 = unimplemented */ 178 #if defined(NFSCLIENT) || defined(NFSSERVER) 179 "nfssvc", /* 155 = nfssvc */ 180 #else 181 "#155 (unimplemented)", /* 155 = unimplemented */ 182 #endif 183 "compat_43_ogetdirentries", /* 156 = compat_43 ogetdirentries */ 184 "compat_25_ostatfs", /* 157 = compat_25 ostatfs */ 185 "compat_25_ostatfs", /* 158 = compat_25 ostatfs */ 186 "#159 (unimplemented)", /* 159 = unimplemented */ 187 "#160 (unimplemented)", /* 160 = unimplemented */ 188 "getfh", /* 161 = getfh */ 189 "compat_09_ogetdomainname", /* 162 = compat_09 ogetdomainname */ 190 "compat_09_osetdomainname", /* 163 = compat_09 osetdomainname */ 191 "#164 (unimplemented ouname)", /* 164 = unimplemented ouname */ 192 "sysarch", /* 165 = sysarch */ 193 "#166 (unimplemented)", /* 166 = unimplemented */ 194 "#167 (unimplemented)", /* 167 = unimplemented */ 195 "#168 (unimplemented)", /* 168 = unimplemented */ 196 #if defined(SYSVSEM) && !defined(__LP64__) 197 "compat_10_osemsys", /* 169 = compat_10 osemsys */ 198 #else 199 "#169 (unimplemented 1.0 semsys)", /* 169 = unimplemented 1.0 semsys */ 200 #endif 201 #if defined(SYSVMSG) && !defined(__LP64__) 202 "compat_10_omsgsys", /* 170 = compat_10 omsgsys */ 203 #else 204 "#170 (unimplemented 1.0 msgsys)", /* 170 = unimplemented 1.0 msgsys */ 205 #endif 206 #if defined(SYSVSHM) && !defined(__LP64__) 207 "compat_10_oshmsys", /* 171 = compat_10 oshmsys */ 208 #else 209 "#171 (unimplemented 1.0 shmsys)", /* 171 = unimplemented 1.0 shmsys */ 210 #endif 211 "#172 (unimplemented)", /* 172 = unimplemented */ 212 "pread", /* 173 = pread */ 213 "pwrite", /* 174 = pwrite */ 214 "#175 (unimplemented ntp_gettime)", /* 175 = unimplemented ntp_gettime */ 215 "#176 (unimplemented ntp_adjtime)", /* 176 = unimplemented ntp_adjtime */ 216 "#177 (unimplemented)", /* 177 = unimplemented */ 217 "#178 (unimplemented)", /* 178 = unimplemented */ 218 "#179 (unimplemented)", /* 179 = unimplemented */ 219 "#180 (unimplemented)", /* 180 = unimplemented */ 220 "setgid", /* 181 = setgid */ 221 "setegid", /* 182 = setegid */ 222 "seteuid", /* 183 = seteuid */ 223 #ifdef LFS 224 "lfs_bmapv", /* 184 = lfs_bmapv */ 225 "lfs_markv", /* 185 = lfs_markv */ 226 "lfs_segclean", /* 186 = lfs_segclean */ 227 "lfs_segwait", /* 187 = lfs_segwait */ 228 #else 229 "#184 (unimplemented)", /* 184 = unimplemented */ 230 "#185 (unimplemented)", /* 185 = unimplemented */ 231 "#186 (unimplemented)", /* 186 = unimplemented */ 232 "#187 (unimplemented)", /* 187 = unimplemented */ 233 #endif 234 "compat_35_stat35", /* 188 = compat_35 stat35 */ 235 "compat_35_fstat35", /* 189 = compat_35 fstat35 */ 236 "compat_35_lstat35", /* 190 = compat_35 lstat35 */ 237 "pathconf", /* 191 = pathconf */ 238 "fpathconf", /* 192 = fpathconf */ 239 "swapctl", /* 193 = swapctl */ 240 "getrlimit", /* 194 = getrlimit */ 241 "setrlimit", /* 195 = setrlimit */ 242 "getdirentries", /* 196 = getdirentries */ 243 "mmap", /* 197 = mmap */ 244 "__syscall", /* 198 = __syscall */ 245 "lseek", /* 199 = lseek */ 246 "truncate", /* 200 = truncate */ 247 "ftruncate", /* 201 = ftruncate */ 248 "__sysctl", /* 202 = __sysctl */ 249 "mlock", /* 203 = mlock */ 250 "munlock", /* 204 = munlock */ 251 "#205 (unimplemented sys_undelete)", /* 205 = unimplemented sys_undelete */ 252 "futimes", /* 206 = futimes */ 253 "getpgid", /* 207 = getpgid */ 254 "xfspioctl", /* 208 = xfspioctl */ 255 "#209 (unimplemented)", /* 209 = unimplemented */ 256 #ifdef LKM 257 "lkmnosys", /* 210 = lkmnosys */ 258 "lkmnosys", /* 211 = lkmnosys */ 259 "lkmnosys", /* 212 = lkmnosys */ 260 "lkmnosys", /* 213 = lkmnosys */ 261 "lkmnosys", /* 214 = lkmnosys */ 262 "lkmnosys", /* 215 = lkmnosys */ 263 "lkmnosys", /* 216 = lkmnosys */ 264 "lkmnosys", /* 217 = lkmnosys */ 265 "lkmnosys", /* 218 = lkmnosys */ 266 "lkmnosys", /* 219 = lkmnosys */ 267 #else /* !LKM */ 268 "#210 (unimplemented)", /* 210 = unimplemented */ 269 "#211 (unimplemented)", /* 211 = unimplemented */ 270 "#212 (unimplemented)", /* 212 = unimplemented */ 271 "#213 (unimplemented)", /* 213 = unimplemented */ 272 "#214 (unimplemented)", /* 214 = unimplemented */ 273 "#215 (unimplemented)", /* 215 = unimplemented */ 274 "#216 (unimplemented)", /* 216 = unimplemented */ 275 "#217 (unimplemented)", /* 217 = unimplemented */ 276 "#218 (unimplemented)", /* 218 = unimplemented */ 277 "#219 (unimplemented)", /* 219 = unimplemented */ 278 #endif /* !LKM */ 279 #ifdef SYSVSEM 280 "compat_23_semctl23", /* 220 = compat_23 semctl23 */ 281 "semget", /* 221 = semget */ 282 "compat_35_semop", /* 222 = compat_35 semop */ 283 "#223 (obsolete sys_semconfig)", /* 223 = obsolete sys_semconfig */ 284 #else 285 "#220 (unimplemented semctl)", /* 220 = unimplemented semctl */ 286 "#221 (unimplemented semget)", /* 221 = unimplemented semget */ 287 "#222 (unimplemented semop)", /* 222 = unimplemented semop */ 288 "#223 (unimplemented semconfig)", /* 223 = unimplemented semconfig */ 289 #endif 290 #ifdef SYSVMSG 291 "compat_23_msgctl23", /* 224 = compat_23 msgctl23 */ 292 "msgget", /* 225 = msgget */ 293 "msgsnd", /* 226 = msgsnd */ 294 "msgrcv", /* 227 = msgrcv */ 295 #else 296 "#224 (unimplemented msgctl)", /* 224 = unimplemented msgctl */ 297 "#225 (unimplemented msgget)", /* 225 = unimplemented msgget */ 298 "#226 (unimplemented msgsnd)", /* 226 = unimplemented msgsnd */ 299 "#227 (unimplemented msgrcv)", /* 227 = unimplemented msgrcv */ 300 #endif 301 #ifdef SYSVSHM 302 "shmat", /* 228 = shmat */ 303 "compat_23_shmctl23", /* 229 = compat_23 shmctl23 */ 304 "shmdt", /* 230 = shmdt */ 305 "compat_35_shmget", /* 231 = compat_35 shmget */ 306 #else 307 "#228 (unimplemented shmat)", /* 228 = unimplemented shmat */ 308 "#229 (unimplemented shmctl)", /* 229 = unimplemented shmctl */ 309 "#230 (unimplemented shmdt)", /* 230 = unimplemented shmdt */ 310 "#231 (unimplemented shmget)", /* 231 = unimplemented shmget */ 311 #endif 312 "clock_gettime", /* 232 = clock_gettime */ 313 "clock_settime", /* 233 = clock_settime */ 314 "clock_getres", /* 234 = clock_getres */ 315 "#235 (unimplemented timer_create)", /* 235 = unimplemented timer_create */ 316 "#236 (unimplemented timer_delete)", /* 236 = unimplemented timer_delete */ 317 "#237 (unimplemented timer_settime)", /* 237 = unimplemented timer_settime */ 318 "#238 (unimplemented timer_gettime)", /* 238 = unimplemented timer_gettime */ 319 "#239 (unimplemented timer_getoverrun)", /* 239 = unimplemented timer_getoverrun */ 320 "nanosleep", /* 240 = nanosleep */ 321 "#241 (unimplemented)", /* 241 = unimplemented */ 322 "#242 (unimplemented)", /* 242 = unimplemented */ 323 "#243 (unimplemented)", /* 243 = unimplemented */ 324 "#244 (unimplemented)", /* 244 = unimplemented */ 325 "#245 (unimplemented)", /* 245 = unimplemented */ 326 "#246 (unimplemented)", /* 246 = unimplemented */ 327 "#247 (unimplemented)", /* 247 = unimplemented */ 328 "#248 (unimplemented)", /* 248 = unimplemented */ 329 "#249 (unimplemented)", /* 249 = unimplemented */ 330 "minherit", /* 250 = minherit */ 331 "rfork", /* 251 = rfork */ 332 "poll", /* 252 = poll */ 333 "issetugid", /* 253 = issetugid */ 334 "lchown", /* 254 = lchown */ 335 "getsid", /* 255 = getsid */ 336 "msync", /* 256 = msync */ 337 #ifdef SYSVSEM 338 "compat_35_semctl35", /* 257 = compat_35 semctl35 */ 339 #else 340 "#257 (unimplemented)", /* 257 = unimplemented */ 341 #endif 342 #ifdef SYSVSHM 343 "compat_35_shmctl35", /* 258 = compat_35 shmctl35 */ 344 #else 345 "#258 (unimplemented)", /* 258 = unimplemented */ 346 #endif 347 #ifdef SYSVMSG 348 "compat_35_msgctl35", /* 259 = compat_35 msgctl35 */ 349 #else 350 "#259 (unimplemented)", /* 259 = unimplemented */ 351 #endif 352 "compat_o43_getfsstat", /* 260 = compat_o43 getfsstat */ 353 "compat_o43_statfs", /* 261 = compat_o43 statfs */ 354 "compat_o43_fstatfs", /* 262 = compat_o43 fstatfs */ 355 "pipe", /* 263 = pipe */ 356 "fhopen", /* 264 = fhopen */ 357 "compat_35_fhstat", /* 265 = compat_35 fhstat */ 358 "compat_o43_fhstatfs", /* 266 = compat_o43 fhstatfs */ 359 "preadv", /* 267 = preadv */ 360 "pwritev", /* 268 = pwritev */ 361 "kqueue", /* 269 = kqueue */ 362 "kevent", /* 270 = kevent */ 363 "mlockall", /* 271 = mlockall */ 364 "munlockall", /* 272 = munlockall */ 365 "getpeereid", /* 273 = getpeereid */ 366 "#274 (unimplemented sys_extattrctl)", /* 274 = unimplemented sys_extattrctl */ 367 "#275 (unimplemented sys_extattr_set_file)", /* 275 = unimplemented sys_extattr_set_file */ 368 "#276 (unimplemented sys_extattr_get_file)", /* 276 = unimplemented sys_extattr_get_file */ 369 "#277 (unimplemented sys_extattr_delete_file)", /* 277 = unimplemented sys_extattr_delete_file */ 370 "#278 (unimplemented sys_extattr_set_fd)", /* 278 = unimplemented sys_extattr_set_fd */ 371 "#279 (unimplemented sys_extattr_get_fd)", /* 279 = unimplemented sys_extattr_get_fd */ 372 "#280 (unimplemented sys_extattr_delete_fd)", /* 280 = unimplemented sys_extattr_delete_fd */ 373 "getresuid", /* 281 = getresuid */ 374 "setresuid", /* 282 = setresuid */ 375 "getresgid", /* 283 = getresgid */ 376 "setresgid", /* 284 = setresgid */ 377 "#285 (obsolete sys_omquery)", /* 285 = obsolete sys_omquery */ 378 "mquery", /* 286 = mquery */ 379 "closefrom", /* 287 = closefrom */ 380 "sigaltstack", /* 288 = sigaltstack */ 381 #ifdef SYSVSHM 382 "shmget", /* 289 = shmget */ 383 #else 384 "#289 (unimplemented shmget)", /* 289 = unimplemented shmget */ 385 #endif 386 #ifdef SYSVSEM 387 "semop", /* 290 = semop */ 388 #else 389 "#290 (unimplemented semop)", /* 290 = unimplemented semop */ 390 #endif 391 "stat", /* 291 = stat */ 392 "fstat", /* 292 = fstat */ 393 "lstat", /* 293 = lstat */ 394 "fhstat", /* 294 = fhstat */ 395 #ifdef SYSVSEM 396 "__semctl", /* 295 = __semctl */ 397 #else 398 "#295 (unimplemented)", /* 295 = unimplemented */ 399 #endif 400 #ifdef SYSVSHM 401 "shmctl", /* 296 = shmctl */ 402 #else 403 "#296 (unimplemented)", /* 296 = unimplemented */ 404 #endif 405 #ifdef SYSVMSG 406 "msgctl", /* 297 = msgctl */ 407 #else 408 "#297 (unimplemented)", /* 297 = unimplemented */ 409 #endif 410 "sched_yield", /* 298 = sched_yield */ 411 #ifdef RTHREADS 412 "getthrid", /* 299 = getthrid */ 413 "thrsleep", /* 300 = thrsleep */ 414 "thrwakeup", /* 301 = thrwakeup */ 415 "threxit", /* 302 = threxit */ 416 "thrsigdivert", /* 303 = thrsigdivert */ 417 #else 418 "#299 (unimplemented)", /* 299 = unimplemented */ 419 "#300 (unimplemented)", /* 300 = unimplemented */ 420 "#301 (unimplemented)", /* 301 = unimplemented */ 421 "#302 (unimplemented)", /* 302 = unimplemented */ 422 "#303 (unimplemented)", /* 303 = unimplemented */ 423 #endif 424 "__getcwd", /* 304 = __getcwd */ 425 "adjfreq", /* 305 = adjfreq */ 426 "getfsstat", /* 306 = getfsstat */ 427 "statfs", /* 307 = statfs */ 428 "fstatfs", /* 308 = fstatfs */ 429 "fhstatfs", /* 309 = fhstatfs */ 430 }; 431