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