]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
2 * Copyright (c) 2000-2002 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@
22 /* Copyright (c) 1992, 1995-1999 Apple Computer, Inc. All Rights Reserved */
25 * The NEXTSTEP Software License Agreement specifies the terms
26 * and conditions for redistribution.
29 #include <sys/appleapiopts.h>
31 #ifdef __APPLE_API_PRIVATE
44 /* 11 is obsolete execv */
50 /* 17 is obsolete sbreak */
52 /* 18 is old getfsstat */
54 #define SYS_getfsstat 18
58 /* 21 is obsolete mount */
59 /* 22 is obsolete umount */
62 #define SYS_geteuid 25
64 #define SYS_recvmsg 27
65 #define SYS_sendmsg 28
66 #define SYS_recvfrom 29
68 #define SYS_getpeername 31
69 #define SYS_getsockname 32
71 #define SYS_chflags 34
72 #define SYS_fchflags 35
76 #define SYS_getppid 39
80 #define SYS_getegid 43
83 #define SYS_sigaction 46
85 #define SYS_sigprocmask 48
86 #define SYS_getlogin 49
87 #define SYS_setlogin 50
89 #define SYS_sigpending 52
90 #define SYS_sigaltstack 53
94 #define SYS_symlink 57
95 #define SYS_readlink 58
101 /* 64 is old getpagesize */
104 /* 67 is obsolete vread */
105 /* 68 is obsolete vwrite */
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
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
129 #define SYS_select 93
130 /* 94 is obsolete setdopt */
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
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 */
206 #define SYS_table 170
207 /* 171 is old wait_3 */
208 /* 172 is obsolete rpause */
210 /* 174 is obsolete getdents */
211 #define SYS_gc_control 175
212 #define SYS_add_profil 176
216 #define SYS_kdebug_trace 180
217 #define SYS_setgid 181
218 #define SYS_setegid 182
219 #define SYS_seteuid 183
225 #define SYS_fstat 189
226 #define SYS_lstat 190
227 #define SYS_pathconf 191
228 #define SYS_fpathconf 192
230 #define SYS_getfsstat 193
232 #define SYS_getrlimit 194
233 #define SYS_setrlimit 195
234 #define SYS_getdirentries 196
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
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 */