]> sourceware.org Git - glibc.git/commitdiff
Linux: copy_file_range syscall number is always available
authorFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:11:01 +0000 (12:11 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:11:01 +0000 (12:11 +0100)
Due to the built-in tables, __NR_copy_file_range is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/copy_file_range.c

index 65597ca0259d8622f4c7a7cb192c1d8932a3d6e8..a73c89f079add35883c6ebeb027321fc33f8c166 100644 (file)
@@ -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
 }
This page took 0.042924 seconds and 5 git commands to generate.