summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-03-19 13:35:43 +0100
committerRich Felker <dalias@aerifal.cx>2016-03-19 11:30:49 -0400
commit84d4f5eee5a291dcb25a2a8f781a9a48f70f4731 (patch)
tree31f949530e4a3d8c52b568fac956236dd3f4b254 /arch
parent2de52704ca644f129cc87ac1b28a06198d7dd829 (diff)
downloadmusl-84d4f5eee5a291dcb25a2a8f781a9a48f70f4731.tar.gz
musl-84d4f5eee5a291dcb25a2a8f781a9a48f70f4731.tar.bz2
musl-84d4f5eee5a291dcb25a2a8f781a9a48f70f4731.tar.xz
musl-84d4f5eee5a291dcb25a2a8f781a9a48f70f4731.zip
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.)
Diffstat (limited to 'arch')
-rw-r--r--arch/aarch64/bits/syscall.h2
-rw-r--r--arch/arm/bits/syscall.h2
-rw-r--r--arch/i386/bits/syscall.h2
-rw-r--r--arch/mips/bits/syscall.h2
-rw-r--r--arch/mips64/bits/syscall.h2
-rw-r--r--arch/or1k/bits/syscall.h2
-rw-r--r--arch/powerpc/bits/syscall.h2
-rw-r--r--arch/x32/bits/syscall.h2
-rw-r--r--arch/x86_64/bits/syscall.h2
9 files changed, 18 insertions, 0 deletions
diff --git a/arch/aarch64/bits/syscall.h b/arch/aarch64/bits/syscall.h
index 31bed730..eddbe929 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 036c562f..be30be70 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 b1a389b4..25cd50ab 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 340c5873..40ca6ba1 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 8c818825..a84a5197 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 a73b2324..de810a4d 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 e02f56f1..eb5295f6 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 4a1099d3..bd5ab3b4 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 22aa716c..1b02df9f 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