]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
xnu-517.tar.gz
[apple/xnu.git] / bsd / sys / syscall.h
1 /*
2 * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /* Copyright (c) 1992, 1995-1999 Apple Computer, Inc. All Rights Reserved */
26 /*
27 *
28 * The NEXTSTEP Software License Agreement specifies the terms
29 * and conditions for redistribution.
30 *
31 */
32 #include <sys/appleapiopts.h>
33
34 #ifdef __APPLE_API_PRIVATE
35
36 #define SYS_syscall 0
37 #define SYS_exit 1
38 #define SYS_fork 2
39 #define SYS_read 3
40 #define SYS_write 4
41 #define SYS_open 5
42 #define SYS_close 6
43 #define SYS_wait4 7
44 /* 8 is old creat */
45 #define SYS_link 9
46 #define SYS_unlink 10
47 /* 11 is obsolete execv */
48 #define SYS_chdir 12
49 #define SYS_fchdir 13
50 #define SYS_mknod 14
51 #define SYS_chmod 15
52 #define SYS_chown 16
53 /* 17 is obsolete sbreak */
54 #if COMPAT_GETFSSTAT
55 /* 18 is old getfsstat */
56 #else
57 #define SYS_getfsstat 18
58 #endif
59 /* 19 is old lseek */
60 #define SYS_getpid 20
61 /* 21 is obsolete mount */
62 /* 22 is obsolete umount */
63 #define SYS_setuid 23
64 #define SYS_getuid 24
65 #define SYS_geteuid 25
66 #define SYS_ptrace 26
67 #define SYS_recvmsg 27
68 #define SYS_sendmsg 28
69 #define SYS_recvfrom 29
70 #define SYS_accept 30
71 #define SYS_getpeername 31
72 #define SYS_getsockname 32
73 #define SYS_access 33
74 #define SYS_chflags 34
75 #define SYS_fchflags 35
76 #define SYS_sync 36
77 #define SYS_kill 37
78 /* 38 is old stat */
79 #define SYS_getppid 39
80 /* 40 is old lstat */
81 #define SYS_dup 41
82 #define SYS_pipe 42
83 #define SYS_getegid 43
84 #define SYS_profil 44
85 #define SYS_ktrace 45
86 #define SYS_sigaction 46
87 #define SYS_getgid 47
88 #define SYS_sigprocmask 48
89 #define SYS_getlogin 49
90 #define SYS_setlogin 50
91 #define SYS_acct 51
92 #define SYS_sigpending 52
93 #define SYS_sigaltstack 53
94 #define SYS_ioctl 54
95 #define SYS_reboot 55
96 #define SYS_revoke 56
97 #define SYS_symlink 57
98 #define SYS_readlink 58
99 #define SYS_execve 59
100 #define SYS_umask 60
101 #define SYS_chroot 61
102 /* 62 is old fstat */
103 /* 63 is unused */
104 /* 64 is old getpagesize */
105 #define SYS_msync 65
106 #define SYS_vfork 66
107 /* 67 is obsolete vread */
108 /* 68 is obsolete vwrite */
109 #define SYS_sbrk 69
110 #define SYS_sstk 70
111 /* 71 is old mmap */
112 /* 72 is obsolete vadvise */
113 #define SYS_munmap 73
114 #define SYS_mprotect 74
115 #define SYS_madvise 75
116 /* 76 is obsolete vhangup */
117 /* 77 is obsolete vlimit */
118 #define SYS_mincore 78
119 #define SYS_getgroups 79
120 #define SYS_setgroups 80
121 #define SYS_getpgrp 81
122 #define SYS_setpgid 82
123 #define SYS_setitimer 83
124 /* 84 is old wait */
125 #define SYS_swapon 85
126 #define SYS_getitimer 86
127 /* 87 is old gethostname */
128 /* 88 is old sethostname */
129 #define SYS_getdtablesize 89
130 #define SYS_dup2 90
131 #define SYS_fcntl 92
132 #define SYS_select 93
133 /* 94 is obsolete setdopt */
134 #define SYS_fsync 95
135 #define SYS_setpriority 96
136 #define SYS_socket 97
137 #define SYS_connect 98
138 /* 99 is old accept */
139 #define SYS_getpriority 100
140 /* 101 is old send */
141 /* 102 is old recv */
142 #ifndef __ppc__
143 #define SYS_sigreturn 103
144 #endif
145 #define SYS_bind 104
146 #define SYS_setsockopt 105
147 #define SYS_listen 106
148 /* 107 is obsolete vtimes */
149 /* 108 is old sigvec */
150 /* 109 is old sigblock */
151 /* 110 is old sigsetmask */
152 #define SYS_sigsuspend 111
153 /* 112 is old sigstack */
154 /* 113 is old recvmsg */
155 /* 114 is old sendmsg */
156 /* 115 is obsolete vtrace */
157 #define SYS_gettimeofday 116
158 #define SYS_getrusage 117
159 #define SYS_getsockopt 118
160 /* 119 is obsolete resuba */
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 is old recvfrom */
167 /* 126 is old setreuid */
168 /* 127 is old setregid */
169 #define SYS_rename 128
170 /* 129 is old truncate */
171 /* 130 is 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 is old getpeername */
183 /* 142 is old gethostid */
184 /* 143 is old sethostid */
185 /* 144 is old getrlimit */
186 /* 145 is old setrlimit */
187 /* 146 is old killpg */
188 #define SYS_setsid 147
189 /* 148 is obsolete setquota */
190 /* 149 is obsolete quota */
191 /* 150 is 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 is old getdirentries */
198 #define SYS_statfs 157
199 #define SYS_fstatfs 158
200 #define SYS_unmount 159
201 /* 160 is obsolete async_daemon */
202 #define SYS_getfh 161
203 /* 162 is old getdomainname */
204 /* 163 is old setdomainname */
205 /* 164 is obsolete pcfs_mount */
206 #define SYS_quotactl 165
207 /* 166 is obsolete exportfs */
208 #define SYS_mount 167
209 /* 168 is obsolete ustat */
210 /* 169 is unused */
211 #define SYS_table 170
212 /* 171 is old wait_3 */
213 /* 172 is obsolete rpause */
214 /* 173 is unused */
215 /* 174 is obsolete getdents */
216 #define SYS_gc_control 175
217 #define SYS_add_profil 176
218 /* 177 is unused */
219 /* 178 is unused */
220 /* 179 is unused */
221 #define SYS_kdebug_trace 180
222 #define SYS_setgid 181
223 #define SYS_setegid 182
224 #define SYS_seteuid 183
225 #ifdef __ppc__
226 #define SYS_sigreturn 184
227 #endif
228 /* 185 is unused */
229 /* 186 is unused */
230 /* 187 is unused */
231 #define SYS_stat 188
232 #define SYS_fstat 189
233 #define SYS_lstat 190
234 #define SYS_pathconf 191
235 #define SYS_fpathconf 192
236 #if COMPAT_GETFSSTAT
237 #define SYS_getfsstat 193
238 #endif
239 #define SYS_getrlimit 194
240 #define SYS_setrlimit 195
241 #define SYS_getdirentries 196
242 #define SYS_mmap 197
243 #define SYS___syscall 198
244 #define SYS_lseek 199
245 #define SYS_truncate 200
246 #define SYS_ftruncate 201
247 #define SYS___sysctl 202
248 #define SYS_mlock 203
249 #define SYS_munlock 204
250 #define SYS_undelete 205
251 #define SYS_ATsocket 206
252 #define SYS_ATgetmsg 207
253 #define SYS_ATputmsg 208
254 #define SYS_ATPsndreq 209
255 #define SYS_ATPsndrsp 210
256 #define SYS_ATPgetreq 211
257 #define SYS_ATPgetrsp 212
258 /* 213 is reserved for AppleTalk */
259 #define SYS_kqueue_from_portset_np 214
260 #define SYS_kqueue_portset_np 215
261 #define SYS_mkcomplex 216
262 #define SYS_statv 217
263 #define SYS_lstatv 218
264 #define SYS_fstatv 219
265 #define SYS_getattrlist 220
266 #define SYS_setattrlist 221
267 #define SYS_getdirentriesattr 222
268 #define SYS_exchangedata 223
269 #define SYS_checkuseraccess 224
270 #define SYS_searchfs 225
271
272 /* 226 - 230 are reserved for HFS expansion */
273 /* 231 - 241 are reserved */
274 #define SYS_fsctl 242
275 /* 243 - 246 are reserved */
276 #define SYS_nfsclnt 247 /* from freebsd, for lockd */
277 #define SYS_fhopen 248 /* from freebsd, for lockd */
278 /* 249 is reserved */
279 #define SYS_minherit 250
280 #define SYS_semsys 251
281 #define SYS_msgsys 252
282 #define SYS_shmsys 253
283 #define SYS_semctl 254
284 #define SYS_semget 255
285 #define SYS_semop 256
286 #define SYS_semconfig 257
287 #define SYS_msgctl 258
288 #define SYS_msgget 259
289 #define SYS_msgsnd 260
290 #define SYS_msgrcv 261
291 #define SYS_shmat 262
292 #define SYS_shmctl 263
293 #define SYS_shmdt 264
294 #define SYS_shmget 265
295 #define SYS_shm_open 266
296 #define SYS_shm_unlink 267
297 #define SYS_sem_open 268
298 #define SYS_sem_close 269
299 #define SYS_sem_unlink 270
300 #define SYS_sem_wait 271
301 #define SYS_sem_trywait 272
302 #define SYS_sem_post 273
303 #define SYS_sem_getvalue 274
304 #define SYS_sem_init 275
305 #define SYS_sem_destroy 276
306 /* 277 - 295 are reserved */
307 #define SYS_load_shared_file 296
308 #define SYS_reset_shared_file 297
309 #define SYS_new_system_shared_regions 298
310 /* 299 - 309 are reserved */
311 #define SYS_getsid 310
312 /* 311 - 312 are reserved */
313 #define SYS_aio_fsync 313
314 #define SYS_aio_return 314
315 #define SYS_aio_suspend 315
316 #define SYS_aio_cancel 316
317 #define SYS_aio_error 317
318 #define SYS_aio_read 318
319 #define SYS_aio_write 319
320 #define SYS_lio_listio 320
321 /* 321 - 323 are reserved */
322 #define SYS_mlockall 324
323 #define SYS_munlockall 325
324 /* 326 is reserved */
325 #define SYS_issetugid 327
326 #define SYS___pthread_kill 328
327 #define SYS_pthread_sigmask 329
328 #define SYS_sigwait 330
329
330 #define SYS_audit 350 /* submit user space audit records */
331 #define SYS_auditon 351 /* audit subsystem control */
332 #define SYS_auditsvc 352 /* audit file control */
333 #define SYS_getauid 353
334 #define SYS_setauid 354
335 #define SYS_getaudit 355
336 #define SYS_setaudit 356
337 #define SYS_getaudit_addr 357
338 #define SYS_setaudit_addr 358
339 #define SYS_auditctl 359 /* audit control */
340
341 #define SYS_kqueue 362
342 #define SYS_kevent 363
343 #endif /* __APPLE_API_PRIVATE */
344