mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -25,11 +25,6 @@ copy_file_range (int infd, __off64_t *pinoff,
|
|||||||
int outfd, __off64_t *poutoff,
|
int outfd, __off64_t *poutoff,
|
||||||
size_t length, unsigned int flags)
|
size_t length, unsigned int flags)
|
||||||
{
|
{
|
||||||
#ifdef __NR_copy_file_range
|
|
||||||
return SYSCALL_CANCEL (copy_file_range, infd, pinoff, outfd, poutoff,
|
return SYSCALL_CANCEL (copy_file_range, infd, pinoff, outfd, poutoff,
|
||||||
length, flags);
|
length, flags);
|
||||||
#else
|
|
||||||
__set_errno (ENOSYS);
|
|
||||||
return -1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user