aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-01-26 10:39:28 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-01-26 10:42:20 +0100
commitb4fe696c8ae2c7d45724b3ac69888522f65dc62d (patch)
tree9f7535a46d9734c294c468f38280694b4cb1a4fa
parent4cfafd7910044b45d32313ec631be6266d5ec3af (diff)
downloadman-pages-b4fe696c8ae2c7d45724b3ac69888522f65dc62d.tar.gz
copy_file_range.2: NOTES: expand details on the use of lseek()
Mention SEEK_DATA and SEEK_HOLE explicitly. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/copy_file_range.27
1 files changed, 5 insertions, 2 deletions
diff --git a/man2/copy_file_range.2 b/man2/copy_file_range.2
index be349d3564..31db404b45 100644
--- a/man2/copy_file_range.2
+++ b/man2/copy_file_range.2
@@ -137,9 +137,12 @@ is a sparse file, then
may expand any holes existing in the requested range.
Users may benefit from calling
.BR copy_file_range ()
-in a loop, and using
+in a loop, and using the
.BR lseek (2)
-to find the locations of data segments.
+.BR SEEK_DATA
+and
+.BR SEEK_HOLE
+operations to find the locations of data segments.
.SH EXAMPLE
.nf
#define _GNU_SOURCE