aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/copy_file_range.2
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2019-11-10 01:13:41 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2019-11-10 01:13:41 +0000
commit51e069ac106d174709a0b334e39466d9d3c9e95d (patch)
tree2d4ac1d01666f6299d547a8d5490c1e7b75e8eaf /lib/libc/sys/copy_file_range.2
parent48e485785900f022b8853d50e8c4ad1dc5007d6f (diff)
downloadsrc-51e069ac106d174709a0b334e39466d9d3c9e95d.tar.gz
src-51e069ac106d174709a0b334e39466d9d3c9e95d.zip
Update the copy_file_range man page to reflect the semantic change
done by r354574. This is a content change.
Notes
Notes: svn path=/head/; revision=354575
Diffstat (limited to 'lib/libc/sys/copy_file_range.2')
-rw-r--r--lib/libc/sys/copy_file_range.215
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/copy_file_range.2 b/lib/libc/sys/copy_file_range.2
index 033a8f64a1fb..1d26b039ea26 100644
--- a/lib/libc/sys/copy_file_range.2
+++ b/lib/libc/sys/copy_file_range.2
@@ -25,12 +25,13 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 8, 2019
+.Dd November 9, 2019
.Dt COPY_FILE_RANGE 2
.Os
.Sh NAME
.Nm copy_file_range
.Nd kernel copy of a byte range from one file to another
+or within one file
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
@@ -61,6 +62,14 @@ It may do this using a file system specific technique if
and
.Fa outfd
are on the same file system.
+If
+.Fa infd
+and
+.Fa outfd
+refer to the same file, the byte ranges defined by
+the input file offset, output file offset and
+.Fa len
+cannot overlap.
The
.Fa infd
argument must be opened for reading and the
@@ -162,6 +171,10 @@ and
.Fa outoffp
are reset to the initial values for the system call.
.It Bq Er EINVAL
+.Fa infd
+and
+.Fa outfd
+refer to the same file and the byte ranges overlap or
.Fa
flags
is not zero.