Skip to content

Latest commit

 

History

History
333 lines (332 loc) · 13.4 KB

06_appendix_02_syscalls_02.md

File metadata and controls

333 lines (332 loc) · 13.4 KB

Syscall(dec) Syscall(hex) System Call


0 0x0 read
1 0x1 write
2 0x2 open
3 0x3 close
4 0x4 stat
5 0x5 fstat
6 0x6 lstat
7 0x7 poll
8 0x8 lseek
9 0x9 mmap
10 0xa mprotect
11 0xb munmap
12 0xc brk
13 0xd rt_sigaction 14 0xe rt_sigprocmask 15 0xf rt_sigreturn 16 0x10 ioctl
17 0x11 pread64
18 0x12 pwrite64
19 0x13 readv
20 0x14 writev
21 0x15 access
22 0x16 pipe
23 0x17 select
24 0x18 sched_yield 25 0x19 mremap
26 0x1a msync
27 0x1b mincore
28 0x1c madvise
29 0x1d shmget
30 0x1e shmat
31 0x1f shmctl
32 0x20 dup
33 0x21 dup2
34 0x22 pause
35 0x23 nanosleep
36 0x24 getitimer
37 0x25 alarm
38 0x26 setitimer
39 0x27 getpid
40 0x28 sendfile
41 0x29 socket
42 0x2a connect
43 0x2b accept
44 0x2c sendto
45 0x2d recvfrom
46 0x2e sendmsg
47 0x2f recvmsg
48 0x30 shutdown
49 0x31 bind
50 0x32 listen
51 0x33 getsockname 52 0x34 getpeername 53 0x35 socketpair
54 0x36 setsockopt
55 0x37 getsockopt
56 0x38 clone
57 0x39 fork
58 0x3a vfork
59 0x3b execve
60 0x3c exit
61 0x3d wait4
62 0x3e kill
63 0x3f uname
64 0x40 semget
65 0x41 semop
66 0x42 semctl
67 0x43 shmdt
68 0x44 msgget
69 0x45 msgsnd
70 0x46 msgrcv
71 0x47 msgctl
72 0x48 fcntl
73 0x49 flock
74 0x4a fsync
75 0x4b fdatasync
76 0x4c truncate
77 0x4d ftruncate
78 0x4e getdents
79 0x4f getcwd
80 0x50 chdir
81 0x51 fchdir
82 0x52 rename
83 0x53 mkdir
84 0x54 rmdir
85 0x55 creat
86 0x56 link
87 0x57 unlink
88 0x58 symlink
89 0x59 readlink
90 0x5a chmod
91 0x5b fchmod
92 0x5c chown
93 0x5d fchown
94 0x5e lchown
95 0x5f umask
96 0x60 gettimeofday 97 0x61 getrlimit
98 0x62 getrusage
99 0x63 sysinfo
100 0x64 times
101 0x65 ptrace
102 0x66 getuid
103 0x67 syslog
104 0x68 getgid
105 0x69 setuid
106 0x6a setgid
107 0x6b geteuid
108 0x6c getegid
109 0x6d setpgid
110 0x6e getppid
111 0x6f getpgrp
112 0x70 setsid
113 0x71 setreuid
114 0x72 setregid
115 0x73 getgroups
116 0x74 setgroups
117 0x75 setresuid
118 0x76 getresuid
119 0x77 setresgid
120 0x78 getresgid
121 0x79 getpgid
122 0x7a setfsuid
123 0x7b setfsgid
124 0x7c getsid
125 0x7d capget
126 0x7e capset
127 0x7f rt_sigpending 128 0x80 rt_sigtimedwait 129 0x81 rt_sigqueueinfo 130 0x82 rt_sigsuspend 131 0x83 sigaltstack 132 0x84 utime
133 0x85 mknod
134 0x86 uselib
135 0x87 personality 136 0x88 ustat
137 0x89 statfs
138 0x8a fstatfs
139 0x8b sysfs
140 0x8c getpriority 141 0x8d setpriority 142 0x8e sched_setparam 143 0x8f sched_getparam 144 0x90 sched_setscheduler 145 0x91 sched_getscheduler 146 0x92 sched_get_priority_max 147 0x93 sched_get_priority_min 148 0x94 sched_rr_get_interval 149 0x95 mlock
150 0x96 munlock
151 0x97 mlockall
152 0x98 munlockall
153 0x99 vhangup
154 0x9a modify_ldt
155 0x9b pivot_root
156 0x9c _sysctl
157 0x9d prctl
158 0x9e arch_prctl
159 0x9f adjtimex
160 0xa0 setrlimit
161 0xa1 chroot
162 0xa2 sync
163 0xa3 acct
164 0xa4 settimeofday 165 0xa5 mount
166 0xa6 umount2
167 0xa7 swapon
168 0xa8 swapoff
169 0xa9 reboot
170 0xaa sethostname 171 0xab setdomainname 172 0xac iopl
173 0xad ioperm
174 0xae create_module 175 0xaf init_module 176 0xb0 delete_module 177 0xb1 get_kernel_syms 178 0xb2 query_module 179 0xb3 quotactl
180 0xb4 nfsservctl
181 0xb5 getpmsg
182 0xb6 putpmsg
183 0xb7 afs_syscall 184 0xb8 tuxcall
185 0xb9 security
186 0xba gettid
187 0xbb readahead
188 0xbc setxattr
189 0xbd lsetxattr
190 0xbe fsetxattr
191 0xbf getxattr
192 0xc0 lgetxattr
193 0xc1 fgetxattr
194 0xc2 listxattr
195 0xc3 llistxattr
196 0xc4 flistxattr
197 0xc5 removexattr 198 0xc6 lremovexattr 199 0xc7 fremovexattr 200 0xc8 tkill
201 0xc9 time
202 0xca futex
203 0xcb sched_setaffinity 204 0xcc sched_getaffinity 205 0xcd set_thread_area 206 0xce io_setup
207 0xcf io_destroy
208 0xd0 io_getevents 209 0xd1 io_submit
210 0xd2 io_cancel
211 0xd3 get_thread_area 212 0xd4 lookup_dcookie 213 0xd5 epoll_create 214 0xd6 epoll_ctl_old 215 0xd7 epoll_wait_old 216 0xd8 remap_file_pages 217 0xd9 getdents64
218 0xda set_tid_address 219 0xdb restart_syscall 220 0xdc semtimedop
221 0xdd fadvise64
222 0xde timer_create 223 0xdf timer_settime 224 0xe0 timer_gettime 225 0xe1 timer_getoverrun 226 0xe2 timer_delete 227 0xe3 clock_settime 228 0xe4 clock_gettime 229 0xe5 clock_getres 230 0xe6 clock_nanosleep 231 0xe7 exit_group
232 0xe8 epoll_wait
233 0xe9 epoll_ctl
234 0xea tgkill
235 0xeb utimes
236 0xec vserver
237 0xed mbind
238 0xee set_mempolicy 239 0xef get_mempolicy 240 0xf0 mq_open
241 0xf1 mq_unlink
242 0xf2 mq_timedsend 243 0xf3 mq_timedreceive 244 0xf4 mq_notify
245 0xf5 mq_getsetattr 246 0xf6 kexec_load
247 0xf7 waitid
248 0xf8 add_key
249 0xf9 request_key 250 0xfa keyctl
251 0xfb ioprio_set
252 0xfc ioprio_get
253 0xfd inotify_init 254 0xfe inotify_add_watch 255 0xff inotify_rm_watch 256 0x100 migrate_pages 257 0x101 openat
258 0x102 mkdirat
259 0x103 mknodat
260 0x104 fchownat
261 0x105 futimesat
262 0x106 newfstatat
263 0x107 unlinkat
264 0x108 renameat
265 0x109 linkat
266 0x10a symlinkat
267 0x10b readlinkat
268 0x10c fchmodat
269 0x10d faccessat
270 0x10e pselect6
271 0x10f ppoll
272 0x110 unshare
273 0x111 set_robust_list 274 0x112 get_robust_list 275 0x113 splice
276 0x114 tee
277 0x115 sync_file_range 278 0x116 vmsplice
279 0x117 move_pages
280 0x118 utimensat
281 0x119 epoll_pwait 282 0x11a signalfd
283 0x11b timerfd_create 284 0x11c eventfd
285 0x11d fallocate
286 0x11e timerfd_settime 287 0x11f timerfd_gettime 288 0x120 accept4
289 0x121 signalfd4
290 0x122 eventfd2
291 0x123 epoll_create1 292 0x124 dup3
293 0x125 pipe2
294 0x126 inotify_init1 295 0x127 preadv
296 0x128 pwritev
297 0x129 rt_tgsigqueueinfo 298 0x12a perf_event_open 299 0x12b recvmmsg
300 0x12c fanotify_init 301 0x12d fanotify_mark 302 0x12e prlimit64
303 0x12f name_to_handle_at 304 0x130 open_by_handle_at 305 0x131 clock_adjtime 306 0x132 syncfs
307 0x133 sendmmsg
308 0x134 setns
309 0x135 getcpu
310 0x136 process_vm_readv 311 0x137 process_vm_writev 312 0x138 kcmp
313 0x139 finit_module 314 0x13a sched_setattr 315 0x13b sched_getattr 316 0x13c renameat2
317 0x13d seccomp
318 0x13e getrandom
319 0x13f memfd_create 320 0x140 kexec_file_load 321 0x141 bpf
322 0x142 execveat
323 0x143 userfaultfd 324 0x144 membarrier
325 0x145 mlock2
326 0x146 copy_file_range 327 0x147 preadv2
328 0x148 pwritev2

\newpage