From patchwork Fri Nov 3 21:40:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 117964 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp214115qgn; Fri, 3 Nov 2017 14:41:50 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SexK/AjHZmgy7OIVxNr3+vfYeSzDYog0OAQWfGQwDtFEgtUiZioVRMTKh86pB6O6PdYXPr X-Received: by 10.159.207.134 with SMTP id z6mr7807684plo.272.1509745310665; Fri, 03 Nov 2017 14:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509745310; cv=none; d=google.com; s=arc-20160816; b=C6MRWh0la49D55JHsg8WBOKudsXgnmtnD9elj/xpdGkp9/GftQ8C1DvTF8gvjA/Ctu eU5mHM7dWLLwAHu811C9o+744GaN25dfUZ5mEnn5O8YOvE7mr+/sIXftkRk3BGuWyTbS NyfGWilHN8OAUMNWK8zq7TUUdqWyQKBAY7P55WmSobjRLZlmcFDlvM2ahudLHGvLhq4O kc0LJ6X4DExUNJcDMRDaY9j0TpsZEysXxhjOxNh/ZrlK30lSJhagjN9PJFn+A8agLLWa tkNzXaCmxOg2HbVZJ834PBVS2BY0h7FtDUIs9sb0e6izfAL4WspLqoCPJbdhRVCBBMqC wxKw== 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=E0gfUwZS9kVXODJPJQhdNdPgnLYPc3DrAxH/5h67nU8=; b=ONtKUESBFjHNiWHiyR+b9Si0rmT6XQQO1xM0o+AqpxCsSbk6eajMj3sY73XHjbu7HA uxgAlqK5Lyd856MLA8KKxT7F/4+8KBjxz8rWER4QstOWe0NecAw4BZqx21Ivz+6M7O1N Vn07tfIIgeJrG9Ppt27EUS8x51mIQXmZ0sFtvfgVwCLhSU1yYVkPYHFKzuNUiY0OFqFG k1PUAKahw6bYT/FVEn0STl6m7Tf7pFCjl6CqkbUZKGHZcQ3r9UMYV+ZomXC2z+ebM6m7 a8+r+Z3GOwdSKfNQnWC2Y8D4RWolIB3TnaeNzue8wTmGR9JVCoAg7HKJplC6+lWtuj3t uMXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=PaDa/3Et; spf=pass (google.com: domain of libc-alpha-return-86729-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-86729-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 15si5947968pld.802.2017.11.03.14.41.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 14:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-86729-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 header.s=default header.b=PaDa/3Et; spf=pass (google.com: domain of libc-alpha-return-86729-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-86729-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=jKBkk7DqEfSlpYOXNbsQ+TTM4Wv+YvU OLrguhsXuCTwxDbslNSyvF3HQaGJrPgIGcYX0IiucW92JAjoEJz8/V4/HwV8m2OA DjrN4ROmIx9vWwgeOvoj/ZyxtY7+brBfm07cn7Hwh4naLemjijr6ZZ0AfmuSPKLh 8uZvC5TlhkbI= 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=7n1z4IM9dlX8CC2EjGijLge418k=; b=PaDa/ 3Etz4cD0505cjqEsyk2U3+ewFb/mV3JZyN6fFQpVZ/tpNdR+ZErcWDE5DmNJ5OF3 6jGSXPFCbwQcc9e9jgxS/0fqEprzPfDW9/UgfRBV3QvHKh/poJCHWEfs84iIAN3i 2MDksCQ/3yCK2waNlZnz3nCS1E08v70rF4Z5R4= Received: (qmail 37971 invoked by alias); 3 Nov 2017 21:41:05 -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 37905 invoked by uid 89); 3 Nov 2017 21:41:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=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-qk0-f194.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=E0gfUwZS9kVXODJPJQhdNdPgnLYPc3DrAxH/5h67nU8=; b=t8GwkDyyZse2GspvxJ3L8J6K9cwvmS+R0QbAUYm+CXloptQKvd2tsRXGcoIpebk5zg zW+0Tyze52GJryYM9eSWEfuh0LxtEtPumlW4ZBjPPuzAxvaIvEWB0RSqsNXptEbkbQoo Z+U6942oXALv8PrzKji9DgIaXf8TnD8YpkfN7eg2hoNWL1/pK6Yq2Q3aaXGfnNdzqlgZ rPMuDkzm7cDFLJYdr1U5DxT0oQDHVEty3/+jmgmOe+lK5iE6gdMXMLqYo0rqMPb7L4qn GfhYtylcRxEkSdx1Yqg3jk9HsWdrZ6D9nIfyavEKEmnQAVKeZYXICzBYiy1E4TRoG08j 66TA== X-Gm-Message-State: AJaThX7NxPdLPE6p4Bd5EMXyXAGJXGjWgqvWKbajl7VPXc5J/OF+9s7C Tmg966ssMnP63Iq+SuU8YWnxWBhwAvc= X-Received: by 10.55.168.214 with SMTP id r205mr12210713qke.238.1509745262418; Fri, 03 Nov 2017 14:41:02 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 4/6] Cleanup Linux sigqueue implementation Date: Fri, 3 Nov 2017 19:40:47 -0200 Message-Id: <1509745249-11404-4-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1509745249-11404-1-git-send-email-adhemerval.zanella@linaro.org> References: <1509745249-11404-1-git-send-email-adhemerval.zanella@linaro.org> This patch simplify Linux sigqueue implementation by assuming __NR_rt_sigqueueinfo existence due minimum kernel requirement. Checked on x86_64-linux-gnu. * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume __NR_rt_sigqueueinfo. Signed-off-by: Adhemerval Zanella --- ChangeLog | 3 +++ sysdeps/unix/sysv/linux/sigqueue.c | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/sigqueue.c b/sysdeps/unix/sysv/linux/sigqueue.c index 059e524..67bb6b2 100644 --- a/sysdeps/unix/sysv/linux/sigqueue.c +++ b/sysdeps/unix/sysv/linux/sigqueue.c @@ -17,13 +17,10 @@ #include #include -#include #include - +#include #include -#include -#ifdef __NR_rt_sigqueueinfo /* Return any pending signal or wait for one for the given time. */ int __sigqueue (pid_t pid, int sig, const union sigval val) @@ -40,9 +37,6 @@ __sigqueue (pid_t pid, int sig, const union sigval val) info.si_uid = __getuid (); info.si_value = val; - return INLINE_SYSCALL (rt_sigqueueinfo, 3, pid, sig, &info); + return INLINE_SYSCALL_CALL (rt_sigqueueinfo, pid, sig, &info); } weak_alias (__sigqueue, sigqueue) -#else -# include -#endif