aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2017-12-27 05:14:10 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-12-27 06:32:48 +0100
commit0e124f35c5ecad6a0bff6425414aa1b77450c777 (patch)
tree1bf888ca7ad43d1509af5ff04746a1904edcb6f5
parentc799d40f9ebf6432df4b0d1c0857c59236c6ae7a (diff)
downloadman-pages-0e124f35c5ecad6a0bff6425414aa1b77450c777.tar.gz
copy_file_range.2: Add comment to code example explaining use of syscall(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/copy_file_range.23
1 files changed, 3 insertions, 0 deletions
diff --git a/man2/copy_file_range.2 b/man2/copy_file_range.2
index 4a91c4b7ea..6e50ea6ecf 100644
--- a/man2/copy_file_range.2
+++ b/man2/copy_file_range.2
@@ -160,6 +160,9 @@ or server-side-copy (in the case of NFS).
#include <sys/syscall.h>
#include <unistd.h>
+/* On versions of glibc before 2.27, we must invoke copy_file_range()
+ using syscall(2) */
+
static loff_t
copy_file_range(int fd_in, loff_t *off_in, int fd_out,
loff_t *off_out, size_t len, unsigned int flags)