blob: 85ade42bb36e1f410675d1cd472e9a5e418c659a [file] [log] [blame]
njnc6168192004-11-29 13:54:10 +00001
sewardj4eee4762006-10-14 15:51:32 +00002/*--------------------------------------------------------------------*/
3/*--- System call numbers for amd64-linux. ---*/
4/*--- vki-scnums-amd64-linux.h ---*/
5/*--------------------------------------------------------------------*/
6
njnc6168192004-11-29 13:54:10 +00007/*
njnb9c427c2004-12-01 14:14:42 +00008 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
njnc6168192004-11-29 13:54:10 +000010
sewardj03f8d3f2012-08-05 15:46:46 +000011 Copyright (C) 2000-2012 Julian Seward
njnc6168192004-11-29 13:54:10 +000012 jseward@acm.org
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
28
29 The GNU General Public License is contained in the file COPYING.
30*/
31
sewardj4eee4762006-10-14 15:51:32 +000032#ifndef __VKI_SCNUMS_AMD64_LINUX_H
33#define __VKI_SCNUMS_AMD64_LINUX_H
njnc6168192004-11-29 13:54:10 +000034
tom1cff53c2012-02-09 11:38:10 +000035// Derived from linux-2.6/arch/x86/syscalls/syscall_64.tbl
njnc6168192004-11-29 13:54:10 +000036
37#define __NR_read 0
38#define __NR_write 1
39#define __NR_open 2
40#define __NR_close 3
41#define __NR_stat 4
42#define __NR_fstat 5
43#define __NR_lstat 6
44#define __NR_poll 7
45
46#define __NR_lseek 8
47#define __NR_mmap 9
48#define __NR_mprotect 10
49#define __NR_munmap 11
50#define __NR_brk 12
51#define __NR_rt_sigaction 13
52#define __NR_rt_sigprocmask 14
53#define __NR_rt_sigreturn 15
54
55#define __NR_ioctl 16
56#define __NR_pread64 17
57#define __NR_pwrite64 18
58#define __NR_readv 19
59#define __NR_writev 20
60#define __NR_access 21
61#define __NR_pipe 22
62#define __NR_select 23
63
64#define __NR_sched_yield 24
65#define __NR_mremap 25
66#define __NR_msync 26
67#define __NR_mincore 27
68#define __NR_madvise 28
69#define __NR_shmget 29
70#define __NR_shmat 30
71#define __NR_shmctl 31
72
73#define __NR_dup 32
74#define __NR_dup2 33
75#define __NR_pause 34
76#define __NR_nanosleep 35
77#define __NR_getitimer 36
78#define __NR_alarm 37
79#define __NR_setitimer 38
80#define __NR_getpid 39
81
82#define __NR_sendfile 40
83#define __NR_socket 41
84#define __NR_connect 42
85#define __NR_accept 43
86#define __NR_sendto 44
87#define __NR_recvfrom 45
88#define __NR_sendmsg 46
89#define __NR_recvmsg 47
90
91#define __NR_shutdown 48
92#define __NR_bind 49
93#define __NR_listen 50
94#define __NR_getsockname 51
95#define __NR_getpeername 52
96#define __NR_socketpair 53
97#define __NR_setsockopt 54
98#define __NR_getsockopt 55
99
100#define __NR_clone 56
101#define __NR_fork 57
102#define __NR_vfork 58
103#define __NR_execve 59
104#define __NR_exit 60
105#define __NR_wait4 61
106#define __NR_kill 62
107#define __NR_uname 63
108
109#define __NR_semget 64
110#define __NR_semop 65
111#define __NR_semctl 66
112#define __NR_shmdt 67
113#define __NR_msgget 68
114#define __NR_msgsnd 69
115#define __NR_msgrcv 70
116#define __NR_msgctl 71
117
118#define __NR_fcntl 72
119#define __NR_flock 73
120#define __NR_fsync 74
121#define __NR_fdatasync 75
122#define __NR_truncate 76
123#define __NR_ftruncate 77
124#define __NR_getdents 78
125#define __NR_getcwd 79
126
127#define __NR_chdir 80
128#define __NR_fchdir 81
129#define __NR_rename 82
130#define __NR_mkdir 83
131#define __NR_rmdir 84
132#define __NR_creat 85
133#define __NR_link 86
134#define __NR_unlink 87
135
136#define __NR_symlink 88
137#define __NR_readlink 89
138#define __NR_chmod 90
139#define __NR_fchmod 91
140#define __NR_chown 92
141#define __NR_fchown 93
142#define __NR_lchown 94
143#define __NR_umask 95
144
145#define __NR_gettimeofday 96
146#define __NR_getrlimit 97
147#define __NR_getrusage 98
148#define __NR_sysinfo 99
149#define __NR_times 100
150#define __NR_ptrace 101
151#define __NR_getuid 102
152#define __NR_syslog 103
153
154/* at the very end the stuff that never runs during the benchmarks */
155#define __NR_getgid 104
156#define __NR_setuid 105
157#define __NR_setgid 106
158#define __NR_geteuid 107
159#define __NR_getegid 108
160#define __NR_setpgid 109
161#define __NR_getppid 110
162#define __NR_getpgrp 111
163
164#define __NR_setsid 112
165#define __NR_setreuid 113
166#define __NR_setregid 114
167#define __NR_getgroups 115
168#define __NR_setgroups 116
169#define __NR_setresuid 117
170#define __NR_getresuid 118
171#define __NR_setresgid 119
172
173#define __NR_getresgid 120
174#define __NR_getpgid 121
175#define __NR_setfsuid 122
176#define __NR_setfsgid 123
177#define __NR_getsid 124
178#define __NR_capget 125
179#define __NR_capset 126
180
181#define __NR_rt_sigpending 127
182#define __NR_rt_sigtimedwait 128
183#define __NR_rt_sigqueueinfo 129
184#define __NR_rt_sigsuspend 130
185#define __NR_sigaltstack 131
186#define __NR_utime 132
187#define __NR_mknod 133
188
189#define __NR_uselib 134
190#define __NR_personality 135
191
192#define __NR_ustat 136
193#define __NR_statfs 137
194#define __NR_fstatfs 138
195#define __NR_sysfs 139
196
197#define __NR_getpriority 140
198#define __NR_setpriority 141
199#define __NR_sched_setparam 142
200#define __NR_sched_getparam 143
201#define __NR_sched_setscheduler 144
202#define __NR_sched_getscheduler 145
203#define __NR_sched_get_priority_max 146
204#define __NR_sched_get_priority_min 147
205#define __NR_sched_rr_get_interval 148
206
207#define __NR_mlock 149
208#define __NR_munlock 150
209#define __NR_mlockall 151
210#define __NR_munlockall 152
211
212#define __NR_vhangup 153
213
214#define __NR_modify_ldt 154
215
216#define __NR_pivot_root 155
217
218#define __NR__sysctl 156
219
220#define __NR_prctl 157
221#define __NR_arch_prctl 158
222
223#define __NR_adjtimex 159
224
225#define __NR_setrlimit 160
226
227#define __NR_chroot 161
228
229#define __NR_sync 162
230
231#define __NR_acct 163
232
233#define __NR_settimeofday 164
234
235#define __NR_mount 165
236#define __NR_umount2 166
237
238#define __NR_swapon 167
239#define __NR_swapoff 168
240
241#define __NR_reboot 169
242
243#define __NR_sethostname 170
244#define __NR_setdomainname 171
245
246#define __NR_iopl 172
247#define __NR_ioperm 173
248
249#define __NR_create_module 174
250#define __NR_init_module 175
251#define __NR_delete_module 176
252#define __NR_get_kernel_syms 177
253#define __NR_query_module 178
254
255#define __NR_quotactl 179
256
257#define __NR_nfsservctl 180
258
259#define __NR_getpmsg 181 /* reserved for LiS/STREAMS */
260#define __NR_putpmsg 182 /* reserved for LiS/STREAMS */
261
262#define __NR_afs_syscall 183 /* reserved for AFS */
263
264#define __NR_tuxcall 184 /* reserved for tux */
265
266#define __NR_security 185
267
268#define __NR_gettid 186
269
270#define __NR_readahead 187
271#define __NR_setxattr 188
272#define __NR_lsetxattr 189
273#define __NR_fsetxattr 190
274#define __NR_getxattr 191
275#define __NR_lgetxattr 192
276#define __NR_fgetxattr 193
277#define __NR_listxattr 194
278#define __NR_llistxattr 195
279#define __NR_flistxattr 196
280#define __NR_removexattr 197
281#define __NR_lremovexattr 198
282#define __NR_fremovexattr 199
283#define __NR_tkill 200
284#define __NR_time 201
285#define __NR_futex 202
286#define __NR_sched_setaffinity 203
287#define __NR_sched_getaffinity 204
288#define __NR_set_thread_area 205
289#define __NR_io_setup 206
290#define __NR_io_destroy 207
291#define __NR_io_getevents 208
292#define __NR_io_submit 209
293#define __NR_io_cancel 210
294#define __NR_get_thread_area 211
295#define __NR_lookup_dcookie 212
296#define __NR_epoll_create 213
297#define __NR_epoll_ctl_old 214
298#define __NR_epoll_wait_old 215
299#define __NR_remap_file_pages 216
300#define __NR_getdents64 217
301#define __NR_set_tid_address 218
302#define __NR_restart_syscall 219
303#define __NR_semtimedop 220
304#define __NR_fadvise64 221
305#define __NR_timer_create 222
306#define __NR_timer_settime 223
307#define __NR_timer_gettime 224
308#define __NR_timer_getoverrun 225
309#define __NR_timer_delete 226
310#define __NR_clock_settime 227
311#define __NR_clock_gettime 228
312#define __NR_clock_getres 229
313#define __NR_clock_nanosleep 230
314#define __NR_exit_group 231
315#define __NR_epoll_wait 232
316#define __NR_epoll_ctl 233
317#define __NR_tgkill 234
318#define __NR_utimes 235
319#define __NR_vserver 236
320#define __NR_vserver 236
321#define __NR_mbind 237
322#define __NR_set_mempolicy 238
323#define __NR_get_mempolicy 239
324#define __NR_mq_open 240
325#define __NR_mq_unlink 241
326#define __NR_mq_timedsend 242
327#define __NR_mq_timedreceive 243
328#define __NR_mq_notify 244
329#define __NR_mq_getsetattr 245
330#define __NR_kexec_load 246
331#define __NR_waitid 247
tomd527cca2005-07-25 15:04:00 +0000332#define __NR_add_key 248
333#define __NR_request_key 249
334#define __NR_keyctl 250
335#define __NR_ioprio_set 251
336#define __NR_ioprio_get 252
tomb47a2e82005-08-06 18:04:14 +0000337#define __NR_inotify_init 253
338#define __NR_inotify_add_watch 254
339#define __NR_inotify_rm_watch 255
tomd26ccbd2006-03-20 15:36:45 +0000340#define __NR_migrate_pages 256
341#define __NR_openat 257
342#define __NR_mkdirat 258
343#define __NR_mknodat 259
344#define __NR_fchownat 260
345#define __NR_futimesat 261
346#define __NR_newfstatat 262
347#define __NR_unlinkat 263
348#define __NR_renameat 264
349#define __NR_linkat 265
350#define __NR_symlinkat 266
351#define __NR_readlinkat 267
352#define __NR_fchmodat 268
353#define __NR_faccessat 269
354#define __NR_pselect6 270
355#define __NR_ppoll 271
356#define __NR_unshare 272
tom8d2772b2006-05-17 13:53:23 +0000357#define __NR_set_robust_list 273
358#define __NR_get_robust_list 274
359#define __NR_splice 275
360#define __NR_tee 276
361#define __NR_sync_file_range 277
362#define __NR_vmsplice 278
tom1618e582008-01-08 16:10:47 +0000363#define __NR_move_pages 279
364#define __NR_utimensat 280
365#define __NR_epoll_pwait 281
366#define __NR_signalfd 282
bart5fc7da22008-04-27 12:56:06 +0000367#define __NR_timerfd_create 283
tom1618e582008-01-08 16:10:47 +0000368#define __NR_eventfd 284
369#define __NR_fallocate 285
bart5fc7da22008-04-27 12:56:06 +0000370#define __NR_timerfd_settime 286
371#define __NR_timerfd_gettime 287
tom710f7cb2009-11-25 12:05:41 +0000372#define __NR_accept4 288
sewardj586c8152008-11-05 11:20:59 +0000373#define __NR_signalfd4 289
374#define __NR_eventfd2 290
375#define __NR_epoll_create1 291
376#define __NR_dup3 292
377#define __NR_pipe2 293
378#define __NR_inotify_init1 294
tom4969c792009-10-27 09:01:43 +0000379#define __NR_preadv 295
380#define __NR_pwritev 296
381#define __NR_rt_tgsigqueueinfo 297
tomc8232f92011-06-08 09:10:40 +0000382#define __NR_perf_event_open 298
tom22c2caa2011-06-08 09:12:07 +0000383#define __NR_recvmmsg 299
384#define __NR_fanotify_init 300
385#define __NR_fanotify_mark 301
386#define __NR_prlimit64 302
387#define __NR_name_to_handle_at 303
388#define __NR_open_by_handle_at 304
389#define __NR_clock_adjtime 305
390#define __NR_syncfs 306
391#define __NR_sendmmsg 307
392#define __NR_setns 308
tom1cff53c2012-02-09 11:38:10 +0000393#define __NR_getcpu 309
394#define __NR_process_vm_readv 310
395#define __NR_process_vm_writev 311
njnc6168192004-11-29 13:54:10 +0000396
sewardj4eee4762006-10-14 15:51:32 +0000397#endif /* __VKI_SCNUMS_AMD64_LINUX_H */
398
399/*--------------------------------------------------------------------*/
400/*--- end ---*/
401/*--------------------------------------------------------------------*/