From: Tom Hughes Date: Wed, 21 Mar 2018 12:28:31 +0000 (+0000) Subject: Update linux system call numbers. X-Git-Tag: VALGRIND_3_14_0~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12d162aabc8180d9ad0c095e72a1354e93b091d7;p=thirdparty%2Fvalgrind.git Update linux system call numbers. --- diff --git a/include/vki/vki-scnums-amd64-linux.h b/include/vki/vki-scnums-amd64-linux.h index adeee00621..144cdbc90a 100644 --- a/include/vki/vki-scnums-amd64-linux.h +++ b/include/vki/vki-scnums-amd64-linux.h @@ -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 @@ -403,6 +403,17 @@ #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 */ diff --git a/include/vki/vki-scnums-arm-linux.h b/include/vki/vki-scnums-arm-linux.h index 4430e6991d..efbc1a8f70 100644 --- a/include/vki/vki-scnums-arm-linux.h +++ b/include/vki/vki-scnums-arm-linux.h @@ -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 @@ -422,6 +422,18 @@ #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 diff --git a/include/vki/vki-scnums-arm64-linux.h b/include/vki/vki-scnums-arm64-linux.h index d53e7d73c1..8c2eb6d66d 100644 --- a/include/vki/vki-scnums-arm64-linux.h +++ b/include/vki/vki-scnums-arm64-linux.h @@ -314,9 +314,20 @@ #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, diff --git a/include/vki/vki-scnums-mips32-linux.h b/include/vki/vki-scnums-mips32-linux.h index 0187e90035..29a1db12d8 100644 --- a/include/vki/vki-scnums-mips32-linux.h +++ b/include/vki/vki-scnums-mips32-linux.h @@ -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. */ @@ -390,15 +390,27 @@ #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 */ diff --git a/include/vki/vki-scnums-mips64-linux.h b/include/vki/vki-scnums-mips64-linux.h index e3d8536bd1..1a15bf8045 100644 --- a/include/vki/vki-scnums-mips64-linux.h +++ b/include/vki/vki-scnums-mips64-linux.h @@ -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. */ @@ -351,7 +352,18 @@ #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 */ /*--------------------------------------------------------------------*/ diff --git a/include/vki/vki-scnums-ppc32-linux.h b/include/vki/vki-scnums-ppc32-linux.h index c2859ed9c1..dec5f0a919 100644 --- a/include/vki/vki-scnums-ppc32-linux.h +++ b/include/vki/vki-scnums-ppc32-linux.h @@ -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 @@ -403,6 +403,20 @@ #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 */ diff --git a/include/vki/vki-scnums-ppc64-linux.h b/include/vki/vki-scnums-ppc64-linux.h index a195c015b6..969524e6d8 100644 --- a/include/vki/vki-scnums-ppc64-linux.h +++ b/include/vki/vki-scnums-ppc64-linux.h @@ -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 @@ -395,6 +395,20 @@ #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 */ diff --git a/include/vki/vki-scnums-s390x-linux.h b/include/vki/vki-scnums-s390x-linux.h index bc436dd68c..ef0639cad2 100644 --- a/include/vki/vki-scnums-s390x-linux.h +++ b/include/vki/vki-scnums-s390x-linux.h @@ -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 //---------------------------------------------------------------------- /* @@ -317,25 +317,32 @@ #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 diff --git a/include/vki/vki-scnums-x86-linux.h b/include/vki/vki-scnums-x86-linux.h index 8a6376b8eb..041d247a5b 100644 --- a/include/vki/vki-scnums-x86-linux.h +++ b/include/vki/vki-scnums-x86-linux.h @@ -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 @@ -411,6 +411,14 @@ #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 */