From 78b1f3cb1406b475ad8800a64197f2e0bf04d5ef Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 26 May 2016 22:04:56 +0200 Subject: [PATCH] add preadv2 and pwritev2 syscall numbers for linux v4.6 the syscalls take an additional flag argument, they were added in commit f17d8b35452cab31a70d224964cd583fb2845449 and a RWF_HIPRI priority hint flag was added to linux/fs.h in 97be7ebe53915af504fb491fb99f064c7cf3cb09. the syscall is not allocated for microblaze and sh yet. --- arch/aarch64/bits/syscall.h.in | 2 ++ arch/arm/bits/syscall.h.in | 2 ++ arch/i386/bits/syscall.h.in | 2 ++ arch/mips/bits/syscall.h.in | 2 ++ arch/mips64/bits/syscall.h.in | 2 ++ arch/mipsn32/bits/syscall.h.in | 2 ++ arch/or1k/bits/syscall.h.in | 2 ++ arch/powerpc/bits/syscall.h.in | 2 ++ arch/powerpc64/bits/syscall.h.in | 2 ++ arch/x32/bits/syscall.h.in | 2 ++ arch/x86_64/bits/syscall.h.in | 2 ++ 11 files changed, 22 insertions(+) diff --git a/arch/aarch64/bits/syscall.h.in b/arch/aarch64/bits/syscall.h.in index bcf69d20..332f437d 100644 --- a/arch/aarch64/bits/syscall.h.in +++ b/arch/aarch64/bits/syscall.h.in @@ -269,4 +269,6 @@ #define __NR_membarrier 283 #define __NR_mlock2 284 #define __NR_copy_file_range 285 +#define __NR_preadv2 286 +#define __NR_pwritev2 287 diff --git a/arch/arm/bits/syscall.h.in b/arch/arm/bits/syscall.h.in index 143b0a8d..04c8b1cf 100644 --- a/arch/arm/bits/syscall.h.in +++ b/arch/arm/bits/syscall.h.in @@ -345,6 +345,8 @@ #define __NR_membarrier 389 #define __NR_mlock2 390 #define __NR_copy_file_range 391 +#define __NR_preadv2 392 +#define __NR_pwritev2 393 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 diff --git a/arch/i386/bits/syscall.h.in b/arch/i386/bits/syscall.h.in index 108fbbce..5fe9c5c4 100644 --- a/arch/i386/bits/syscall.h.in +++ b/arch/i386/bits/syscall.h.in @@ -376,4 +376,6 @@ #define __NR_membarrier 375 #define __NR_mlock2 376 #define __NR_copy_file_range 377 +#define __NR_preadv2 378 +#define __NR_pwritev2 379 diff --git a/arch/mips/bits/syscall.h.in b/arch/mips/bits/syscall.h.in index 61ff7a58..bcceaa2a 100644 --- a/arch/mips/bits/syscall.h.in +++ b/arch/mips/bits/syscall.h.in @@ -358,4 +358,6 @@ #define __NR_membarrier 4358 #define __NR_mlock2 4359 #define __NR_copy_file_range 4360 +#define __NR_preadv2 4361 +#define __NR_pwritev2 4362 diff --git a/arch/mips64/bits/syscall.h.in b/arch/mips64/bits/syscall.h.in index 0e206830..eef85435 100644 --- a/arch/mips64/bits/syscall.h.in +++ b/arch/mips64/bits/syscall.h.in @@ -318,4 +318,6 @@ #define __NR_membarrier 5318 #define __NR_mlock2 5319 #define __NR_copy_file_range 5320 +#define __NR_preadv2 5321 +#define __NR_pwritev2 5322 diff --git a/arch/mipsn32/bits/syscall.h.in b/arch/mipsn32/bits/syscall.h.in index 6c38f68d..5fda0b57 100644 --- a/arch/mipsn32/bits/syscall.h.in +++ b/arch/mipsn32/bits/syscall.h.in @@ -322,4 +322,6 @@ #define __NR_membarrier 6322 #define __NR_mlock2 6323 #define __NR_copy_file_range 6324 +#define __NR_preadv2 6325 +#define __NR_pwritev2 6326 diff --git a/arch/or1k/bits/syscall.h.in b/arch/or1k/bits/syscall.h.in index c6e55c6b..c6b6cf2c 100644 --- a/arch/or1k/bits/syscall.h.in +++ b/arch/or1k/bits/syscall.h.in @@ -269,4 +269,6 @@ #define __NR_membarrier 283 #define __NR_mlock2 284 #define __NR_copy_file_range 285 +#define __NR_preadv2 286 +#define __NR_pwritev2 287 diff --git a/arch/powerpc/bits/syscall.h.in b/arch/powerpc/bits/syscall.h.in index f55e69c5..9d022321 100644 --- a/arch/powerpc/bits/syscall.h.in +++ b/arch/powerpc/bits/syscall.h.in @@ -369,4 +369,6 @@ #define __NR_membarrier 365 #define __NR_mlock2 378 #define __NR_copy_file_range 379 +#define __NR_preadv2 380 +#define __NR_pwritev2 381 diff --git a/arch/powerpc64/bits/syscall.h.in b/arch/powerpc64/bits/syscall.h.in index ff375364..c9880fa2 100644 --- a/arch/powerpc64/bits/syscall.h.in +++ b/arch/powerpc64/bits/syscall.h.in @@ -355,4 +355,6 @@ #define __NR_membarrier 365 #define __NR_mlock2 378 #define __NR_copy_file_range 379 +#define __NR_preadv2 380 +#define __NR_pwritev2 381 diff --git a/arch/x32/bits/syscall.h.in b/arch/x32/bits/syscall.h.in index 0b9362a3..cf2b4f14 100644 --- a/arch/x32/bits/syscall.h.in +++ b/arch/x32/bits/syscall.h.in @@ -280,6 +280,8 @@ #define __NR_membarrier (0x40000000 + 324) #define __NR_mlock2 (0x40000000 + 325) #define __NR_copy_file_range (0x40000000 + 326) +#define __NR_preadv2 (0x40000000 + 327) +#define __NR_pwritev2 (0x40000000 + 328) #define __NR_rt_sigaction (0x40000000 + 512) #define __NR_rt_sigreturn (0x40000000 + 513) diff --git a/arch/x86_64/bits/syscall.h.in b/arch/x86_64/bits/syscall.h.in index 7e638a03..d0c55185 100644 --- a/arch/x86_64/bits/syscall.h.in +++ b/arch/x86_64/bits/syscall.h.in @@ -325,4 +325,6 @@ #define __NR_membarrier 324 #define __NR_mlock2 325 #define __NR_copy_file_range 326 +#define __NR_preadv2 327 +#define __NR_pwritev2 328 -- GitLab