]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syscall.h
2 * Copyright (c) 2000 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.
42 /* 11 is obsolete execv */
48 /* 17 is obsolete sbreak */
50 /* 18 is old getfsstat */
52 #define SYS_getfsstat 18
56 /* 21 is obsolete mount */
57 /* 22 is obsolete umount */
60 #define SYS_geteuid 25
62 #define SYS_recvmsg 27
63 #define SYS_sendmsg 28
64 #define SYS_recvfrom 29
66 #define SYS_getpeername 31
67 #define SYS_getsockname 32
69 #define SYS_chflags 34
70 #define SYS_fchflags 35
74 #define SYS_getppid 39
78 #define SYS_getegid 43
81 #define SYS_sigaction 46
83 #define SYS_sigprocmask 48
84 #define SYS_getlogin 49
85 #define SYS_setlogin 50
87 #define SYS_sigpending 52
88 #define SYS_sigaltstack 53
92 #define SYS_symlink 57
93 #define SYS_readlink 58
99 /* 64 is old getpagesize */
102 /* 67 is obsolete vread */
103 /* 68 is obsolete vwrite */
107 /* 72 is obsolete vadvise */
108 #define SYS_munmap 73
109 #define SYS_mprotect 74
110 #define SYS_madvise 75
111 /* 76 is obsolete vhangup */
112 /* 77 is obsolete vlimit */
113 #define SYS_mincore 78
114 #define SYS_getgroups 79
115 #define SYS_setgroups 80
116 #define SYS_getpgrp 81
117 #define SYS_setpgid 82
118 #define SYS_setitimer 83
120 #define SYS_swapon 85
121 #define SYS_getitimer 86
122 /* 87 is old gethostname */
123 /* 88 is old sethostname */
124 #define SYS_getdtablesize 89
127 #define SYS_select 93
128 /* 94 is obsolete setdopt */
130 #define SYS_setpriority 96
131 #define SYS_socket 97
132 #define SYS_connect 98
133 /* 99 is old accept */
134 #define SYS_getpriority 100
135 /* 101 is old send */
136 /* 102 is old recv */
137 #define SYS_sigreturn 103
139 #define SYS_setsockopt 105
140 #define SYS_listen 106
141 /* 107 is obsolete vtimes */
142 /* 108 is old sigvec */
143 /* 109 is old sigblock */
144 /* 110 is old sigsetmask */
145 #define SYS_sigsuspend 111
146 /* 112 is old sigstack */
147 /* 113 is old recvmsg */
148 /* 114 is old sendmsg */
149 /* 115 is obsolete vtrace */
150 #define SYS_gettimeofday 116
151 #define SYS_getrusage 117
152 #define SYS_getsockopt 118
153 /* 119 is obsolete resuba */
154 #define SYS_readv 120
155 #define SYS_writev 121
156 #define SYS_settimeofday 122
157 #define SYS_fchown 123
158 #define SYS_fchmod 124
159 /* 125 is old recvfrom */
160 /* 126 is old setreuid */
161 /* 127 is old setregid */
162 #define SYS_rename 128
163 /* 129 is old truncate */
164 /* 130 is old ftruncate */
165 #define SYS_flock 131
166 #define SYS_mkfifo 132
167 #define SYS_sendto 133
168 #define SYS_shutdown 134
169 #define SYS_socketpair 135
170 #define SYS_mkdir 136
171 #define SYS_rmdir 137
172 #define SYS_utimes 138
174 #define SYS_adjtime 140
175 /* 141 is old getpeername */
176 /* 142 is old gethostid */
177 /* 143 is old sethostid */
178 /* 144 is old getrlimit */
179 /* 145 is old setrlimit */
180 /* 146 is old killpg */
181 #define SYS_setsid 147
182 /* 148 is obsolete setquota */
183 /* 149 is obsolete quota */
184 /* 150 is old getsockname */
185 /* 151 is reserved */
186 #define SYS_setprivexec 152
187 /* 153 is reserved */
188 /* 154 is reserved */
189 #define SYS_nfssvc 155
190 /* 156 is old getdirentries */
191 #define SYS_statfs 157
192 #define SYS_fstatfs 158
193 #define SYS_unmount 159
194 /* 160 is obsolete async_daemon */
195 #define SYS_getfh 161
196 /* 162 is old getdomainname */
197 /* 163 is old setdomainname */
198 /* 164 is obsolete pcfs_mount */
199 #define SYS_quotactl 165
200 /* 166 is obsolete exportfs */
201 #define SYS_mount 167
202 /* 168 is obsolete ustat */
204 #define SYS_table 170
205 /* 171 is old wait_3 */
206 /* 172 is obsolete rpause */
208 /* 174 is obsolete getdents */
209 #define SYS_gc_control 175
210 #define SYS_add_profil 176
214 #define SYS_kdebug_trace 180
215 #define SYS_setgid 181
216 #define SYS_setegid 182
217 #define SYS_seteuid 183
218 #define SYS_lfs_bmapv 184
219 #define SYS_lfs_markv 185
220 #define SYS_lfs_segclean 186
221 #define SYS_lfs_segwait 187
223 #define SYS_fstat 189
224 #define SYS_lstat 190
225 #define SYS_pathconf 191
226 #define SYS_fpathconf 192
228 #define SYS_getfsstat 193
230 #define SYS_getrlimit 194
231 #define SYS_setrlimit 195
232 #define SYS_getdirentries 196
234 #define SYS___syscall 198
235 #define SYS_lseek 199
236 #define SYS_truncate 200
237 #define SYS_ftruncate 201
238 #define SYS___sysctl 202
239 #define SYS_mlock 203
240 #define SYS_munlock 204
241 #define SYS_undelete 205
242 #define SYS_ATsocket 206
243 #define SYS_ATgetmsg 207
244 #define SYS_ATputmsg 208
245 #define SYS_ATPsndreq 209
246 #define SYS_ATPsndrsp 210
247 #define SYS_ATPgetreq 211
248 #define SYS_ATPgetrsp 212
249 /* 213-215 are reserved for AppleTalk */
250 #define SYS_mkcomplex 216
251 #define SYS_statv 217
252 #define SYS_lstatv 218
253 #define SYS_fstatv 219
254 #define SYS_getattrlist 220
255 #define SYS_setattrlist 221
256 #define SYS_getdirentriesattr 222
257 #define SYS_exchangedata 223
258 #define SYS_checkuseraccess 224
259 #define SYS_searchfs 225
261 /* 226 - 230 are reserved for HFS expansion */
262 /* 231 - 249 are reserved */
263 #define SYS_minherit 250
264 #define SYS_semsys 251
265 #define SYS_msgsys 252
266 #define SYS_shmsys 253
267 #define SYS_semctl 254
268 #define SYS_semget 255
269 #define SYS_semop 256
270 #define SYS_semconfig 257
271 #define SYS_msgctl 258
272 #define SYS_msgget 259
273 #define SYS_msgsnd 260
274 #define SYS_msgrcv 261
275 #define SYS_shmat 262
276 #define SYS_shmctl 263
277 #define SYS_shmdt 264
278 #define SYS_shmget 265
279 #define SYS_shm_open 266
280 #define SYS_shm_unlink 267
281 #define SYS_sem_open 268
282 #define SYS_sem_close 269
283 #define SYS_sem_unlink 270
284 #define SYS_sem_wait 271
285 #define SYS_sem_trywait 272
286 #define SYS_sem_post 273
287 #define SYS_sem_getvalue 274
288 #define SYS_sem_init 275
289 #define SYS_sem_destroy 276
290 /* 277 - 295 are reserved */
291 #define SYS_load_shared_file 296
292 #define SYS_reset_shared_file 297
293 /* 298 - 323 are reserved */
294 #define SYS_mlockall 324
295 #define SYS_munlockall 325