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