|
Message-ID: <3d8de16e9f50368060aceecf031cda7610652dac.1458390390.git.nsz@port70.net> Date: Sat, 19 Mar 2016 13:35:43 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: [PATCH 2/6] add copy_file_range syscall numbers from linux v4.5 it was introduced for offloading copying between regular files in linux commit 29732938a6289a15e907da234d6692a2ead71855 (microblaze and sh does not yet have the syscall number.) --- arch/aarch64/bits/syscall.h | 2 ++ arch/arm/bits/syscall.h | 2 ++ arch/i386/bits/syscall.h | 2 ++ arch/mips/bits/syscall.h | 2 ++ arch/mips64/bits/syscall.h | 2 ++ arch/or1k/bits/syscall.h | 2 ++ arch/powerpc/bits/syscall.h | 2 ++ arch/x32/bits/syscall.h | 2 ++ arch/x86_64/bits/syscall.h | 2 ++ 9 files changed, 18 insertions(+) diff --git a/arch/aarch64/bits/syscall.h b/arch/aarch64/bits/syscall.h index 31bed73..eddbe92 100644 --- a/arch/aarch64/bits/syscall.h +++ b/arch/aarch64/bits/syscall.h @@ -268,6 +268,7 @@ #define __NR_userfaultfd 282 #define __NR_membarrier 283 #define __NR_mlock2 284 +#define __NR_copy_file_range 285 #define SYS_io_setup __NR_io_setup #define SYS_io_destroy __NR_io_destroy @@ -539,3 +540,4 @@ #define SYS_userfaultfd __NR_userfaultfd #define SYS_membarrier __NR_membarrier #define SYS_mlock2 __NR_mlock2 +#define SYS_copy_file_range __NR_copy_file_range diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h index 036c562..be30be7 100644 --- a/arch/arm/bits/syscall.h +++ b/arch/arm/bits/syscall.h @@ -344,6 +344,7 @@ #define __NR_userfaultfd 388 #define __NR_membarrier 389 #define __NR_mlock2 390 +#define __NR_copy_file_range 391 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 @@ -699,3 +700,4 @@ #define SYS_userfaultfd 388 #define SYS_membarrier 389 #define SYS_mlock2 390 +#define SYS_copy_file_range 391 diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h index b1a389b..25cd50a 100644 --- a/arch/i386/bits/syscall.h +++ b/arch/i386/bits/syscall.h @@ -375,6 +375,7 @@ #define __NR_userfaultfd 374 #define __NR_membarrier 375 #define __NR_mlock2 376 +#define __NR_copy_file_range 377 /* Repeated with SYS_ prefix */ @@ -756,3 +757,4 @@ #define SYS_userfaultfd 374 #define SYS_membarrier 375 #define SYS_mlock2 376 +#define SYS_copy_file_range 377 diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h index 340c587..40ca6ba 100644 --- a/arch/mips/bits/syscall.h +++ b/arch/mips/bits/syscall.h @@ -357,6 +357,7 @@ #define __NR_userfaultfd 4357 #define __NR_membarrier 4358 #define __NR_mlock2 4359 +#define __NR_copy_file_range 4360 /* Repeated with SYS_ prefix */ @@ -719,3 +720,4 @@ #define SYS_userfaultfd 4357 #define SYS_membarrier 4358 #define SYS_mlock2 4359 +#define SYS_copy_file_range 4360 diff --git a/arch/mips64/bits/syscall.h b/arch/mips64/bits/syscall.h index 8c81882..a84a519 100644 --- a/arch/mips64/bits/syscall.h +++ b/arch/mips64/bits/syscall.h @@ -317,6 +317,7 @@ #define __NR_userfaultfd 5317 #define __NR_membarrier 5318 #define __NR_mlock2 5319 +#define __NR_copy_file_range 5320 #define SYS_read 5000 #define SYS_write 5001 @@ -637,3 +638,4 @@ #define SYS_userfaultfd 5317 #define SYS_membarrier 5318 #define SYS_mlock2 5319 +#define SYS_copy_file_range 5320 diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h index a73b232..de810a4 100644 --- a/arch/or1k/bits/syscall.h +++ b/arch/or1k/bits/syscall.h @@ -268,6 +268,7 @@ #define __NR_userfaultfd 282 #define __NR_membarrier 283 #define __NR_mlock2 284 +#define __NR_copy_file_range 285 #define SYS_io_setup __NR_io_setup #define SYS_io_destroy __NR_io_destroy @@ -539,3 +540,4 @@ #define SYS_userfaultfd __NR_userfaultfd #define SYS_membarrier __NR_membarrier #define SYS_mlock2 __NR_mlock2 +#define SYS_copy_file_range __NR_copy_file_range diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h index e02f56f..eb5295f 100644 --- a/arch/powerpc/bits/syscall.h +++ b/arch/powerpc/bits/syscall.h @@ -368,6 +368,7 @@ #define __NR_userfaultfd 364 #define __NR_membarrier 365 #define __NR_mlock2 378 +#define __NR_copy_file_range 379 /* * repeated with SYS prefix @@ -742,3 +743,4 @@ #define SYS_userfaultfd 364 #define SYS_membarrier 365 #define SYS_mlock2 378 +#define SYS_copy_file_range 379 diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h index 4a1099d..bd5ab3b 100644 --- a/arch/x32/bits/syscall.h +++ b/arch/x32/bits/syscall.h @@ -280,6 +280,7 @@ #define __NR_userfaultfd (__X32_SYSCALL_BIT + 323) #define __NR_membarrier (__X32_SYSCALL_BIT + 324) #define __NR_mlock2 (__X32_SYSCALL_BIT + 325) +#define __NR_copy_file_range (__X32_SYSCALL_BIT + 326) #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) @@ -613,6 +614,7 @@ #define SYS_userfaultfd __NR_userfaultfd #define SYS_membarrier __NR_membarrier #define SYS_mlock2 __NR_mlock2 +#define SYS_copy_file_range __NR_copy_file_range #define SYS_rt_sigaction __NR_rt_sigaction diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h index 22aa716..1b02df9 100644 --- a/arch/x86_64/bits/syscall.h +++ b/arch/x86_64/bits/syscall.h @@ -324,6 +324,7 @@ #define __NR_userfaultfd 323 #define __NR_membarrier 324 #define __NR_mlock2 325 +#define __NR_copy_file_range 326 @@ -655,3 +656,4 @@ #define SYS_userfaultfd 323 #define SYS_membarrier 324 #define SYS_mlock2 325 +#define SYS_copy_file_range 326 -- 2.7.2
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.