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