Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:25

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- System call numbers for amd64-linux.                         ---*/
0004 /*---                                     vki-scnums-amd64-linux.h ---*/
0005 /*--------------------------------------------------------------------*/
0006 
0007 /*
0008    This file is part of Valgrind, a dynamic binary instrumentation
0009    framework.
0010 
0011    Copyright (C) 2000-2017 Julian Seward 
0012       jseward@acm.org
0013 
0014    This program is free software; you can redistribute it and/or
0015    modify it under the terms of the GNU General Public License as
0016    published by the Free Software Foundation; either version 2 of the
0017    License, or (at your option) any later version.
0018 
0019    This program is distributed in the hope that it will be useful, but
0020    WITHOUT ANY WARRANTY; without even the implied warranty of
0021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0022    General Public License for more details.
0023 
0024    You should have received a copy of the GNU General Public License
0025    along with this program; if not, see <http://www.gnu.org/licenses/>.
0026 
0027    The GNU General Public License is contained in the file COPYING.
0028 */
0029 
0030 #ifndef __VKI_SCNUMS_AMD64_LINUX_H
0031 #define __VKI_SCNUMS_AMD64_LINUX_H
0032 
0033 // Derived from linux-5.2/arch/x86/entry/syscalls/syscall_64.tbl
0034 
0035 #define __NR_read                                0
0036 #define __NR_write                               1
0037 #define __NR_open                                2
0038 #define __NR_close                               3
0039 #define __NR_stat                                4
0040 #define __NR_fstat                               5
0041 #define __NR_lstat                               6
0042 #define __NR_poll                                7
0043 
0044 #define __NR_lseek                               8
0045 #define __NR_mmap                                9
0046 #define __NR_mprotect                           10
0047 #define __NR_munmap                             11
0048 #define __NR_brk                                12
0049 #define __NR_rt_sigaction                       13
0050 #define __NR_rt_sigprocmask                     14
0051 #define __NR_rt_sigreturn                       15
0052 
0053 #define __NR_ioctl                              16
0054 #define __NR_pread64                            17
0055 #define __NR_pwrite64                           18
0056 #define __NR_readv                              19
0057 #define __NR_writev                             20
0058 #define __NR_access                             21
0059 #define __NR_pipe                               22
0060 #define __NR_select                             23
0061 
0062 #define __NR_sched_yield                        24
0063 #define __NR_mremap                             25
0064 #define __NR_msync                              26
0065 #define __NR_mincore                            27
0066 #define __NR_madvise                            28
0067 #define __NR_shmget                             29
0068 #define __NR_shmat                              30
0069 #define __NR_shmctl                             31
0070 
0071 #define __NR_dup                                32
0072 #define __NR_dup2                               33
0073 #define __NR_pause                              34
0074 #define __NR_nanosleep                          35
0075 #define __NR_getitimer                          36
0076 #define __NR_alarm                              37
0077 #define __NR_setitimer                          38
0078 #define __NR_getpid                             39
0079 
0080 #define __NR_sendfile                           40
0081 #define __NR_socket                             41
0082 #define __NR_connect                            42
0083 #define __NR_accept                             43
0084 #define __NR_sendto                             44
0085 #define __NR_recvfrom                           45
0086 #define __NR_sendmsg                            46
0087 #define __NR_recvmsg                            47
0088 
0089 #define __NR_shutdown                           48
0090 #define __NR_bind                               49
0091 #define __NR_listen                             50
0092 #define __NR_getsockname                        51
0093 #define __NR_getpeername                        52
0094 #define __NR_socketpair                         53
0095 #define __NR_setsockopt                         54
0096 #define __NR_getsockopt                         55
0097 
0098 #define __NR_clone                              56
0099 #define __NR_fork                               57
0100 #define __NR_vfork                              58
0101 #define __NR_execve                             59
0102 #define __NR_exit                               60
0103 #define __NR_wait4                              61
0104 #define __NR_kill                               62
0105 #define __NR_uname                              63
0106 
0107 #define __NR_semget                             64
0108 #define __NR_semop                              65
0109 #define __NR_semctl                             66
0110 #define __NR_shmdt                              67
0111 #define __NR_msgget                             68
0112 #define __NR_msgsnd                             69
0113 #define __NR_msgrcv                             70
0114 #define __NR_msgctl                             71
0115 
0116 #define __NR_fcntl                              72
0117 #define __NR_flock                              73
0118 #define __NR_fsync                              74
0119 #define __NR_fdatasync                          75
0120 #define __NR_truncate                           76
0121 #define __NR_ftruncate                          77
0122 #define __NR_getdents                           78
0123 #define __NR_getcwd                             79
0124 
0125 #define __NR_chdir                              80
0126 #define __NR_fchdir                             81
0127 #define __NR_rename                             82
0128 #define __NR_mkdir                              83
0129 #define __NR_rmdir                              84
0130 #define __NR_creat                              85
0131 #define __NR_link                               86
0132 #define __NR_unlink                             87
0133 
0134 #define __NR_symlink                            88
0135 #define __NR_readlink                           89
0136 #define __NR_chmod                              90
0137 #define __NR_fchmod                             91
0138 #define __NR_chown                              92
0139 #define __NR_fchown                             93
0140 #define __NR_lchown                             94
0141 #define __NR_umask                              95
0142 
0143 #define __NR_gettimeofday                       96
0144 #define __NR_getrlimit                          97
0145 #define __NR_getrusage                          98
0146 #define __NR_sysinfo                            99
0147 #define __NR_times                             100
0148 #define __NR_ptrace                            101
0149 #define __NR_getuid                            102
0150 #define __NR_syslog                            103
0151 
0152 /* at the very end the stuff that never runs during the benchmarks */
0153 #define __NR_getgid                            104
0154 #define __NR_setuid                            105
0155 #define __NR_setgid                            106
0156 #define __NR_geteuid                           107
0157 #define __NR_getegid                           108
0158 #define __NR_setpgid                           109
0159 #define __NR_getppid                           110
0160 #define __NR_getpgrp                           111
0161 
0162 #define __NR_setsid                            112
0163 #define __NR_setreuid                          113
0164 #define __NR_setregid                          114
0165 #define __NR_getgroups                         115
0166 #define __NR_setgroups                         116
0167 #define __NR_setresuid                         117
0168 #define __NR_getresuid                         118
0169 #define __NR_setresgid                         119
0170 
0171 #define __NR_getresgid                         120
0172 #define __NR_getpgid                           121
0173 #define __NR_setfsuid                          122
0174 #define __NR_setfsgid                          123
0175 #define __NR_getsid                            124
0176 #define __NR_capget                            125
0177 #define __NR_capset                            126
0178 
0179 #define __NR_rt_sigpending                     127
0180 #define __NR_rt_sigtimedwait                   128
0181 #define __NR_rt_sigqueueinfo                   129
0182 #define __NR_rt_sigsuspend                     130
0183 #define __NR_sigaltstack                       131
0184 #define __NR_utime                             132
0185 #define __NR_mknod                             133
0186 
0187 #define __NR_uselib                            134
0188 #define __NR_personality                       135
0189 
0190 #define __NR_ustat                             136
0191 #define __NR_statfs                            137
0192 #define __NR_fstatfs                           138
0193 #define __NR_sysfs                             139
0194 
0195 #define __NR_getpriority                       140
0196 #define __NR_setpriority                       141
0197 #define __NR_sched_setparam                    142
0198 #define __NR_sched_getparam                    143
0199 #define __NR_sched_setscheduler                144
0200 #define __NR_sched_getscheduler                145
0201 #define __NR_sched_get_priority_max            146
0202 #define __NR_sched_get_priority_min            147
0203 #define __NR_sched_rr_get_interval             148
0204 
0205 #define __NR_mlock                             149
0206 #define __NR_munlock                           150
0207 #define __NR_mlockall                          151
0208 #define __NR_munlockall                        152
0209 
0210 #define __NR_vhangup                           153
0211 
0212 #define __NR_modify_ldt                        154
0213 
0214 #define __NR_pivot_root                        155
0215 
0216 #define __NR__sysctl                           156
0217 
0218 #define __NR_prctl                             157
0219 #define __NR_arch_prctl                        158
0220 
0221 #define __NR_adjtimex                          159
0222 
0223 #define __NR_setrlimit                         160
0224 
0225 #define __NR_chroot                            161
0226 
0227 #define __NR_sync                              162
0228 
0229 #define __NR_acct                              163
0230 
0231 #define __NR_settimeofday                      164
0232 
0233 #define __NR_mount                             165
0234 #define __NR_umount2                           166
0235 
0236 #define __NR_swapon                            167
0237 #define __NR_swapoff                           168
0238 
0239 #define __NR_reboot                            169
0240 
0241 #define __NR_sethostname                       170
0242 #define __NR_setdomainname                     171
0243 
0244 #define __NR_iopl                              172
0245 #define __NR_ioperm                            173
0246 
0247 #define __NR_create_module                     174
0248 #define __NR_init_module                       175
0249 #define __NR_delete_module                     176
0250 #define __NR_get_kernel_syms                   177
0251 #define __NR_query_module                      178
0252 
0253 #define __NR_quotactl                          179
0254 
0255 #define __NR_nfsservctl                        180
0256 
0257 #define __NR_getpmsg                           181  /* reserved for LiS/STREAMS */
0258 #define __NR_putpmsg                           182  /* reserved for LiS/STREAMS */
0259 
0260 #define __NR_afs_syscall                       183  /* reserved for AFS */ 
0261 
0262 #define __NR_tuxcall            184 /* reserved for tux */
0263 
0264 #define __NR_security           185
0265 
0266 #define __NR_gettid     186
0267 
0268 #define __NR_readahead      187
0269 #define __NR_setxattr       188
0270 #define __NR_lsetxattr      189
0271 #define __NR_fsetxattr      190
0272 #define __NR_getxattr       191
0273 #define __NR_lgetxattr      192
0274 #define __NR_fgetxattr      193
0275 #define __NR_listxattr      194
0276 #define __NR_llistxattr     195
0277 #define __NR_flistxattr     196
0278 #define __NR_removexattr    197
0279 #define __NR_lremovexattr   198
0280 #define __NR_fremovexattr   199
0281 #define __NR_tkill  200
0282 #define __NR_time      201
0283 #define __NR_futex     202
0284 #define __NR_sched_setaffinity    203
0285 #define __NR_sched_getaffinity     204
0286 #define __NR_set_thread_area    205
0287 #define __NR_io_setup   206
0288 #define __NR_io_destroy 207
0289 #define __NR_io_getevents   208
0290 #define __NR_io_submit  209
0291 #define __NR_io_cancel  210
0292 #define __NR_get_thread_area    211
0293 #define __NR_lookup_dcookie 212
0294 #define __NR_epoll_create   213
0295 #define __NR_epoll_ctl_old  214
0296 #define __NR_epoll_wait_old 215
0297 #define __NR_remap_file_pages   216
0298 #define __NR_getdents64 217
0299 #define __NR_set_tid_address    218
0300 #define __NR_restart_syscall    219
0301 #define __NR_semtimedop     220
0302 #define __NR_fadvise64      221
0303 #define __NR_timer_create       222
0304 #define __NR_timer_settime      223
0305 #define __NR_timer_gettime      224
0306 #define __NR_timer_getoverrun       225
0307 #define __NR_timer_delete   226
0308 #define __NR_clock_settime  227
0309 #define __NR_clock_gettime  228
0310 #define __NR_clock_getres   229
0311 #define __NR_clock_nanosleep    230
0312 #define __NR_exit_group     231
0313 #define __NR_epoll_wait     232
0314 #define __NR_epoll_ctl      233
0315 #define __NR_tgkill     234
0316 #define __NR_utimes     235
0317 #define __NR_vserver        236
0318 #define __NR_vserver        236
0319 #define __NR_mbind      237
0320 #define __NR_set_mempolicy  238
0321 #define __NR_get_mempolicy  239
0322 #define __NR_mq_open        240
0323 #define __NR_mq_unlink      241
0324 #define __NR_mq_timedsend   242
0325 #define __NR_mq_timedreceive    243
0326 #define __NR_mq_notify      244
0327 #define __NR_mq_getsetattr  245
0328 #define __NR_kexec_load     246
0329 #define __NR_waitid     247
0330 #define __NR_add_key        248
0331 #define __NR_request_key    249
0332 #define __NR_keyctl     250
0333 #define __NR_ioprio_set     251
0334 #define __NR_ioprio_get     252
0335 #define __NR_inotify_init   253
0336 #define __NR_inotify_add_watch  254
0337 #define __NR_inotify_rm_watch   255
0338 #define __NR_migrate_pages  256
0339 #define __NR_openat     257
0340 #define __NR_mkdirat        258
0341 #define __NR_mknodat        259
0342 #define __NR_fchownat       260
0343 #define __NR_futimesat      261
0344 #define __NR_newfstatat     262
0345 #define __NR_unlinkat       263
0346 #define __NR_renameat       264
0347 #define __NR_linkat     265
0348 #define __NR_symlinkat      266
0349 #define __NR_readlinkat     267
0350 #define __NR_fchmodat       268
0351 #define __NR_faccessat      269
0352 #define __NR_pselect6       270
0353 #define __NR_ppoll      271
0354 #define __NR_unshare        272
0355 #define __NR_set_robust_list    273
0356 #define __NR_get_robust_list    274
0357 #define __NR_splice     275
0358 #define __NR_tee        276
0359 #define __NR_sync_file_range    277
0360 #define __NR_vmsplice       278
0361 #define __NR_move_pages     279
0362 #define __NR_utimensat      280
0363 #define __NR_epoll_pwait    281
0364 #define __NR_signalfd       282
0365 #define __NR_timerfd_create 283
0366 #define __NR_eventfd        284
0367 #define __NR_fallocate      285
0368 #define __NR_timerfd_settime    286
0369 #define __NR_timerfd_gettime    287
0370 #define __NR_accept4            288
0371 #define __NR_signalfd4          289
0372 #define __NR_eventfd2           290
0373 #define __NR_epoll_create1      291
0374 #define __NR_dup3               292
0375 #define __NR_pipe2              293
0376 #define __NR_inotify_init1      294
0377 #define __NR_preadv             295
0378 #define __NR_pwritev            296
0379 #define __NR_rt_tgsigqueueinfo  297
0380 #define __NR_perf_event_open    298
0381 #define __NR_recvmmsg           299
0382 #define __NR_fanotify_init      300
0383 #define __NR_fanotify_mark      301
0384 #define __NR_prlimit64          302
0385 #define __NR_name_to_handle_at  303
0386 #define __NR_open_by_handle_at  304
0387 #define __NR_clock_adjtime      305
0388 #define __NR_syncfs             306
0389 #define __NR_sendmmsg           307
0390 #define __NR_setns              308
0391 #define __NR_getcpu             309
0392 #define __NR_process_vm_readv   310
0393 #define __NR_process_vm_writev  311
0394 #define __NR_kcmp               312
0395 #define __NR_finit_module       313
0396 #define __NR_sched_setattr      314
0397 #define __NR_sched_getattr      315
0398 #define __NR_renameat2          316
0399 #define __NR_seccomp            317
0400 #define __NR_getrandom          318
0401 #define __NR_memfd_create       319
0402 #define __NR_kexec_file_load    320
0403 #define __NR_bpf                321
0404 #define __NR_execveat           322
0405 #define __NR_userfaultfd        323
0406 #define __NR_membarrier         324
0407 #define __NR_mlock2             325
0408 #define __NR_copy_file_range    326
0409 #define __NR_preadv2            327
0410 #define __NR_pwritev2           328
0411 #define __NR_pkey_mprotect      329
0412 #define __NR_pkey_alloc         330
0413 #define __NR_pkey_free          331
0414 #define __NR_statx              332
0415 #define __NR_io_pgetevents  333
0416 #define __NR_rseq       334
0417 
0418 #endif /* __VKI_SCNUMS_AMD64_LINUX_H */
0419 
0420 /*--------------------------------------------------------------------*/
0421 /*--- end                                                          ---*/
0422 /*--------------------------------------------------------------------*/