]> git.saurik.com Git - apple/xnu.git/blob - bsd/kern/syscalls.c
xnu-344.49.tar.gz
[apple/xnu.git] / bsd / kern / syscalls.c
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /* Copyright (c) 1992,1995-1999 Apple Computer, Inc. All rights resereved. */
26
27 char *syscallnames[] = {
28 "syscall", /* 0 = syscall */
29 "exit", /* 1 = exit */
30 "fork", /* 2 = fork */
31 "read", /* 3 = read */
32 "write", /* 4 = write */
33 "open", /* 5 = open */
34 "close", /* 6 = close */
35 "wait4", /* 7 = wait4 */
36 "obs_creat", /* 8 = old creat */
37 "link", /* 9 = link */
38 "unlink", /* 10 = unlink */
39 "obs_execv", /* 11 = obsolete execv */
40 "chdir", /* 12 = chdir */
41 "fchdir", /* 13 = fchdir */
42 "mknod", /* 14 = mknod */
43 "chmod", /* 15 = chmod */
44 "chown", /* 16 = chown */
45 "obs_break", /* 17 = obsolete break */
46 "obs_getfsstat", /* 18 = obsolete getfsstat */
47 "old_lseek", /* 19 = old lseek */
48 "getpid", /* 20 = getpid */
49 "obs_mount", /* 21 = obsolete mount */
50 "obs_unmount", /* 22 = obsolete unmount */
51 "setuid", /* 23 = setuid */
52 "getuid", /* 24 = getuid */
53 "geteuid", /* 25 = geteuid */
54 "ptrace", /* 26 = ptrace */
55 "recvmsg", /* 27 = recvmsg */
56 "sendmsg", /* 28 = sendmsg */
57 "recvfrom", /* 29 = recvfrom */
58 "accept", /* 30 = accept */
59 "getpeername", /* 31 = getpeername */
60 "getsockname", /* 32 = getsockname */
61 "access", /* 33 = access */
62 "chflags", /* 34 = chflags */
63 "fchflags", /* 35 = fchflags */
64 "sync", /* 36 = sync */
65 "kill", /* 37 = kill */
66 "obs_stat", /* 38 = old stat */
67 "getppid", /* 39 = getppid */
68 "obs_lstat", /* 40 = old lstat */
69 "dup", /* 41 = dup */
70 "pipe", /* 42 = pipe */
71 "getegid", /* 43 = getegid */
72 "profil", /* 44 = profil */
73 "ktrace", /* 45 = ktrace */
74 "sigaction", /* 46 = sigaction */
75 "getgid", /* 47 = getgid */
76 "sigprocmask", /* 48 = sigprocmask */
77 "getlogin", /* 49 = getlogin */
78 "setlogin", /* 50 = setlogin */
79 "acct", /* 51 = acct */
80 "sigpending", /* 52 = sigpending */
81 "sigaltstack", /* 53 = sigaltstack */
82 "ioctl", /* 54 = ioctl */
83 "reboot", /* 55 = reboot */
84 "revoke", /* 56 = revoke */
85 "symlink", /* 57 = symlink */
86 "readlink", /* 58 = readlink */
87 "execve", /* 59 = execve */
88 "umask", /* 60 = umask */
89 "chroot", /* 61 = chroot */
90 "obs_fstat", /* 62 = old fstat */
91 "#63", /* 63 = reserved */
92 "obs_getpagesize", /* 64 = old getpagesize */
93 "msync", /* 65 = msync */
94 "vfork", /* 66 = vfork */
95 "obs_vread", /* 67 = obsolete vread */
96 "obs_vwrite", /* 68 = obsolete vwrite */
97 "sbrk", /* 69 = sbrk */
98 "sstk", /* 70 = sstk */
99 "obs_mmap", /* 71 = old mmap */
100 "obs_vadvise", /* 72 = obsolete vadvise */
101 "munmap", /* 73 = munmap */
102 "mprotect", /* 74 = mprotect */
103 "madvise", /* 75 = madvise */
104 "#76", /* 76 = obsolete vhangup */
105 "#77", /* 77 = obsolete vlimit */
106 "mincore", /* 78 = mincore */
107 "getgroups", /* 79 = getgroups */
108 "setgroups", /* 80 = setgroups */
109 "getpgrp", /* 81 = getpgrp */
110 "setpgid", /* 82 = setpgid */
111 "setitimer", /* 83 = setitimer */
112 "old_wait", /* 84 = old wait */
113 "obs_swapon", /* 85 = swapon */
114 "getitimer", /* 86 = getitimer */
115 "obs_gethostname", /* 87 = old gethostname */
116 "obs_sethostname", /* 88 = old sethostname */
117 "getdtablesize", /* 89 = getdtablesize */
118 "dup2", /* 90 = dup2 */
119 "#91", /* 91 = getdopt */
120 "fcntl", /* 92 = fcntl */
121 "select", /* 93 = select */
122 "#94", /* 94 = setdopt */
123 "fsync", /* 95 = fsync */
124 "setpriority", /* 96 = setpriority */
125 "socket", /* 97 = socket */
126 "connect", /* 98 = connect */
127 "obs_accept", /* 99 = old accept */
128 "getpriority", /* 100 = getpriority */
129 "old_send", /* 101 = old send */
130 "old_recv", /* 102 = old recv */
131 "sigreturn", /* 103 = sigreturn */
132 "bind", /* 104 = bind */
133 "setsockopt", /* 105 = setsockopt */
134 "listen", /* 106 = listen */
135 "#107", /* 107 = obsolete vtimes */
136 "obs_sigvec", /* 108 = old sigvec */
137 "obs_sigblock", /* 109 = old sigblock */
138 "obs_sigsetmask", /* 110 = old sigsetmask */
139 "sigsuspend", /* 111 = sigsuspend */
140 "obs_sigstack", /* 112 = old sigstack */
141 "obs_recvmsg", /* 113 = old recvmsg */
142 "obs_sendmsg", /* 114 = old sendmsg */
143 "#115", /* 115 = obsolete vtrace */
144 "gettimeofday", /* 116 = gettimeofday */
145 "getrusage", /* 117 = getrusage */
146 "getsockopt", /* 118 = getsockopt */
147 "#119", /* 119 = nosys */
148 "readv", /* 120 = readv */
149 "writev", /* 121 = writev */
150 "settimeofday", /* 122 = settimeofday */
151 "fchown", /* 123 = fchown */
152 "fchmod", /* 124 = fchmod */
153 "obs_recvfrom", /* 125 = old recvfrom */
154 "obs_setreuid", /* 126 = old setreuid */
155 "obs_setregid", /* 127 = old setregid */
156 "rename", /* 128 = rename */
157 "obs_truncate", /* 129 = old truncate */
158 "obs_ftruncate", /* 130 = old ftruncate */
159 "flock", /* 131 = flock */
160 "mkfifo", /* 132 = mkfifo */
161 "sendto", /* 133 = sendto */
162 "shutdown", /* 134 = shutdown */
163 "socketpair", /* 135 = socketpair */
164 "mkdir", /* 136 = mkdir */
165 "rmdir", /* 137 = rmdir */
166 "utimes", /* 138 = utimes */
167 "futimes", /* 139 = futimes */
168 "adjtime", /* 140 = adjtime */
169 "obs_getpeername", /* 141 = old getpeername */
170 "obs_gethostid", /* 142 = old gethostid */
171 "#143", /* 143 = old sethostid */
172 "obs_getrlimit", /* 144 = old getrlimit */
173 "obs_setrlimit", /* 145 = old setrlimit */
174 "obs_killpg", /* 146 = old killpg */
175 "setsid", /* 147 = setsid */
176 "#148", /* 148 = obsolete setquota */
177 "#149", /* 149 = obsolete qquota */
178 "obs_getsockname", /* 150 = old getsockname */
179 "getpgid", /* 151 = getpgid */
180 "setprivexec", /* 152 = setprivexec */
181 "pread", /* 153 = pread */
182 "pwrite", /* 154 = pwrite */
183 "nfssvc", /* 155 = nfssvc */
184 "getdirentries", /* 156 =getdirentries */
185 "statfs", /* 157 = statfs */
186 "fstatfs", /* 158 = fstatfs */
187 "unmount", /* 159 = unmount */
188 "#160", /* 160 = obsolete async_daemon */
189 "getfh", /* 161 = getfh */
190 "obs_getdomainname",/* 162 = old getdomainname */
191 "obs_setdomainname",/* 163 = old setdomainname */
192 "#164", /* 164 */
193 "quotactl", /* 165 = quotactl */
194 "#166", /* 166 = obsolete exportfs */
195 "mount", /* 167 = mount */
196 "#168", /* 168 = obsolete ustat */
197 "#169", /* 169 = nosys */
198 "#170", /* 170 = obsolete table */
199 "obs_wait3", /* 171 = old wait3 */
200 "#172", /* 172 = obsolete rpause */
201 "#173", /* 173 = nosys */
202 "#174", /* 174 = obsolete getdents */
203 "#175", /* 175 = nosys */
204 "add_profil", /* 176 = add_profil */ /* NeXT */
205 "#177", /* 177 = nosys */
206 "#178", /* 178 = nosys */
207 "#179", /* 179 = nosys */
208 "kdebug_trace", /* 180 = kdebug_trace */
209 "setgid", /* 181 = setgid */
210 "setegid", /* 182 = setegid */
211 "seteuid", /* 183 = seteuid */
212 "#184", /* 184 = nosys */
213 "#185", /* 185 = nosys */
214 "#186", /* 186 = nosys */
215 "#187", /* 187 = nosys */
216 "stat", /* 188 = stat */
217 "fstat", /* 189 = fstat */
218 "lstat", /* 190 = lstat */
219 "pathconf", /* 191 = pathconf */
220 "fpathconf", /* 192 = fpathconf */
221 "obs_getfsstat", /* 193 = old getfsstat */
222 "getrlimit", /* 194 = getrlimit */
223 "setrlimit", /* 195 = setrlimit */
224 "getdirentries", /* 196 = getdirentries */
225 "mmap", /* 197 = mmap */
226 "#198", /* 198 = __syscall */
227 "lseek", /* 199 = lseek */
228 "truncate", /* 200 = truncate */
229 "ftruncate", /* 201 = ftruncate */
230 "__sysctl", /* 202 = __sysctl */
231 "mlock", /* 203 = mlock */
232 "munlock", /* 204 = munlock */
233 "undelete", /* 205 = undelete */
234 "ATsocket", /* 206 = ATsocket */
235 "ATgetmsg", /* 207 = ATgetmsg */
236 "ATputmsg", /* 208 = ATputmsg */
237 "ATPsndreq", /* 209 = ATPsndreq */
238 "ATPsndrsp", /* 210 = ATPsndrsp */
239 "ATPgetreq", /* 211 = ATPgetreq */
240 "ATPgetrsp", /* 212 = ATPgetrsp */
241 "#213", /* 213 = Reserved for AppleTalk */
242 "#214", /* 214 = Reserved for AppleTalk */
243 "#215", /* 215 = Reserved for AppleTalk */
244 "#216", /* 216 = Reserved */
245 "#217", /* 217 = Reserved */
246 "#218", /* 218 = Reserved */
247 "#219", /* 219 = Reserved */
248 "getattrlist", /* 220 = getattrlist */
249 "setattrlist", /* 221 = setattrlist */
250 "getdirentriesattr", /* 222 = getdirentriesattr */
251 "exchangedata", /* 223 = exchangedata */
252 "checkuseraccess", /* 224 - checkuseraccess */
253 "searchfs", /* 225 = searchfs */
254 "delete", /* 226 = private delete call */
255 "copyfile", /* 227 = copyfile */
256 "#228", /* 228 = nosys */
257 "#229", /* 229 = nosys */
258 "#230", /* 230 = reserved for AFS */
259 "watchevent", /* 231 = watchevent */
260 "waitevent", /* 232 = waitevent */
261 "modwatch", /* 233 = modwatch */
262 "#234", /* 234 = nosys */
263 "#235", /* 235 = nosys */
264 "#236", /* 236 = nosys */
265 "#237", /* 237 = nosys */
266 "#238", /* 238 = nosys */
267 "#239", /* 239 = nosys */
268 "#240", /* 240 = nosys */
269 "#241", /* 241 = nosys */
270 "fsctl", /* 242 = fsctl */
271 "#243", /* 243 = nosys */
272 "#244", /* 244 = nosys */
273 "#245", /* 245 = nosys */
274 "#246", /* 246 = nosys */
275 "#247", /* 247 = nosys */
276 "#248", /* 248 = nosys */
277 "#249", /* 249 = nosys */
278 "minherit", /* 250 = minherit */
279 "semsys", /* 251 = semsys */
280 "msgsys", /* 252 = msgsys */
281 "shmsys", /* 253 = shmsys */
282 "semctl", /* 254 = semctl */
283 "semget", /* 255 = semget */
284 "semop", /* 256 = semop */
285 "semconfig", /* 257 = semconfig */
286 "msgctl", /* 258 = msgctl */
287 "msgget", /* 259 = msgget */
288 "msgsnd", /* 260 = msgsnd */
289 "msgrcv", /* 261 = msgrcv */
290 "shmat", /* 262 = shmat */
291 "shmctl", /* 263 = shmctl */
292 "shmdt", /* 264 = shmdt */
293 "shmget", /* 265 = shmget */
294 "shm_open", /* 266 = shm_open */
295 "shm_unlink", /* 267 = shm_unlink */
296 "sem_open", /* 268 = sem_open */
297 "sem_close", /* 269 = sem_close */
298 "sem_unlink", /* 270 = sem_unlink */
299 "sem_wait", /* 271 = sem_wait */
300 "sem_trywait", /* 272 = sem_trywait */
301 "sem_post", /* 273 = sem_post */
302 "sem_getvalue", /* 274 = sem_getvalue */
303 "sem_init", /* 275 = sem_init */
304 "sem_destroy", /* 276 = sem_destroy */
305 "#277", /* 277 = nosys */
306 "#278", /* 278 = nosys */
307 "#279", /* 279 = nosys */
308 "#280", /* 280 = nosys */
309 "#281", /* 281 = nosys */
310 "#282", /* 282 = nosys */
311 "#283", /* 283 = nosys */
312 "#284", /* 284 = nosys */
313 "#285", /* 285 = nosys */
314 "#286", /* 286 = nosys */
315 "#287", /* 287 = nosys */
316 "#288", /* 288 = nosys */
317 "#289", /* 289 = nosys */
318 "#290", /* 290 = nosys */
319 "#291", /* 291 = nosys */
320 "#292", /* 292 = nosys */
321 "#293", /* 293 = nosys */
322 "#294", /* 294 = nosys */
323 "#295", /* 295 = nosys */
324 "load_shared_file", /* 296 = load_shared_file */
325 "reset_shared_file", /* 297 = reset_shared_file */
326 "new_system_shared_regions", /* 298 = new_system_shared_regions */
327 "#299", /* 299 = nosys */
328 "#300", /* 300 = modnext */
329 "#301", /* 301 = modstat */
330 "#302", /* 302 = modfnext */
331 "#303", /* 303 = modfind */
332 "#304", /* 304 = kldload */
333 "#305", /* 305 = kldunload */
334 "#306", /* 306 = kldfind */
335 "#307", /* 307 = kldnext */
336 "#308", /* 308 = kldstat */
337 "#309", /* 309 = kldfirstmod */
338 "getsid", /* 310 = getsid */
339 "#311", /* 311 = setresuid */
340 "#312", /* 312 = setresgid */
341 "#313", /* 313 = obsolete signanosleep */
342 "#314", /* 314 = aio_return */
343 "#315", /* 315 = aio_suspend */
344 "#316", /* 316 = aio_cancel */
345 "#317", /* 317 = aio_error */
346 "#318", /* 318 = aio_read */
347 "#319", /* 319 = aio_write */
348 "#320", /* 320 = lio_listio */
349 "#321", /* 321 = yield */
350 "#322", /* 322 = thr_sleep */
351 "#323", /* 323 = thr_wakeup */
352 "mlockall", /* 324 = mlockall */
353 "munlockall", /* 325 = munlockall */
354 "#326", /* 326 */
355 "issetugid", /* 327 = issetugid */
356 "__pthread_kill", /* 328 = __pthread_kill */
357 "pthread_sigmask", /* 329 = pthread_sigmask */
358 "sigwait", /* 330 = sigwait */
359 "#331", /* 331 */
360 "#332", /* 332 */
361 "#333", /* 333 */
362 "#334", /* 334 */
363 "utrace", /* 335 = utrace */
364 "#336", /* 336 */
365 "#337", /* 337 */
366 "#338", /* 338 */
367 "#339", /* 339 */
368 "#340", /* 340 */
369 "#341", /* 341 */
370 "#342", /* 342 */
371 "#343", /* 343 */
372 "#344", /* 344 */
373 "#345", /* 345 */
374 "#346", /* 346 */
375 "#347", /* 347 */
376 "#348", /* 348 */
377 "#349" /* 349 */
378 };