From patchwork Mon May 8 15:26:51 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: 98832 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1383394qge; Mon, 8 May 2017 08:28:33 -0700 (PDT) X-Received: by 10.99.4.3 with SMTP id 3mr19302478pge.86.1494257313644; Mon, 08 May 2017 08:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494257313; cv=none; d=google.com; s=arc-20160816; b=rxypz703hp1Rg/HReX0upV9grnFwKe3JQaO1GyAbFaCN+sERJXWSnlwiueL4AEDwZo noHm6JuvuYnhwB9TSIKLG/aVLjA2DWFz3cspSF4pW6LthAHp5f7sQWRVsYjOzpxJuhMl J6twor3ZzmGxaLoj8tr6yxvVbzbbtPTBG4MCgjHtlhmW7GeZKIFE5zaB4CJk3cuVgAFL IVusuqBfLce5Y1XKczrTsIoyjt1vQLLOt8KrWtHHxyK7Ycu+qxxPrPiVdsnyERcsfBUV 7+ypEy72729xNCkczaDOsT/jTjt3Nvy8mxzvdM59F+1GaQkDkkyWiemjSepcOwO9kpnu zFhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=4p+EK8b5YcuaGlj+SGXuaEUDI4AW5O033Zidgs3a5H0=; b=zs4+9x/ugCV3OeHBs0J0+zeE+6EulFWt2ZwZ2Y092Hy3t6I3Ss1zzXGG32dGloIg5J VoI1gsBX4/AEdlutgs1F8oGHNtzdazwgg1G+3NwOmeW7o0eqCPPPdCleY5NkchBNNxGr cKRSzT9DRemLx0+qqyEFkCNyP6OlkRDoEnC3Vv4Dw9HKINUIqKrwrth84bqJxGibc81g VzU3b2NjRyY0ZnQw2fb04ibK06sDWd41BYhsQs2c8F9H91h9gV6d/AkujvWokN+CFH5i CWCM67BCZO0l4cHS8qf6ijfZvUqLZDh9lNJOkmnxwNNsiV38kE7fh7Y8UkmyCFGV6z7u axUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79121-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79121-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z14si10208954pgo.252.2017.05.08.08.28.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 08:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-79121-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-79121-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79121-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=Sp+t+wafxOsfHbbdMii/jfcyVD65IbV y3xLHCYewn5GgvU/L5JX8JNNAkoe2PkZ+BLsAyn5PcjViKFEHAkOOahQ4RKgGX/H BUTaozQVHHOjwYAaMSe6quOsj3kAr+66bb1v+3mTi5CZ30FI7bUsMfZszog5aCBP 0/MJA9vDhy2s= 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=KztV8sYVXWceSGVrTlno6hEo5G0=; b=jrxTr oIbulYmTKu3G8JSy4w073VYPMSTR+o1Uo1su8Ao482mLobmjZsyDwEebyMLam6wV jXSVXe/0u+X4OTDxay6WJAjEX3BsABTU45nfL79V+OuK1eHD9Sm7o+BWDbJVelGB xaxBCTkM85svufrQrT4TyVx47PZJRqGxFrv5XY= Received: (qmail 56616 invoked by alias); 8 May 2017 15:27:10 -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 56184 invoked by uid 89); 8 May 2017 15:27:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f172.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=4p+EK8b5YcuaGlj+SGXuaEUDI4AW5O033Zidgs3a5H0=; b=ZcK564KzKaz45W8rvLFNLiltjAkiE7cNNLE9DVbI/Rv/oe5V83LT5lPfsguBHWlGoJ lkJU7wp4B54aI9K9sqyD9ttm7XrXLy0cp04bxdxfxQ5bYAzmaIOAU/jNwjcCzljAab1L DoXB2mVIW3hgc4wLMBbwL8SvVJku25OSCKhYkeH1LDfdqEVms7FUl7FNgz751QPINpoj +iOYpZ9GV6cwe+bzYcC2QNbyzJvwUrj8VBijv10i/3PG3MeNDwmsSEq6Zdj/yRQZ5CX+ UyDwuZPx6NwguS+NrnCzKfNiaYqRlrxc8ng2OPLFrn/m3MQpPwtHD3qEHum/Dub+PiBI CNZA== X-Gm-Message-State: AN3rC/5fzkxbzIiJvZg7+D+gFQGE7cXXTpmdjn4Vgtu8mIJQW9YCeYBh C9OL0IHSitWUonhlpe9TyQ== X-Received: by 10.200.55.145 with SMTP id d17mr27757664qtc.57.1494257227785; Mon, 08 May 2017 08:27:07 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 7/8] Consolidate Linux writev implementation Date: Mon, 8 May 2017 12:26:51 -0300 Message-Id: <1494257212-524-7-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 writev Linux syscall implementation on sysdeps/unix/sysv/linux/writev.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/writev.c: New file. --- ChangeLog | 2 ++ sysdeps/unix/sysv/linux/writev.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/writev.c -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/writev.c b/sysdeps/unix/sysv/linux/writev.c new file mode 100644 index 0000000..1b56cbb --- /dev/null +++ b/sysdeps/unix/sysv/linux/writev.c @@ -0,0 +1,27 @@ +/* Linux writev syscall implementation. + 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 +__writev (int fd, const struct iovec *iov, int iovcnt) +{ + return SYSCALL_CANCEL (writev, fd, iov, iovcnt); +} +weak_alias (__writev, writev)