]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Update linux system call numbers.
authorTom Hughes <tom@compton.nu>
Wed, 21 Mar 2018 12:28:31 +0000 (12:28 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Mar 2018 12:28:31 +0000 (12:28 +0000)
include/vki/vki-scnums-amd64-linux.h
include/vki/vki-scnums-arm-linux.h
include/vki/vki-scnums-arm64-linux.h
include/vki/vki-scnums-mips32-linux.h
include/vki/vki-scnums-mips64-linux.h
include/vki/vki-scnums-ppc32-linux.h
include/vki/vki-scnums-ppc64-linux.h
include/vki/vki-scnums-s390x-linux.h
include/vki/vki-scnums-x86-linux.h

index adeee00621e0a1eca44a83459096ebbd52cf1f16..144cdbc90aee085519341a5c984fce1a11854872 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_AMD64_LINUX_H
 #define __VKI_SCNUMS_AMD64_LINUX_H
 
-// Derived from linux-2.6/arch/x86/syscalls/syscall_64.tbl
+// Derived from linux-2.6/arch/x86/entry/syscalls/syscall_64.tbl
 
 #define __NR_read                                0
 #define __NR_write                               1
 #define __NR_memfd_create       319
 #define __NR_kexec_file_load    320
 #define __NR_bpf                321
+#define __NR_execveat           322
+#define __NR_userfaultfd        323
+#define __NR_membarrier         324
+#define __NR_mlock2             325
+#define __NR_copy_file_range    326
+#define __NR_preadv2            327
+#define __NR_pwritev2           328
+#define __NR_pkey_mprotect      329
+#define __NR_pkey_alloc         330
+#define __NR_pkey_free          331
+#define __NR_statx              332
 
 #endif /* __VKI_SCNUMS_AMD64_LINUX_H */
 
index 4430e6991d078d065046333cb89063e99c663756..efbc1a8f70ba18946755fd3d2b4bb12eb979a144 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_ARM_LINUX_H
 #define __VKI_SCNUMS_ARM_LINUX_H
 
-// From linux-2.6/arch/arm/include/asm/unistd.h
+// From linux-2.6/arch/arm/tools/syscall.tbl
 
 #define __NR_restart_syscall             0
 #define __NR_exit                        1
 #define __NR_seccomp                    383
 #define __NR_getrandom                  384
 #define __NR_memfd_create               385
+#define __NR_bpf                        386
+#define __NR_execveat                   387
+#define __NR_userfaultfd                388
+#define __NR_membarrier                 389
+#define __NR_mlock2                     390
+#define __NR_copy_file_range            391
+#define __NR_preadv2                    392
+#define __NR_pwritev2                   393
+#define __NR_pkey_mprotect              394
+#define __NR_pkey_alloc                 395
+#define __NR_pkey_free                  396
+#define __NR_statx                      397
 
 
 
index d53e7d73c19530c8769a4a6337cb1ddc84d1ba89..8c2eb6d66df8c7b03a3d594eabef02323ba2850c 100644 (file)
 #define __NR_getrandom 278
 #define __NR_memfd_create 279
 #define __NR_bpf 280
+#define __NR_execveat 281
+#define __NR_userfaultfd 282
+#define __NR_membarrier 283
+#define __NR_mlock2 284
+#define __NR_copy_file_range 285
+#define __NR_preadv2 286
+#define __NR_pwritev2 287
+#define __NR_pkey_mprotect 288
+#define __NR_pkey_alloc 289
+#define __NR_pkey_free 290
+#define __NR_statx 291
 
 #undef __NR_syscalls
-#define __NR_syscalls 274
+#define __NR_syscalls 292
 
 ///*
 // * All syscalls below here should go away really,
index 0187e9003556c4601ded61a7330219912ec723c7..29a1db12d839d54f0a24539d4a6181ee953f6077 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_MIPS32_LINUX_H
 #define __VKI_SCNUMS_MIPS32_LINUX_H
 
-// From linux-2.6.35.5/include/asm-mips/unistd.h
+// From linux/arch/mips/include/uapi/asm/unistd.h
 /*
  * Linux o32 style syscalls are in the range from 4000 to 4999.
  */
 #define __NR_seccomp                   (__NR_Linux + 352)
 #define __NR_getrandom                 (__NR_Linux + 353)
 #define __NR_memfd_create              (__NR_Linux + 354)
+#define __NR_bpf                       (__NR_Linux + 355)
+#define __NR_execveat                  (__NR_Linux + 356)
+#define __NR_userfaultfd               (__NR_Linux + 357)
+#define __NR_membarrier                        (__NR_Linux + 358)
+#define __NR_mlock2                    (__NR_Linux + 359)
+#define __NR_copy_file_range           (__NR_Linux + 360)
+#define __NR_preadv2                   (__NR_Linux + 361)
+#define __NR_pwritev2                  (__NR_Linux + 362)
+#define __NR_pkey_mprotect             (__NR_Linux + 363)
+#define __NR_pkey_alloc                        (__NR_Linux + 364)
+#define __NR_pkey_free                 (__NR_Linux + 365)
+#define __NR_statx                     (__NR_Linux + 366)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls                334
+#define __NR_Linux_syscalls                366
 
 
 #define __NR_O32_Linux                  4000
-#define __NR_O32_Linux_syscalls                334
+#define __NR_O32_Linux_syscalls                366
 
 
 #endif                          /* __VKI_SCNUMS_MIPS32_LINUX_H */
index e3d8536bd10e830a9d9cdaa93f653634fd300e23..1a15bf80452978dfcaea3e4f692b3241a8550908 100644 (file)
@@ -32,6 +32,7 @@
 #ifndef __VKI_SCNUMS_MIPS64_LINUX_H
 #define __VKI_SCNUMS_MIPS64_LINUX_H
 
+// From linux/arch/mips/include/uapi/asm/unistd.h
 /*
  * Linux 64-bit syscalls are in the range from 5000 to 5999.
  */
 #define __NR_seccomp                (__NR_Linux + 312)
 #define __NR_getrandom              (__NR_Linux + 313)
 #define __NR_memfd_create           (__NR_Linux + 314)
-
+#define __NR_bpf                    (__NR_Linux + 315)
+#define __NR_execveat               (__NR_Linux + 316)
+#define __NR_userfaultfd            (__NR_Linux + 317)
+#define __NR_membarrier             (__NR_Linux + 318)
+#define __NR_mlock2                 (__NR_Linux + 319)
+#define __NR_copy_file_range        (__NR_Linux + 320)
+#define __NR_preadv2                (__NR_Linux + 321)
+#define __NR_pwritev2               (__NR_Linux + 322)
+#define __NR_pkey_mprotect          (__NR_Linux + 323)
+#define __NR_pkey_alloc             (__NR_Linux + 324)
+#define __NR_pkey_free              (__NR_Linux + 325)
+#define __NR_statx                  (__NR_Linux + 326)
 #endif /* __VKI_SCNUMS_MIPS64_LINUX_H */
 
 /*--------------------------------------------------------------------*/
index c2859ed9c14142f2310421f1b04080ba37c9ab00..dec5f0a9195c2f875ad68d18fb5e3b3cea4290cd 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_PPC32_LINUX_H
 #define __VKI_SCNUMS_PPC32_LINUX_H
 
-// From linux-2.6/arc/powerpc/include/asm/unistd.h
+// From linux/arch/powerpc/include/uapi/asm/unistd.h
 
 #define __NR_restart_syscall     0
 #define __NR_exit                1
 #define __NR_seccomp           358
 #define __NR_getrandom         359
 #define __NR_memfd_create      360
+#define __NR_bpf               361
+#define __NR_execveat          362
+#define __NR_switch_endian     363
+#define __NR_userfaultfd       364
+#define __NR_membarrier                365
+#define __NR_mlock2            378
+#define __NR_copy_file_range   379
+#define __NR_preadv2           380
+#define __NR_pwritev2          381
+#define __NR_kexec_file_load   382
+#define __NR_statx             383
+#define __NR_pkey_alloc                384
+#define __NR_pkey_free         385
+#define __NR_pkey_mprotect     386
 
 #endif /* __VKI_SCNUMS_PPC32_LINUX_H */
 
index a195c015b672b5dda41b1203fbd2358379fcff22..969524e6d88d2d81065dd936f83dc4d363bb6965 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_PPC64_LINUX_H
 #define __VKI_SCNUMS_PPC64_LINUX_H
 
-// From linux-2.6/arc/powerpc/include/asm/unistd.h
+// From linux/arch/powerpc/include/uapi/asm/unistd.h
 
 #define __NR_restart_syscall      0
 #define __NR_exit                 1
 #define __NR_seccomp           358
 #define __NR_getrandom         359
 #define __NR_memfd_create      360
+#define __NR_bpf               361
+#define __NR_execveat          362
+#define __NR_switch_endian     363
+#define __NR_userfaultfd       364
+#define __NR_membarrier                365
+#define __NR_mlock2            378
+#define __NR_copy_file_range   379
+#define __NR_preadv2           380
+#define __NR_pwritev2          381
+#define __NR_kexec_file_load   382
+#define __NR_statx             383
+#define __NR_pkey_alloc                384
+#define __NR_pkey_free         385
+#define __NR_pkey_mprotect     386
 
 #endif /* __VKI_SCNUMS_PPC64_LINUX_H */
 
index bc436dd68c01105bf98af132b5491a26efbeac84..ef0639cad2c0f29938b0f5dd5a635007b994571f 100644 (file)
@@ -34,7 +34,7 @@
 #define __VKI_SCNUMS_S390X_LINUX_H
 
 //----------------------------------------------------------------------
-// From linux-3.16/arch/s390/include/uapi/asm/unistd.h
+// From linux/arch/s390/kernel/syscalls/syscall.tbl
 //----------------------------------------------------------------------
 
 /*
 #define __NR_getrandom         349
 #define __NR_memfd_create      350
 
-#define __NR_recvmmsg          357
-#define __NR_sendmmsg          358
-#define __NR_socket            359
-#define __NR_socketpair                360
-#define __NR_bind              361
-#define __NR_connect           362
-#define __NR_listen            363
-#define __NR_accept4           364
-#define __NR_getsockopt                365
-#define __NR_setsockopt                366
-#define __NR_getsockname       367
-#define __NR_getpeername       368
-#define __NR_sendto            369
-#define __NR_sendmsg           370
-#define __NR_recvfrom          371
-#define __NR_recvmsg           372
-#define __NR_shutdown          373
+#define __NR_recvmmsg                  357
+#define __NR_sendmmsg                  358
+#define __NR_socket                    359
+#define __NR_socketpair                        360
+#define __NR_bind                      361
+#define __NR_connect                   362
+#define __NR_listen                    363
+#define __NR_accept4                   364
+#define __NR_getsockopt                        365
+#define __NR_setsockopt                        366
+#define __NR_getsockname               367
+#define __NR_getpeername               368
+#define __NR_sendto                    369
+#define __NR_sendmsg                   370
+#define __NR_recvfrom                  371
+#define __NR_recvmsg                   372
+#define __NR_shutdown                  373
+#define __NR_mlock2                    374
+#define __NR_copy_file_range           375
+#define __NR_preadv2                   376
+#define __NR_pwritev2                  377
+#define __NR_s390_guarded_storage      378
+#define __NR_statx                     379
+#define __NR_s390_sthyi                        380
 
-#define NR_syscalls 374
+#define NR_syscalls 381
 
 /* 
  * There are some system calls that are not present on 64 bit, some
index 8a6376b8eb6e5f86b50470574fc14c05fe1d5b1e..041d247a5b6387373e12ca3f3abf46f3b580bc91 100644 (file)
@@ -32,7 +32,7 @@
 #ifndef __VKI_SCNUMS_X86_LINUX_H
 #define __VKI_SCNUMS_X86_LINUX_H
 
-// Derived from linux-2.6/arch/x86/syscalls/syscall_32.tbl
+// Derived from linux-2.6/arch/x86/entry/syscalls/syscall_32.tbl
 
 #define __NR_restart_syscall      0
 #define __NR_exit                1
 #define __NR_userfaultfd        374
 #define __NR_membarrier         375
 #define __NR_mlock2             376
+#define __NR_copy_file_range    377
+#define __NR_preadv2            378
+#define __NR_pwritev2           379
+#define __NR_pkey_mprotect      380
+#define __NR_pkey_alloc         381
+#define __NR_pkey_free          382
+#define __NR_statx              383
+#define __NR_arch_prctl         384
 
 #endif /* __VKI_SCNUMS_X86_LINUX_H */