]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
xnu-792.1.5.tar.gz
[apple/xnu.git] / bsd / sys / syscall.h
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 *
22 *
23 * System call switch table.
24 *
25 * DO NOT EDIT-- this file is automatically generated.
26 * created from syscalls.master
27 */
28
29 #ifndef _SYS_SYSCALL_H_
30 #define _SYS_SYSCALL_H_
31
32 #include <sys/appleapiopts.h>
33 #ifdef __APPLE_API_PRIVATE
34 #define SYS_syscall 0
35 #define SYS_exit 1
36 #define SYS_fork 2
37 #define SYS_read 3
38 #define SYS_write 4
39 #define SYS_open 5
40 #define SYS_close 6
41 #define SYS_wait4 7
42 /* 8 old creat */
43 #define SYS_link 9
44 #define SYS_unlink 10
45 /* 11 old execv */
46 #define SYS_chdir 12
47 #define SYS_fchdir 13
48 #define SYS_mknod 14
49 #define SYS_chmod 15
50 #define SYS_chown 16
51 #define SYS_obreak 17
52 #if COMPAT_GETFSSTAT
53 #define SYS_ogetfsstat 18
54 #else
55 #define SYS_getfsstat 18
56 #endif
57 /* 19 old lseek */
58 #define SYS_getpid 20
59 /* 21 old mount */
60 /* 22 old umount */
61 #define SYS_setuid 23
62 #define SYS_getuid 24
63 #define SYS_geteuid 25
64 #define SYS_ptrace 26
65 #define SYS_recvmsg 27
66 #define SYS_sendmsg 28
67 #define SYS_recvfrom 29
68 #define SYS_accept 30
69 #define SYS_getpeername 31
70 #define SYS_getsockname 32
71 #define SYS_access 33
72 #define SYS_chflags 34
73 #define SYS_fchflags 35
74 #define SYS_sync 36
75 #define SYS_kill 37
76 /* 38 old stat */
77 #define SYS_getppid 39
78 /* 40 old lstat */
79 #define SYS_dup 41
80 #define SYS_pipe 42
81 #define SYS_getegid 43
82 #define SYS_profil 44
83 #define SYS_ktrace 45
84 #define SYS_sigaction 46
85 #define SYS_getgid 47
86 #define SYS_sigprocmask 48
87 #define SYS_getlogin 49
88 #define SYS_setlogin 50
89 #define SYS_acct 51
90 #define SYS_sigpending 52
91 #define SYS_sigaltstack 53
92 #define SYS_ioctl 54
93 #define SYS_reboot 55
94 #define SYS_revoke 56
95 #define SYS_symlink 57
96 #define SYS_readlink 58
97 #define SYS_execve 59
98 #define SYS_umask 60
99 #define SYS_chroot 61
100 /* 62 old fstat */
101 /* 63 used internally , reserved */
102 /* 64 old getpagesize */
103 #define SYS_msync 65
104 #define SYS_vfork 66
105 /* 67 old vread */
106 /* 68 old vwrite */
107 #define SYS_sbrk 69
108 #define SYS_sstk 70
109 /* 71 old mmap */
110 #define SYS_ovadvise 72
111 #define SYS_munmap 73
112 #define SYS_mprotect 74
113 #define SYS_madvise 75
114 /* 76 old vhangup */
115 /* 77 old vlimit */
116 #define SYS_mincore 78
117 #define SYS_getgroups 79
118 #define SYS_setgroups 80
119 #define SYS_getpgrp 81
120 #define SYS_setpgid 82
121 #define SYS_setitimer 83
122 /* 84 old wait */
123 #define SYS_swapon 85
124 #define SYS_getitimer 86
125 /* 87 old gethostname */
126 /* 88 old sethostname */
127 #define SYS_getdtablesize 89
128 #define SYS_dup2 90
129 /* 91 old getdopt */
130 #define SYS_fcntl 92
131 #define SYS_select 93
132 /* 94 old setdopt */
133 #define SYS_fsync 95
134 #define SYS_setpriority 96
135 #define SYS_socket 97
136 #define SYS_connect 98
137 /* 99 old accept */
138 #define SYS_getpriority 100
139 /* 101 old send */
140 /* 102 old recv */
141 #ifdef __ppc__
142 /* 103 old sigreturn */
143 #else
144 #define SYS_sigreturn 103
145 #endif
146 #define SYS_bind 104
147 #define SYS_setsockopt 105
148 #define SYS_listen 106
149 /* 107 old vtimes */
150 /* 108 old sigvec */
151 /* 109 old sigblock */
152 /* 110 old sigsetmask */
153 #define SYS_sigsuspend 111
154 /* 112 old sigstack */
155 /* 113 old recvmsg */
156 /* 114 old sendmsg */
157 /* 115 old vtrace */
158 #ifdef __ppc__
159 #define SYS_ppc_gettimeofday 116
160 #define SYS_gettimeofday 116
161 #else
162 #define SYS_gettimeofday 116
163 #endif
164 #define SYS_getrusage 117
165 #define SYS_getsockopt 118
166 /* 119 old resuba */
167 #define SYS_readv 120
168 #define SYS_writev 121
169 #define SYS_settimeofday 122
170 #define SYS_fchown 123
171 #define SYS_fchmod 124
172 /* 125 old recvfrom */
173 /* 126 old setreuid */
174 /* 127 old setregid */
175 #define SYS_rename 128
176 /* 129 old truncate */
177 /* 130 old ftruncate */
178 #define SYS_flock 131
179 #define SYS_mkfifo 132
180 #define SYS_sendto 133
181 #define SYS_shutdown 134
182 #define SYS_socketpair 135
183 #define SYS_mkdir 136
184 #define SYS_rmdir 137
185 #define SYS_utimes 138
186 #define SYS_futimes 139
187 #define SYS_adjtime 140
188 /* 141 old getpeername */
189 /* 142 old gethostid */
190 /* 143 old sethostid */
191 /* 144 old getrlimit */
192 /* 145 old setrlimit */
193 /* 146 old killpg */
194 #define SYS_setsid 147
195 /* 148 old setquota */
196 /* 149 old qquota */
197 /* 150 old getsockname */
198 #define SYS_getpgid 151
199 #define SYS_setprivexec 152
200 #define SYS_pread 153
201 #define SYS_pwrite 154
202 #if NFSSERVER
203 #define SYS_nfssvc 155
204 #else
205 /* 155 */
206 #endif
207 /* 156 old getdirentries */
208 #define SYS_statfs 157
209 #define SYS_fstatfs 158
210 #define SYS_unmount 159
211 /* 160 old async_daemon */
212 #if NFSCLIENT
213 #define SYS_getfh 161
214 #else
215 /* 161 */
216 #endif
217 /* 162 old getdomainname */
218 /* 163 old setdomainname */
219 /* 164 */
220 #define SYS_quotactl 165
221 /* 166 old exportfs */
222 #define SYS_mount 167
223 /* 168 old ustat */
224 /* 169 */
225 #define SYS_table 170
226 /* 171 old wait3 */
227 /* 172 old rpause */
228 #define SYS_waitid 173
229 /* 174 old getdents */
230 /* 175 old gc_control */
231 #define SYS_add_profil 176
232 /* 177 */
233 /* 178 */
234 /* 179 */
235 #define SYS_kdebug_trace 180
236 #define SYS_setgid 181
237 #define SYS_setegid 182
238 #define SYS_seteuid 183
239 #ifdef __ppc__
240 #define SYS_sigreturn 184
241 #else
242 /* 184 */
243 #endif
244 /* 185 */
245 /* 186 */
246 /* 187 */
247 #define SYS_stat 188
248 #define SYS_fstat 189
249 #define SYS_lstat 190
250 #define SYS_pathconf 191
251 #define SYS_fpathconf 192
252 #if COMPAT_GETFSSTAT
253 #define SYS_getfsstat 193
254 #else
255 /* 193 */
256 #endif
257 #define SYS_getrlimit 194
258 #define SYS_setrlimit 195
259 #define SYS_getdirentries 196
260 #define SYS_mmap 197
261 /* 198 __syscall */
262 #define SYS_lseek 199
263 #define SYS_truncate 200
264 #define SYS_ftruncate 201
265 #define SYS___sysctl 202
266 #define SYS_mlock 203
267 #define SYS_munlock 204
268 #define SYS_undelete 205
269 #ifdef __ppc__
270 #define SYS_ATsocket 206
271 #define SYS_ATgetmsg 207
272 #define SYS_ATputmsg 208
273 #define SYS_ATPsndreq 209
274 #define SYS_ATPsndrsp 210
275 #define SYS_ATPgetreq 211
276 #define SYS_ATPgetrsp 212
277 /* 213 Reserved for AppleTalk */
278 #else
279 #define SYS_ATsocket 206
280 #define SYS_ATgetmsg 207
281 #define SYS_ATputmsg 208
282 #define SYS_ATPsndreq 209
283 #define SYS_ATPsndrsp 210
284 #define SYS_ATPgetreq 211
285 #define SYS_ATPgetrsp 212
286 /* 213 Reserved for AppleTalk */
287 #endif /* __ppc__ */
288 #define SYS_kqueue_from_portset_np 214
289 #define SYS_kqueue_portset_np 215
290 #define SYS_mkcomplex 216
291 #define SYS_statv 217
292 #define SYS_lstatv 218
293 #define SYS_fstatv 219
294 #define SYS_getattrlist 220
295 #define SYS_setattrlist 221
296 #define SYS_getdirentriesattr 222
297 #define SYS_exchangedata 223
298 #ifdef __APPLE_API_OBSOLETE
299 #define SYS_checkuseraccess 224
300 #else
301 /* 224 HFS checkuseraccess check access to a file */
302 #endif /* __APPLE_API_OBSOLETE */
303 #define SYS_searchfs 225
304 #define SYS_delete 226
305 #define SYS_copyfile 227
306 /* 228 */
307 /* 229 */
308 #define SYS_poll 230
309 #define SYS_watchevent 231
310 #define SYS_waitevent 232
311 #define SYS_modwatch 233
312 #define SYS_getxattr 234
313 #define SYS_fgetxattr 235
314 #define SYS_setxattr 236
315 #define SYS_fsetxattr 237
316 #define SYS_removexattr 238
317 #define SYS_fremovexattr 239
318 #define SYS_listxattr 240
319 #define SYS_flistxattr 241
320 #define SYS_fsctl 242
321 #define SYS_initgroups 243
322 /* 244 */
323 /* 245 */
324 /* 246 */
325 #if NFSCLIENT
326 #define SYS_nfsclnt 247
327 #define SYS_fhopen 248
328 #else
329 /* 247 */
330 /* 248 */
331 #endif
332 /* 249 */
333 #define SYS_minherit 250
334 #define SYS_semsys 251
335 #define SYS_msgsys 252
336 #define SYS_shmsys 253
337 #define SYS_semctl 254
338 #define SYS_semget 255
339 #define SYS_semop 256
340 #define SYS_semconfig 257
341 #define SYS_msgctl 258
342 #define SYS_msgget 259
343 #define SYS_msgsnd 260
344 #define SYS_msgrcv 261
345 #define SYS_shmat 262
346 #define SYS_shmctl 263
347 #define SYS_shmdt 264
348 #define SYS_shmget 265
349 #define SYS_shm_open 266
350 #define SYS_shm_unlink 267
351 #define SYS_sem_open 268
352 #define SYS_sem_close 269
353 #define SYS_sem_unlink 270
354 #define SYS_sem_wait 271
355 #define SYS_sem_trywait 272
356 #define SYS_sem_post 273
357 #define SYS_sem_getvalue 274
358 #define SYS_sem_init 275
359 #define SYS_sem_destroy 276
360 #define SYS_open_extended 277
361 #define SYS_umask_extended 278
362 #define SYS_stat_extended 279
363 #define SYS_lstat_extended 280
364 #define SYS_fstat_extended 281
365 #define SYS_chmod_extended 282
366 #define SYS_fchmod_extended 283
367 #define SYS_access_extended 284
368 #define SYS_settid 285
369 #define SYS_gettid 286
370 #define SYS_setsgroups 287
371 #define SYS_getsgroups 288
372 #define SYS_setwgroups 289
373 #define SYS_getwgroups 290
374 #define SYS_mkfifo_extended 291
375 #define SYS_mkdir_extended 292
376 #define SYS_identitysvc 293
377 /* 294 */
378 /* 295 */
379 #define SYS_load_shared_file 296
380 #define SYS_reset_shared_file 297
381 #define SYS_new_system_shared_regions 298
382 #define SYS_shared_region_map_file_np 299
383 #define SYS_shared_region_make_private_np 300
384 /* 301 */
385 /* 302 */
386 /* 303 */
387 /* 304 */
388 /* 305 */
389 /* 306 */
390 /* 307 */
391 /* 308 */
392 /* 309 */
393 #define SYS_getsid 310
394 #define SYS_settid_with_pid 311
395 /* 312 */
396 #define SYS_aio_fsync 313
397 #define SYS_aio_return 314
398 #define SYS_aio_suspend 315
399 #define SYS_aio_cancel 316
400 #define SYS_aio_error 317
401 #define SYS_aio_read 318
402 #define SYS_aio_write 319
403 #define SYS_lio_listio 320
404 /* 321 */
405 /* 322 */
406 /* 323 */
407 #define SYS_mlockall 324
408 #define SYS_munlockall 325
409 /* 326 */
410 #define SYS_issetugid 327
411 #define SYS___pthread_kill 328
412 #define SYS_pthread_sigmask 329
413 #define SYS_sigwait 330
414 #define SYS___disable_threadsignal 331
415 #define SYS___pthread_markcancel 332
416 #define SYS___pthread_canceled 333
417 #define SYS___semwait_signal 334
418 #define SYS_utrace 335
419 /* 336 */
420 /* 337 */
421 /* 338 */
422 /* 339 */
423 /* 340 */
424 /* 341 */
425 /* 342 */
426 /* 343 */
427 /* 344 */
428 /* 345 */
429 /* 346 */
430 /* 347 */
431 /* 348 */
432 /* 349 */
433 #define SYS_audit 350
434 #define SYS_auditon 351
435 /* 352 */
436 #define SYS_getauid 353
437 #define SYS_setauid 354
438 #define SYS_getaudit 355
439 #define SYS_setaudit 356
440 #define SYS_getaudit_addr 357
441 #define SYS_setaudit_addr 358
442 #define SYS_auditctl 359
443 /* 360 */
444 /* 361 */
445 #define SYS_kqueue 362
446 #define SYS_kevent 363
447 #define SYS_lchown 364
448 /* 365 */
449 /* 366 */
450 /* 367 */
451 /* 368 */
452 /* 369 */
453 #define SYS_MAXSYSCALL 370
454
455 #endif /* __APPLE_API_PRIVATE */
456 #endif /* !_SYS_SYSCALL_H_ */