Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2019 23:49:27 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354565 - head/lib/libc/sys
Message-ID:  <201911082349.xA8NnR5k062655@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Fri Nov  8 23:49:27 2019
New Revision: 354565
URL: https://svnweb.freebsd.org/changeset/base/354565

Log:
  Update the copy_file_range.2 man page to reflect the semantic change
  implemented by r354564.
  
  This is a content change.

Modified:
  head/lib/libc/sys/copy_file_range.2

Modified: head/lib/libc/sys/copy_file_range.2
==============================================================================
--- head/lib/libc/sys/copy_file_range.2	Fri Nov  8 23:39:17 2019	(r354564)
+++ head/lib/libc/sys/copy_file_range.2	Fri Nov  8 23:49:27 2019	(r354565)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd July 24, 2019
+.Dd November 8, 2019
 .Dt COPY_FILE_RANGE 2
 .Os
 .Sh NAME
@@ -113,6 +113,14 @@ data ranges found.
 If it succeeds, the call returns the number of bytes copied, which can be fewer
 than
 .Fa len .
+Returning fewer bytes than
+.Fa len
+does not necessarily indicate that EOF was reached.
+However, a return of zero for a non-zero
+.Fa len
+argument indicates that the offset for
+.Fa infd
+is at or beyond EOF.
 .Fn copy_file_range
 should be used in a loop until copying of the desired byte range has been
 completed.
@@ -154,13 +162,6 @@ and
 .Fa outoffp
 are reset to the initial values for the system call.
 .It Bq Er EINVAL
-If the initial offset for
-.Fa infd
-plus
-.Fa len
-exceeds EOF for
-.Fa infd
-or
 .Fa
 flags
 is not zero.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911082349.xA8NnR5k062655>