]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * System call switch table.
25 * DO NOT EDIT-- this file is automatically generated.
26 * created from syscalls.master
29 #ifndef _SYS_SYSCALL_H_
30 #define _SYS_SYSCALL_H_
32 #include <sys/appleapiopts.h>
33 #ifdef __APPLE_API_PRIVATE
53 #define SYS_ogetfsstat 18
55 #define SYS_getfsstat 18
63 #define SYS_geteuid 25
65 #define SYS_recvmsg 27
66 #define SYS_sendmsg 28
67 #define SYS_recvfrom 29
69 #define SYS_getpeername 31
70 #define SYS_getsockname 32
72 #define SYS_chflags 34
73 #define SYS_fchflags 35
77 #define SYS_getppid 39
81 #define SYS_getegid 43
84 #define SYS_sigaction 46
86 #define SYS_sigprocmask 48
87 #define SYS_getlogin 49
88 #define SYS_setlogin 50
90 #define SYS_sigpending 52
91 #define SYS_sigaltstack 53
95 #define SYS_symlink 57
96 #define SYS_readlink 58
101 /* 63 used internally , reserved */
102 /* 64 old getpagesize */
110 #define SYS_ovadvise 72
111 #define SYS_munmap 73
112 #define SYS_mprotect 74
113 #define SYS_madvise 75
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
123 #define SYS_swapon 85
124 #define SYS_getitimer 86
125 /* 87 old gethostname */
126 /* 88 old sethostname */
127 #define SYS_getdtablesize 89
131 #define SYS_select 93
134 #define SYS_setpriority 96
135 #define SYS_socket 97
136 #define SYS_connect 98
138 #define SYS_getpriority 100
142 /* 103 old sigreturn */
144 #define SYS_sigreturn 103
147 #define SYS_setsockopt 105
148 #define SYS_listen 106
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 */
159 #define SYS_ppc_gettimeofday 116
160 #define SYS_gettimeofday 116
162 #define SYS_gettimeofday 116
164 #define SYS_getrusage 117
165 #define SYS_getsockopt 118
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 */
194 #define SYS_setsid 147
195 /* 148 old setquota */
197 /* 150 old getsockname */
198 #define SYS_getpgid 151
199 #define SYS_setprivexec 152
200 #define SYS_pread 153
201 #define SYS_pwrite 154
203 #define SYS_nfssvc 155
207 /* 156 old getdirentries */
208 #define SYS_statfs 157
209 #define SYS_fstatfs 158
210 #define SYS_unmount 159
211 /* 160 old async_daemon */
213 #define SYS_getfh 161
217 /* 162 old getdomainname */
218 /* 163 old setdomainname */
220 #define SYS_quotactl 165
221 /* 166 old exportfs */
222 #define SYS_mount 167
225 #define SYS_table 170
228 #define SYS_waitid 173
229 /* 174 old getdents */
230 /* 175 old gc_control */
231 #define SYS_add_profil 176
235 #define SYS_kdebug_trace 180
236 #define SYS_setgid 181
237 #define SYS_setegid 182
238 #define SYS_seteuid 183
240 #define SYS_sigreturn 184
248 #define SYS_fstat 189
249 #define SYS_lstat 190
250 #define SYS_pathconf 191
251 #define SYS_fpathconf 192
253 #define SYS_getfsstat 193
257 #define SYS_getrlimit 194
258 #define SYS_setrlimit 195
259 #define SYS_getdirentries 196
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
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 */
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 */
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
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
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
326 #define SYS_nfsclnt 247
327 #define SYS_fhopen 248
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
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
393 #define SYS_getsid 310
394 #define SYS_settid_with_pid 311
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
407 #define SYS_mlockall 324
408 #define SYS_munlockall 325
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
433 #define SYS_audit 350
434 #define SYS_auditon 351
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
445 #define SYS_kqueue 362
446 #define SYS_kevent 363
447 #define SYS_lchown 364
453 #define SYS_MAXSYSCALL 370
455 #endif /* __APPLE_API_PRIVATE */
456 #endif /* !_SYS_SYSCALL_H_ */