]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
e5568f75 | 2 | * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. |
1c79356b A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
e5568f75 A |
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. | |
1c79356b | 11 | * |
e5568f75 A |
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 | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
e5568f75 A |
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. | |
1c79356b A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* Copyright (c) 1992,1995-1999 Apple Computer, Inc. All rights resereved. */ | |
1c79356b A |
23 | |
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 */ | |
9bccf70c | 33 | "obs_creat", /* 8 = old creat */ |
1c79356b A |
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 */ | |
9bccf70c A |
42 | "obs_break", /* 17 = obsolete break */ |
43 | "obs_getfsstat", /* 18 = obsolete getfsstat */ | |
1c79356b A |
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 */ | |
9bccf70c | 63 | "obs_stat", /* 38 = old stat */ |
1c79356b | 64 | "getppid", /* 39 = getppid */ |
9bccf70c | 65 | "obs_lstat", /* 40 = old lstat */ |
1c79356b A |
66 | "dup", /* 41 = dup */ |
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 */ | |
9bccf70c A |
87 | "obs_fstat", /* 62 = old fstat */ |
88 | "#63", /* 63 = reserved */ | |
89 | "obs_getpagesize", /* 64 = old getpagesize */ | |
1c79356b A |
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 */ | |
9bccf70c | 96 | "obs_mmap", /* 71 = old mmap */ |
1c79356b A |
97 | "obs_vadvise", /* 72 = obsolete vadvise */ |
98 | "munmap", /* 73 = munmap */ | |
99 | "mprotect", /* 74 = mprotect */ | |
100 | "madvise", /* 75 = madvise */ | |
9bccf70c A |
101 | "#76", /* 76 = obsolete vhangup */ |
102 | "#77", /* 77 = obsolete vlimit */ | |
1c79356b A |
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 */ | |
9bccf70c | 110 | "obs_swapon", /* 85 = swapon */ |
1c79356b | 111 | "getitimer", /* 86 = getitimer */ |
9bccf70c A |
112 | "obs_gethostname", /* 87 = old gethostname */ |
113 | "obs_sethostname", /* 88 = old sethostname */ | |
1c79356b A |
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 */ | |
9bccf70c | 124 | "obs_accept", /* 99 = old accept */ |
1c79356b A |
125 | "getpriority", /* 100 = getpriority */ |
126 | "old_send", /* 101 = old send */ | |
127 | "old_recv", /* 102 = old recv */ | |
55e303ae A |
128 | #ifdef __ppc__ |
129 | "osigreturn", /* 103 = sigreturn */ | |
130 | #else | |
1c79356b | 131 | "sigreturn", /* 103 = sigreturn */ |
55e303ae | 132 | #endif |
1c79356b A |
133 | "bind", /* 104 = bind */ |
134 | "setsockopt", /* 105 = setsockopt */ | |
135 | "listen", /* 106 = listen */ | |
9bccf70c A |
136 | "#107", /* 107 = obsolete vtimes */ |
137 | "obs_sigvec", /* 108 = old sigvec */ | |
138 | "obs_sigblock", /* 109 = old sigblock */ | |
139 | "obs_sigsetmask", /* 110 = old sigsetmask */ | |
1c79356b | 140 | "sigsuspend", /* 111 = sigsuspend */ |
9bccf70c A |
141 | "obs_sigstack", /* 112 = old sigstack */ |
142 | "obs_recvmsg", /* 113 = old recvmsg */ | |
143 | "obs_sendmsg", /* 114 = old sendmsg */ | |
144 | "#115", /* 115 = obsolete vtrace */ | |
1c79356b A |
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 */ | |
9bccf70c A |
154 | "obs_recvfrom", /* 125 = old recvfrom */ |
155 | "obs_setreuid", /* 126 = old setreuid */ | |
156 | "obs_setregid", /* 127 = old setregid */ | |
1c79356b | 157 | "rename", /* 128 = rename */ |
9bccf70c A |
158 | "obs_truncate", /* 129 = old truncate */ |
159 | "obs_ftruncate", /* 130 = old ftruncate */ | |
1c79356b A |
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 */ | |
9bccf70c | 168 | "futimes", /* 139 = futimes */ |
1c79356b | 169 | "adjtime", /* 140 = adjtime */ |
9bccf70c A |
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 */ | |
1c79356b | 176 | "setsid", /* 147 = setsid */ |
9bccf70c A |
177 | "#148", /* 148 = obsolete setquota */ |
178 | "#149", /* 149 = obsolete qquota */ | |
179 | "obs_getsockname", /* 150 = old getsockname */ | |
180 | "getpgid", /* 151 = getpgid */ | |
1c79356b | 181 | "setprivexec", /* 152 = setprivexec */ |
9bccf70c A |
182 | "pread", /* 153 = pread */ |
183 | "pwrite", /* 154 = pwrite */ | |
1c79356b A |
184 | "nfssvc", /* 155 = nfssvc */ |
185 | "getdirentries", /* 156 =getdirentries */ | |
186 | "statfs", /* 157 = statfs */ | |
187 | "fstatfs", /* 158 = fstatfs */ | |
188 | "unmount", /* 159 = unmount */ | |
9bccf70c | 189 | "#160", /* 160 = obsolete async_daemon */ |
1c79356b | 190 | "getfh", /* 161 = getfh */ |
9bccf70c A |
191 | "obs_getdomainname",/* 162 = old getdomainname */ |
192 | "obs_setdomainname",/* 163 = old setdomainname */ | |
193 | "#164", /* 164 */ | |
1c79356b | 194 | "quotactl", /* 165 = quotactl */ |
9bccf70c | 195 | "#166", /* 166 = obsolete exportfs */ |
1c79356b | 196 | "mount", /* 167 = mount */ |
9bccf70c | 197 | "#168", /* 168 = obsolete ustat */ |
1c79356b | 198 | "#169", /* 169 = nosys */ |
9bccf70c A |
199 | "#170", /* 170 = obsolete table */ |
200 | "obs_wait3", /* 171 = old wait3 */ | |
201 | "#172", /* 172 = obsolete rpause */ | |
1c79356b | 202 | "#173", /* 173 = nosys */ |
9bccf70c | 203 | "#174", /* 174 = obsolete getdents */ |
1c79356b A |
204 | "#175", /* 175 = nosys */ |
205 | "add_profil", /* 176 = add_profil */ /* NeXT */ | |
206 | "#177", /* 177 = nosys */ | |
207 | "#178", /* 178 = nosys */ | |
208 | "#179", /* 179 = nosys */ | |
9bccf70c | 209 | "kdebug_trace", /* 180 = kdebug_trace */ |
1c79356b A |
210 | "setgid", /* 181 = setgid */ |
211 | "setegid", /* 182 = setegid */ | |
212 | "seteuid", /* 183 = seteuid */ | |
55e303ae A |
213 | #ifdef __ppc__ |
214 | "sigreturn", /* 184 = sigreturn */ | |
215 | #else | |
1c79356b | 216 | "#184", /* 184 = nosys */ |
55e303ae | 217 | #endif |
1c79356b A |
218 | "#185", /* 185 = nosys */ |
219 | "#186", /* 186 = nosys */ | |
220 | "#187", /* 187 = nosys */ | |
1c79356b A |
221 | "stat", /* 188 = stat */ |
222 | "fstat", /* 189 = fstat */ | |
223 | "lstat", /* 190 = lstat */ | |
224 | "pathconf", /* 191 = pathconf */ | |
225 | "fpathconf", /* 192 = fpathconf */ | |
9bccf70c | 226 | "obs_getfsstat", /* 193 = old getfsstat */ |
1c79356b A |
227 | "getrlimit", /* 194 = getrlimit */ |
228 | "setrlimit", /* 195 = setrlimit */ | |
9bccf70c | 229 | "getdirentries", /* 196 = getdirentries */ |
1c79356b | 230 | "mmap", /* 197 = mmap */ |
9bccf70c | 231 | "#198", /* 198 = __syscall */ |
1c79356b A |
232 | "lseek", /* 199 = lseek */ |
233 | "truncate", /* 200 = truncate */ | |
234 | "ftruncate", /* 201 = ftruncate */ | |
235 | "__sysctl", /* 202 = __sysctl */ | |
236 | "mlock", /* 203 = mlock */ | |
237 | "munlock", /* 204 = munlock */ | |
9bccf70c A |
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 */ | |
55e303ae A |
247 | "kqueue_from_portset_np", /* 214 = kqueue_from_portset_np */ |
248 | "kqueue_portset_np", /* 215 = kqueue_portset_np */ | |
9bccf70c A |
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 */ | |
1c79356b A |
264 | "watchevent", /* 231 = watchevent */ |
265 | "waitevent", /* 232 = waitevent */ | |
9bccf70c A |
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 */ | |
55e303ae A |
280 | "nfsclnt", /* 247 = nfsclnt */ |
281 | "fhopen", /* 248 = fhopen */ | |
9bccf70c A |
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 */ | |
1c79356b | 290 | "semconfig", /* 257 = semconfig */ |
9bccf70c A |
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 */ | |
1c79356b | 300 | "shm_unlink", /* 267 = shm_unlink */ |
9bccf70c | 301 | "sem_open", /* 268 = sem_open */ |
1c79356b A |
302 | "sem_close", /* 269 = sem_close */ |
303 | "sem_unlink", /* 270 = sem_unlink */ | |
9bccf70c | 304 | "sem_wait", /* 271 = sem_wait */ |
1c79356b | 305 | "sem_trywait", /* 272 = sem_trywait */ |
9bccf70c | 306 | "sem_post", /* 273 = sem_post */ |
1c79356b | 307 | "sem_getvalue", /* 274 = sem_getvalue */ |
9bccf70c | 308 | "sem_init", /* 275 = sem_init */ |
1c79356b | 309 | "sem_destroy", /* 276 = sem_destroy */ |
9bccf70c A |
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 */ | |
1c79356b A |
329 | "load_shared_file", /* 296 = load_shared_file */ |
330 | "reset_shared_file", /* 297 = reset_shared_file */ | |
9bccf70c A |
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 */ | |
55e303ae A |
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 */ | |
9bccf70c A |
354 | "#321", /* 321 = yield */ |
355 | "#322", /* 322 = thr_sleep */ | |
356 | "#323", /* 323 = thr_wakeup */ | |
357 | "mlockall", /* 324 = mlockall */ | |
358 | "munlockall", /* 325 = munlockall */ | |
55e303ae | 359 | "#326", /* 326 */ |
9bccf70c A |
360 | "issetugid", /* 327 = issetugid */ |
361 | "__pthread_kill", /* 328 = __pthread_kill */ | |
362 | "pthread_sigmask", /* 329 = pthread_sigmask */ | |
55e303ae A |
363 | "sigwait", /* 330 = sigwait */ |
364 | "#331", /* 331 */ | |
365 | "#332", /* 332 */ | |
366 | "#333", /* 333 */ | |
367 | "#334", /* 334 */ | |
368 | "utrace", /* 335 = utrace */ | |
369 | "#336", /* 336 */ | |
370 | "#337", /* 337 */ | |
371 | "#338", /* 338 */ | |
372 | "#339", /* 339 */ | |
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 */ | |
380 | "#347", /* 347 */ | |
381 | "#348", /* 348 */ | |
382 | "#349" /* 349 */ | |
383 | "audit", /* 350 */ | |
384 | "auditon", /* 351 */ | |
e5568f75 | 385 | "#352", /* 352 */ |
55e303ae A |
386 | "getauid", /* 353 */ |
387 | "setauid", /* 354 */ | |
388 | "getaudit", /* 355 */ | |
389 | "setaudit", /* 356 */ | |
390 | "getaudit_addr", /* 357 */ | |
391 | "setaudit_addr", /* 358 */ | |
392 | "auditctl", /* 359 */ | |
393 | "#360", /* 360 */ | |
394 | "#361", /* 361 */ | |
395 | "kqueue", /* 362 = kqueue */ | |
396 | "kevent", /* 363 = kevent */ | |
397 | "#364", /* 364 */ | |
398 | "#365", /* 365 */ | |
399 | "#366", /* 366 */ | |
400 | "#367", /* 367 */ | |
401 | "#368", /* 368 */ | |
402 | "#369" /* 369 */ | |
1c79356b | 403 | }; |