]>
Commit | Line | Data |
---|---|---|
b51d5b5f A |
1 | /* |
2 | * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
d904471c 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. | |
b51d5b5f | 11 | * |
d904471c 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 | |
b51d5b5f A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
d904471c 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. | |
b51d5b5f A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* Copyright (c) 1992,1995-1999 Apple Computer, Inc. All rights resereved. */ | |
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 */ | |
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 */ | |
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 */ | |
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 */ | |
128 | "sigreturn", /* 103 = sigreturn */ | |
129 | "bind", /* 104 = bind */ | |
130 | "setsockopt", /* 105 = setsockopt */ | |
131 | "listen", /* 106 = listen */ | |
132 | "#107", /* 107 = obsolete vtimes */ | |
133 | "obs_sigvec", /* 108 = old sigvec */ | |
134 | "obs_sigblock", /* 109 = old sigblock */ | |
135 | "obs_sigsetmask", /* 110 = old sigsetmask */ | |
136 | "sigsuspend", /* 111 = sigsuspend */ | |
137 | "obs_sigstack", /* 112 = old sigstack */ | |
138 | "obs_recvmsg", /* 113 = old recvmsg */ | |
139 | "obs_sendmsg", /* 114 = old sendmsg */ | |
140 | "#115", /* 115 = obsolete vtrace */ | |
141 | "gettimeofday", /* 116 = gettimeofday */ | |
142 | "getrusage", /* 117 = getrusage */ | |
143 | "getsockopt", /* 118 = getsockopt */ | |
144 | "#119", /* 119 = nosys */ | |
145 | "readv", /* 120 = readv */ | |
146 | "writev", /* 121 = writev */ | |
147 | "settimeofday", /* 122 = settimeofday */ | |
148 | "fchown", /* 123 = fchown */ | |
149 | "fchmod", /* 124 = fchmod */ | |
150 | "obs_recvfrom", /* 125 = old recvfrom */ | |
151 | "obs_setreuid", /* 126 = old setreuid */ | |
152 | "obs_setregid", /* 127 = old setregid */ | |
153 | "rename", /* 128 = rename */ | |
154 | "obs_truncate", /* 129 = old truncate */ | |
155 | "obs_ftruncate", /* 130 = old ftruncate */ | |
156 | "flock", /* 131 = flock */ | |
157 | "mkfifo", /* 132 = mkfifo */ | |
158 | "sendto", /* 133 = sendto */ | |
159 | "shutdown", /* 134 = shutdown */ | |
160 | "socketpair", /* 135 = socketpair */ | |
161 | "mkdir", /* 136 = mkdir */ | |
162 | "rmdir", /* 137 = rmdir */ | |
163 | "utimes", /* 138 = utimes */ | |
164 | "futimes", /* 139 = futimes */ | |
165 | "adjtime", /* 140 = adjtime */ | |
166 | "obs_getpeername", /* 141 = old getpeername */ | |
167 | "obs_gethostid", /* 142 = old gethostid */ | |
168 | "#143", /* 143 = old sethostid */ | |
169 | "obs_getrlimit", /* 144 = old getrlimit */ | |
170 | "obs_setrlimit", /* 145 = old setrlimit */ | |
171 | "obs_killpg", /* 146 = old killpg */ | |
172 | "setsid", /* 147 = setsid */ | |
173 | "#148", /* 148 = obsolete setquota */ | |
174 | "#149", /* 149 = obsolete qquota */ | |
175 | "obs_getsockname", /* 150 = old getsockname */ | |
176 | "#151", /* 151 = nosys */ | |
177 | "setprivexec", /* 152 = setprivexec */ | |
178 | "pread", /* 153 = pread */ | |
179 | "pwrite", /* 154 = pwrite */ | |
180 | "nfssvc", /* 155 = nfssvc */ | |
181 | "getdirentries", /* 156 =getdirentries */ | |
182 | "statfs", /* 157 = statfs */ | |
183 | "fstatfs", /* 158 = fstatfs */ | |
184 | "unmount", /* 159 = unmount */ | |
185 | "#160", /* 160 = obsolete async_daemon */ | |
186 | "getfh", /* 161 = getfh */ | |
187 | "obs_getdomainname",/* 162 = old getdomainname */ | |
188 | "obs_setdomainname",/* 163 = old setdomainname */ | |
189 | "#164", /* 164 */ | |
190 | "quotactl", /* 165 = quotactl */ | |
191 | "#166", /* 166 = obsolete exportfs */ | |
192 | "mount", /* 167 = mount */ | |
193 | "#168", /* 168 = obsolete ustat */ | |
194 | "#169", /* 169 = nosys */ | |
195 | "#170", /* 170 = obsolete table */ | |
196 | "obs_wait3", /* 171 = old wait3 */ | |
197 | "#172", /* 172 = obsolete rpause */ | |
198 | "#173", /* 173 = nosys */ | |
199 | "#174", /* 174 = obsolete getdents */ | |
200 | "#175", /* 175 = nosys */ | |
201 | "add_profil", /* 176 = add_profil */ /* NeXT */ | |
202 | "#177", /* 177 = nosys */ | |
203 | "#178", /* 178 = nosys */ | |
204 | "#179", /* 179 = nosys */ | |
205 | "kdebug_trace", /* 180 = kdebug_trace */ | |
206 | "setgid", /* 181 = setgid */ | |
207 | "setegid", /* 182 = setegid */ | |
208 | "seteuid", /* 183 = seteuid */ | |
209 | "#184", /* 184 = nosys */ | |
210 | "#185", /* 185 = nosys */ | |
211 | "#186", /* 186 = nosys */ | |
212 | "#187", /* 187 = nosys */ | |
213 | "stat", /* 188 = stat */ | |
214 | "fstat", /* 189 = fstat */ | |
215 | "lstat", /* 190 = lstat */ | |
216 | "pathconf", /* 191 = pathconf */ | |
217 | "fpathconf", /* 192 = fpathconf */ | |
218 | "obs_getfsstat", /* 193 = old getfsstat */ | |
219 | "getrlimit", /* 194 = getrlimit */ | |
220 | "setrlimit", /* 195 = setrlimit */ | |
221 | "getdirentries", /* 196 = getdirentries */ | |
222 | "mmap", /* 197 = mmap */ | |
223 | "#198", /* 198 = __syscall */ | |
224 | "lseek", /* 199 = lseek */ | |
225 | "truncate", /* 200 = truncate */ | |
226 | "ftruncate", /* 201 = ftruncate */ | |
227 | "__sysctl", /* 202 = __sysctl */ | |
228 | "mlock", /* 203 = mlock */ | |
229 | "munlock", /* 204 = munlock */ | |
230 | "undelete", /* 205 = undelete */ | |
231 | "ATsocket", /* 206 = ATsocket */ | |
232 | "ATgetmsg", /* 207 = ATgetmsg */ | |
233 | "ATputmsg", /* 208 = ATputmsg */ | |
234 | "ATPsndreq", /* 209 = ATPsndreq */ | |
235 | "ATPsndrsp", /* 210 = ATPsndrsp */ | |
236 | "ATPgetreq", /* 211 = ATPgetreq */ | |
237 | "ATPgetrsp", /* 212 = ATPgetrsp */ | |
238 | "#213", /* 213 = Reserved for AppleTalk */ | |
239 | "#214", /* 214 = Reserved for AppleTalk */ | |
240 | "#215", /* 215 = Reserved for AppleTalk */ | |
241 | "#216", /* 216 = Reserved */ | |
242 | "#217", /* 217 = Reserved */ | |
243 | "#218", /* 218 = Reserved */ | |
244 | "#219", /* 219 = Reserved */ | |
245 | "getattrlist", /* 220 = getattrlist */ | |
246 | "setattrlist", /* 221 = setattrlist */ | |
247 | "getdirentriesattr", /* 222 = getdirentriesattr */ | |
248 | "exchangedata", /* 223 = exchangedata */ | |
249 | "checkuseraccess", /* 224 - checkuseraccess */ | |
250 | "searchfs", /* 225 = searchfs */ | |
251 | "delete", /* 226 = private delete call */ | |
252 | "copyfile", /* 227 = copyfile */ | |
253 | "#228", /* 228 = nosys */ | |
254 | "#229", /* 229 = nosys */ | |
255 | "#230", /* 230 = reserved for AFS */ | |
256 | "watchevent", /* 231 = watchevent */ | |
257 | "waitevent", /* 232 = waitevent */ | |
258 | "modwatch", /* 233 = modwatch */ | |
259 | "#234", /* 234 = nosys */ | |
260 | "#235", /* 235 = nosys */ | |
261 | "#236", /* 236 = nosys */ | |
262 | "#237", /* 237 = nosys */ | |
263 | "#238", /* 238 = nosys */ | |
264 | "#239", /* 239 = nosys */ | |
265 | "#240", /* 240 = nosys */ | |
266 | "#241", /* 241 = nosys */ | |
267 | "fsctl", /* 242 = fsctl */ | |
268 | "#243", /* 243 = nosys */ | |
269 | "#244", /* 244 = nosys */ | |
270 | "#245", /* 245 = nosys */ | |
271 | "#246", /* 246 = nosys */ | |
272 | "#247", /* 247 = nosys */ | |
273 | "#248", /* 248 = nosys */ | |
274 | "#249", /* 249 = nosys */ | |
275 | "minherit", /* 250 = minherit */ | |
276 | "semsys", /* 251 = semsys */ | |
277 | "msgsys", /* 252 = msgsys */ | |
278 | "shmsys", /* 253 = shmsys */ | |
279 | "semctl", /* 254 = semctl */ | |
280 | "semget", /* 255 = semget */ | |
281 | "semop", /* 256 = semop */ | |
282 | "semconfig", /* 257 = semconfig */ | |
283 | "msgctl", /* 258 = msgctl */ | |
284 | "msgget", /* 259 = msgget */ | |
285 | "msgsnd", /* 260 = msgsnd */ | |
286 | "msgrcv", /* 261 = msgrcv */ | |
287 | "shmat", /* 262 = shmat */ | |
288 | "shmctl", /* 263 = shmctl */ | |
289 | "shmdt", /* 264 = shmdt */ | |
290 | "shmget", /* 265 = shmget */ | |
291 | "shm_open", /* 266 = shm_open */ | |
292 | "shm_unlink", /* 267 = shm_unlink */ | |
293 | "sem_open", /* 268 = sem_open */ | |
294 | "sem_close", /* 269 = sem_close */ | |
295 | "sem_unlink", /* 270 = sem_unlink */ | |
296 | "sem_wait", /* 271 = sem_wait */ | |
297 | "sem_trywait", /* 272 = sem_trywait */ | |
298 | "sem_post", /* 273 = sem_post */ | |
299 | "sem_getvalue", /* 274 = sem_getvalue */ | |
300 | "sem_init", /* 275 = sem_init */ | |
301 | "sem_destroy", /* 276 = sem_destroy */ | |
302 | "#277", /* 277 = nosys */ | |
303 | "#278", /* 278 = nosys */ | |
304 | "#279", /* 279 = nosys */ | |
305 | "#280", /* 280 = nosys */ | |
306 | "#281", /* 281 = nosys */ | |
307 | "#282", /* 282 = nosys */ | |
308 | "#283", /* 283 = nosys */ | |
309 | "#284", /* 284 = nosys */ | |
310 | "#285", /* 285 = nosys */ | |
311 | "#286", /* 286 = nosys */ | |
312 | "#287", /* 287 = nosys */ | |
313 | "#288", /* 288 = nosys */ | |
314 | "#289", /* 289 = nosys */ | |
315 | "#290", /* 290 = nosys */ | |
316 | "#291", /* 291 = nosys */ | |
317 | "#292", /* 292 = nosys */ | |
318 | "#293", /* 293 = nosys */ | |
319 | "#294", /* 294 = nosys */ | |
320 | "#295", /* 295 = nosys */ | |
321 | "load_shared_file", /* 296 = load_shared_file */ | |
322 | "reset_shared_file", /* 297 = reset_shared_file */ | |
323 | "new_system_shared_regions", /* 298 = new_system_shared_regions */ | |
324 | "#299", /* 299 = nosys */ | |
325 | "#300", /* 300 = modnext */ | |
326 | "#301", /* 301 = modstat */ | |
327 | "#302", /* 302 = modfnext */ | |
328 | "#303", /* 303 = modfind */ | |
329 | "#304", /* 304 = kldload */ | |
330 | "#305", /* 305 = kldunload */ | |
331 | "#306", /* 306 = kldfind */ | |
332 | "#307", /* 307 = kldnext */ | |
333 | "#308", /* 308 = kldstat */ | |
334 | "#309", /* 309 = kldfirstmod */ | |
335 | "#310", /* 310 = getsid */ | |
336 | "#311", /* 311 = setresuid */ | |
337 | "#312", /* 312 = setresgid */ | |
338 | "#313", /* 313 = obsolete signanosleep */ | |
339 | "#314", /* 314 = aio_return */ | |
340 | "#315", /* 315 = aio_suspend */ | |
341 | "#316", /* 316 = aio_cancel */ | |
342 | "#317", /* 317 = aio_error */ | |
343 | "#318", /* 318 = aio_read */ | |
344 | "#319", /* 319 = aio_write */ | |
345 | "#320", /* 320 = lio_listio */ | |
346 | "#321", /* 321 = yield */ | |
347 | "#322", /* 322 = thr_sleep */ | |
348 | "#323", /* 323 = thr_wakeup */ | |
349 | "mlockall", /* 324 = mlockall */ | |
350 | "munlockall", /* 325 = munlockall */ | |
351 | "#326", /* 326 */ | |
352 | "issetugid", /* 327 = issetugid */ | |
353 | "__pthread_kill", /* 328 = __pthread_kill */ | |
354 | "pthread_sigmask", /* 329 = pthread_sigmask */ | |
355 | "sigwait", /* 330 = sigwait */ | |
356 | "#331", /* 331 */ | |
357 | "#332", /* 332 */ | |
358 | "#333", /* 333 */ | |
359 | "#334", /* 334 */ | |
360 | "utrace", /* 335 = utrace */ | |
361 | "#336", /* 336 */ | |
362 | "#337", /* 337 */ | |
363 | "#338", /* 338 */ | |
364 | "#339", /* 339 */ | |
365 | "#340", /* 340 */ | |
366 | "#341", /* 341 */ | |
367 | "#342", /* 342 */ | |
368 | "#343", /* 343 */ | |
369 | "#344", /* 344 */ | |
370 | "#345", /* 345 */ | |
371 | "#346", /* 346 */ | |
372 | "#347", /* 347 */ | |
373 | "#348", /* 348 */ | |
374 | "#349" /* 349 */ | |
375 | }; |