]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/syscall.h
xnu-124.13.tar.gz
[apple/xnu.git] / bsd / sys / syscall.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 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
30
31#define SYS_syscall 0
32#define SYS_exit 1
33#define SYS_fork 2
34#define SYS_read 3
35#define SYS_write 4
36#define SYS_open 5
37#define SYS_close 6
38#define SYS_wait4 7
39 /* 8 is old creat */
40#define SYS_link 9
41#define SYS_unlink 10
42 /* 11 is obsolete execv */
43#define SYS_chdir 12
44#define SYS_fchdir 13
45#define SYS_mknod 14
46#define SYS_chmod 15
47#define SYS_chown 16
48 /* 17 is obsolete sbreak */
49#if COMPAT_GETFSSTAT
50 /* 18 is old getfsstat */
51#else
52#define SYS_getfsstat 18
53#endif
54 /* 19 is old lseek */
55#define SYS_getpid 20
56 /* 21 is obsolete mount */
57 /* 22 is obsolete umount */
58#define SYS_setuid 23
59#define SYS_getuid 24
60#define SYS_geteuid 25
61#define SYS_ptrace 26
62#define SYS_recvmsg 27
63#define SYS_sendmsg 28
64#define SYS_recvfrom 29
65#define SYS_accept 30
66#define SYS_getpeername 31
67#define SYS_getsockname 32
68#define SYS_access 33
69#define SYS_chflags 34
70#define SYS_fchflags 35
71#define SYS_sync 36
72#define SYS_kill 37
73 /* 38 is old stat */
74#define SYS_getppid 39
75 /* 40 is old lstat */
76#define SYS_dup 41
77#define SYS_pipe 42
78#define SYS_getegid 43
79#define SYS_profil 44
80#define SYS_ktrace 45
81#define SYS_sigaction 46
82#define SYS_getgid 47
83#define SYS_sigprocmask 48
84#define SYS_getlogin 49
85#define SYS_setlogin 50
86#define SYS_acct 51
87#define SYS_sigpending 52
88#define SYS_sigaltstack 53
89#define SYS_ioctl 54
90#define SYS_reboot 55
91#define SYS_revoke 56
92#define SYS_symlink 57
93#define SYS_readlink 58
94#define SYS_execve 59
95#define SYS_umask 60
96#define SYS_chroot 61
97 /* 62 is old fstat */
98 /* 63 is unused */
99 /* 64 is old getpagesize */
100#define SYS_msync 65
101#define SYS_vfork 66
102 /* 67 is obsolete vread */
103 /* 68 is obsolete vwrite */
104#define SYS_sbrk 69
105#define SYS_sstk 70
106 /* 71 is old mmap */
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
119 /* 84 is old wait */
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
125#define SYS_dup2 90
126#define SYS_fcntl 92
127#define SYS_select 93
128 /* 94 is obsolete setdopt */
129#define SYS_fsync 95
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
138#define SYS_bind 104
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
173 /* 139 is unused */
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 */
203 /* 169 is unused */
204#define SYS_table 170
205 /* 171 is old wait_3 */
206 /* 172 is obsolete rpause */
207 /* 173 is unused */
208 /* 174 is obsolete getdents */
209#define SYS_gc_control 175
210#define SYS_add_profil 176
211 /* 177 is unused */
212 /* 178 is unused */
213 /* 179 is unused */
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
222#define SYS_stat 188
223#define SYS_fstat 189
224#define SYS_lstat 190
225#define SYS_pathconf 191
226#define SYS_fpathconf 192
227#if COMPAT_GETFSSTAT
228#define SYS_getfsstat 193
229#endif
230#define SYS_getrlimit 194
231#define SYS_setrlimit 195
232#define SYS_getdirentries 196
233#define SYS_mmap 197
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
260
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
296