From patchwork Mon Nov 6 13:37: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: 118045 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2775805qgn; Mon, 6 Nov 2017 05:38:07 -0800 (PST) X-Google-Smtp-Source: ABhQp+RVh+CyLgYiKhA9N80JmuEPrbZwG0AqVCyVg7PZyHV99icer7YImlnp6h/MVK/6GXyRJDVh X-Received: by 10.98.147.23 with SMTP id b23mr16736504pfe.5.1509975487558; Mon, 06 Nov 2017 05:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509975487; cv=none; d=google.com; s=arc-20160816; b=YaDf5vj75Bu0mxkF8cwztVvA8iO0QceUdQ70hkMW10Io31P7dQrSWi1hEXffcU2c+v rj+2KMiHGEzJvvGXBzcQaD2JJQbdW3V+pHb3LINcIajV7F/kdPdM3D9wkG414M7S9E/J pUGIpHaeK4Wfh6tr/SpQEc9bT3TjYeSeseBN4gGf4cv7pKkf9/ypwnNtzZ75gYxmODXY BF/wtzN66UJfYzUuzpyg11z3520xeKCecQLUlKp7K+oMr17srrajCDE3IGv2ccmLNBCB 7WJfYsja/9iOh4/K9Daq4z431UHcOChF4C5Iq1Qmb+QY4dk3SJ3nilTMg7yi65bkVggh Y9fA== 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=A/pioXaaW1TKWgAMFJOZwG20CPYR+poAnuBnisu24uQ=; b=WLhelx5bdPcKgBvP147u1N7mkPT84CnxQiKd8kjOQGfKC/mgtegzRPx2gHV6GQLFzJ hcdfbJdLJb7YKvilKTZ5HsKCR1vV65pEHZ6tWCIoVOys0FIqW/UtPyBTymOnB5qz9Xlu gpV5W3Sm/nLsHzGfoneCewVUgwYXQ+emXmkiKbT7C3A0lURZ6YswFKyG779N6R0ass8U ostjIjzpaTEGUt84Cu4AVVzwyXq+3OGa7BY0jH3HRDnI8O4FmqjJQxGOZ/EKvaJC6BwR a+Wed/4dSFNFvB55G7nmeEAcz9tM3dktiYxtgjo6MAA6SwEFQg/gV7Xg7GNZmGCCcWvG VTRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Tojt2GS5; spf=pass (google.com: domain of libc-alpha-return-86795-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-86795-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 d63si11116876pgc.561.2017.11.06.05.38.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 05:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-86795-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=Tojt2GS5; spf=pass (google.com: domain of libc-alpha-return-86795-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-86795-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=Br6XhKLrW+RRozk6d2FOvT2SpsMkR7j wXuq2qqUlDrcwvOrkCwjocc66TWuFCZJLpwMoSAvaHOwHQjaFdn60HSnBXX7cGdS VhvIaNSXYlUw0/QloagNpoJuKsp/ksQkdepehaw5iGG6Y1QjzDbuZRjUNH46ZG7S y5SBAJ6H5KBE= 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=5iuv9Hwit8qJMYTTW1uPF1waF/Q=; b=Tojt2 GS5Hfa2l49uq4VQYtlJmaqemlnM4uHKGERGh7Bwi5ZFFryKLqiMc8IyuRIKzzI92 d3VyptrXbB8986QO4Rr0wkXNpb8yqBeXxwj8DmHwpbQBuhXRc/f9X/VGbNIJh+cA EMMm7O/KVtQdBdDNFQi1vtV3QG9hCKSYfeYkVw= Received: (qmail 33973 invoked by alias); 6 Nov 2017 13:37:25 -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 33760 invoked by uid 89); 6 Nov 2017 13:37:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.6 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=inclusion 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=A/pioXaaW1TKWgAMFJOZwG20CPYR+poAnuBnisu24uQ=; b=ojidv+BkSp3xQNhrMVKnO2f1s9Rauv40hbjGfuAIbTLizyuYmJ/uQjIK+Z5R4zCMqG 54S3nSpTAEXTfkkQjIjumEiTzhW+MLxBysvfMoHt6nja54ZYJMUsV+gpf6M7biusJRVU W53qll/MCQWcoXTg3EkAFVlJAMmlrs9PHS0jaRjmCmSStV1LmJFOJYU0MdvEng7E+7UW 7eOR7kvsU4TQfTIdAh6Be2oV97JdBtFX96qwPZeO0BpJIjmQ3qySEQqnj3t9nd51gMF2 eA+yt4o5/NzM8Fl6dB4ZNZ3uNu3hE4stVCGrg7Ullduwx8rPktVa12QDpTx0jMW9m3XW RXkQ== X-Gm-Message-State: AMCzsaU2tRbpyY8LfP/5H7n6mvlPj7iMteZi02lbYkFM4ui+bDwRUP6l cLcOdc8GqwZt3tfYIXdtG1KMO6dH6MY= X-Received: by 10.55.88.132 with SMTP id m126mr20774687qkb.10.1509975441074; Mon, 06 Nov 2017 05:37:21 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 5/8] Cleanup Linux sigqueue implementation Date: Mon, 6 Nov 2017 11:37:03 -0200 Message-Id: <1509975426-1772-5-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1509975426-1772-1-git-send-email-adhemerval.zanella@linaro.org> References: <1509975426-1772-1-git-send-email-adhemerval.zanella@linaro.org> Changes from previous version: - Add a note about __NR_rt_sigqueueinfo Linux minimum version support. --- This patch simplify Linux sigqueue implementation by assuming __NR_rt_sigqueueinfo existence due minimum kernel requirement (tt pre-dates Linux git inclusion for Linux 2.6.12). Checked on x86_64-linux-gnu. * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume __NR_rt_sigqueueinfo. Signed-off-by: Adhemerval Zanella Reviewed-by: Zack Weinberg --- 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