]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/syscall.h
xnu-344.49.tar.gz
[apple/xnu.git] / bsd / sys / syscall.h
CommitLineData
1c79356b 1/*
de355530 2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
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.
1c79356b
A
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 */
9bccf70c 32#include <sys/appleapiopts.h>
1c79356b 33
9bccf70c 34#ifdef __APPLE_API_PRIVATE
1c79356b
A
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#define SYS_sigreturn 103
143#define SYS_bind 104
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
9bccf70c 178#define SYS_futimes 139
1c79356b
A
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 */
9bccf70c 190#define SYS_getpgid 151
1c79356b 191#define SYS_setprivexec 152
9bccf70c
A
192#define SYS_pread 153
193#define SYS_pwrite 154
1c79356b
A
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 */
208 /* 169 is unused */
209#define SYS_table 170
210 /* 171 is old wait_3 */
211 /* 172 is obsolete rpause */
212 /* 173 is unused */
213 /* 174 is obsolete getdents */
214#define SYS_gc_control 175
215#define SYS_add_profil 176
216 /* 177 is unused */
217 /* 178 is unused */
218 /* 179 is unused */
219#define SYS_kdebug_trace 180
220#define SYS_setgid 181
221#define SYS_setegid 182
222#define SYS_seteuid 183
de355530 223 /* 184 is unused */
9bccf70c
A
224 /* 185 is unused */
225 /* 186 is unused */
226 /* 187 is unused */
1c79356b
A
227#define SYS_stat 188
228#define SYS_fstat 189
229#define SYS_lstat 190
230#define SYS_pathconf 191
231#define SYS_fpathconf 192
232#if COMPAT_GETFSSTAT
233#define SYS_getfsstat 193
234#endif
235#define SYS_getrlimit 194
236#define SYS_setrlimit 195
237#define SYS_getdirentries 196
238#define SYS_mmap 197
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
265
9bccf70c
A
266 /* 226 - 230 are reserved for HFS expansion */
267 /* 231 - 249 are reserved */
1c79356b
A
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
9bccf70c 295 /* 277 - 295 are reserved */
1c79356b
A
296#define SYS_load_shared_file 296
297#define SYS_reset_shared_file 297
9bccf70c
A
298#define SYS_new_system_shared_regions 298
299 /* 299 - 309 are reserved */
300#define SYS_getsid 310
301 /* 311 - 323 are reserved */
1c79356b
A
302#define SYS_mlockall 324
303#define SYS_munlockall 325
0b4e3aa0
A
304 /* 326 is reserved */
305#define SYS_issetugid 327
9bccf70c
A
306#define SYS___pthread_kill 328
307#define SYS_pthread_sigmask 329
308#define SYS_sigwait 330
309#endif /* __APPLE_API_PRIVATE */
310