]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
5d20a40f4fc1927a7a61ab6f6694a68d111558f7
[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 /* 103 old sigreturn */
142 #define SYS_bind 104
143 #define SYS_setsockopt 105
144 #define SYS_listen 106
145 /* 107 old vtimes */
146 /* 108 old sigvec */
147 /* 109 old sigblock */
148 /* 110 old sigsetmask */
149 #define SYS_sigsuspend 111
150 /* 112 old sigstack */
151 /* 113 old recvmsg */
152 /* 114 old sendmsg */
153 /* 115 old vtrace */
154 #define SYS_gettimeofday 116
155 #define SYS_getrusage 117
156 #define SYS_getsockopt 118
157 /* 119 old resuba */
158 #define SYS_readv 120
159 #define SYS_writev 121
160 #define SYS_settimeofday 122
161 #define SYS_fchown 123
162 #define SYS_fchmod 124
163 /* 125 old recvfrom */
164 /* 126 old setreuid */
165 /* 127 old setregid */
166 #define SYS_rename 128
167 /* 129 old truncate */
168 /* 130 old ftruncate */
169 #define SYS_flock 131
170 #define SYS_mkfifo 132
171 #define SYS_sendto 133
172 #define SYS_shutdown 134
173 #define SYS_socketpair 135
174 #define SYS_mkdir 136
175 #define SYS_rmdir 137
176 #define SYS_utimes 138
177 #define SYS_futimes 139
178 #define SYS_adjtime 140
179 /* 141 old getpeername */
180 /* 142 old gethostid */
181 /* 143 old sethostid */
182 /* 144 old getrlimit */
183 /* 145 old setrlimit */
184 /* 146 old killpg */
185 #define SYS_setsid 147
186 /* 148 old setquota */
187 /* 149 old qquota */
188 /* 150 old getsockname */
189 #define SYS_getpgid 151
190 #define SYS_setprivexec 152
191 #define SYS_pread 153
192 #define SYS_pwrite 154
193 #if NFSSERVER
194 #define SYS_nfssvc 155
195 #else
196 /* 155 */
197 #endif
198 /* 156 old getdirentries */
199 #define SYS_statfs 157
200 #define SYS_fstatfs 158
201 #define SYS_unmount 159
202 /* 160 old async_daemon */
203 #if NFSCLIENT
204 #define SYS_getfh 161
205 #else
206 /* 161 */
207 #endif
208 /* 162 old getdomainname */
209 /* 163 old setdomainname */
210 /* 164 */
211 #define SYS_quotactl 165
212 /* 166 old exportfs */
213 #define SYS_mount 167
214 /* 168 old ustat */
215 /* 169 */
216 #define SYS_table 170
217 /* 171 old wait3 */
218 /* 172 old rpause */
219 #define SYS_waitid 173
220 /* 174 old getdents */
221 /* 175 old gc_control */
222 #define SYS_add_profil 176
223 /* 177 */
224 /* 178 */
225 /* 179 */
226 #define SYS_kdebug_trace 180
227 #define SYS_setgid 181
228 #define SYS_setegid 182
229 #define SYS_seteuid 183
230 #define SYS_sigreturn 184
231 #define SYS_chud 185
232 /* 186 */
233 /* 187 */
234 #define SYS_stat 188
235 #define SYS_fstat 189
236 #define SYS_lstat 190
237 #define SYS_pathconf 191
238 #define SYS_fpathconf 192
239 #if COMPAT_GETFSSTAT
240 #define SYS_getfsstat 193
241 #else
242 /* 193 */
243 #endif
244 #define SYS_getrlimit 194
245 #define SYS_setrlimit 195
246 #define SYS_getdirentries 196
247 #define SYS_mmap 197
248 /* 198 __syscall */
249 #define SYS_lseek 199
250 #define SYS_truncate 200
251 #define SYS_ftruncate 201
252 #define SYS___sysctl 202
253 #define SYS_mlock 203
254 #define SYS_munlock 204
255 #define SYS_undelete 205
256 #define SYS_ATsocket 206
257 #define SYS_ATgetmsg 207
258 #define SYS_ATputmsg 208
259 #define SYS_ATPsndreq 209
260 #define SYS_ATPsndrsp 210
261 #define SYS_ATPgetreq 211
262 #define SYS_ATPgetrsp 212
263 /* 213 Reserved for AppleTalk */
264 #define SYS_kqueue_from_portset_np 214
265 #define SYS_kqueue_portset_np 215
266 #define SYS_mkcomplex 216
267 #define SYS_statv 217
268 #define SYS_lstatv 218
269 #define SYS_fstatv 219
270 #define SYS_getattrlist 220
271 #define SYS_setattrlist 221
272 #define SYS_getdirentriesattr 222
273 #define SYS_exchangedata 223
274 #ifdef __APPLE_API_OBSOLETE
275 #define SYS_checkuseraccess 224
276 #else
277 /* 224 HFS checkuseraccess check access to a file */
278 #endif /* __APPLE_API_OBSOLETE */
279 #define SYS_searchfs 225
280 #define SYS_delete 226
281 #define SYS_copyfile 227
282 /* 228 */
283 /* 229 */
284 #define SYS_poll 230
285 #define SYS_watchevent 231
286 #define SYS_waitevent 232
287 #define SYS_modwatch 233
288 #define SYS_getxattr 234
289 #define SYS_fgetxattr 235
290 #define SYS_setxattr 236
291 #define SYS_fsetxattr 237
292 #define SYS_removexattr 238
293 #define SYS_fremovexattr 239
294 #define SYS_listxattr 240
295 #define SYS_flistxattr 241
296 #define SYS_fsctl 242
297 #define SYS_initgroups 243
298 /* 244 */
299 /* 245 */
300 /* 246 */
301 #if NFSCLIENT
302 #define SYS_nfsclnt 247
303 #define SYS_fhopen 248
304 #else
305 /* 247 */
306 /* 248 */
307 #endif
308 /* 249 */
309 #define SYS_minherit 250
310 #define SYS_semsys 251
311 #define SYS_msgsys 252
312 #define SYS_shmsys 253
313 #define SYS_semctl 254
314 #define SYS_semget 255
315 #define SYS_semop 256
316 /* 257 */
317 #define SYS_msgctl 258
318 #define SYS_msgget 259
319 #define SYS_msgsnd 260
320 #define SYS_msgrcv 261
321 #define SYS_shmat 262
322 #define SYS_shmctl 263
323 #define SYS_shmdt 264
324 #define SYS_shmget 265
325 #define SYS_shm_open 266
326 #define SYS_shm_unlink 267
327 #define SYS_sem_open 268
328 #define SYS_sem_close 269
329 #define SYS_sem_unlink 270
330 #define SYS_sem_wait 271
331 #define SYS_sem_trywait 272
332 #define SYS_sem_post 273
333 #define SYS_sem_getvalue 274
334 #define SYS_sem_init 275
335 #define SYS_sem_destroy 276
336 #define SYS_open_extended 277
337 #define SYS_umask_extended 278
338 #define SYS_stat_extended 279
339 #define SYS_lstat_extended 280
340 #define SYS_fstat_extended 281
341 #define SYS_chmod_extended 282
342 #define SYS_fchmod_extended 283
343 #define SYS_access_extended 284
344 #define SYS_settid 285
345 #define SYS_gettid 286
346 #define SYS_setsgroups 287
347 #define SYS_getsgroups 288
348 #define SYS_setwgroups 289
349 #define SYS_getwgroups 290
350 #define SYS_mkfifo_extended 291
351 #define SYS_mkdir_extended 292
352 #define SYS_identitysvc 293
353 /* 294 */
354 /* 295 */
355 #define SYS_load_shared_file 296
356 #define SYS_reset_shared_file 297
357 #define SYS_new_system_shared_regions 298
358 #define SYS_shared_region_map_file_np 299
359 #define SYS_shared_region_make_private_np 300
360 /* 301 */
361 /* 302 */
362 /* 303 */
363 /* 304 */
364 /* 305 */
365 /* 306 */
366 /* 307 */
367 /* 308 */
368 /* 309 */
369 #define SYS_getsid 310
370 #define SYS_settid_with_pid 311
371 /* 312 */
372 #define SYS_aio_fsync 313
373 #define SYS_aio_return 314
374 #define SYS_aio_suspend 315
375 #define SYS_aio_cancel 316
376 #define SYS_aio_error 317
377 #define SYS_aio_read 318
378 #define SYS_aio_write 319
379 #define SYS_lio_listio 320
380 /* 321 */
381 /* 322 */
382 /* 323 */
383 #define SYS_mlockall 324
384 #define SYS_munlockall 325
385 /* 326 */
386 #define SYS_issetugid 327
387 #define SYS___pthread_kill 328
388 #define SYS_pthread_sigmask 329
389 #define SYS_sigwait 330
390 #define SYS___disable_threadsignal 331
391 #define SYS___pthread_markcancel 332
392 #define SYS___pthread_canceled 333
393 #define SYS___semwait_signal 334
394 #define SYS_utrace 335
395 #define SYS_proc_info 336
396 /* 337 */
397 /* 338 */
398 /* 339 */
399 /* 340 */
400 /* 341 */
401 /* 342 */
402 /* 343 */
403 /* 344 */
404 /* 345 */
405 /* 346 */
406 /* 347 */
407 /* 348 */
408 /* 349 */
409 #define SYS_audit 350
410 #define SYS_auditon 351
411 /* 352 */
412 #define SYS_getauid 353
413 #define SYS_setauid 354
414 #define SYS_getaudit 355
415 #define SYS_setaudit 356
416 #define SYS_getaudit_addr 357
417 #define SYS_setaudit_addr 358
418 #define SYS_auditctl 359
419 /* 360 */
420 /* 361 */
421 #define SYS_kqueue 362
422 #define SYS_kevent 363
423 #define SYS_lchown 364
424 #define SYS_stack_snapshot 365
425 /* 366 */
426 /* 367 */
427 /* 368 */
428 /* 369 */
429 #define SYS_MAXSYSCALL 370
430
431 #endif /* __APPLE_API_PRIVATE */
432 #endif /* !_SYS_SYSCALL_H_ */