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 Netto X-Patchwork-Id: 20307 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 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)