From patchwork Tue Jul 2 19:17:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 33518 Received: (qmail 130561 invoked by alias); 2 Jul 2019 19:18:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 130095 invoked by uid 89); 2 Jul 2019 19:18:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com Date: Tue, 02 Jul 2019 15:17:59 -0400 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: [patch] NEWS: clarify copy_file_range Florian asked me for feedback wrt this discussion: https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00109.html I propose a slight re-wording of NEWS to clarify what applications must do wrt the copy_file_range change: diff --git a/NEWS b/NEWS index 6c7de105ac..11099f7248 100644 --- a/NEWS +++ b/NEWS @@ -46,9 +46,11 @@ Deprecated and removed features, and other changes affecting compatibility: support the system call of the same name. Previously, user space emulation was performed, but its behavior did not match the kernel behavior, which was deemed too confusing. Applications which use the - copy_file_range function will have to be run on kernels which implement - the copy_file_range system call. Support for most architectures was added - in version 4.5 of the mainline Linux kernel. + copy_file_range function can no longer rely on glibc to provide a fallback + on kernels that do not support the copy_file_range system call, and if + this function returns ENOSYS, they will need to use their own fallback. + Support for copy_file_range for most architectures was added in version + 4.5 of the mainline Linux kernel. * The functions clock_gettime, clock_getres, clock_settime, clock_getcpuclockid, clock_nanosleep were removed from the librt library