about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:11:01 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:11:01 +0100
commita72ae22d5d9951a97b4e3c3101cc651ef1a01da3 (patch)
tree7f0e07a617a7a3b6d19424625aa7e65b7642a86b /sysdeps
parentf122f356c59bc6b32a9111bd97b593c39402d993 (diff)
downloadglibc-a72ae22d5d9951a97b4e3c3101cc651ef1a01da3.tar.gz
glibc-a72ae22d5d9951a97b4e3c3101cc651ef1a01da3.tar.xz
glibc-a72ae22d5d9951a97b4e3c3101cc651ef1a01da3.zip
Linux: copy_file_range syscall number is always available
Due to the built-in tables, __NR_copy_file_range is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-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
 }