Date: Sun, 10 Nov 2019 01:13:41 +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: r354575 - head/lib/libc/sys Message-ID: <201911100113.xAA1Dfla071013@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmacklem Date: Sun Nov 10 01:13:41 2019 New Revision: 354575 URL: https://svnweb.freebsd.org/changeset/base/354575 Log: Update the copy_file_range man page to reflect the semantic change done by r354574. 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 Sun Nov 10 01:08:14 2019 (r354574) +++ head/lib/libc/sys/copy_file_range.2 Sun Nov 10 01:13:41 2019 (r354575) @@ -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 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911100113.xAA1Dfla071013>