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