]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
5d20a40f4fc1927a7a61ab6f6694a68d111558f7
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
141 /* 103 old sigreturn */
143 #define SYS_setsockopt 105
144 #define SYS_listen 106
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 */
154 #define SYS_gettimeofday 116
155 #define SYS_getrusage 117
156 #define SYS_getsockopt 118
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 */
185 #define SYS_setsid 147
186 /* 148 old setquota */
188 /* 150 old getsockname */
189 #define SYS_getpgid 151
190 #define SYS_setprivexec 152
191 #define SYS_pread 153
192 #define SYS_pwrite 154
194 #define SYS_nfssvc 155
198 /* 156 old getdirentries */
199 #define SYS_statfs 157
200 #define SYS_fstatfs 158
201 #define SYS_unmount 159
202 /* 160 old async_daemon */
204 #define SYS_getfh 161
208 /* 162 old getdomainname */
209 /* 163 old setdomainname */
211 #define SYS_quotactl 165
212 /* 166 old exportfs */
213 #define SYS_mount 167
216 #define SYS_table 170
219 #define SYS_waitid 173
220 /* 174 old getdents */
221 /* 175 old gc_control */
222 #define SYS_add_profil 176
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
235 #define SYS_fstat 189
236 #define SYS_lstat 190
237 #define SYS_pathconf 191
238 #define SYS_fpathconf 192
240 #define SYS_getfsstat 193
244 #define SYS_getrlimit 194
245 #define SYS_setrlimit 195
246 #define SYS_getdirentries 196
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
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
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
302 #define SYS_nfsclnt 247
303 #define SYS_fhopen 248
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
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
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
369 #define SYS_getsid 310
370 #define SYS_settid_with_pid 311
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
383 #define SYS_mlockall 324
384 #define SYS_munlockall 325
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
409 #define SYS_audit 350
410 #define SYS_auditon 351
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
421 #define SYS_kqueue 362
422 #define SYS_kevent 363
423 #define SYS_lchown 364
424 #define SYS_stack_snapshot 365
429 #define SYS_MAXSYSCALL 370
431 #endif /* __APPLE_API_PRIVATE */
432 #endif /* !_SYS_SYSCALL_H_ */