From patchwork Fri May 12 17:58:03 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: 99714 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp431018qge; Fri, 12 May 2017 10:59:02 -0700 (PDT) X-Received: by 10.84.135.129 with SMTP id 1mr7443892plj.57.1494611942674; Fri, 12 May 2017 10:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494611942; cv=none; d=google.com; s=arc-20160816; b=Vjqi3GEttcL7rcF+IgBU0lhsjI63PJZ9iMn/IodQM0eb7TCI2qq+SVBSjCr2JU/PwO pNPmTm7INdp61E7HLnK90M0UHUF77/VBPsThzeb5TO+ZXW9yxKPNNYRw9evw00a0Y4eu P5JF9ZcAdCG1RXLvD76baXxLbQjn8eBx3dCcBy8UpSshpcikUdcDsD/AOsQ2CsHlAPAe JD/49Wd+yR/6yesiUlHmPT0zeKRN0zBO7V9GL9Ryr5KSxWYEU1zd+/JeqGb9wLuHmO7t QY+9fEBG2lqKAJhq5UCOPPbOb+rzW7EA21q6078uovGSLNSsmHY+v/8kfu+SKISJd2y5 nmsw== 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=JavkqBfslo9VAooRLSXeQsPoW8TEvBaOkaUqiCWogc8=; b=Z0VJW0cBJZ0QsYVNL4DLyVE6FZ5pKI37ioCUE6ltF9tgO1dEIpInyzYbu9hmbioJLk /jieLfsjEvyT1FdHPW4nfwxTVQnUMC6hlUob5B6U8k+DwIXxU0GzJfzr2ABlnwAPgI14 D1juuXQo2yZelhJ6Ymyneihw2WNjXrlfdr/7+DxMqsvauGFs6Wm8pYVr/NUr4tJdkod0 SWKtdPZUvE7YyEev1Lqrg/j/NMdeRyf6Cyf+IgIFf1E62zp80E8VWu+IRi6J2Rs1zexN Y73RqRffCoGflNgk0uY4t6FgWWRQneGYQs4xZ+wjerJMSC8EDj0Uu8MLKgJjf2MDYhOM npmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79377-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79377-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 m6si4084637pgn.387.2017.05.12.10.59.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 10:59:02 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-79377-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-79377-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79377-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=AwUn2/FFnJSJT3ksh+CZpOnne/9cWL5 EFtQeFHcp6CB1s1LsbMeLSdW6bEfl6LWfrx80i6cOGuoqUfWFJ3e2O/D1R34eo7+ He6Xhik657HQZkc+W18M8yOw7/LvdI9kFsnlaJPjleVfjTi3ko1NXCpKylRV925X LvDQFnY1FS5I= 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=baBbW7bNHuOcL8qdLSKGHEsGb7Q=; b=slt1B 73p/8IVIGiYMMmBZ2sj/SnAWiowk3oaTldaavv4kbdQ2/JMzIjI2ZL1Bcjdqu8Zn gB5DKJFDdFNmo6QS8uMzi9wMMUnYNuBSDBdvN9wTP2gl/kW9eSVOyxdSzk3tLF26 Apb7d0DrdVsb8ihFatQub24nHxV3k2FU+ypkvM= Received: (qmail 39201 invoked by alias); 12 May 2017 17:58:27 -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 33359 invoked by uid 89); 12 May 2017 17:58:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 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=Strong, sii, EXTRA, ipi X-HELO: mail-qk0-f177.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=JavkqBfslo9VAooRLSXeQsPoW8TEvBaOkaUqiCWogc8=; b=GSWLVJYj8hTqLgnqeNtPQ8BBfMEdSxXZXPl5mWlEjfRARDWJ6m2da1nKl8E6WFhTQN AfNALj+hS1JtLONzBD/GT62c8ktIwsQ8Kd6yEu8MeNlBdWANWl2DdwSYMcRg4LOHyRYD z2fDauCqj+2grKUO2TlZ6+WkMloENUzsMPthg//aHpGXn9l/xEvKV7T6IBZZd+g8RoHm cu7cs5sIT4j+UUaI24/uHwRZkEOsnkmRNoeCs65zY0TllHcQNyJCTCV3FPBUJat9/7bt 7737vdxAdPksKMuiFaiwcHSvpYHrmcl5uXZk46b/nd2cW/vKgbIGMdsDvAMomnFhC30w fcUQ== X-Gm-Message-State: AODbwcBEA6yU2CYrmffPcRd4G/CDnlUSNgc7Md/CsEsewJTNTUe5VWTp pBdg+wLe+SjQCANxzls+RQ== X-Received: by 10.55.157.198 with SMTP id g189mr4453657qke.111.1494611902420; Fri, 12 May 2017 10:58:22 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 02/13] posix: Consolidate Linux waitpid syscall Date: Fri, 12 May 2017 14:58:03 -0300 Message-Id: <1494611894-9282-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1494611894-9282-1-git-send-email-adhemerval.zanella@linaro.org> References: <1494611894-9282-1-git-send-email-adhemerval.zanella@linaro.org> This patch consolidates the waitpid Linux syscall generation on sysdeps/unix/sysv/linux/waitpid.c. It basically removes it from architecture auto-generation list and also remove arch specific implementations. 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/sh/syscalls.list: Remove waitpid from auto-generated list. * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc/syscalls.list: Remove file. * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise. --- ChangeLog | 8 ++++++++ sysdeps/unix/sysv/linux/i386/syscalls.list | 1 - sysdeps/unix/sysv/linux/m68k/syscalls.list | 1 - sysdeps/unix/sysv/linux/powerpc/syscalls.list | 3 --- sysdeps/unix/sysv/linux/sh/syscalls.list | 2 -- sysdeps/unix/sysv/linux/sparc/syscalls.list | 3 --- sysdeps/unix/sysv/linux/tile/waitpid.S | 18 ------------------ 7 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/powerpc/syscalls.list delete mode 100644 sysdeps/unix/sysv/linux/sparc/syscalls.list delete mode 100644 sysdeps/unix/sysv/linux/tile/waitpid.S -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/i386/syscalls.list b/sysdeps/unix/sysv/linux/i386/syscalls.list index 145393f..58020df 100644 --- a/sysdeps/unix/sysv/linux/i386/syscalls.list +++ b/sysdeps/unix/sysv/linux/i386/syscalls.list @@ -18,7 +18,6 @@ setfsuid - setfsuid32 Ei:i setfsuid modify_ldt EXTRA modify_ldt i:ipi __modify_ldt modify_ldt vm86old EXTRA vm86old i:p __vm86old vm86@GLIBC_2.0 vm86 - vm86 i:ip __vm86 vm86@@GLIBC_2.3.4 -waitpid - waitpid Ci:ipi __waitpid waitpid prlimit64 EXTRA prlimit64 i:iipp prlimit64 diff --git a/sysdeps/unix/sysv/linux/m68k/syscalls.list b/sysdeps/unix/sysv/linux/m68k/syscalls.list index 4260f3e..55a377b 100644 --- a/sysdeps/unix/sysv/linux/m68k/syscalls.list +++ b/sysdeps/unix/sysv/linux/m68k/syscalls.list @@ -3,7 +3,6 @@ chown - chown32 i:sii __chown chown lchown - lchown32 i:sii __lchown lchown fchown - fchown32 i:iii __fchown fchown -waitpid - waitpid Ci:ipi __waitpid waitpid getegid - getegid32 Ei: __getegid getegid geteuid - geteuid32 Ei: __geteuid geteuid diff --git a/sysdeps/unix/sysv/linux/powerpc/syscalls.list b/sysdeps/unix/sysv/linux/powerpc/syscalls.list deleted file mode 100644 index 4f821e9..0000000 --- a/sysdeps/unix/sysv/linux/powerpc/syscalls.list +++ /dev/null @@ -1,3 +0,0 @@ -# File name Caller Syscall name # args Strong name Weak names - -waitpid - waitpid Ci:ipi __waitpid waitpid diff --git a/sysdeps/unix/sysv/linux/sh/syscalls.list b/sysdeps/unix/sysv/linux/sh/syscalls.list index 169d40f..32badd1 100644 --- a/sysdeps/unix/sysv/linux/sh/syscalls.list +++ b/sysdeps/unix/sysv/linux/sh/syscalls.list @@ -15,8 +15,6 @@ getgroups - getgroups32 i:ip __getgroups getgroups setfsgid - setfsgid32 Ei:i setfsgid setfsuid - setfsuid32 Ei:i setfsuid -waitpid - waitpid Ci:ipi __waitpid waitpid - prlimit64 EXTRA prlimit64 i:iipp prlimit64 fanotify_mark EXTRA fanotify_mark i:iiiiis __fanotify_mark fanotify_mark@@GLIBC_2.16 diff --git a/sysdeps/unix/sysv/linux/sparc/syscalls.list b/sysdeps/unix/sysv/linux/sparc/syscalls.list deleted file mode 100644 index 4f821e9..0000000 --- a/sysdeps/unix/sysv/linux/sparc/syscalls.list +++ /dev/null @@ -1,3 +0,0 @@ -# File name Caller Syscall name # args Strong name Weak names - -waitpid - waitpid Ci:ipi __waitpid waitpid diff --git a/sysdeps/unix/sysv/linux/tile/waitpid.S b/sysdeps/unix/sysv/linux/tile/waitpid.S deleted file mode 100644 index dee1b0c..0000000 --- a/sysdeps/unix/sysv/linux/tile/waitpid.S +++ /dev/null @@ -1,18 +0,0 @@ -/* -extern pid_t __waitpid_nocancel (pid_t, int *, int) attribute_hidden; -*/ -#if IS_IN (libc) || IS_IN (libpthread) || IS_IN (librt) - -/* Call __NR_wait4, providing fourth argument (struct rusage *) as NULL. */ -#define PSEUDO_EXTRA move r3, zero; -#include - -PSEUDO (__waitpid, wait4, 3) -ret -PSEUDO_END(__waitpid) - -libc_hidden_def (__waitpid) -weak_alias (__waitpid, waitpid) -libc_hidden_weak (waitpid) - -#endif