]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
2 * Copyright (c) 2004 Apple Computer, 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
59 #define SYS_ogetfsstat 18
61 #define SYS_getfsstat 18
69 #define SYS_geteuid 25
71 #define SYS_recvmsg 27
72 #define SYS_sendmsg 28
73 #define SYS_recvfrom 29
75 #define SYS_getpeername 31
76 #define SYS_getsockname 32
78 #define SYS_chflags 34
79 #define SYS_fchflags 35
83 #define SYS_getppid 39
87 #define SYS_getegid 43
90 #define SYS_sigaction 46
92 #define SYS_sigprocmask 48
93 #define SYS_getlogin 49
94 #define SYS_setlogin 50
96 #define SYS_sigpending 52
97 #define SYS_sigaltstack 53
100 #define SYS_revoke 56
101 #define SYS_symlink 57
102 #define SYS_readlink 58
103 #define SYS_execve 59
105 #define SYS_chroot 61
107 /* 63 used internally , reserved */
108 /* 64 old getpagesize */
116 #define SYS_ovadvise 72
117 #define SYS_munmap 73
118 #define SYS_mprotect 74
119 #define SYS_madvise 75
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
129 #define SYS_swapon 85
130 #define SYS_getitimer 86
131 /* 87 old gethostname */
132 /* 88 old sethostname */
133 #define SYS_getdtablesize 89
137 #define SYS_select 93
140 #define SYS_setpriority 96
141 #define SYS_socket 97
142 #define SYS_connect 98
144 #define SYS_getpriority 100
147 /* 103 old sigreturn */
149 #define SYS_setsockopt 105
150 #define SYS_listen 106
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 */
160 #define SYS_gettimeofday 116
161 #define SYS_getrusage 117
162 #define SYS_getsockopt 118
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 */
191 #define SYS_setsid 147
192 /* 148 old setquota */
194 /* 150 old getsockname */
195 #define SYS_getpgid 151
196 #define SYS_setprivexec 152
197 #define SYS_pread 153
198 #define SYS_pwrite 154
200 #define SYS_nfssvc 155
204 /* 156 old getdirentries */
205 #define SYS_statfs 157
206 #define SYS_fstatfs 158
207 #define SYS_unmount 159
208 /* 160 old async_daemon */
210 #define SYS_getfh 161
214 /* 162 old getdomainname */
215 /* 163 old setdomainname */
217 #define SYS_quotactl 165
218 /* 166 old exportfs */
219 #define SYS_mount 167
222 #define SYS_table 170
225 #define SYS_waitid 173
226 /* 174 old getdents */
227 /* 175 old gc_control */
228 #define SYS_add_profil 176
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
241 #define SYS_fstat 189
242 #define SYS_lstat 190
243 #define SYS_pathconf 191
244 #define SYS_fpathconf 192
246 #define SYS_getfsstat 193
250 #define SYS_getrlimit 194
251 #define SYS_setrlimit 195
252 #define SYS_getdirentries 196
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
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
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
308 #define SYS_nfsclnt 247
309 #define SYS_fhopen 248
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
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
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
375 #define SYS_getsid 310
376 #define SYS_settid_with_pid 311
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
389 #define SYS_mlockall 324
390 #define SYS_munlockall 325
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
415 #define SYS_audit 350
416 #define SYS_auditon 351
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
427 #define SYS_kqueue 362
428 #define SYS_kevent 363
429 #define SYS_lchown 364
430 #define SYS_stack_snapshot 365
435 #define SYS_MAXSYSCALL 370
437 #endif /* __APPLE_API_PRIVATE */
438 #endif /* !_SYS_SYSCALL_H_ */