Note
From: syscall.h - Apple Open Source
Table
NR | syscall name | %x8 |
---|---|---|
0 | SYS_syscall | 0x0 |
1 | SYS_exit | 0x1 |
2 | SYS_fork | 0x2 |
3 | SYS_read | 0x3 |
4 | SYS_write | 0x4 |
5 | SYS_open | 0x5 |
6 | SYS_close | 0x6 |
7 | SYS_wait4 | 0x7 |
9 | SYS_link | 0x9 |
10 | SYS_unlink | 0xa |
12 | SYS_chdir | 0xc |
13 | SYS_fchdir | 0xd |
14 | SYS_mknod | 0xe |
15 | SYS_chmod | 0xf |
16 | SYS_chown | 0x10 |
17 | SYS_obreak | 0x11 |
18 | SYS_ogetfsstat | 0x12 |
18 | SYS_getfsstat | 0x12 |
20 | SYS_getpid | 0x14 |
23 | SYS_setuid | 0x17 |
24 | SYS_getuid | 0x18 |
25 | SYS_geteuid | 0x19 |
26 | SYS_ptrace | 0x1a |
27 | SYS_recvmsg | 0x1b |
28 | SYS_sendmsg | 0x1c |
29 | SYS_recvfrom | 0x1d |
30 | SYS_accept | 0x1e |
31 | SYS_getpeername | 0x1f |
32 | SYS_getsockname | 0x20 |
33 | SYS_access | 0x21 |
34 | SYS_chflags | 0x22 |
35 | SYS_fchflags | 0x23 |
36 | SYS_sync | 0x24 |
37 | SYS_kill | 0x25 |
39 | SYS_getppid | 0x27 |
41 | SYS_dup | 0x29 |
42 | SYS_pipe | 0x2a |
43 | SYS_getegid | 0x2b |
44 | SYS_profil | 0x2c |
46 | SYS_sigaction | 0x2e |
47 | SYS_getgid | 0x2f |
48 | SYS_sigprocmask | 0x30 |
49 | SYS_getlogin | 0x31 |
50 | SYS_setlogin | 0x32 |
51 | SYS_acct | 0x33 |
52 | SYS_sigpending | 0x34 |
53 | SYS_sigaltstack | 0x35 |
54 | SYS_ioctl | 0x36 |
55 | SYS_reboot | 0x37 |
56 | SYS_revoke | 0x38 |
57 | SYS_symlink | 0x39 |
58 | SYS_readlink | 0x3a |
59 | SYS_execve | 0x3b |
60 | SYS_umask | 0x3c |
61 | SYS_chroot | 0x3d |
65 | SYS_msync | 0x41 |
66 | SYS_vfork | 0x42 |
69 | SYS_sbrk | 0x45 |
70 | SYS_sstk | 0x46 |
72 | SYS_ovadvise | 0x48 |
73 | SYS_munmap | 0x49 |
74 | SYS_mprotect | 0x4a |
75 | SYS_madvise | 0x4b |
78 | SYS_mincore | 0x4e |
79 | SYS_getgroups | 0x4f |
80 | SYS_setgroups | 0x50 |
81 | SYS_getpgrp | 0x51 |
82 | SYS_setpgid | 0x52 |
83 | SYS_setitimer | 0x53 |
85 | SYS_swapon | 0x55 |
86 | SYS_getitimer | 0x56 |
89 | SYS_getdtablesize | 0x59 |
90 | SYS_dup2 | 0x5a |
92 | SYS_fcntl | 0x5c |
93 | SYS_select | 0x5d |
95 | SYS_fsync | 0x5f |
96 | SYS_setpriority | 0x60 |
97 | SYS_socket | 0x61 |
98 | SYS_connect | 0x62 |
100 | SYS_getpriority | 0x64 |
104 | SYS_bind | 0x68 |
105 | SYS_setsockopt | 0x69 |
106 | SYS_listen | 0x6a |
111 | SYS_sigsuspend | 0x6f |
116 | SYS_gettimeofday | 0x74 |
117 | SYS_getrusage | 0x75 |
118 | SYS_getsockopt | 0x76 |
120 | SYS_readv | 0x78 |
121 | SYS_writev | 0x79 |
122 | SYS_settimeofday | 0x7a |
123 | SYS_fchown | 0x7b |
124 | SYS_fchmod | 0x7c |
126 | SYS_setreuid | 0x7e |
127 | SYS_setregid | 0x7f |
128 | SYS_rename | 0x80 |
131 | SYS_flock | 0x83 |
132 | SYS_mkfifo | 0x84 |
133 | SYS_sendto | 0x85 |
134 | SYS_shutdown | 0x86 |
135 | SYS_socketpair | 0x87 |
136 | SYS_mkdir | 0x88 |
137 | SYS_rmdir | 0x89 |
138 | SYS_utimes | 0x8a |
139 | SYS_futimes | 0x8b |
140 | SYS_adjtime | 0x8c |
142 | SYS_gethostuuid | 0x8e |
147 | SYS_setsid | 0x93 |
151 | SYS_getpgid | 0x97 |
152 | SYS_setprivexec | 0x98 |
153 | SYS_pread | 0x99 |
154 | SYS_pwrite | 0x9a |
155 | SYS_nfssvc | 0x9b |
157 | SYS_statfs | 0x9d |
158 | SYS_fstatfs | 0x9e |
159 | SYS_unmount | 0x9f |
161 | SYS_getfh | 0xa1 |
165 | SYS_quotactl | 0xa5 |
167 | SYS_mount | 0xa7 |
169 | SYS_csops | 0xa9 |
170 | SYS_table | 0xaa |
173 | SYS_waitid | 0xad |
176 | SYS_add_profil | 0xb0 |
180 | SYS_kdebug_trace | 0xb4 |
181 | SYS_setgid | 0xb5 |
182 | SYS_setegid | 0xb6 |
183 | SYS_seteuid | 0xb7 |
184 | SYS_sigreturn | 0xb8 |
185 | SYS_chud | 0xb9 |
188 | SYS_stat | 0xbc |
189 | SYS_fstat | 0xbd |
190 | SYS_lstat | 0xbe |
191 | SYS_pathconf | 0xbf |
192 | SYS_fpathconf | 0xc0 |
194 | SYS_getrlimit | 0xc2 |
195 | SYS_setrlimit | 0xc3 |
196 | SYS_getdirentries | 0xc4 |
197 | SYS_mmap | 0xc5 |
199 | SYS_lseek | 0xc7 |
200 | SYS_truncate | 0xc8 |
201 | SYS_ftruncate | 0xc9 |
202 | SYS___sysctl | 0xca |
203 | SYS_mlock | 0xcb |
204 | SYS_munlock | 0xcc |
205 | SYS_undelete | 0xcd |
206 | SYS_ATsocket | 0xce |
207 | SYS_ATgetmsg | 0xcf |
208 | SYS_ATputmsg | 0xd0 |
209 | SYS_ATPsndreq | 0xd1 |
210 | SYS_ATPsndrsp | 0xd2 |
211 | SYS_ATPgetreq | 0xd3 |
212 | SYS_ATPgetrsp | 0xd4 |
214 | SYS_kqueue_from_portset_np | 0xd6 |
215 | SYS_kqueue_portset_np | 0xd7 |
216 | SYS_mkcomplex | 0xd8 |
217 | SYS_statv | 0xd9 |
218 | SYS_lstatv | 0xda |
219 | SYS_fstatv | 0xdb |
220 | SYS_getattrlist | 0xdc |
221 | SYS_setattrlist | 0xdd |
222 | SYS_getdirentriesattr | 0xde |
223 | SYS_exchangedata | 0xdf |
225 | SYS_searchfs | 0xe1 |
226 | SYS_delete | 0xe2 |
227 | SYS_copyfile | 0xe3 |
230 | SYS_poll | 0xe6 |
231 | SYS_watchevent | 0xe7 |
232 | SYS_waitevent | 0xe8 |
233 | SYS_modwatch | 0xe9 |
234 | SYS_getxattr | 0xea |
235 | SYS_fgetxattr | 0xeb |
236 | SYS_setxattr | 0xec |
237 | SYS_fsetxattr | 0xed |
238 | SYS_removexattr | 0xee |
239 | SYS_fremovexattr | 0xef |
240 | SYS_listxattr | 0xf0 |
241 | SYS_flistxattr | 0xf1 |
242 | SYS_fsctl | 0xf2 |
243 | SYS_initgroups | 0xf3 |
244 | SYS_posix_spawn | 0xf4 |
247 | SYS_nfsclnt | 0xf7 |
248 | SYS_fhopen | 0xf8 |
250 | SYS_minherit | 0xfa |
251 | SYS_semsys | 0xfb |
252 | SYS_msgsys | 0xfc |
253 | SYS_shmsys | 0xfd |
254 | SYS_semctl | 0xfe |
255 | SYS_semget | 0xff |
256 | SYS_semop | 0x100 |
258 | SYS_msgctl | 0x102 |
259 | SYS_msgget | 0x103 |
260 | SYS_msgsnd | 0x104 |
261 | SYS_msgrcv | 0x105 |
262 | SYS_shmat | 0x106 |
263 | SYS_shmctl | 0x107 |
264 | SYS_shmdt | 0x108 |
265 | SYS_shmget | 0x109 |
266 | SYS_shm_open | 0x10a |
267 | SYS_shm_unlink | 0x10b |
268 | SYS_sem_open | 0x10c |
269 | SYS_sem_close | 0x10d |
270 | SYS_sem_unlink | 0x10e |
271 | SYS_sem_wait | 0x10f |
272 | SYS_sem_trywait | 0x110 |
273 | SYS_sem_post | 0x111 |
274 | SYS_sem_getvalue | 0x112 |
275 | SYS_sem_init | 0x113 |
276 | SYS_sem_destroy | 0x114 |
277 | SYS_open_extended | 0x115 |
278 | SYS_umask_extended | 0x116 |
279 | SYS_stat_extended | 0x117 |
280 | SYS_lstat_extended | 0x118 |
281 | SYS_fstat_extended | 0x119 |
282 | SYS_chmod_extended | 0x11a |
283 | SYS_fchmod_extended | 0x11b |
284 | SYS_access_extended | 0x11c |
285 | SYS_settid | 0x11d |
286 | SYS_gettid | 0x11e |
287 | SYS_setsgroups | 0x11f |
288 | SYS_getsgroups | 0x120 |
289 | SYS_setwgroups | 0x121 |
290 | SYS_getwgroups | 0x122 |
291 | SYS_mkfifo_extended | 0x123 |
292 | SYS_mkdir_extended | 0x124 |
293 | SYS_identitysvc | 0x125 |
294 | SYS_shared_region_check_np | 0x126 |
295 | SYS_shared_region_map_np | 0x127 |
301 | SYS___pthread_mutex_destroy | 0x12d |
302 | SYS___pthread_mutex_init | 0x12e |
303 | SYS___pthread_mutex_lock | 0x12f |
304 | SYS___pthread_mutex_trylock | 0x130 |
305 | SYS___pthread_mutex_unlock | 0x131 |
306 | SYS___pthread_cond_init | 0x132 |
307 | SYS___pthread_cond_destroy | 0x133 |
308 | SYS___pthread_cond_broadcast | 0x134 |
309 | SYS___pthread_cond_signal | 0x135 |
310 | SYS_getsid | 0x136 |
311 | SYS_settid_with_pid | 0x137 |
312 | SYS___pthread_cond_timedwait | 0x138 |
313 | SYS_aio_fsync | 0x139 |
314 | SYS_aio_return | 0x13a |
315 | SYS_aio_suspend | 0x13b |
316 | SYS_aio_cancel | 0x13c |
317 | SYS_aio_error | 0x13d |
318 | SYS_aio_read | 0x13e |
319 | SYS_aio_write | 0x13f |
320 | SYS_lio_listio | 0x140 |
321 | SYS___pthread_cond_wait | 0x141 |
322 | SYS_iopolicysys | 0x142 |
324 | SYS_mlockall | 0x144 |
325 | SYS_munlockall | 0x145 |
327 | SYS_issetugid | 0x147 |
328 | SYS___pthread_kill | 0x148 |
329 | SYS___pthread_sigmask | 0x149 |
330 | SYS___sigwait | 0x14a |
331 | SYS___disable_threadsignal | 0x14b |
332 | SYS___pthread_markcancel | 0x14c |
333 | SYS___pthread_canceled | 0x14d |
334 | SYS___semwait_signal | 0x14e |
336 | SYS_proc_info | 0x150 |
337 | SYS_sendfile | 0x151 |
338 | SYS_stat64 | 0x152 |
339 | SYS_fstat64 | 0x153 |
340 | SYS_lstat64 | 0x154 |
341 | SYS_stat64_extended | 0x155 |
342 | SYS_lstat64_extended | 0x156 |
343 | SYS_fstat64_extended | 0x157 |
344 | SYS_getdirentries64 | 0x158 |
345 | SYS_statfs64 | 0x159 |
346 | SYS_fstatfs64 | 0x15a |
347 | SYS_getfsstat64 | 0x15b |
348 | SYS___pthread_chdir | 0x15c |
349 | SYS___pthread_fchdir | 0x15d |
350 | SYS_audit | 0x15e |
351 | SYS_auditon | 0x15f |
353 | SYS_getauid | 0x161 |
354 | SYS_setauid | 0x162 |
355 | SYS_getaudit | 0x163 |
356 | SYS_setaudit | 0x164 |
357 | SYS_getaudit_addr | 0x165 |
358 | SYS_setaudit_addr | 0x166 |
359 | SYS_auditctl | 0x167 |
360 | SYS_bsdthread_create | 0x168 |
361 | SYS_bsdthread_terminate | 0x169 |
362 | SYS_kqueue | 0x16a |
363 | SYS_kevent | 0x16b |
364 | SYS_lchown | 0x16c |
365 | SYS_stack_snapshot | 0x16d |
366 | SYS_bsdthread_register | 0x16e |
367 | SYS_workq_open | 0x16f |
368 | SYS_workq_ops | 0x170 |
380 | SYS___mac_execve | 0x17c |
381 | SYS___mac_syscall | 0x17d |
382 | SYS___mac_get_file | 0x17e |
383 | SYS___mac_set_file | 0x17f |
384 | SYS___mac_get_link | 0x180 |
385 | SYS___mac_set_link | 0x181 |
386 | SYS___mac_get_proc | 0x182 |
387 | SYS___mac_set_proc | 0x183 |
388 | SYS___mac_get_fd | 0x184 |
389 | SYS___mac_set_fd | 0x185 |
390 | SYS___mac_get_pid | 0x186 |
391 | SYS___mac_get_lcid | 0x187 |
392 | SYS___mac_get_lctx | 0x188 |
393 | SYS___mac_set_lctx | 0x189 |
394 | SYS_setlcid | 0x18a |
395 | SYS_getlcid | 0x18b |
396 | SYS_read_nocancel | 0x18c |
397 | SYS_write_nocancel | 0x18d |
398 | SYS_open_nocancel | 0x18e |
399 | SYS_close_nocancel | 0x18f |
400 | SYS_wait4_nocancel | 0x190 |
401 | SYS_recvmsg_nocancel | 0x191 |
402 | SYS_sendmsg_nocancel | 0x192 |
403 | SYS_recvfrom_nocancel | 0x193 |
404 | SYS_accept_nocancel | 0x194 |
405 | SYS_msync_nocancel | 0x195 |
406 | SYS_fcntl_nocancel | 0x196 |
407 | SYS_select_nocancel | 0x197 |
408 | SYS_fsync_nocancel | 0x198 |
409 | SYS_connect_nocancel | 0x199 |
410 | SYS_sigsuspend_nocancel | 0x19a |
411 | SYS_readv_nocancel | 0x19b |
412 | SYS_writev_nocancel | 0x19c |
413 | SYS_sendto_nocancel | 0x19d |
414 | SYS_pread_nocancel | 0x19e |
415 | SYS_pwrite_nocancel | 0x19f |
416 | SYS_waitid_nocancel | 0x1a0 |
417 | SYS_poll_nocancel | 0x1a1 |
418 | SYS_msgsnd_nocancel | 0x1a2 |
419 | SYS_msgrcv_nocancel | 0x1a3 |
420 | SYS_sem_wait_nocancel | 0x1a4 |
421 | SYS_aio_suspend_nocancel | 0x1a5 |
422 | SYS___sigwait_nocancel | 0x1a6 |
423 | SYS___semwait_signal_nocancel | 0x1a7 |
424 | SYS427___mac_mount | 0x1a8 |
425 | SYS___mac_get_mount | 0x1a9 |
426 | SYS___mac_getfsstat | 0x1aa |
427 | SYS_MAXSYSCALL | 0x1ab |