Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:25:33

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- System call numbers for x86-linux.                           ---*/
0004 /*---                                       vki-scnums-x86-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_X86_LINUX_H
0031 #define __VKI_SCNUMS_X86_LINUX_H
0032 
0033 // Derived from linux-5.2/arch/x86/entry/syscalls/syscall_32.tbl
0034 
0035 #define __NR_restart_syscall      0
0036 #define __NR_exit         1
0037 #define __NR_fork         2
0038 #define __NR_read         3
0039 #define __NR_write        4
0040 #define __NR_open         5
0041 #define __NR_close        6
0042 #define __NR_waitpid          7
0043 #define __NR_creat        8
0044 #define __NR_link         9
0045 #define __NR_unlink      10
0046 #define __NR_execve      11
0047 #define __NR_chdir       12
0048 #define __NR_time        13
0049 #define __NR_mknod       14
0050 #define __NR_chmod       15
0051 #define __NR_lchown      16
0052 #define __NR_break       17
0053 #define __NR_oldstat         18
0054 #define __NR_lseek       19
0055 #define __NR_getpid      20
0056 #define __NR_mount       21
0057 #define __NR_umount      22
0058 #define __NR_setuid      23
0059 #define __NR_getuid      24
0060 #define __NR_stime       25
0061 #define __NR_ptrace      26
0062 #define __NR_alarm       27
0063 #define __NR_oldfstat        28
0064 #define __NR_pause       29
0065 #define __NR_utime       30
0066 #define __NR_stty        31
0067 #define __NR_gtty        32
0068 #define __NR_access      33
0069 #define __NR_nice        34
0070 #define __NR_ftime       35
0071 #define __NR_sync        36
0072 #define __NR_kill        37
0073 #define __NR_rename      38
0074 #define __NR_mkdir       39
0075 #define __NR_rmdir       40
0076 #define __NR_dup         41
0077 #define __NR_pipe        42
0078 #define __NR_times       43
0079 #define __NR_prof        44
0080 #define __NR_brk         45
0081 #define __NR_setgid      46
0082 #define __NR_getgid      47
0083 #define __NR_signal      48
0084 #define __NR_geteuid         49
0085 #define __NR_getegid         50
0086 #define __NR_acct        51
0087 #define __NR_umount2         52
0088 #define __NR_lock        53
0089 #define __NR_ioctl       54
0090 #define __NR_fcntl       55
0091 #define __NR_mpx         56
0092 #define __NR_setpgid         57
0093 #define __NR_ulimit      58
0094 #define __NR_oldolduname     59
0095 #define __NR_umask       60
0096 #define __NR_chroot      61
0097 #define __NR_ustat       62
0098 #define __NR_dup2        63
0099 #define __NR_getppid         64
0100 #define __NR_getpgrp         65
0101 #define __NR_setsid      66
0102 #define __NR_sigaction       67
0103 #define __NR_sgetmask        68
0104 #define __NR_ssetmask        69
0105 #define __NR_setreuid        70
0106 #define __NR_setregid        71
0107 #define __NR_sigsuspend      72
0108 #define __NR_sigpending      73
0109 #define __NR_sethostname     74
0110 #define __NR_setrlimit       75
0111 #define __NR_getrlimit       76 /* Back compatible 2Gig limited rlimit */
0112 #define __NR_getrusage       77
0113 #define __NR_gettimeofday    78
0114 #define __NR_settimeofday    79
0115 #define __NR_getgroups       80
0116 #define __NR_setgroups       81
0117 #define __NR_select      82
0118 #define __NR_symlink         83
0119 #define __NR_oldlstat        84
0120 #define __NR_readlink        85
0121 #define __NR_uselib      86
0122 #define __NR_swapon      87
0123 #define __NR_reboot      88
0124 #define __NR_readdir         89
0125 #define __NR_mmap        90
0126 #define __NR_munmap      91
0127 #define __NR_truncate        92
0128 #define __NR_ftruncate       93
0129 #define __NR_fchmod      94
0130 #define __NR_fchown      95
0131 #define __NR_getpriority     96
0132 #define __NR_setpriority     97
0133 #define __NR_profil      98
0134 #define __NR_statfs      99
0135 #define __NR_fstatfs        100
0136 #define __NR_ioperm     101
0137 #define __NR_socketcall     102
0138 #define __NR_syslog     103
0139 #define __NR_setitimer      104
0140 #define __NR_getitimer      105
0141 #define __NR_stat       106
0142 #define __NR_lstat      107
0143 #define __NR_fstat      108
0144 #define __NR_olduname       109
0145 #define __NR_iopl       110
0146 #define __NR_vhangup        111
0147 #define __NR_idle       112
0148 #define __NR_vm86old        113
0149 #define __NR_wait4      114
0150 #define __NR_swapoff        115
0151 #define __NR_sysinfo        116
0152 #define __NR_ipc        117
0153 #define __NR_fsync      118
0154 #define __NR_sigreturn      119
0155 #define __NR_clone      120
0156 #define __NR_setdomainname  121
0157 #define __NR_uname      122
0158 #define __NR_modify_ldt     123
0159 #define __NR_adjtimex       124
0160 #define __NR_mprotect       125
0161 #define __NR_sigprocmask    126
0162 #define __NR_create_module  127
0163 #define __NR_init_module    128
0164 #define __NR_delete_module  129
0165 #define __NR_get_kernel_syms    130
0166 #define __NR_quotactl       131
0167 #define __NR_getpgid        132
0168 #define __NR_fchdir     133
0169 #define __NR_bdflush        134
0170 #define __NR_sysfs      135
0171 #define __NR_personality    136
0172 #define __NR_afs_syscall    137 /* Syscall for Andrew File System */
0173 #define __NR_setfsuid       138
0174 #define __NR_setfsgid       139
0175 #define __NR__llseek        140
0176 #define __NR_getdents       141
0177 #define __NR__newselect     142
0178 #define __NR_flock      143
0179 #define __NR_msync      144
0180 #define __NR_readv      145
0181 #define __NR_writev     146
0182 #define __NR_getsid     147
0183 #define __NR_fdatasync      148
0184 #define __NR__sysctl        149
0185 #define __NR_mlock      150
0186 #define __NR_munlock        151
0187 #define __NR_mlockall       152
0188 #define __NR_munlockall     153
0189 #define __NR_sched_setparam     154
0190 #define __NR_sched_getparam     155
0191 #define __NR_sched_setscheduler     156
0192 #define __NR_sched_getscheduler     157
0193 #define __NR_sched_yield        158
0194 #define __NR_sched_get_priority_max 159
0195 #define __NR_sched_get_priority_min 160
0196 #define __NR_sched_rr_get_interval  161
0197 #define __NR_nanosleep      162
0198 #define __NR_mremap     163
0199 #define __NR_setresuid      164
0200 #define __NR_getresuid      165
0201 #define __NR_vm86       166
0202 #define __NR_query_module   167
0203 #define __NR_poll       168
0204 #define __NR_nfsservctl     169
0205 #define __NR_setresgid      170
0206 #define __NR_getresgid      171
0207 #define __NR_prctl              172
0208 #define __NR_rt_sigreturn   173
0209 #define __NR_rt_sigaction   174
0210 #define __NR_rt_sigprocmask 175
0211 #define __NR_rt_sigpending  176
0212 #define __NR_rt_sigtimedwait    177
0213 #define __NR_rt_sigqueueinfo    178
0214 #define __NR_rt_sigsuspend  179
0215 #define __NR_pread64        180
0216 #define __NR_pwrite64       181
0217 #define __NR_chown      182
0218 #define __NR_getcwd     183
0219 #define __NR_capget     184
0220 #define __NR_capset     185
0221 #define __NR_sigaltstack    186
0222 #define __NR_sendfile       187
0223 #define __NR_getpmsg        188 /* some people actually want streams */
0224 #define __NR_putpmsg        189 /* some people actually want streams */
0225 #define __NR_vfork      190
0226 #define __NR_ugetrlimit     191 /* SuS compliant getrlimit */
0227 #define __NR_mmap2      192
0228 #define __NR_truncate64     193
0229 #define __NR_ftruncate64    194
0230 #define __NR_stat64     195
0231 #define __NR_lstat64        196
0232 #define __NR_fstat64        197
0233 #define __NR_lchown32       198
0234 #define __NR_getuid32       199
0235 #define __NR_getgid32       200
0236 #define __NR_geteuid32      201
0237 #define __NR_getegid32      202
0238 #define __NR_setreuid32     203
0239 #define __NR_setregid32     204
0240 #define __NR_getgroups32    205
0241 #define __NR_setgroups32    206
0242 #define __NR_fchown32       207
0243 #define __NR_setresuid32    208
0244 #define __NR_getresuid32    209
0245 #define __NR_setresgid32    210
0246 #define __NR_getresgid32    211
0247 #define __NR_chown32        212
0248 #define __NR_setuid32       213
0249 #define __NR_setgid32       214
0250 #define __NR_setfsuid32     215
0251 #define __NR_setfsgid32     216
0252 #define __NR_pivot_root     217
0253 #define __NR_mincore        218
0254 #define __NR_madvise        219
0255 #define __NR_madvise1       219 /* delete when C lib stub is removed */
0256 #define __NR_getdents64     220
0257 #define __NR_fcntl64        221
0258 /* 223 is unused */
0259 #define __NR_gettid     224
0260 #define __NR_readahead      225
0261 #define __NR_setxattr       226
0262 #define __NR_lsetxattr      227
0263 #define __NR_fsetxattr      228
0264 #define __NR_getxattr       229
0265 #define __NR_lgetxattr      230
0266 #define __NR_fgetxattr      231
0267 #define __NR_listxattr      232
0268 #define __NR_llistxattr     233
0269 #define __NR_flistxattr     234
0270 #define __NR_removexattr    235
0271 #define __NR_lremovexattr   236
0272 #define __NR_fremovexattr   237
0273 #define __NR_tkill      238
0274 #define __NR_sendfile64     239
0275 #define __NR_futex      240
0276 #define __NR_sched_setaffinity  241
0277 #define __NR_sched_getaffinity  242
0278 #define __NR_set_thread_area    243
0279 #define __NR_get_thread_area    244
0280 #define __NR_io_setup       245
0281 #define __NR_io_destroy     246
0282 #define __NR_io_getevents   247
0283 #define __NR_io_submit      248
0284 #define __NR_io_cancel      249
0285 #define __NR_fadvise64      250
0286 #define __NR_set_zone_reclaim   251
0287 #define __NR_exit_group     252
0288 #define __NR_lookup_dcookie 253
0289 #define __NR_epoll_create   254
0290 #define __NR_epoll_ctl      255
0291 #define __NR_epoll_wait     256
0292 #define __NR_remap_file_pages   257
0293 #define __NR_set_tid_address    258
0294 #define __NR_timer_create   259
0295 #define __NR_timer_settime  (__NR_timer_create+1)
0296 #define __NR_timer_gettime  (__NR_timer_create+2)
0297 #define __NR_timer_getoverrun   (__NR_timer_create+3)
0298 #define __NR_timer_delete   (__NR_timer_create+4)
0299 #define __NR_clock_settime  (__NR_timer_create+5)
0300 #define __NR_clock_gettime  (__NR_timer_create+6)
0301 #define __NR_clock_getres   (__NR_timer_create+7)
0302 #define __NR_clock_nanosleep    (__NR_timer_create+8)
0303 #define __NR_statfs64       268
0304 #define __NR_fstatfs64      269
0305 #define __NR_tgkill     270
0306 #define __NR_utimes     271
0307 #define __NR_fadvise64_64   272
0308 #define __NR_vserver        273
0309 #define __NR_mbind      274
0310 #define __NR_get_mempolicy  275
0311 #define __NR_set_mempolicy  276
0312 #define __NR_mq_open        277
0313 #define __NR_mq_unlink      (__NR_mq_open+1)
0314 #define __NR_mq_timedsend   (__NR_mq_open+2)
0315 #define __NR_mq_timedreceive    (__NR_mq_open+3)
0316 #define __NR_mq_notify      (__NR_mq_open+4)
0317 #define __NR_mq_getsetattr  (__NR_mq_open+5)
0318 #define __NR_sys_kexec_load 283
0319 #define __NR_waitid     284
0320 /* #define __NR_sys_setaltroot  285 */
0321 #define __NR_add_key        286
0322 #define __NR_request_key    287
0323 #define __NR_keyctl     288
0324 #define __NR_ioprio_set     289
0325 #define __NR_ioprio_get     290
0326 #define __NR_inotify_init   291
0327 #define __NR_inotify_add_watch  292
0328 #define __NR_inotify_rm_watch   293
0329 #define __NR_migrate_pages  294
0330 #define __NR_openat     295
0331 #define __NR_mkdirat        296
0332 #define __NR_mknodat        297
0333 #define __NR_fchownat       298
0334 #define __NR_futimesat      299
0335 #define __NR_fstatat64      300
0336 #define __NR_unlinkat       301
0337 #define __NR_renameat       302
0338 #define __NR_linkat     303
0339 #define __NR_symlinkat      304
0340 #define __NR_readlinkat     305
0341 #define __NR_fchmodat       306
0342 #define __NR_faccessat      307
0343 #define __NR_pselect6       308
0344 #define __NR_ppoll      309
0345 #define __NR_unshare        310
0346 #define __NR_set_robust_list    311
0347 #define __NR_get_robust_list    312
0348 #define __NR_splice     313
0349 #define __NR_sync_file_range    314
0350 #define __NR_tee        315
0351 #define __NR_vmsplice       316
0352 #define __NR_move_pages     317
0353 #define __NR_getcpu     318
0354 #define __NR_epoll_pwait    319
0355 #define __NR_utimensat      320
0356 #define __NR_signalfd       321
0357 #define __NR_timerfd_create 322
0358 #define __NR_eventfd        323
0359 #define __NR_fallocate      324
0360 #define __NR_timerfd_settime    325
0361 #define __NR_timerfd_gettime    326
0362 #define __NR_signalfd4          327
0363 #define __NR_eventfd2           328
0364 #define __NR_epoll_create1      329
0365 #define __NR_dup3               330
0366 #define __NR_pipe2              331
0367 #define __NR_inotify_init1      332
0368 #define __NR_preadv             333
0369 #define __NR_pwritev            334
0370 #define __NR_rt_tgsigqueueinfo  335
0371 #define __NR_perf_event_open    336
0372 #define __NR_recvmmsg       337
0373 #define __NR_fanotify_init  338
0374 #define __NR_fanotify_mark  339
0375 #define __NR_prlimit64      340
0376 #define __NR_name_to_handle_at  341
0377 #define __NR_open_by_handle_at  342
0378 #define __NR_clock_adjtime  343
0379 #define __NR_syncfs             344
0380 #define __NR_sendmmsg       345
0381 #define __NR_setns      346
0382 #define __NR_process_vm_readv   347
0383 #define __NR_process_vm_writev  348
0384 #define __NR_kcmp               349
0385 #define __NR_finit_module       350
0386 #define __NR_sched_setattr      351
0387 #define __NR_sched_getattr      352
0388 #define __NR_renameat2          353
0389 #define __NR_seccomp            354
0390 #define __NR_getrandom          355
0391 #define __NR_memfd_create       356
0392 #define __NR_bpf                357
0393 #define __NR_execveat           358
0394 #define __NR_socket             359
0395 #define __NR_socketpair         360
0396 #define __NR_bind               361
0397 #define __NR_connect            362
0398 #define __NR_listen             363
0399 #define __NR_accept4            364
0400 #define __NR_getsockopt         365
0401 #define __NR_setsockopt         366
0402 #define __NR_getsockname        367
0403 #define __NR_getpeername        368
0404 #define __NR_sendto             369
0405 #define __NR_sendmsg            370
0406 #define __NR_recvfrom           371
0407 #define __NR_recvmsg            372
0408 #define __NR_shutdown           373
0409 #define __NR_userfaultfd        374
0410 #define __NR_membarrier         375
0411 #define __NR_mlock2             376
0412 #define __NR_copy_file_range    377
0413 #define __NR_preadv2            378
0414 #define __NR_pwritev2           379
0415 #define __NR_pkey_mprotect      380
0416 #define __NR_pkey_alloc         381
0417 #define __NR_pkey_free          382
0418 #define __NR_statx              383
0419 #define __NR_arch_prctl         384
0420 #define __NR_io_pgetevents  385
0421 #define __NR_rseq       386
0422 #define __NR_semget     393
0423 #define __NR_semctl     394
0424 #define __NR_shmget     395
0425 #define __NR_shmctl     396
0426 #define __NR_shmat      397
0427 #define __NR_shmdt      398
0428 #define __NR_msgget     399
0429 #define __NR_msgsnd     400
0430 #define __NR_msgrcv     401
0431 #define __NR_msgctl     402
0432 
0433 #endif /* __VKI_SCNUMS_X86_LINUX_H */
0434 
0435 /*--------------------------------------------------------------------*/
0436 /*--- end                                                          ---*/
0437 /*--------------------------------------------------------------------*/