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