aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 15:38:53 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 16:54:01 +0100
commit49f28ea934a2bb9b46c13da2b1230ea990875943 (patch)
tree662a0d53f899ef4cbd16e4937dd513aad74f36de
parent191fbd3aeb6a1117649595f0ffd709f533f29efb (diff)
downloadglibc-49f28ea934a2bb9b46c13da2b1230ea990875943.tar
glibc-49f28ea934a2bb9b46c13da2b1230ea990875943.tar.gz
glibc-49f28ea934a2bb9b46c13da2b1230ea990875943.tar.bz2
glibc-49f28ea934a2bb9b46c13da2b1230ea990875943.zip
Linux: copy_file_range syscall number is always available
Due to the built-in tables, __NR_copy_file_range is always defined.
-rw-r--r--sysdeps/unix/sysv/linux/copy_file_range.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/copy_file_range.c b/sysdeps/unix/sysv/linux/copy_file_range.c
index 65597ca025..a73c89f079 100644
--- a/sysdeps/unix/sysv/linux/copy_file_range.c
+++ b/sysdeps/unix/sysv/linux/copy_file_range.c
@@ -25,11 +25,6 @@ copy_file_range (int infd, __off64_t *pinoff,
int outfd, __off64_t *poutoff,
size_t length, unsigned int flags)
{
-#ifdef __NR_copy_file_range
return SYSCALL_CANCEL (copy_file_range, infd, pinoff, outfd, poutoff,
length, flags);
-#else
- __set_errno (ENOSYS);
- return -1;
-#endif
}