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