Back to home page

EIC code displayed by LXR

 
 

    


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

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- System call numbers for s390x-linux.                         ---*/
0004 /*---                                     vki-scnums-s390x-linux.h ---*/
0005 /*--------------------------------------------------------------------*/
0006 
0007 /*
0008    This file is part of Valgrind, a dynamic binary instrumentation
0009    framework.
0010 
0011    Copyright IBM Corp. 2010-2017
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, see <http://www.gnu.org/licenses/>.
0025 
0026    The GNU General Public License is contained in the file COPYING.
0027 */
0028 
0029 /* Contributed by Florian Krohm and Christian Borntraeger. */
0030 
0031 #ifndef __VKI_SCNUMS_S390X_LINUX_H
0032 #define __VKI_SCNUMS_S390X_LINUX_H
0033 
0034 //----------------------------------------------------------------------
0035 // From linux/arch/s390/kernel/syscalls/syscall.tbl
0036 //----------------------------------------------------------------------
0037 
0038 /*
0039  * This file contains the system call numbers.
0040  */
0041 
0042 #define __NR_exit                 1
0043 #define __NR_fork                 2
0044 #define __NR_read                 3
0045 #define __NR_write                4
0046 #define __NR_open                 5
0047 #define __NR_close                6
0048 #define __NR_restart_syscall      7
0049 #define __NR_creat                8
0050 #define __NR_link                 9
0051 #define __NR_unlink              10
0052 #define __NR_execve              11
0053 #define __NR_chdir               12
0054 #define __NR_mknod               14
0055 #define __NR_chmod               15
0056 #define __NR_lseek               19
0057 #define __NR_getpid              20
0058 #define __NR_mount               21
0059 #define __NR_umount              22
0060 #define __NR_ptrace              26
0061 #define __NR_alarm               27
0062 #define __NR_pause               29
0063 #define __NR_utime               30
0064 #define __NR_access              33
0065 #define __NR_nice                34
0066 #define __NR_sync                36
0067 #define __NR_kill                37
0068 #define __NR_rename              38
0069 #define __NR_mkdir               39
0070 #define __NR_rmdir               40
0071 #define __NR_dup                 41
0072 #define __NR_pipe                42
0073 #define __NR_times               43
0074 #define __NR_brk                 45
0075 #define __NR_signal              48
0076 #define __NR_acct                51
0077 #define __NR_umount2             52
0078 #define __NR_ioctl               54
0079 #define __NR_fcntl               55
0080 #define __NR_setpgid             57
0081 #define __NR_umask               60
0082 #define __NR_chroot              61
0083 #define __NR_ustat               62
0084 #define __NR_dup2                63
0085 #define __NR_getppid             64
0086 #define __NR_getpgrp             65
0087 #define __NR_setsid              66
0088 #define __NR_sigaction           67
0089 #define __NR_sigsuspend          72
0090 #define __NR_sigpending          73
0091 #define __NR_sethostname         74
0092 #define __NR_setrlimit           75
0093 #define __NR_getrusage           77
0094 #define __NR_gettimeofday        78
0095 #define __NR_settimeofday        79
0096 #define __NR_symlink             83
0097 #define __NR_readlink            85
0098 #define __NR_uselib              86
0099 #define __NR_swapon              87
0100 #define __NR_reboot              88
0101 #define __NR_readdir             89
0102 #define __NR_mmap                90
0103 #define __NR_munmap              91
0104 #define __NR_truncate            92
0105 #define __NR_ftruncate           93
0106 #define __NR_fchmod              94
0107 #define __NR_getpriority         96
0108 #define __NR_setpriority         97
0109 #define __NR_statfs              99
0110 #define __NR_fstatfs            100
0111 #define __NR_socketcall         102
0112 #define __NR_syslog             103
0113 #define __NR_setitimer          104
0114 #define __NR_getitimer          105
0115 #define __NR_stat               106
0116 #define __NR_lstat              107
0117 #define __NR_fstat              108
0118 #define __NR_lookup_dcookie     110
0119 #define __NR_vhangup            111
0120 #define __NR_idle               112
0121 #define __NR_wait4              114
0122 #define __NR_swapoff            115
0123 #define __NR_sysinfo            116
0124 #define __NR_ipc                117
0125 #define __NR_fsync              118
0126 #define __NR_sigreturn          119
0127 #define __NR_clone              120
0128 #define __NR_setdomainname      121
0129 #define __NR_uname              122
0130 #define __NR_adjtimex           124
0131 #define __NR_mprotect           125
0132 #define __NR_sigprocmask        126
0133 #define __NR_create_module      127
0134 #define __NR_init_module        128
0135 #define __NR_delete_module      129
0136 #define __NR_get_kernel_syms    130
0137 #define __NR_quotactl           131
0138 #define __NR_getpgid            132
0139 #define __NR_fchdir             133
0140 #define __NR_bdflush            134
0141 #define __NR_sysfs              135
0142 #define __NR_personality        136
0143 #define __NR_afs_syscall        137 /* Syscall for Andrew File System */
0144 #define __NR_getdents           141
0145 #define __NR_flock              143
0146 #define __NR_msync              144
0147 #define __NR_readv              145
0148 #define __NR_writev             146
0149 #define __NR_getsid             147
0150 #define __NR_fdatasync          148
0151 #define __NR__sysctl            149
0152 #define __NR_mlock              150
0153 #define __NR_munlock            151
0154 #define __NR_mlockall           152
0155 #define __NR_munlockall         153
0156 #define __NR_sched_setparam             154
0157 #define __NR_sched_getparam             155
0158 #define __NR_sched_setscheduler         156
0159 #define __NR_sched_getscheduler         157
0160 #define __NR_sched_yield                158
0161 #define __NR_sched_get_priority_max     159
0162 #define __NR_sched_get_priority_min     160
0163 #define __NR_sched_rr_get_interval      161
0164 #define __NR_nanosleep          162
0165 #define __NR_mremap             163
0166 #define __NR_query_module       167
0167 #define __NR_poll               168
0168 #define __NR_nfsservctl         169
0169 #define __NR_prctl              172
0170 #define __NR_rt_sigreturn       173
0171 #define __NR_rt_sigaction       174
0172 #define __NR_rt_sigprocmask     175
0173 #define __NR_rt_sigpending      176
0174 #define __NR_rt_sigtimedwait    177
0175 #define __NR_rt_sigqueueinfo    178
0176 #define __NR_rt_sigsuspend      179
0177 #define __NR_pread64            180
0178 #define __NR_pwrite64           181
0179 #define __NR_getcwd             183
0180 #define __NR_capget             184
0181 #define __NR_capset             185
0182 #define __NR_sigaltstack        186
0183 #define __NR_sendfile           187
0184 #define __NR_getpmsg        188
0185 #define __NR_putpmsg        189
0186 #define __NR_vfork      190
0187 #define __NR_pivot_root         217
0188 #define __NR_mincore            218
0189 #define __NR_madvise            219
0190 #define __NR_getdents64     220
0191 #define __NR_readahead      222
0192 #define __NR_setxattr       224
0193 #define __NR_lsetxattr      225
0194 #define __NR_fsetxattr      226
0195 #define __NR_getxattr       227
0196 #define __NR_lgetxattr      228
0197 #define __NR_fgetxattr      229
0198 #define __NR_listxattr      230
0199 #define __NR_llistxattr     231
0200 #define __NR_flistxattr     232
0201 #define __NR_removexattr    233
0202 #define __NR_lremovexattr   234
0203 #define __NR_fremovexattr   235
0204 #define __NR_gettid     236
0205 #define __NR_tkill      237
0206 #define __NR_futex      238
0207 #define __NR_sched_setaffinity  239
0208 #define __NR_sched_getaffinity  240
0209 #define __NR_tgkill     241
0210 /* Number 242 is reserved for tux */
0211 #define __NR_io_setup       243
0212 #define __NR_io_destroy     244
0213 #define __NR_io_getevents   245
0214 #define __NR_io_submit      246
0215 #define __NR_io_cancel      247
0216 #define __NR_exit_group     248
0217 #define __NR_epoll_create   249
0218 #define __NR_epoll_ctl      250
0219 #define __NR_epoll_wait     251
0220 #define __NR_set_tid_address    252
0221 #define __NR_fadvise64      253
0222 #define __NR_timer_create   254
0223 #define __NR_timer_settime  (__NR_timer_create+1)
0224 #define __NR_timer_gettime  (__NR_timer_create+2)
0225 #define __NR_timer_getoverrun   (__NR_timer_create+3)
0226 #define __NR_timer_delete   (__NR_timer_create+4)
0227 #define __NR_clock_settime  (__NR_timer_create+5)
0228 #define __NR_clock_gettime  (__NR_timer_create+6)
0229 #define __NR_clock_getres   (__NR_timer_create+7)
0230 #define __NR_clock_nanosleep    (__NR_timer_create+8)
0231 /* Number 263 is reserved for vserver */
0232 #define __NR_statfs64       265
0233 #define __NR_fstatfs64      266
0234 #define __NR_remap_file_pages   267
0235 /* Number 268 is reserved for new sys_mbind */
0236 /* Number 269 is reserved for new sys_get_mempolicy */
0237 /* Number 270 is reserved for new sys_set_mempolicy */
0238 #define __NR_mq_open        271
0239 #define __NR_mq_unlink      272
0240 #define __NR_mq_timedsend   273
0241 #define __NR_mq_timedreceive    274
0242 #define __NR_mq_notify      275
0243 #define __NR_mq_getsetattr  276
0244 #define __NR_kexec_load     277
0245 #define __NR_add_key        278
0246 #define __NR_request_key    279
0247 #define __NR_keyctl     280
0248 #define __NR_waitid     281
0249 #define __NR_ioprio_set     282
0250 #define __NR_ioprio_get     283
0251 #define __NR_inotify_init   284
0252 #define __NR_inotify_add_watch  285
0253 #define __NR_inotify_rm_watch   286
0254 /* Number 287 is reserved for new sys_migrate_pages */
0255 #define __NR_openat     288
0256 #define __NR_mkdirat        289
0257 #define __NR_mknodat        290
0258 #define __NR_fchownat       291
0259 #define __NR_futimesat      292
0260 #define __NR_unlinkat       294
0261 #define __NR_renameat       295
0262 #define __NR_linkat     296
0263 #define __NR_symlinkat      297
0264 #define __NR_readlinkat     298
0265 #define __NR_fchmodat       299
0266 #define __NR_faccessat      300
0267 #define __NR_pselect6       301
0268 #define __NR_ppoll      302
0269 #define __NR_unshare        303
0270 #define __NR_set_robust_list    304
0271 #define __NR_get_robust_list    305
0272 #define __NR_splice     306
0273 #define __NR_sync_file_range    307
0274 #define __NR_tee        308
0275 #define __NR_vmsplice       309
0276 /* Number 310 is reserved for new sys_move_pages */
0277 #define __NR_getcpu     311
0278 #define __NR_epoll_pwait    312
0279 #define __NR_utimes     313
0280 #define __NR_fallocate      314
0281 #define __NR_utimensat      315
0282 #define __NR_signalfd       316
0283 #define __NR_timerfd        317
0284 #define __NR_eventfd        318
0285 #define __NR_timerfd_create 319
0286 #define __NR_timerfd_settime    320
0287 #define __NR_timerfd_gettime    321
0288 #define __NR_signalfd4      322
0289 #define __NR_eventfd2       323
0290 #define __NR_inotify_init1  324
0291 #define __NR_pipe2      325
0292 #define __NR_dup3       326
0293 #define __NR_epoll_create1  327
0294 #define __NR_preadv     328
0295 #define __NR_pwritev        329
0296 #define __NR_rt_tgsigqueueinfo  330
0297 #define __NR_perf_event_open    331
0298 #define __NR_fanotify_init  332
0299 #define __NR_fanotify_mark  333
0300 #define __NR_prlimit64      334
0301 #define __NR_name_to_handle_at  335
0302 #define __NR_open_by_handle_at  336
0303 #define __NR_clock_adjtime  337
0304 #define __NR_syncfs     338
0305 #define __NR_setns      339
0306 #define __NR_process_vm_readv   340
0307 #define __NR_process_vm_writev  341
0308 #define __NR_s390_runtime_instr 342
0309 #define __NR_kcmp       343
0310 #define __NR_finit_module   344
0311 #define __NR_sched_setattr  345
0312 #define __NR_sched_getattr  346
0313 #define __NR_renameat2      347
0314 #define __NR_seccomp        348
0315 #define __NR_getrandom      349
0316 #define __NR_memfd_create   350
0317 
0318 #define __NR_execveat       354
0319 
0320 #define __NR_membarrier         356
0321 #define __NR_recvmmsg           357
0322 #define __NR_sendmmsg           358
0323 #define __NR_socket         359
0324 #define __NR_socketpair         360
0325 #define __NR_bind           361
0326 #define __NR_connect            362
0327 #define __NR_listen         363
0328 #define __NR_accept4            364
0329 #define __NR_getsockopt         365
0330 #define __NR_setsockopt         366
0331 #define __NR_getsockname        367
0332 #define __NR_getpeername        368
0333 #define __NR_sendto         369
0334 #define __NR_sendmsg            370
0335 #define __NR_recvfrom           371
0336 #define __NR_recvmsg            372
0337 #define __NR_shutdown           373
0338 #define __NR_mlock2         374
0339 #define __NR_copy_file_range        375
0340 #define __NR_preadv2            376
0341 #define __NR_pwritev2           377
0342 #define __NR_s390_guarded_storage   378
0343 #define __NR_statx          379
0344 #define __NR_s390_sthyi         380
0345 #define __NR_kexec_file_load        381
0346 #define __NR_io_pgetevents      382
0347 #define __NR_rseq           383
0348 
0349 #define NR_syscalls 384
0350 
0351 /* 
0352  * There are some system calls that are not present on 64 bit, some
0353  * have a different name although they do the same (e.g. __NR_chown32
0354  * is __NR_chown on 64 bit).
0355  */
0356 #ifdef VGA_s390x
0357 
0358 #define __NR_select     142
0359 #define __NR_getrlimit      191 /* SuS compliant getrlimit */
0360 #define __NR_lchown         198
0361 #define __NR_getuid         199
0362 #define __NR_getgid         200
0363 #define __NR_geteuid        201
0364 #define __NR_getegid        202
0365 #define __NR_setreuid       203
0366 #define __NR_setregid       204
0367 #define __NR_getgroups      205
0368 #define __NR_setgroups      206
0369 #define __NR_fchown         207
0370 #define __NR_setresuid      208
0371 #define __NR_getresuid      209
0372 #define __NR_setresgid      210
0373 #define __NR_getresgid      211
0374 #define __NR_chown          212
0375 #define __NR_setuid         213
0376 #define __NR_setgid         214
0377 #define __NR_setfsuid       215
0378 #define __NR_setfsgid       216
0379 #define __NR_newfstatat     293
0380 
0381 #endif
0382 
0383 #endif /* __VKI_SCNUMS_S390X_LINUX_H */
0384 
0385 /*--------------------------------------------------------------------*/
0386 /*--- end                                                          ---*/
0387 /*--------------------------------------------------------------------*/