]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
2 * Copyright (c) 2004-2007 Apple 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 #ifndef _SYS_SYSCALL_H_
36 #define _SYS_SYSCALL_H_
38 #include <sys/appleapiopts.h>
39 #ifdef __APPLE_API_PRIVATE
58 #define SYS_ogetfsstat 18
59 #define SYS_getfsstat 18
66 #define SYS_geteuid 25
68 #define SYS_recvmsg 27
69 #define SYS_sendmsg 28
70 #define SYS_recvfrom 29
72 #define SYS_getpeername 31
73 #define SYS_getsockname 32
75 #define SYS_chflags 34
76 #define SYS_fchflags 35
80 #define SYS_getppid 39
84 #define SYS_getegid 43
87 #define SYS_sigaction 46
89 #define SYS_sigprocmask 48
90 #define SYS_getlogin 49
91 #define SYS_setlogin 50
93 #define SYS_sigpending 52
94 #define SYS_sigaltstack 53
98 #define SYS_symlink 57
99 #define SYS_readlink 58
100 #define SYS_execve 59
102 #define SYS_chroot 61
104 /* 63 used internally , reserved */
105 /* 64 old getpagesize */
113 #define SYS_ovadvise 72
114 #define SYS_munmap 73
115 #define SYS_mprotect 74
116 #define SYS_madvise 75
119 #define SYS_mincore 78
120 #define SYS_getgroups 79
121 #define SYS_setgroups 80
122 #define SYS_getpgrp 81
123 #define SYS_setpgid 82
124 #define SYS_setitimer 83
126 #define SYS_swapon 85
127 #define SYS_getitimer 86
128 /* 87 old gethostname */
129 /* 88 old sethostname */
130 #define SYS_getdtablesize 89
134 #define SYS_select 93
137 #define SYS_setpriority 96
138 #define SYS_socket 97
139 #define SYS_connect 98
141 #define SYS_getpriority 100
144 /* 103 old sigreturn */
146 #define SYS_setsockopt 105
147 #define SYS_listen 106
150 /* 109 old sigblock */
151 /* 110 old sigsetmask */
152 #define SYS_sigsuspend 111
153 /* 112 old sigstack */
154 /* 113 old recvmsg */
155 /* 114 old sendmsg */
157 #define SYS_gettimeofday 116
158 #define SYS_getrusage 117
159 #define SYS_getsockopt 118
161 #define SYS_readv 120
162 #define SYS_writev 121
163 #define SYS_settimeofday 122
164 #define SYS_fchown 123
165 #define SYS_fchmod 124
166 /* 125 old recvfrom */
167 #define SYS_setreuid 126
168 #define SYS_setregid 127
169 #define SYS_rename 128
170 /* 129 old truncate */
171 /* 130 old ftruncate */
172 #define SYS_flock 131
173 #define SYS_mkfifo 132
174 #define SYS_sendto 133
175 #define SYS_shutdown 134
176 #define SYS_socketpair 135
177 #define SYS_mkdir 136
178 #define SYS_rmdir 137
179 #define SYS_utimes 138
180 #define SYS_futimes 139
181 #define SYS_adjtime 140
182 /* 141 old getpeername */
183 #define SYS_gethostuuid 142
184 /* 143 old sethostid */
185 /* 144 old getrlimit */
186 /* 145 old setrlimit */
188 #define SYS_setsid 147
189 /* 148 old setquota */
191 /* 150 old getsockname */
192 #define SYS_getpgid 151
193 #define SYS_setprivexec 152
194 #define SYS_pread 153
195 #define SYS_pwrite 154
196 #define SYS_nfssvc 155
197 /* 156 old getdirentries */
198 #define SYS_statfs 157
199 #define SYS_fstatfs 158
200 #define SYS_unmount 159
201 /* 160 old async_daemon */
202 #define SYS_getfh 161
203 /* 162 old getdomainname */
204 /* 163 old setdomainname */
206 #define SYS_quotactl 165
207 /* 166 old exportfs */
208 #define SYS_mount 167
210 #define SYS_csops 169
211 #define SYS_table 170
214 #define SYS_waitid 173
215 /* 174 old getdents */
216 /* 175 old gc_control */
217 #define SYS_add_profil 176
221 #define SYS_kdebug_trace 180
222 #define SYS_setgid 181
223 #define SYS_setegid 182
224 #define SYS_seteuid 183
225 #define SYS_sigreturn 184
230 #define SYS_fstat 189
231 #define SYS_lstat 190
232 #define SYS_pathconf 191
233 #define SYS_fpathconf 192
235 #define SYS_getrlimit 194
236 #define SYS_setrlimit 195
237 #define SYS_getdirentries 196
240 #define SYS_lseek 199
241 #define SYS_truncate 200
242 #define SYS_ftruncate 201
243 #define SYS___sysctl 202
244 #define SYS_mlock 203
245 #define SYS_munlock 204
246 #define SYS_undelete 205
247 #define SYS_ATsocket 206
248 #define SYS_ATgetmsg 207
249 #define SYS_ATputmsg 208
250 #define SYS_ATPsndreq 209
251 #define SYS_ATPsndrsp 210
252 #define SYS_ATPgetreq 211
253 #define SYS_ATPgetrsp 212
254 /* 213 Reserved for AppleTalk */
255 #define SYS_kqueue_from_portset_np 214
256 #define SYS_kqueue_portset_np 215
257 #define SYS_mkcomplex 216
258 #define SYS_statv 217
259 #define SYS_lstatv 218
260 #define SYS_fstatv 219
261 #define SYS_getattrlist 220
262 #define SYS_setattrlist 221
263 #define SYS_getdirentriesattr 222
264 #define SYS_exchangedata 223
265 /* 224 was checkuseraccess */
266 #define SYS_searchfs 225
267 #define SYS_delete 226
268 #define SYS_copyfile 227
272 #define SYS_watchevent 231
273 #define SYS_waitevent 232
274 #define SYS_modwatch 233
275 #define SYS_getxattr 234
276 #define SYS_fgetxattr 235
277 #define SYS_setxattr 236
278 #define SYS_fsetxattr 237
279 #define SYS_removexattr 238
280 #define SYS_fremovexattr 239
281 #define SYS_listxattr 240
282 #define SYS_flistxattr 241
283 #define SYS_fsctl 242
284 #define SYS_initgroups 243
285 #define SYS_posix_spawn 244
288 #define SYS_nfsclnt 247
289 #define SYS_fhopen 248
291 #define SYS_minherit 250
292 #define SYS_semsys 251
293 #define SYS_msgsys 252
294 #define SYS_shmsys 253
295 #define SYS_semctl 254
296 #define SYS_semget 255
297 #define SYS_semop 256
299 #define SYS_msgctl 258
300 #define SYS_msgget 259
301 #define SYS_msgsnd 260
302 #define SYS_msgrcv 261
303 #define SYS_shmat 262
304 #define SYS_shmctl 263
305 #define SYS_shmdt 264
306 #define SYS_shmget 265
307 #define SYS_shm_open 266
308 #define SYS_shm_unlink 267
309 #define SYS_sem_open 268
310 #define SYS_sem_close 269
311 #define SYS_sem_unlink 270
312 #define SYS_sem_wait 271
313 #define SYS_sem_trywait 272
314 #define SYS_sem_post 273
315 #define SYS_sem_getvalue 274
316 #define SYS_sem_init 275
317 #define SYS_sem_destroy 276
318 #define SYS_open_extended 277
319 #define SYS_umask_extended 278
320 #define SYS_stat_extended 279
321 #define SYS_lstat_extended 280
322 #define SYS_fstat_extended 281
323 #define SYS_chmod_extended 282
324 #define SYS_fchmod_extended 283
325 #define SYS_access_extended 284
326 #define SYS_settid 285
327 #define SYS_gettid 286
328 #define SYS_setsgroups 287
329 #define SYS_getsgroups 288
330 #define SYS_setwgroups 289
331 #define SYS_getwgroups 290
332 #define SYS_mkfifo_extended 291
333 #define SYS_mkdir_extended 292
334 #define SYS_identitysvc 293
335 #define SYS_shared_region_check_np 294
336 #define SYS_shared_region_map_np 295
337 /* 296 old load_shared_file */
338 /* 297 old reset_shared_file */
339 /* 298 old new_system_shared_regions */
340 /* 299 old shared_region_map_file_np */
341 /* 300 old shared_region_make_private_np */
342 #define SYS___pthread_mutex_destroy 301
343 #define SYS___pthread_mutex_init 302
344 #define SYS___pthread_mutex_lock 303
345 #define SYS___pthread_mutex_trylock 304
346 #define SYS___pthread_mutex_unlock 305
347 #define SYS___pthread_cond_init 306
348 #define SYS___pthread_cond_destroy 307
349 #define SYS___pthread_cond_broadcast 308
350 #define SYS___pthread_cond_signal 309
351 #define SYS_getsid 310
352 #define SYS_settid_with_pid 311
353 #define SYS___pthread_cond_timedwait 312
354 #define SYS_aio_fsync 313
355 #define SYS_aio_return 314
356 #define SYS_aio_suspend 315
357 #define SYS_aio_cancel 316
358 #define SYS_aio_error 317
359 #define SYS_aio_read 318
360 #define SYS_aio_write 319
361 #define SYS_lio_listio 320
362 #define SYS___pthread_cond_wait 321
363 #define SYS_iopolicysys 322
365 #define SYS_mlockall 324
366 #define SYS_munlockall 325
368 #define SYS_issetugid 327
369 #define SYS___pthread_kill 328
370 #define SYS___pthread_sigmask 329
371 #define SYS___sigwait 330
372 #define SYS___disable_threadsignal 331
373 #define SYS___pthread_markcancel 332
374 #define SYS___pthread_canceled 333
375 #define SYS___semwait_signal 334
377 #define SYS_proc_info 336
378 #define SYS_sendfile 337
379 #define SYS_stat64 338
380 #define SYS_fstat64 339
381 #define SYS_lstat64 340
382 #define SYS_stat64_extended 341
383 #define SYS_lstat64_extended 342
384 #define SYS_fstat64_extended 343
385 #define SYS_getdirentries64 344
386 #define SYS_statfs64 345
387 #define SYS_fstatfs64 346
388 #define SYS_getfsstat64 347
389 #define SYS___pthread_chdir 348
390 #define SYS___pthread_fchdir 349
391 #define SYS_audit 350
392 #define SYS_auditon 351
394 #define SYS_getauid 353
395 #define SYS_setauid 354
396 #define SYS_getaudit 355
397 #define SYS_setaudit 356
398 #define SYS_getaudit_addr 357
399 #define SYS_setaudit_addr 358
400 #define SYS_auditctl 359
401 #define SYS_bsdthread_create 360
402 #define SYS_bsdthread_terminate 361
403 #define SYS_kqueue 362
404 #define SYS_kevent 363
405 #define SYS_lchown 364
406 #define SYS_stack_snapshot 365
407 #define SYS_bsdthread_register 366
408 #define SYS_workq_open 367
409 #define SYS_workq_ops 368
421 #define SYS___mac_execve 380
422 #define SYS___mac_syscall 381
423 #define SYS___mac_get_file 382
424 #define SYS___mac_set_file 383
425 #define SYS___mac_get_link 384
426 #define SYS___mac_set_link 385
427 #define SYS___mac_get_proc 386
428 #define SYS___mac_set_proc 387
429 #define SYS___mac_get_fd 388
430 #define SYS___mac_set_fd 389
431 #define SYS___mac_get_pid 390
432 #define SYS___mac_get_lcid 391
433 #define SYS___mac_get_lctx 392
434 #define SYS___mac_set_lctx 393
435 #define SYS_setlcid 394
436 #define SYS_getlcid 395
437 #define SYS_read_nocancel 396
438 #define SYS_write_nocancel 397
439 #define SYS_open_nocancel 398
440 #define SYS_close_nocancel 399
441 #define SYS_wait4_nocancel 400
442 #define SYS_recvmsg_nocancel 401
443 #define SYS_sendmsg_nocancel 402
444 #define SYS_recvfrom_nocancel 403
445 #define SYS_accept_nocancel 404
446 #define SYS_msync_nocancel 405
447 #define SYS_fcntl_nocancel 406
448 #define SYS_select_nocancel 407
449 #define SYS_fsync_nocancel 408
450 #define SYS_connect_nocancel 409
451 #define SYS_sigsuspend_nocancel 410
452 #define SYS_readv_nocancel 411
453 #define SYS_writev_nocancel 412
454 #define SYS_sendto_nocancel 413
455 #define SYS_pread_nocancel 414
456 #define SYS_pwrite_nocancel 415
457 #define SYS_waitid_nocancel 416
458 #define SYS_poll_nocancel 417
459 #define SYS_msgsnd_nocancel 418
460 #define SYS_msgrcv_nocancel 419
461 #define SYS_sem_wait_nocancel 420
462 #define SYS_aio_suspend_nocancel 421
463 #define SYS___sigwait_nocancel 422
464 #define SYS___semwait_signal_nocancel 423
465 #define SYS___mac_mount 424
466 #define SYS___mac_get_mount 425
467 #define SYS___mac_getfsstat 426
468 #define SYS_MAXSYSCALL 427
470 #endif /* __APPLE_API_PRIVATE */
471 #endif /* !_SYS_SYSCALL_H_ */