From owner-svn-src-all@freebsd.org Fri Nov 8 23:49:28 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6636C164BCB; Fri, 8 Nov 2019 23:49:28 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478xnh1xPtz459h; Fri, 8 Nov 2019 23:49:28 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 26F105FA8; Fri, 8 Nov 2019 23:49:28 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xA8NnRld062656; Fri, 8 Nov 2019 23:49:27 GMT (envelope-from rmacklem@FreeBSD.org) Received: (from rmacklem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xA8NnR5k062655; Fri, 8 Nov 2019 23:49:27 GMT (envelope-from rmacklem@FreeBSD.org) Message-Id: <201911082349.xA8NnR5k062655@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rmacklem set sender to rmacklem@FreeBSD.org using -f From: Rick Macklem Date: Fri, 8 Nov 2019 23:49:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354565 - head/lib/libc/sys X-SVN-Group: head X-SVN-Commit-Author: rmacklem X-SVN-Commit-Paths: head/lib/libc/sys X-SVN-Commit-Revision: 354565 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 23:49:28 -0000 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.