Back to home page

EIC code displayed by LXR

 
 

    


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

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- System call numbers for nanomips-linux.                      ---*/
0004 /*---                                  vki-scnums-nanomips-linux.h ---*/
0005 /*--------------------------------------------------------------------*/
0006 
0007 /*
0008    This file is part of Valgrind, a dynamic binary instrumentation
0009    framework.
0010 
0011    Copyright (C) 2017-2018 RT-RK
0012 
0013    This program is free software; you can redistribute it and/or
0014    modify it under the terms of the GNU General Public License as
0015    published by the Free Software Foundation; either version 2 of the
0016    License, or (at your option) any later version.
0017 
0018    This program is distributed in the hope that it will be useful, but
0019    WITHOUT ANY WARRANTY; without even the implied warranty of
0020    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0021    General Public License for more details.
0022 
0023    You should have received a copy of the GNU General Public License
0024    along with this program; if not, write to the Free Software
0025    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
0026    02111-1307, USA.
0027 
0028    The GNU General Public License is contained in the file COPYING.
0029 */
0030 
0031 #ifndef __VKI_SCNUMS_NANOMIPS_LINUX_H
0032 #define __VKI_SCNUMS_NANOMIPS_LINUX_H
0033 
0034 // From linux-2.6.35.5/include/asm-mips/unistd.h
0035 /*
0036  * Linux p32 style syscalls are in the range from 0 to 291.
0037  */
0038 
0039 #define __NR_io_setup                   0
0040 #define __NR_io_destroy                 1
0041 #define __NR_io_submit                  2
0042 #define __NR_io_cancel                  3
0043 #define __NR_io_getevents               4
0044 #define __NR_setxattr                   5
0045 #define __NR_lsetxattr                  6
0046 #define __NR_fsetxattr                  7
0047 #define __NR_getxattr                   8
0048 #define __NR_lgetxattr                  9
0049 #define __NR_fgetxattr                  10
0050 #define __NR_listxattr                  11
0051 #define __NR_llistxattr                 12
0052 #define __NR_flistxattr                 13
0053 #define __NR_removexattr                14
0054 #define __NR_lremovexattr               15
0055 #define __NR_fremovexattr               16
0056 #define __NR_getcwd                     17
0057 #define __NR_lookup_dcookie             18
0058 #define __NR_eventfd2                   19
0059 #define __NR_epoll_create1              20
0060 #define __NR_epoll_ctl                  21
0061 #define __NR_epoll_pwait                22
0062 #define __NR_dup                        23
0063 #define __NR_dup3                       24
0064 #define __NR_fcntl64                    25
0065 #define __NR_inotify_init1              26
0066 #define __NR_inotify_add_watch          27
0067 #define __NR_inotify_rm_watch           28
0068 #define __NR_ioctl                      29
0069 #define __NR_ioprio_set                 30
0070 #define __NR_ioprio_get                 31
0071 #define __NR_flock                      32
0072 #define __NR_mknodat                    33
0073 #define __NR_mkdirat                    34
0074 #define __NR_unlinkat                   35
0075 #define __NR_symlinkat                  36
0076 #define __NR_linkat                     37
0077 #define __NR_umount2                    39
0078 #define __NR_mount                      40
0079 #define __NR_pivot_root                 41
0080 #define __NR_nfsservctl                 42
0081 #define __NR_statfs64                   43
0082 #define __NR_fstatfs64                  44
0083 #define __NR_truncate64                 45
0084 #define __NR_ftruncate64                46
0085 #define __NR_fallocate                  47
0086 #define __NR_faccessat                  48
0087 #define __NR_chdir                      49
0088 #define __NR_fchdir                     50
0089 #define __NR_chroot                     51
0090 #define __NR_fchmod                     52
0091 #define __NR_fchmodat                   53
0092 #define __NR_fchownat                   54
0093 #define __NR_fchown                     55
0094 #define __NR_openat                     56
0095 #define __NR_close                      57
0096 #define __NR_vhangup                    58
0097 #define __NR_pipe2                      59
0098 #define __NR_quotactl                   60
0099 #define __NR_getdents64                 61
0100 #define __NR__llseek                    62
0101 #define __NR_read                       63
0102 #define __NR_write                      64
0103 #define __NR_readv                      65
0104 #define __NR_writev                     66
0105 #define __NR_pread64                    67
0106 #define __NR_pwrite64                   68
0107 #define __NR_preadv                     69
0108 #define __NR_pwritev                    70
0109 #define __NR_sendfile64                 71
0110 #define __NR_pselect6                   72
0111 #define __NR_ppoll                      73
0112 #define __NR_signalfd4                  74
0113 #define __NR_vmsplice                   75
0114 #define __NR_splice                     76
0115 #define __NR_tee                        77
0116 #define __NR_readlinkat                 78
0117 #define __NR_sync                       81
0118 #define __NR_fsync                      82
0119 #define __NR_fdatasync                  83
0120 #define __NR_sync_file_range2           84
0121 #define __NR_timerfd_create             85
0122 #define __NR_timerfd_settime            86
0123 #define __NR_timerfd_gettime            87
0124 #define __NR_utimensat                  88
0125 #define __NR_acct                       89
0126 #define __NR_capget                     90
0127 #define __NR_capset                     91
0128 #define __NR_personality                92
0129 #define __NR_exit                       93
0130 #define __NR_exit_group                 94
0131 #define __NR_waitid                     95
0132 #define __NR_set_tid_address            96
0133 #define __NR_unshare                    97
0134 #define __NR_futex                      98
0135 #define __NR_set_robust_list            99
0136 #define __NR_get_robust_list            100
0137 #define __NR_nanosleep                  101
0138 #define __NR_getitimer                  102
0139 #define __NR_setitimer                  103
0140 #define __NR_kexec_load                 104
0141 #define __NR_init_module                105
0142 #define __NR_delete_module              106
0143 #define __NR_timer_create               107
0144 #define __NR_timer_gettime              108
0145 #define __NR_timer_getoverrun           109
0146 #define __NR_timer_settime              110
0147 #define __NR_timer_delete               111
0148 #define __NR_clock_settime              112
0149 #define __NR_clock_gettime              113
0150 #define __NR_clock_getres               114
0151 #define __NR_clock_nanosleep            115
0152 #define __NR_syslog                     116
0153 #define __NR_ptrace                     117
0154 #define __NR_sched_setparam             118
0155 #define __NR_sched_setscheduler         119
0156 #define __NR_sched_getscheduler         120
0157 #define __NR_sched_getparam             121
0158 #define __NR_sched_setaffinity          122
0159 #define __NR_sched_getaffinity          123
0160 #define __NR_sched_yield                124
0161 #define __NR_sched_get_priority_max     125
0162 #define __NR_sched_get_priority_min     126
0163 #define __NR_sched_rr_get_interval      127
0164 #define __NR_restart_syscall            128
0165 #define __NR_kill                       129
0166 #define __NR_tkill                      130
0167 #define __NR_tgkill                     131
0168 #define __NR_sigaltstack                132
0169 #define __NR_rt_sigsuspend              133
0170 #define __NR_rt_sigaction               134
0171 #define __NR_rt_sigprocmask             135
0172 #define __NR_rt_sigpending              136
0173 #define __NR_rt_sigtimedwait            137
0174 #define __NR_rt_sigqueueinfo            138
0175 #define __NR_rt_sigreturn               139
0176 #define __NR_setpriority                140
0177 #define __NR_getpriority                141
0178 #define __NR_reboot                     142
0179 #define __NR_setregid                   143
0180 #define __NR_setgid                     144
0181 #define __NR_setreuid                   145
0182 #define __NR_setuid                     146
0183 #define __NR_setresuid                  147
0184 #define __NR_getresuid                  148
0185 #define __NR_setresgid                  149
0186 #define __NR_getresgid                  150
0187 #define __NR_setfsuid                   151
0188 #define __NR_setfsgid                   152
0189 #define __NR_times                      153
0190 #define __NR_setpgid                    154
0191 #define __NR_getpgid                    155
0192 #define __NR_getsid                     156
0193 #define __NR_setsid                     157
0194 #define __NR_getgroups                  158
0195 #define __NR_setgroups                  159
0196 #define __NR_uname                      160
0197 #define __NR_sethostname                161
0198 #define __NR_setdomainname              162
0199 #define __NR_getrusage                  165
0200 #define __NR_umask                      166
0201 #define __NR_prctl                      167
0202 #define __NR_getcpu                     168
0203 #define __NR_gettimeofday               169
0204 #define __NR_settimeofday               170
0205 #define __NR_adjtimex                   171
0206 #define __NR_getpid                     172
0207 #define __NR_getppid                    173
0208 #define __NR_getuid                     174
0209 #define __NR_geteuid                    175
0210 #define __NR_getgid                     176
0211 #define __NR_getegid                    177
0212 #define __NR_gettid                     178
0213 #define __NR_sysinfo                    179
0214 #define __NR_mq_open                    180
0215 #define __NR_mq_unlink                  181
0216 #define __NR_mq_timedsend               182
0217 #define __NR_mq_timedreceive            183
0218 #define __NR_mq_notify                  184
0219 #define __NR_mq_getsetattr              185
0220 #define __NR_msgget                     186
0221 #define __NR_msgctl                     187
0222 #define __NR_msgrcv                     188
0223 #define __NR_msgsnd                     189
0224 #define __NR_semget                     190
0225 #define __NR_semctl                     191
0226 #define __NR_semtimedop                 192
0227 #define __NR_semop                      193
0228 #define __NR_shmget                     194
0229 #define __NR_shmctl                     195
0230 #define __NR_shmat                      196
0231 #define __NR_shmdt                      197
0232 #define __NR_socket                     198
0233 #define __NR_socketpair                 199
0234 #define __NR_bind                       200
0235 #define __NR_listen                     201
0236 #define __NR_accept                     202
0237 #define __NR_connect                    203
0238 #define __NR_getsockname                204
0239 #define __NR_getpeername                205
0240 #define __NR_sendto                     206
0241 #define __NR_recvfrom                   207
0242 #define __NR_setsockopt                 208
0243 #define __NR_getsockopt                 209
0244 #define __NR_shutdown                   210
0245 #define __NR_sendmsg                    211
0246 #define __NR_recvmsg                    212
0247 #define __NR_readahead                  213
0248 #define __NR_brk                        214
0249 #define __NR_munmap                     215
0250 #define __NR_mremap                     216
0251 #define __NR_add_key                    217
0252 #define __NR_request_key                218
0253 #define __NR_keyctl                     219
0254 #define __NR_clone                      220
0255 #define __NR_execve                     221
0256 #define __NR_mmap2                      222
0257 #define __NR_fadvise64_64               223
0258 #define __NR_swapon                     224
0259 #define __NR_swapoff                    225
0260 #define __NR_mprotect                   226
0261 #define __NR_msync                      227
0262 #define __NR_mlock                      228
0263 #define __NR_munlock                    229
0264 #define __NR_mlockall                   230
0265 #define __NR_munlockall                 231
0266 #define __NR_mincore                    232
0267 #define __NR_madvise                    233
0268 #define __NR_remap_file_pages           234
0269 #define __NR_mbind                      235
0270 #define __NR_get_mempolicy              236
0271 #define __NR_set_mempolicy              237
0272 #define __NR_migrate_pages              238
0273 #define __NR_move_pages                 239
0274 #define __NR_rt_tgsigqueueinfo          240
0275 #define __NR_perf_event_open            241
0276 #define __NR_accept4                    242
0277 #define __NR_recvmmsg                   243
0278 #define __NR_set_thread_area            244
0279 #define __NR_wait4                      260
0280 #define __NR_prlimit64                  261
0281 #define __NR_fanotify_init              262
0282 #define __NR_fanotify_mark              263
0283 #define __NR_name_to_handle_at          264
0284 #define __NR_open_by_handle_at          265
0285 #define __NR_clock_adjtime              266
0286 #define __NR_syncfs                     267
0287 #define __NR_setns                      268
0288 #define __NR_sendmmsg                   269
0289 #define __NR_process_vm_readv           270
0290 #define __NR_process_vm_writev          271
0291 #define __NR_kcmp                       272
0292 #define __NR_finit_module               273
0293 #define __NR_sched_setattr              274
0294 #define __NR_sched_getattr              275
0295 #define __NR_renameat2                  276
0296 #define __NR_seccomp                    277
0297 #define __NR_getrandom                  278
0298 #define __NR_memfd_create               279
0299 #define __NR_bpf                        280
0300 #define __NR_execveat                   281
0301 #define __NR_userfaultfd                282
0302 #define __NR_membarrier                 283
0303 #define __NR_mlock2                     284
0304 #define __NR_copy_file_range            285
0305 #define __NR_preadv2                    286
0306 #define __NR_pwritev2                   287
0307 #define __NR_pkey_mprotect              288
0308 #define __NR_pkey_alloc                 289
0309 #define __NR_pkey_free                  290
0310 #define __NR_statx                      291
0311 
0312 /*
0313  * Offset of the last Linux p32 flavoured syscall
0314  */
0315 #define __NR_Linux_syscalls               291
0316 
0317 #endif                          /* __VKI_SCNUMS_NANOMIPS_LINUX_H */
0318 
0319 /*--------------------------------------------------------------------*/
0320 /*--- end                              vki-scnums-nanomips-linux.h ---*/
0321 /*--------------------------------------------------------------------*/