/* * Copyright (c) 2004-2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. The rights granted to you under the License * may not be used to create, or enable the creation or redistribution of, * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ * * * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * created from syscalls.master */ const char *syscallnames[] = { "syscall", /* 0 = syscall indirect syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ "read", /* 3 = read */ "write", /* 4 = write */ "open", /* 5 = open */ "close", /* 6 = close */ "wait4", /* 7 = wait4 */ "#8", /* 8 = old creat */ "link", /* 9 = link */ "unlink", /* 10 = unlink */ "#11", /* 11 = old execv */ "chdir", /* 12 = chdir */ "fchdir", /* 13 = fchdir */ "mknod", /* 14 = mknod */ "chmod", /* 15 = chmod */ "chown", /* 16 = chown */ "obreak", /* 17 = obreak old break */ #if COMPAT_GETFSSTAT "ogetfsstat", /* 18 = ogetfsstat */ #else "getfsstat", /* 18 = getfsstat */ #endif "#19", /* 19 = old lseek */ "getpid", /* 20 = getpid */ "#21", /* 21 = old mount */ "#22", /* 22 = old umount */ "setuid", /* 23 = setuid */ "getuid", /* 24 = getuid */ "geteuid", /* 25 = geteuid */ "ptrace", /* 26 = ptrace */ #if SOCKETS "recvmsg", /* 27 = recvmsg */ "sendmsg", /* 28 = sendmsg */ "recvfrom", /* 29 = recvfrom */ "accept", /* 30 = accept */ "getpeername", /* 31 = getpeername */ "getsockname", /* 32 = getsockname */ #else "#27", /* 27 = */ "#28", /* 28 = */ "#29", /* 29 = */ "#30", /* 30 = */ "#31", /* 31 = */ "#32", /* 32 = */ #endif /* SOCKETS */ "access", /* 33 = access */ "chflags", /* 34 = chflags */ "fchflags", /* 35 = fchflags */ "sync", /* 36 = sync */ "kill", /* 37 = kill */ "#38", /* 38 = old stat */ "getppid", /* 39 = getppid */ "#40", /* 40 = old lstat */ "dup", /* 41 = dup */ "pipe", /* 42 = pipe */ "getegid", /* 43 = getegid */ "profil", /* 44 = profil */ "#45", /* 45 = old ktrace */ "sigaction", /* 46 = sigaction */ "getgid", /* 47 = getgid */ "sigprocmask", /* 48 = sigprocmask */ "getlogin", /* 49 = getlogin */ "setlogin", /* 50 = setlogin */ "acct", /* 51 = acct */ "sigpending", /* 52 = sigpending */ "sigaltstack", /* 53 = sigaltstack */ "ioctl", /* 54 = ioctl */ "reboot", /* 55 = reboot */ "revoke", /* 56 = revoke */ "symlink", /* 57 = symlink */ "readlink", /* 58 = readlink */ "execve", /* 59 = execve */ "umask", /* 60 = umask */ "chroot", /* 61 = chroot */ "#62", /* 62 = old fstat */ "#63", /* 63 = used internally , reserved */ "#64", /* 64 = old getpagesize */ "msync", /* 65 = msync */ "vfork", /* 66 = vfork */ "#67", /* 67 = old vread */ "#68", /* 68 = old vwrite */ "sbrk", /* 69 = sbrk */ "sstk", /* 70 = sstk */ "#71", /* 71 = old mmap */ "ovadvise", /* 72 = ovadvise old vadvise */ "munmap", /* 73 = munmap */ "mprotect", /* 74 = mprotect */ "madvise", /* 75 = madvise */ "#76", /* 76 = old vhangup */ "#77", /* 77 = old vlimit */ "mincore", /* 78 = mincore */ "getgroups", /* 79 = getgroups */ "setgroups", /* 80 = setgroups */ "getpgrp", /* 81 = getpgrp */ "setpgid", /* 82 = setpgid */ "setitimer", /* 83 = setitimer */ "#84", /* 84 = old wait */ "swapon", /* 85 = swapon */ "getitimer", /* 86 = getitimer */ "#87", /* 87 = old gethostname */ "#88", /* 88 = old sethostname */ "getdtablesize", /* 89 = getdtablesize */ "dup2", /* 90 = dup2 */ "#91", /* 91 = old getdopt */ "fcntl", /* 92 = fcntl */ "select", /* 93 = select */ "#94", /* 94 = old setdopt */ "fsync", /* 95 = fsync */ "setpriority", /* 96 = setpriority */ #if SOCKETS "socket", /* 97 = socket */ "connect", /* 98 = connect */ #else "#97", /* 97 = */ "#98", /* 98 = */ #endif /* SOCKETS */ "#99", /* 99 = old accept */ "getpriority", /* 100 = getpriority */ "#101", /* 101 = old send */ "#102", /* 102 = old recv */ "#103", /* 103 = old sigreturn */ #if SOCKETS "bind", /* 104 = bind */ "setsockopt", /* 105 = setsockopt */ "listen", /* 106 = listen */ #else "#104", /* 104 = */ "#105", /* 105 = */ "#106", /* 106 = */ #endif /* SOCKETS */ "#107", /* 107 = old vtimes */ "#108", /* 108 = old sigvec */ "#109", /* 109 = old sigblock */ "#110", /* 110 = old sigsetmask */ "sigsuspend", /* 111 = sigsuspend */ "#112", /* 112 = old sigstack */ #if SOCKETS "#113", /* 113 = old recvmsg */ "#114", /* 114 = old sendmsg */ #else "#113", /* 113 = */ "#114", /* 114 = */ #endif /* SOCKETS */ "#115", /* 115 = old vtrace */ "gettimeofday", /* 116 = gettimeofday */ "getrusage", /* 117 = getrusage */ #if SOCKETS "getsockopt", /* 118 = getsockopt */ #else "#118", /* 118 = */ #endif /* SOCKETS */ "#119", /* 119 = old resuba */ "readv", /* 120 = readv */ "writev", /* 121 = writev */ "settimeofday", /* 122 = settimeofday */ "fchown", /* 123 = fchown */ "fchmod", /* 124 = fchmod */ "#125", /* 125 = old recvfrom */ "setreuid", /* 126 = setreuid */ "setregid", /* 127 = setregid */ "rename", /* 128 = rename */ "#129", /* 129 = old truncate */ "#130", /* 130 = old ftruncate */ "flock", /* 131 = flock */ "mkfifo", /* 132 = mkfifo */ #if SOCKETS "sendto", /* 133 = sendto */ "shutdown", /* 134 = shutdown */ "socketpair", /* 135 = socketpair */ #else "#133", /* 133 = */ "#134", /* 134 = */ "#135", /* 135 = */ #endif /* SOCKETS */ "mkdir", /* 136 = mkdir */ "rmdir", /* 137 = rmdir */ "utimes", /* 138 = utimes */ "futimes", /* 139 = futimes */ "adjtime", /* 140 = adjtime */ "#141", /* 141 = old getpeername */ "gethostuuid", /* 142 = gethostuuid */ "#143", /* 143 = old sethostid */ "#144", /* 144 = old getrlimit */ "#145", /* 145 = old setrlimit */ "#146", /* 146 = old killpg */ "setsid", /* 147 = setsid */ "#148", /* 148 = old setquota */ "#149", /* 149 = old qquota */ "#150", /* 150 = old getsockname */ "getpgid", /* 151 = getpgid */ "setprivexec", /* 152 = setprivexec */ "pread", /* 153 = pread */ "pwrite", /* 154 = pwrite */ #if NFSSERVER "nfssvc", /* 155 = nfssvc */ #else "#155", /* 155 = */ #endif "#156", /* 156 = old getdirentries */ "statfs", /* 157 = statfs */ "fstatfs", /* 158 = fstatfs */ "unmount", /* 159 = unmount */ "#160", /* 160 = old async_daemon */ #if NFSSERVER "getfh", /* 161 = getfh */ #else "#161", /* 161 = */ #endif "#162", /* 162 = old getdomainname */ "#163", /* 163 = old setdomainname */ "#164", /* 164 = */ "quotactl", /* 165 = quotactl */ "#166", /* 166 = old exportfs */ "mount", /* 167 = mount */ "#168", /* 168 = old ustat */ "csops", /* 169 = csops */ "table", /* 170 = table old table */ "#171", /* 171 = old wait3 */ "#172", /* 172 = old rpause */ "waitid", /* 173 = waitid */ "#174", /* 174 = old getdents */ "#175", /* 175 = old gc_control */ "add_profil", /* 176 = add_profil */ "#177", /* 177 = */ "#178", /* 178 = */ "#179", /* 179 = */ "kdebug_trace", /* 180 = kdebug_trace */ "setgid", /* 181 = setgid */ "setegid", /* 182 = setegid */ "seteuid", /* 183 = seteuid */ "sigreturn", /* 184 = sigreturn */ "chud", /* 185 = chud */ "#186", /* 186 = */ "#187", /* 187 = */ "stat", /* 188 = stat */ "fstat", /* 189 = fstat */ "lstat", /* 190 = lstat */ "pathconf", /* 191 = pathconf */ "fpathconf", /* 192 = fpathconf */ "#193", /* 193 = */ "getrlimit", /* 194 = getrlimit */ "setrlimit", /* 195 = setrlimit */ "getdirentries", /* 196 = getdirentries */ "mmap", /* 197 = mmap */ "#198", /* 198 = __syscall */ "lseek", /* 199 = lseek */ "truncate", /* 200 = truncate */ "ftruncate", /* 201 = ftruncate */ "__sysctl", /* 202 = __sysctl */ "mlock", /* 203 = mlock */ "munlock", /* 204 = munlock */ "undelete", /* 205 = undelete */ #if NETAT "ATsocket", /* 206 = ATsocket */ "ATgetmsg", /* 207 = ATgetmsg */ "ATputmsg", /* 208 = ATputmsg */ "ATPsndreq", /* 209 = ATPsndreq */ "ATPsndrsp", /* 210 = ATPsndrsp */ "ATPgetreq", /* 211 = ATPgetreq */ "ATPgetrsp", /* 212 = ATPgetrsp */ "#213", /* 213 = Reserved for AppleTalk */ #else "#206", /* 206 = */ "#207", /* 207 = */ "#208", /* 208 = */ "#209", /* 209 = */ "#210", /* 210 = */ "#211", /* 211 = */ "#212", /* 212 = */ "#213", /* 213 = Reserved for AppleTalk */ #endif /* NETAT */ "kqueue_from_portset_np", /* 214 = kqueue_from_portset_np */ "kqueue_portset_np", /* 215 = kqueue_portset_np */ "mkcomplex", /* 216 = mkcomplex soon to be obsolete */ "statv", /* 217 = statv soon to be obsolete */ "lstatv", /* 218 = lstatv soon to be obsolete */ "fstatv", /* 219 = fstatv soon to be obsolete */ "getattrlist", /* 220 = getattrlist */ "setattrlist", /* 221 = setattrlist */ "getdirentriesattr", /* 222 = getdirentriesattr */ "exchangedata", /* 223 = exchangedata */ "#224", /* 224 = was checkuseraccess */ "searchfs", /* 225 = searchfs */ "delete", /* 226 = delete private delete ( Carbon semantics ) */ "copyfile", /* 227 = copyfile */ "#228", /* 228 = */ "#229", /* 229 = */ "poll", /* 230 = poll */ "watchevent", /* 231 = watchevent */ "waitevent", /* 232 = waitevent */ "modwatch", /* 233 = modwatch */ "getxattr", /* 234 = getxattr */ "fgetxattr", /* 235 = fgetxattr */ "setxattr", /* 236 = setxattr */ "fsetxattr", /* 237 = fsetxattr */ "removexattr", /* 238 = removexattr */ "fremovexattr", /* 239 = fremovexattr */ "listxattr", /* 240 = listxattr */ "flistxattr", /* 241 = flistxattr */ "fsctl", /* 242 = fsctl */ "initgroups", /* 243 = initgroups */ "posix_spawn", /* 244 = posix_spawn */ "#245", /* 245 = */ "#246", /* 246 = */ #if NFSCLIENT "nfsclnt", /* 247 = nfsclnt */ #else "#247", /* 247 = */ #endif #if NFSSERVER "fhopen", /* 248 = fhopen */ #else "#248", /* 248 = */ #endif "#249", /* 249 = */ "minherit", /* 250 = minherit */ #if SYSV_SEM "semsys", /* 251 = semsys */ #else "#251", /* 251 = */ #endif #if SYSV_MSG "msgsys", /* 252 = msgsys */ #else "#252", /* 252 = */ #endif #if SYSV_SHM "shmsys", /* 253 = shmsys */ #else "#253", /* 253 = */ #endif #if SYSV_SEM "semctl", /* 254 = semctl */ "semget", /* 255 = semget */ "semop", /* 256 = semop */ "#257", /* 257 = */ #else "#254", /* 254 = */ "#255", /* 255 = */ "#256", /* 256 = */ "#257", /* 257 = */ #endif #if SYSV_MSG "msgctl", /* 258 = msgctl */ "msgget", /* 259 = msgget */ "msgsnd", /* 260 = msgsnd */ "msgrcv", /* 261 = msgrcv */ #else "#258", /* 258 = */ "#259", /* 259 = */ "#260", /* 260 = */ "#261", /* 261 = */ #endif #if SYSV_SHM "shmat", /* 262 = shmat */ "shmctl", /* 263 = shmctl */ "shmdt", /* 264 = shmdt */ "shmget", /* 265 = shmget */ #else "#262", /* 262 = */ "#263", /* 263 = */ "#264", /* 264 = */ "#265", /* 265 = */ #endif "shm_open", /* 266 = shm_open */ "shm_unlink", /* 267 = shm_unlink */ "sem_open", /* 268 = sem_open */ "sem_close", /* 269 = sem_close */ "sem_unlink", /* 270 = sem_unlink */ "sem_wait", /* 271 = sem_wait */ "sem_trywait", /* 272 = sem_trywait */ "sem_post", /* 273 = sem_post */ "sem_getvalue", /* 274 = sem_getvalue */ "sem_init", /* 275 = sem_init */ "sem_destroy", /* 276 = sem_destroy */ "open_extended", /* 277 = open_extended */ "umask_extended", /* 278 = umask_extended */ "stat_extended", /* 279 = stat_extended */ "lstat_extended", /* 280 = lstat_extended */ "fstat_extended", /* 281 = fstat_extended */ "chmod_extended", /* 282 = chmod_extended */ "fchmod_extended", /* 283 = fchmod_extended */ "access_extended", /* 284 = access_extended */ "settid", /* 285 = settid */ "gettid", /* 286 = gettid */ "setsgroups", /* 287 = setsgroups */ "getsgroups", /* 288 = getsgroups */ "setwgroups", /* 289 = setwgroups */ "getwgroups", /* 290 = getwgroups */ "mkfifo_extended", /* 291 = mkfifo_extended */ "mkdir_extended", /* 292 = mkdir_extended */ "identitysvc", /* 293 = identitysvc */ "shared_region_check_np", /* 294 = shared_region_check_np */ "shared_region_map_np", /* 295 = shared_region_map_np */ "#296", /* 296 = old load_shared_file */ "#297", /* 297 = old reset_shared_file */ "#298", /* 298 = old new_system_shared_regions */ "#299", /* 299 = old shared_region_map_file_np */ "#300", /* 300 = old shared_region_make_private_np */ "__pthread_mutex_destroy", /* 301 = __pthread_mutex_destroy */ "__pthread_mutex_init", /* 302 = __pthread_mutex_init */ "__pthread_mutex_lock", /* 303 = __pthread_mutex_lock */ "__pthread_mutex_trylock", /* 304 = __pthread_mutex_trylock */ "__pthread_mutex_unlock", /* 305 = __pthread_mutex_unlock */ "__pthread_cond_init", /* 306 = __pthread_cond_init */ "__pthread_cond_destroy", /* 307 = __pthread_cond_destroy */ "__pthread_cond_broadcast", /* 308 = __pthread_cond_broadcast */ "__pthread_cond_signal", /* 309 = __pthread_cond_signal */ "getsid", /* 310 = getsid */ "settid_with_pid", /* 311 = settid_with_pid */ "__pthread_cond_timedwait", /* 312 = __pthread_cond_timedwait */ "aio_fsync", /* 313 = aio_fsync */ "aio_return", /* 314 = aio_return */ "aio_suspend", /* 315 = aio_suspend */ "aio_cancel", /* 316 = aio_cancel */ "aio_error", /* 317 = aio_error */ "aio_read", /* 318 = aio_read */ "aio_write", /* 319 = aio_write */ "lio_listio", /* 320 = lio_listio */ "__pthread_cond_wait", /* 321 = __pthread_cond_wait */ "iopolicysys", /* 322 = iopolicysys */ "#323", /* 323 = */ "mlockall", /* 324 = mlockall */ "munlockall", /* 325 = munlockall */ "#326", /* 326 = */ "issetugid", /* 327 = issetugid */ "__pthread_kill", /* 328 = __pthread_kill */ "__pthread_sigmask", /* 329 = __pthread_sigmask */ "__sigwait", /* 330 = __sigwait */ "__disable_threadsignal", /* 331 = __disable_threadsignal */ "__pthread_markcancel", /* 332 = __pthread_markcancel */ "__pthread_canceled", /* 333 = __pthread_canceled */ "__semwait_signal", /* 334 = __semwait_signal */ "#335", /* 335 = old utrace */ "proc_info", /* 336 = proc_info */ #if SENDFILE "sendfile", /* 337 = sendfile */ #else /* !SENDFILE */ "#337", /* 337 = */ #endif /* SENDFILE */ "stat64", /* 338 = stat64 */ "fstat64", /* 339 = fstat64 */ "lstat64", /* 340 = lstat64 */ "stat64_extended", /* 341 = stat64_extended */ "lstat64_extended", /* 342 = lstat64_extended */ "fstat64_extended", /* 343 = fstat64_extended */ "getdirentries64", /* 344 = getdirentries64 */ "statfs64", /* 345 = statfs64 */ "fstatfs64", /* 346 = fstatfs64 */ "getfsstat64", /* 347 = getfsstat64 */ "__pthread_chdir", /* 348 = __pthread_chdir */ "__pthread_fchdir", /* 349 = __pthread_fchdir */ #if AUDIT "audit", /* 350 = audit */ "auditon", /* 351 = auditon */ "#352", /* 352 = */ "getauid", /* 353 = getauid */ "setauid", /* 354 = setauid */ "getaudit", /* 355 = getaudit */ "setaudit", /* 356 = setaudit */ "getaudit_addr", /* 357 = getaudit_addr */ "setaudit_addr", /* 358 = setaudit_addr */ "auditctl", /* 359 = auditctl */ #else "#350", /* 350 = */ "#351", /* 351 = */ "#352", /* 352 = */ "#353", /* 353 = */ "#354", /* 354 = */ "#355", /* 355 = */ "#356", /* 356 = */ "#357", /* 357 = */ "#358", /* 358 = */ "#359", /* 359 = */ #endif "bsdthread_create", /* 360 = bsdthread_create */ "bsdthread_terminate", /* 361 = bsdthread_terminate */ "kqueue", /* 362 = kqueue */ "kevent", /* 363 = kevent */ "lchown", /* 364 = lchown */ "stack_snapshot", /* 365 = stack_snapshot */ "bsdthread_register", /* 366 = bsdthread_register */ "workq_open", /* 367 = workq_open */ "workq_ops", /* 368 = workq_ops */ "#369", /* 369 = */ "#370", /* 370 = */ "#371", /* 371 = */ "#372", /* 372 = */ "#373", /* 373 = */ "#374", /* 374 = */ "#375", /* 375 = */ "#376", /* 376 = */ "#377", /* 377 = */ "#378", /* 378 = */ "#379", /* 379 = */ "__mac_execve", /* 380 = __mac_execve */ "__mac_syscall", /* 381 = __mac_syscall */ "__mac_get_file", /* 382 = __mac_get_file */ "__mac_set_file", /* 383 = __mac_set_file */ "__mac_get_link", /* 384 = __mac_get_link */ "__mac_set_link", /* 385 = __mac_set_link */ "__mac_get_proc", /* 386 = __mac_get_proc */ "__mac_set_proc", /* 387 = __mac_set_proc */ "__mac_get_fd", /* 388 = __mac_get_fd */ "__mac_set_fd", /* 389 = __mac_set_fd */ "__mac_get_pid", /* 390 = __mac_get_pid */ "__mac_get_lcid", /* 391 = __mac_get_lcid */ "__mac_get_lctx", /* 392 = __mac_get_lctx */ "__mac_set_lctx", /* 393 = __mac_set_lctx */ "setlcid", /* 394 = setlcid */ "getlcid", /* 395 = getlcid */ "read_nocancel", /* 396 = read_nocancel */ "write_nocancel", /* 397 = write_nocancel */ "open_nocancel", /* 398 = open_nocancel */ "close_nocancel", /* 399 = close_nocancel */ "wait4_nocancel", /* 400 = wait4_nocancel */ #if SOCKETS "recvmsg_nocancel", /* 401 = recvmsg_nocancel */ "sendmsg_nocancel", /* 402 = sendmsg_nocancel */ "recvfrom_nocancel", /* 403 = recvfrom_nocancel */ "accept_nocancel", /* 404 = accept_nocancel */ #else "#401", /* 401 = */ "#402", /* 402 = */ "#403", /* 403 = */ "#404", /* 404 = */ #endif /* SOCKETS */ "msync_nocancel", /* 405 = msync_nocancel */ "fcntl_nocancel", /* 406 = fcntl_nocancel */ "select_nocancel", /* 407 = select_nocancel */ "fsync_nocancel", /* 408 = fsync_nocancel */ #if SOCKETS "connect_nocancel", /* 409 = connect_nocancel */ #else "#409", /* 409 = */ #endif /* SOCKETS */ "sigsuspend_nocancel", /* 410 = sigsuspend_nocancel */ "readv_nocancel", /* 411 = readv_nocancel */ "writev_nocancel", /* 412 = writev_nocancel */ #if SOCKETS "sendto_nocancel", /* 413 = sendto_nocancel */ #else "#413", /* 413 = */ #endif /* SOCKETS */ "pread_nocancel", /* 414 = pread_nocancel */ "pwrite_nocancel", /* 415 = pwrite_nocancel */ "waitid_nocancel", /* 416 = waitid_nocancel */ "poll_nocancel", /* 417 = poll_nocancel */ #if SYSV_MSG "msgsnd_nocancel", /* 418 = msgsnd_nocancel */ "msgrcv_nocancel", /* 419 = msgrcv_nocancel */ #else "#418", /* 418 = */ "#419", /* 419 = */ #endif "sem_wait_nocancel", /* 420 = sem_wait_nocancel */ "aio_suspend_nocancel", /* 421 = aio_suspend_nocancel */ "__sigwait_nocancel", /* 422 = __sigwait_nocancel */ "__semwait_signal_nocancel", /* 423 = __semwait_signal_nocancel */ "__mac_mount", /* 424 = __mac_mount */ "__mac_get_mount", /* 425 = __mac_get_mount */ "__mac_getfsstat", /* 426 = __mac_getfsstat */ };