From patchwork Mon May 8 15:26:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 98831 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1383318qge; Mon, 8 May 2017 08:28:23 -0700 (PDT) X-Received: by 10.99.124.13 with SMTP id x13mr18889838pgc.81.1494257303428; Mon, 08 May 2017 08:28:23 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id a1si10271962pgf.55.2017.05.08.08.28.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 08:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-79120-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79120-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79120-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=mYyNifrXqjBM7u4Ag6T77+UHIUk/hR3 03GPiMumaWnNMcfuKrcYak+esBW2L7HbKklskbIDdfhAGPSMiU/tD/nOwzAO5DVH ok97klJbAJHBvm3FiCyDMBBZoo6mtRsTIzIImDjNjyr6Ys5/oUFlq2ORFru5i8VB DoInMyOILNSY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=Ni3/Tw54AKAqUM92t6tyxEc8v0Y=; b=IPPCY hoKCxsJjwFLEtvuDpfTN+vM3aOSAzUYy2Zn9CB6lCLoHo/TgDj2ZHgkxkCCWUoEE PHB1jw0dyKe3WR9u1pBVjvnUrruxTrphjtyhWfvkjgJ7Cc9IAkYSB7MMfoZWVaXJ Peh+nBplqvsRGKI/alF5+ODjR+CrJ7ABMVgXBA= Received: (qmail 55738 invoked by alias); 8 May 2017 15:27:08 -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 55490 invoked by uid 89); 8 May 2017 15:27:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1721 X-HELO: mail-qt0-f174.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=GUdAIGliDUtS4eNl/cTFDdP0aPLL2al+dFB8AAHk+AY=; b=fPoKatTozanhxNDvr7uZh9Ylfb79xYNFversPVIsIKbOnJ41JTexwz+Bn3cEFz13mf gUBmkThLlDhiXkAK/+ZGGc4o1CYZufUY68aREW8z8v8FDqdFDmPuR+++Z9qWBQtLUQSY 3qqiO2CLmSFwtNy0eJZ0uCTx4SqGc7EtjzNSPhJU+buYs1Gn2JGD8qFFFUKoTOkYL0io Sc6PS2uw/wsK8htGD+KUyvy8F7w//NDeaAx0sKqhW3KB2qDoilLIi7NKI6TdJryXkGFx ojHdz0e7tyR+TeVGzmSpmqukuYtcI8n7zRWPT1LuNyv9YIIjMT0tV2B40O4kHMqqpcSU QZ5g== X-Gm-Message-State: AODbwcCE2jNXW83prOOgyjkArK2omIzWzieK5CADjYC8aPdd8z0LjEBj wTJuoR1eYBw1CjA2W7Drgg== X-Received: by 10.237.37.81 with SMTP id w17mr20605587qtc.8.1494257226342; Mon, 08 May 2017 08:27:06 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 6/8] Consolidate Linux readv implementation Date: Mon, 8 May 2017 12:26:50 -0300 Message-Id: <1494257212-524-6-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1494257212-524-1-git-send-email-adhemerval.zanella@linaro.org> References: <1494257212-524-1-git-send-email-adhemerval.zanella@linaro.org> This patch consolidates the readv Linux syscall implementation on sysdeps/unix/sysv/linux/readv.c. Checked on i686-linux-gnu, x86_64-linux-gnu, x86_64-linux-gnux32, arch64-linux-gnu, arm-linux-gnueabihf, and powerpc64le-linux-gnu. * sysdeps/unix/sysv/linux/readv.c: New file. --- ChangeLog | 2 ++ sysdeps/unix/sysv/linux/readv.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/readv.c -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/readv.c b/sysdeps/unix/sysv/linux/readv.c new file mode 100644 index 0000000..142a0a9 --- /dev/null +++ b/sysdeps/unix/sysv/linux/readv.c @@ -0,0 +1,27 @@ +/* Linux implementation for readv syscall. + Copyright (C) 2017 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +ssize_t +__readv (int fd, const struct iovec *iov, int iovcnt) +{ + return SYSCALL_CANCEL (readv, fd, iov, iovcnt); +} +weak_alias (__readv, readv)