Back to home page

EIC code displayed by LXR

 
 

    


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

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- System call numbers for arm-linux.                           ---*/
0004 /*---                                       vki-scnums-arm-linux.h ---*/
0005 /*--------------------------------------------------------------------*/
0006 
0007 /*
0008    This file is part of Valgrind, a dynamic binary instrumentation
0009    framework.
0010 
0011    Copyright (C) 2008-2017 Evan Geller
0012       gaze@bea.ms
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_ARM_LINUX_H
0031 #define __VKI_SCNUMS_ARM_LINUX_H
0032 
0033 // From linux-2.6/arch/arm/tools/syscall.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                     /* 7 was sys_waitpid */
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                     /* 17 was sys_break */
0053                     /* 18 was sys_stat */
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                     /* 28 was sys_fstat */
0064 #define __NR_pause           29
0065 #define __NR_utime           30
0066                     /* 31 was sys_stty */
0067                     /* 32 was sys_gtty */
0068 #define __NR_access          33
0069 #define __NR_nice            34
0070                     /* 35 was sys_ftime */
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                     /* 44 was sys_prof */
0080 #define __NR_brk             45
0081 #define __NR_setgid          46
0082 #define __NR_getgid          47
0083                     /* 48 was sys_signal */
0084 #define __NR_geteuid             49
0085 #define __NR_getegid             50
0086 #define __NR_acct            51
0087 #define __NR_umount2             52
0088                     /* 53 was sys_lock */
0089 #define __NR_ioctl           54
0090 #define __NR_fcntl           55
0091                     /* 56 was sys_mpx */
0092 #define __NR_setpgid             57
0093                     /* 58 was sys_ulimit */
0094                     /* 59 was sys_olduname */
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                     /* 68 was sys_sgetmask */
0104                     /* 69 was sys_ssetmask */
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 compat 2GB 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                     /* 84 was sys_lstat */
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                     /* 98 was sys_profil */
0134 #define __NR_statfs          99
0135 #define __NR_fstatfs            100
0136                     /* 101 was sys_ioperm */
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                     /* 109 was sys_uname */
0145                     /* 110 was sys_iopl */
0146 #define __NR_vhangup            111
0147                     /* 112 was sys_idle */
0148 #define __NR_syscall            113 /* syscall to call a syscall! */
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                     /* 123 was sys_modify_ldt */
0159 #define __NR_adjtimex           124
0160 #define __NR_mprotect           125
0161 #define __NR_sigprocmask        126
0162                     /* 127 was sys_create_module */
0163 #define __NR_init_module        128
0164 #define __NR_delete_module      129
0165                     /* 130 was sys_get_kernel_syms */
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                     /* 137 was sys_afs_syscall */
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                     /* 166 was sys_vm86 */
0202                     /* 167 was sys_query_module */
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                     /* 188 reserved */
0224                     /* 189 reserved */
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_getdents64         217
0253 #define __NR_pivot_root         218
0254 #define __NR_mincore            219
0255 #define __NR_madvise            220
0256 #define __NR_fcntl64            221
0257                     /* 222 for tux */
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_io_setup           243
0279 #define __NR_io_destroy         244
0280 #define __NR_io_getevents       245
0281 #define __NR_io_submit          246
0282 #define __NR_io_cancel          247
0283 #define __NR_exit_group         248
0284 #define __NR_lookup_dcookie     249
0285 #define __NR_epoll_create       250
0286 #define __NR_epoll_ctl          251
0287 #define __NR_epoll_wait         252
0288 #define __NR_remap_file_pages       253
0289                     /* 254 for set_thread_area */
0290                     /* 255 for get_thread_area */
0291 #define __NR_set_tid_address        256
0292 #define __NR_timer_create       257
0293 #define __NR_timer_settime      258
0294 #define __NR_timer_gettime      259
0295 #define __NR_timer_getoverrun       260
0296 #define __NR_timer_delete       261
0297 #define __NR_clock_settime      262
0298 #define __NR_clock_gettime      263
0299 #define __NR_clock_getres       264
0300 #define __NR_clock_nanosleep        265
0301 #define __NR_statfs64           266
0302 #define __NR_fstatfs64          267
0303 #define __NR_tgkill         268
0304 #define __NR_utimes         269
0305 #define __NR_arm_fadvise64_64       270
0306 #define __NR_fadvise64          270 //Added by Johan, 2008-10-11, not sure why it's called _arm_.. otherwise.
0307 #define __NR_pciconfig_iobase       271
0308 #define __NR_pciconfig_read     272
0309 #define __NR_pciconfig_write        273
0310 #define __NR_mq_open            274
0311 #define __NR_mq_unlink          275
0312 #define __NR_mq_timedsend       276
0313 #define __NR_mq_timedreceive        277
0314 #define __NR_mq_notify          278
0315 #define __NR_mq_getsetattr      279
0316 #define __NR_waitid         280
0317 #define __NR_socket         281
0318 #define __NR_bind           282
0319 #define __NR_connect            283
0320 #define __NR_listen         284
0321 #define __NR_accept         285
0322 #define __NR_getsockname        286
0323 #define __NR_getpeername        287
0324 #define __NR_socketpair         288
0325 #define __NR_send           289
0326 #define __NR_sendto         290
0327 #define __NR_recv           291
0328 #define __NR_recvfrom           292
0329 #define __NR_shutdown           293
0330 #define __NR_setsockopt         294
0331 #define __NR_getsockopt         295
0332 #define __NR_sendmsg            296
0333 #define __NR_recvmsg            297
0334 #define __NR_semop          298
0335 #define __NR_semget         299
0336 #define __NR_semctl         300
0337 #define __NR_msgsnd         301
0338 #define __NR_msgrcv         302
0339 #define __NR_msgget         303
0340 #define __NR_msgctl         304
0341 #define __NR_shmat          305
0342 #define __NR_shmdt          306
0343 #define __NR_shmget         307
0344 #define __NR_shmctl         308
0345 #define __NR_add_key            309
0346 #define __NR_request_key        310
0347 #define __NR_keyctl         311
0348 #define __NR_semtimedop         312
0349 #define __NR_vserver            313
0350 #define __NR_ioprio_set         314
0351 #define __NR_ioprio_get         315
0352 #define __NR_inotify_init       316
0353 #define __NR_inotify_add_watch      317
0354 #define __NR_inotify_rm_watch       318
0355 #define __NR_mbind          319
0356 #define __NR_get_mempolicy      320
0357 #define __NR_set_mempolicy      321
0358 #define __NR_openat         322
0359 #define __NR_mkdirat            323
0360 #define __NR_mknodat            324
0361 #define __NR_fchownat           325
0362 #define __NR_futimesat          326
0363 #define __NR_fstatat64          327
0364 #define __NR_unlinkat           328
0365 #define __NR_renameat           329
0366 #define __NR_linkat         330
0367 #define __NR_symlinkat          331
0368 #define __NR_readlinkat         332
0369 #define __NR_fchmodat           333
0370 #define __NR_faccessat          334
0371 #define __NR_pselect6           335 /* JRS 20100812: is this correct? */
0372 #define __NR_ppoll              336
0373 #define __NR_unshare            337
0374 #define __NR_set_robust_list        338
0375 #define __NR_get_robust_list        339
0376 #define __NR_splice         340
0377 #define __NR_arm_sync_file_range    341
0378 #define __NR_sync_file_range2       __NR_arm_sync_file_range
0379 #define __NR_tee            342
0380 #define __NR_vmsplice           343
0381 #define __NR_move_pages         344
0382 #define __NR_getcpu         345
0383 #define __NR_epoll_pwait        346
0384 #define __NR_kexec_load         347
0385 #define __NR_utimensat          348
0386 #define __NR_signalfd           349
0387 #define __NR_timerfd_create     350
0388 #define __NR_eventfd            351
0389 #define __NR_fallocate          352
0390 #define __NR_timerfd_settime        353
0391 #define __NR_timerfd_gettime        354
0392 #define __NR_signalfd4                  355
0393 #define __NR_eventfd2                   356
0394 #define __NR_epoll_create1              357
0395 #define __NR_dup3                       358
0396 #define __NR_pipe2                      359
0397 #define __NR_inotify_init1              360
0398 #define __NR_preadv         361
0399 #define __NR_pwritev            362
0400 #define __NR_rt_tgsigqueueinfo      363
0401 #define __NR_perf_event_open        364
0402 #define __NR_recvmmsg           365
0403 #define __NR_accept4            366
0404 #define __NR_fanotify_init      367
0405 #define __NR_fanotify_mark      368
0406 #define __NR_prlimit64          369
0407 #define __NR_name_to_handle_at      370
0408 #define __NR_open_by_handle_at      371
0409 #define __NR_clock_adjtime      372
0410 #define __NR_syncfs         373
0411 #define __NR_sendmmsg           374
0412 #define __NR_setns          375
0413 #define __NR_process_vm_readv       376
0414 #define __NR_process_vm_writev      377
0415 #define __NR_kcmp                       378
0416 #define __NR_finit_module               379
0417 #define __NR_sched_setattr              380
0418 #define __NR_sched_getattr              381
0419 #define __NR_renameat2                  382
0420 #define __NR_seccomp                    383
0421 #define __NR_getrandom                  384
0422 #define __NR_memfd_create               385
0423 #define __NR_bpf                        386
0424 #define __NR_execveat                   387
0425 #define __NR_userfaultfd                388
0426 #define __NR_membarrier                 389
0427 #define __NR_mlock2                     390
0428 #define __NR_copy_file_range            391
0429 #define __NR_preadv2                    392
0430 #define __NR_pwritev2                   393
0431 #define __NR_pkey_mprotect              394
0432 #define __NR_pkey_alloc                 395
0433 #define __NR_pkey_free                  396
0434 #define __NR_statx                      397
0435 #define __NR_rseq                       398
0436 
0437 
0438 
0439 #define __NR_ARM_BASE                   (0x0f0000)
0440 #define __NR_ARM_breakpoint             (__NR_ARM_BASE+1)
0441 #define __NR_ARM_cacheflush             (__NR_ARM_BASE+2)
0442 #define __NR_ARM_usr26                  (__NR_ARM_BASE+3)
0443 #define __NR_ARM_usr32                  (__NR_ARM_BASE+4)
0444 #define __NR_ARM_set_tls                (__NR_ARM_BASE+5)
0445 
0446 
0447 #endif /* __VKI_SCNUMS_ARM_LINUX_H */
0448 
0449 /*--------------------------------------------------------------------*/
0450 /*--- end                                   vki-scnums-arm-linux.h ---*/
0451 /*--------------------------------------------------------------------*/