]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
xnu-344.12.2.tar.gz
[apple/xnu.git] / bsd / sys / syscall.h
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /* Copyright (c) 1992, 1995-1999 Apple Computer, Inc. All Rights Reserved */
23 /*
24 *
25 * The NEXTSTEP Software License Agreement specifies the terms
26 * and conditions for redistribution.
27 *
28 */
29 #include <sys/appleapiopts.h>
30
31 #ifdef __APPLE_API_PRIVATE
32
33 #define SYS_syscall 0
34 #define SYS_exit 1
35 #define SYS_fork 2
36 #define SYS_read 3
37 #define SYS_write 4
38 #define SYS_open 5
39 #define SYS_close 6
40 #define SYS_wait4 7
41 /* 8 is old creat */
42 #define SYS_link 9
43 #define SYS_unlink 10
44 /* 11 is obsolete execv */
45 #define SYS_chdir 12
46 #define SYS_fchdir 13
47 #define SYS_mknod 14
48 #define SYS_chmod 15
49 #define SYS_chown 16
50 /* 17 is obsolete sbreak */
51 #if COMPAT_GETFSSTAT
52 /* 18 is old getfsstat */
53 #else
54 #define SYS_getfsstat 18
55 #endif
56 /* 19 is old lseek */
57 #define SYS_getpid 20
58 /* 21 is obsolete mount */
59 /* 22 is obsolete umount */
60 #define SYS_setuid 23
61 #define SYS_getuid 24
62 #define SYS_geteuid 25
63 #define SYS_ptrace 26
64 #define SYS_recvmsg 27
65 #define SYS_sendmsg 28
66 #define SYS_recvfrom 29
67 #define SYS_accept 30
68 #define SYS_getpeername 31
69 #define SYS_getsockname 32
70 #define SYS_access 33
71 #define SYS_chflags 34
72 #define SYS_fchflags 35
73 #define SYS_sync 36
74 #define SYS_kill 37
75 /* 38 is old stat */
76 #define SYS_getppid 39
77 /* 40 is old lstat */
78 #define SYS_dup 41
79 #define SYS_pipe 42
80 #define SYS_getegid 43
81 #define SYS_profil 44
82 #define SYS_ktrace 45
83 #define SYS_sigaction 46
84 #define SYS_getgid 47
85 #define SYS_sigprocmask 48
86 #define SYS_getlogin 49
87 #define SYS_setlogin 50
88 #define SYS_acct 51
89 #define SYS_sigpending 52
90 #define SYS_sigaltstack 53
91 #define SYS_ioctl 54
92 #define SYS_reboot 55
93 #define SYS_revoke 56
94 #define SYS_symlink 57
95 #define SYS_readlink 58
96 #define SYS_execve 59
97 #define SYS_umask 60
98 #define SYS_chroot 61
99 /* 62 is old fstat */
100 /* 63 is unused */
101 /* 64 is old getpagesize */
102 #define SYS_msync 65
103 #define SYS_vfork 66
104 /* 67 is obsolete vread */
105 /* 68 is obsolete vwrite */
106 #define SYS_sbrk 69
107 #define SYS_sstk 70
108 /* 71 is old mmap */
109 /* 72 is obsolete vadvise */
110 #define SYS_munmap 73
111 #define SYS_mprotect 74
112 #define SYS_madvise 75
113 /* 76 is obsolete vhangup */
114 /* 77 is obsolete vlimit */
115 #define SYS_mincore 78
116 #define SYS_getgroups 79
117 #define SYS_setgroups 80
118 #define SYS_getpgrp 81
119 #define SYS_setpgid 82
120 #define SYS_setitimer 83
121 /* 84 is old wait */
122 #define SYS_swapon 85
123 #define SYS_getitimer 86
124 /* 87 is old gethostname */
125 /* 88 is old sethostname */
126 #define SYS_getdtablesize 89
127 #define SYS_dup2 90
128 #define SYS_fcntl 92
129 #define SYS_select 93
130 /* 94 is obsolete setdopt */
131 #define SYS_fsync 95
132 #define SYS_setpriority 96
133 #define SYS_socket 97
134 #define SYS_connect 98
135 /* 99 is old accept */
136 #define SYS_getpriority 100
137 /* 101 is old send */
138 /* 102 is old recv */
139 #define SYS_sigreturn 103
140 #define SYS_bind 104
141 #define SYS_setsockopt 105
142 #define SYS_listen 106
143 /* 107 is obsolete vtimes */
144 /* 108 is old sigvec */
145 /* 109 is old sigblock */
146 /* 110 is old sigsetmask */
147 #define SYS_sigsuspend 111
148 /* 112 is old sigstack */
149 /* 113 is old recvmsg */
150 /* 114 is old sendmsg */
151 /* 115 is obsolete vtrace */
152 #define SYS_gettimeofday 116
153 #define SYS_getrusage 117
154 #define SYS_getsockopt 118
155 /* 119 is obsolete resuba */
156 #define SYS_readv 120
157 #define SYS_writev 121
158 #define SYS_settimeofday 122
159 #define SYS_fchown 123
160 #define SYS_fchmod 124
161 /* 125 is old recvfrom */
162 /* 126 is old setreuid */
163 /* 127 is old setregid */
164 #define SYS_rename 128
165 /* 129 is old truncate */
166 /* 130 is old ftruncate */
167 #define SYS_flock 131
168 #define SYS_mkfifo 132
169 #define SYS_sendto 133
170 #define SYS_shutdown 134
171 #define SYS_socketpair 135
172 #define SYS_mkdir 136
173 #define SYS_rmdir 137
174 #define SYS_utimes 138
175 #define SYS_futimes 139
176 #define SYS_adjtime 140
177 /* 141 is old getpeername */
178 /* 142 is old gethostid */
179 /* 143 is old sethostid */
180 /* 144 is old getrlimit */
181 /* 145 is old setrlimit */
182 /* 146 is old killpg */
183 #define SYS_setsid 147
184 /* 148 is obsolete setquota */
185 /* 149 is obsolete quota */
186 /* 150 is old getsockname */
187 #define SYS_getpgid 151
188 #define SYS_setprivexec 152
189 #define SYS_pread 153
190 #define SYS_pwrite 154
191 #define SYS_nfssvc 155
192 /* 156 is old getdirentries */
193 #define SYS_statfs 157
194 #define SYS_fstatfs 158
195 #define SYS_unmount 159
196 /* 160 is obsolete async_daemon */
197 #define SYS_getfh 161
198 /* 162 is old getdomainname */
199 /* 163 is old setdomainname */
200 /* 164 is obsolete pcfs_mount */
201 #define SYS_quotactl 165
202 /* 166 is obsolete exportfs */
203 #define SYS_mount 167
204 /* 168 is obsolete ustat */
205 /* 169 is unused */
206 #define SYS_table 170
207 /* 171 is old wait_3 */
208 /* 172 is obsolete rpause */
209 /* 173 is unused */
210 /* 174 is obsolete getdents */
211 #define SYS_gc_control 175
212 #define SYS_add_profil 176
213 /* 177 is unused */
214 /* 178 is unused */
215 /* 179 is unused */
216 #define SYS_kdebug_trace 180
217 #define SYS_setgid 181
218 #define SYS_setegid 182
219 #define SYS_seteuid 183
220 /* 184 is unused */
221 /* 185 is unused */
222 /* 186 is unused */
223 /* 187 is unused */
224 #define SYS_stat 188
225 #define SYS_fstat 189
226 #define SYS_lstat 190
227 #define SYS_pathconf 191
228 #define SYS_fpathconf 192
229 #if COMPAT_GETFSSTAT
230 #define SYS_getfsstat 193
231 #endif
232 #define SYS_getrlimit 194
233 #define SYS_setrlimit 195
234 #define SYS_getdirentries 196
235 #define SYS_mmap 197
236 #define SYS___syscall 198
237 #define SYS_lseek 199
238 #define SYS_truncate 200
239 #define SYS_ftruncate 201
240 #define SYS___sysctl 202
241 #define SYS_mlock 203
242 #define SYS_munlock 204
243 #define SYS_undelete 205
244 #define SYS_ATsocket 206
245 #define SYS_ATgetmsg 207
246 #define SYS_ATputmsg 208
247 #define SYS_ATPsndreq 209
248 #define SYS_ATPsndrsp 210
249 #define SYS_ATPgetreq 211
250 #define SYS_ATPgetrsp 212
251 /* 213-215 are reserved for AppleTalk */
252 #define SYS_mkcomplex 216
253 #define SYS_statv 217
254 #define SYS_lstatv 218
255 #define SYS_fstatv 219
256 #define SYS_getattrlist 220
257 #define SYS_setattrlist 221
258 #define SYS_getdirentriesattr 222
259 #define SYS_exchangedata 223
260 #define SYS_checkuseraccess 224
261 #define SYS_searchfs 225
262
263 /* 226 - 230 are reserved for HFS expansion */
264 /* 231 - 249 are reserved */
265 #define SYS_minherit 250
266 #define SYS_semsys 251
267 #define SYS_msgsys 252
268 #define SYS_shmsys 253
269 #define SYS_semctl 254
270 #define SYS_semget 255
271 #define SYS_semop 256
272 #define SYS_semconfig 257
273 #define SYS_msgctl 258
274 #define SYS_msgget 259
275 #define SYS_msgsnd 260
276 #define SYS_msgrcv 261
277 #define SYS_shmat 262
278 #define SYS_shmctl 263
279 #define SYS_shmdt 264
280 #define SYS_shmget 265
281 #define SYS_shm_open 266
282 #define SYS_shm_unlink 267
283 #define SYS_sem_open 268
284 #define SYS_sem_close 269
285 #define SYS_sem_unlink 270
286 #define SYS_sem_wait 271
287 #define SYS_sem_trywait 272
288 #define SYS_sem_post 273
289 #define SYS_sem_getvalue 274
290 #define SYS_sem_init 275
291 #define SYS_sem_destroy 276
292 /* 277 - 295 are reserved */
293 #define SYS_load_shared_file 296
294 #define SYS_reset_shared_file 297
295 #define SYS_new_system_shared_regions 298
296 /* 299 - 309 are reserved */
297 #define SYS_getsid 310
298 /* 311 - 323 are reserved */
299 #define SYS_mlockall 324
300 #define SYS_munlockall 325
301 /* 326 is reserved */
302 #define SYS_issetugid 327
303 #define SYS___pthread_kill 328
304 #define SYS_pthread_sigmask 329
305 #define SYS_sigwait 330
306 #endif /* __APPLE_API_PRIVATE */
307