From patchwork Sun Feb 9 20:19:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37807 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 16367 invoked by alias); 9 Feb 2020 20:19:54 -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 16287 invoked by uid 89); 9 Feb 2020 20:19:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lO9VDRXi1T2JNAVtIVIccf4TU6tLjyHjE9r8FXttMho=; b=Qg2YTb+DkV4GmtIRnGpw95AuOIaUdpgWwFAGNhQO2zZA+Lj8z7mBG69Ih6qa8amD3Zw7VP yfFo26nwt7nwbbnPY4kfthBUUhWN7lrRMcizjTci3HzA4ocry0c+/ghD4I86NzfrNQPzq0 MQiKhLK4kenSiNCGHopqxYkBDuFWx0U= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 03/26] Linux: copy_file_range syscall number is always available In-Reply-To: References: X-From-Line: 49f28ea934a2bb9b46c13da2b1230ea990875943 Mon Sep 17 00:00:00 2001 Message-Id: <49f28ea934a2bb9b46c13da2b1230ea990875943.1581279333.git.fweimer@redhat.com> Date: Sun, 09 Feb 2020 21:19:45 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_copy_file_range is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/copy_file_range.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sysdeps/unix/sysv/linux/copy_file_range.c b/sysdeps/unix/sysv/linux/copy_file_range.c index 65597ca025..a73c89f079 100644 --- a/sysdeps/unix/sysv/linux/copy_file_range.c +++ b/sysdeps/unix/sysv/linux/copy_file_range.c @@ -25,11 +25,6 @@ copy_file_range (int infd, __off64_t *pinoff, int outfd, __off64_t *poutoff, size_t length, unsigned int flags) { -#ifdef __NR_copy_file_range return SYSCALL_CANCEL (copy_file_range, infd, pinoff, outfd, poutoff, length, flags); -#else - __set_errno (ENOSYS); - return -1; -#endif }