]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
174ab95ecc51aec5463fe244abab0eedc9ee1526
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
25 /* Copyright (c) 1992, 1995-1999 Apple Computer, Inc. All Rights Reserved */
28 * The NEXTSTEP Software License Agreement specifies the terms
29 * and conditions for redistribution.
32 #include <sys/appleapiopts.h>
34 #ifdef __APPLE_API_PRIVATE
47 /* 11 is obsolete execv */
53 /* 17 is obsolete sbreak */
55 /* 18 is old getfsstat */
57 #define SYS_getfsstat 18
61 /* 21 is obsolete mount */
62 /* 22 is obsolete umount */
65 #define SYS_geteuid 25
67 #define SYS_recvmsg 27
68 #define SYS_sendmsg 28
69 #define SYS_recvfrom 29
71 #define SYS_getpeername 31
72 #define SYS_getsockname 32
74 #define SYS_chflags 34
75 #define SYS_fchflags 35
79 #define SYS_getppid 39
83 #define SYS_getegid 43
86 #define SYS_sigaction 46
88 #define SYS_sigprocmask 48
89 #define SYS_getlogin 49
90 #define SYS_setlogin 50
92 #define SYS_sigpending 52
93 #define SYS_sigaltstack 53
97 #define SYS_symlink 57
98 #define SYS_readlink 58
101 #define SYS_chroot 61
102 /* 62 is old fstat */
104 /* 64 is old getpagesize */
107 /* 67 is obsolete vread */
108 /* 68 is obsolete vwrite */
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
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
132 #define SYS_select 93
133 /* 94 is obsolete setdopt */
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 #define SYS_sigreturn 103
144 #define SYS_setsockopt 105
145 #define SYS_listen 106
146 /* 107 is obsolete vtimes */
147 /* 108 is old sigvec */
148 /* 109 is old sigblock */
149 /* 110 is old sigsetmask */
150 #define SYS_sigsuspend 111
151 /* 112 is old sigstack */
152 /* 113 is old recvmsg */
153 /* 114 is old sendmsg */
154 /* 115 is obsolete vtrace */
155 #define SYS_gettimeofday 116
156 #define SYS_getrusage 117
157 #define SYS_getsockopt 118
158 /* 119 is obsolete resuba */
159 #define SYS_readv 120
160 #define SYS_writev 121
161 #define SYS_settimeofday 122
162 #define SYS_fchown 123
163 #define SYS_fchmod 124
164 /* 125 is old recvfrom */
165 /* 126 is old setreuid */
166 /* 127 is old setregid */
167 #define SYS_rename 128
168 /* 129 is old truncate */
169 /* 130 is old ftruncate */
170 #define SYS_flock 131
171 #define SYS_mkfifo 132
172 #define SYS_sendto 133
173 #define SYS_shutdown 134
174 #define SYS_socketpair 135
175 #define SYS_mkdir 136
176 #define SYS_rmdir 137
177 #define SYS_utimes 138
178 #define SYS_futimes 139
179 #define SYS_adjtime 140
180 /* 141 is old getpeername */
181 /* 142 is old gethostid */
182 /* 143 is old sethostid */
183 /* 144 is old getrlimit */
184 /* 145 is old setrlimit */
185 /* 146 is old killpg */
186 #define SYS_setsid 147
187 /* 148 is obsolete setquota */
188 /* 149 is obsolete quota */
189 /* 150 is old getsockname */
190 #define SYS_getpgid 151
191 #define SYS_setprivexec 152
192 #define SYS_pread 153
193 #define SYS_pwrite 154
194 #define SYS_nfssvc 155
195 /* 156 is old getdirentries */
196 #define SYS_statfs 157
197 #define SYS_fstatfs 158
198 #define SYS_unmount 159
199 /* 160 is obsolete async_daemon */
200 #define SYS_getfh 161
201 /* 162 is old getdomainname */
202 /* 163 is old setdomainname */
203 /* 164 is obsolete pcfs_mount */
204 #define SYS_quotactl 165
205 /* 166 is obsolete exportfs */
206 #define SYS_mount 167
207 /* 168 is obsolete ustat */
209 #define SYS_table 170
210 /* 171 is old wait_3 */
211 /* 172 is obsolete rpause */
213 /* 174 is obsolete getdents */
214 #define SYS_gc_control 175
215 #define SYS_add_profil 176
219 #define SYS_kdebug_trace 180
220 #define SYS_setgid 181
221 #define SYS_setegid 182
222 #define SYS_seteuid 183
228 #define SYS_fstat 189
229 #define SYS_lstat 190
230 #define SYS_pathconf 191
231 #define SYS_fpathconf 192
233 #define SYS_getfsstat 193
235 #define SYS_getrlimit 194
236 #define SYS_setrlimit 195
237 #define SYS_getdirentries 196
239 #define SYS___syscall 198
240 #define SYS_lseek 199
241 #define SYS_truncate 200
242 #define SYS_ftruncate 201
243 #define SYS___sysctl 202
244 #define SYS_mlock 203
245 #define SYS_munlock 204
246 #define SYS_undelete 205
247 #define SYS_ATsocket 206
248 #define SYS_ATgetmsg 207
249 #define SYS_ATputmsg 208
250 #define SYS_ATPsndreq 209
251 #define SYS_ATPsndrsp 210
252 #define SYS_ATPgetreq 211
253 #define SYS_ATPgetrsp 212
254 /* 213-215 are reserved for AppleTalk */
255 #define SYS_mkcomplex 216
256 #define SYS_statv 217
257 #define SYS_lstatv 218
258 #define SYS_fstatv 219
259 #define SYS_getattrlist 220
260 #define SYS_setattrlist 221
261 #define SYS_getdirentriesattr 222
262 #define SYS_exchangedata 223
263 #define SYS_checkuseraccess 224
264 #define SYS_searchfs 225
266 /* 226 - 230 are reserved for HFS expansion */
267 /* 231 - 249 are reserved */
268 #define SYS_minherit 250
269 #define SYS_semsys 251
270 #define SYS_msgsys 252
271 #define SYS_shmsys 253
272 #define SYS_semctl 254
273 #define SYS_semget 255
274 #define SYS_semop 256
275 #define SYS_semconfig 257
276 #define SYS_msgctl 258
277 #define SYS_msgget 259
278 #define SYS_msgsnd 260
279 #define SYS_msgrcv 261
280 #define SYS_shmat 262
281 #define SYS_shmctl 263
282 #define SYS_shmdt 264
283 #define SYS_shmget 265
284 #define SYS_shm_open 266
285 #define SYS_shm_unlink 267
286 #define SYS_sem_open 268
287 #define SYS_sem_close 269
288 #define SYS_sem_unlink 270
289 #define SYS_sem_wait 271
290 #define SYS_sem_trywait 272
291 #define SYS_sem_post 273
292 #define SYS_sem_getvalue 274
293 #define SYS_sem_init 275
294 #define SYS_sem_destroy 276
295 /* 277 - 295 are reserved */
296 #define SYS_load_shared_file 296
297 #define SYS_reset_shared_file 297
298 #define SYS_new_system_shared_regions 298
299 /* 299 - 309 are reserved */
300 #define SYS_getsid 310
301 /* 311 - 323 are reserved */
302 #define SYS_mlockall 324
303 #define SYS_munlockall 325
304 /* 326 is reserved */
305 #define SYS_issetugid 327
306 #define SYS___pthread_kill 328
307 #define SYS_pthread_sigmask 329
308 #define SYS_sigwait 330
309 #endif /* __APPLE_API_PRIVATE */