From patchwork Thu Aug 3 13:11:11 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: 109335 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp764277qge; Thu, 3 Aug 2017 06:13:39 -0700 (PDT) X-Received: by 10.98.210.70 with SMTP id c67mr1673537pfg.6.1501766019260; Thu, 03 Aug 2017 06:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501766019; cv=none; d=google.com; s=arc-20160816; b=CwZ00vyzpE+0I+nrINzU5w499Xu/gfkFxxoZLVUPPKRaG8JRRGh3lsXx5HC7mNUMk6 lzseUmBgPHbQxj70B/yshen7EgACf+/RIaSsHLzdCL4GpKm1luau/naGhKA2UDXxvD4F NLsSDvX7360Z9+sG17IfKlf5/pKhkpKRciQPM/ycOHFNkGWShNqr7uGBbN4BeKhGqPMP odEX+zEjaavukuAev3WrT8wPqN5H6gywD/f4E07HwjhqlZiWoDOHqTB3Z/MNOKdJaJM9 ayWnJLKC8SNqrWBQZEBQ1Hvznt730q6fQVLyk3DLq/pfq1XlNxGsZbPslgWuyFioLaiw Mn9A== 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=FxFEtlxwJ1XsuCYAXNYO29BB+o1Pkr7weHa/b/MsjwU=; b=bmX1fmRj1aMYrzr2COxGKXjRASRcmT3+TX8ERxexVbkcCCUj+/0jBw2McmDdzt1HG7 fZqDrMCQFv/x/Rf+2ArVNpnVs8IA/dCbfzPON0msdr2OrwigdJ/LZj43MXcXquRbxK48 NsApw9qKoJ2sUlCtFl2dKvyJNDonPComnGUc3nyfJKYSxHpyhC05jXzpJToIMymvaxdp WgpnNff8vu0qpWgtbYBmZOvGwVpqZkdVrVCxLLwKh+FcHX+3k2PPw9EUoTR68CUzVmaQ ajkSyAN4xreFAFfhbtPv6hvqa/g6CtsRYbf8qI1SSb+IhZx6HlE5Sx2FUac0HhfyO+N7 qlpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.b=yNQ5gOoX; spf=pass (google.com: domain of libc-alpha-return-82689-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-82689-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 r72si16668500pfe.649.2017.08.03.06.13.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2017 06:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-82689-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.b=yNQ5gOoX; spf=pass (google.com: domain of libc-alpha-return-82689-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-82689-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=QIEkw4oNM5aG/TcmWq+MPOj9VvxjyH5 tl4hq4J/Fs6JSd5NizlOGaQjoATL41RuoC23Zfk9Pu/qWN4XJIB5/F6f1uT+zSpf Wu2wII+SRcabdB6VvZjQSePW2HMgijFMkt0uIBzeWeFdiZ9M3ogggvWWDvy7YpRU t15MZoxKIfHs= 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=63QCQyc5c49A/yDPXtqnz25d6d8=; b=yNQ5g OoX+d5OaSd78Jfak2p0IVhEF+SW8Fs0MWhF5GiSn1Rnygh8hsyDbkBC7Z9uNzddL nQQ/W2aEfS8pJmEsWcXlpjdY+izjsZX9avkcgTiaripQN4K25tmZuARIX/lkxMdC w64YyjY+kSpSEsGMVrPQ5seGbpjyKmgIPS4jYs= Received: (qmail 62087 invoked by alias); 3 Aug 2017 13:11:57 -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 62017 invoked by uid 89); 3 Aug 2017 13:11:56 -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=Hx-languages-length:2317 X-HELO: mail-qt0-f173.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=FxFEtlxwJ1XsuCYAXNYO29BB+o1Pkr7weHa/b/MsjwU=; b=p6duu+EP6gkWKnUDFwYXx2RsAHn4p3BIYezn2aPiK7oRMlEipRXgqF5FrGFa+pHGXf lEI2jVxgYTaZzrEjBBOqS7ldZtdhYK8WmaEzewowfO9bRVE715p0Tm/vv1nMbLeW5yWK tMmO17U8KZloSgJRzXQggqkZgkGdu8sxcCqHcMUBocMpo3ky0Qeos2ZVa5XPNFURQ7E8 vQ9PQ2rsraC9T2OWJYmbIkYkXNlbpZ1MRglv0IBEJ4VW1seDwKfERzSwSTVzjqG5U0ze XmSXRkK2jnIrIa7IHM6a1cMQMKf5y2KLpk5gXAR2YMSM/VZ1hycDsKq1mkZQI0pCfQQ3 tcJg== X-Gm-Message-State: AIVw112SXpGJoFZhoKyI6X814IuTVvZrKHC/XVbYiRrWsfN6PYIA0Paz vsvvEy8XuxS8mYT7VWAYIw== X-Received: by 10.237.60.122 with SMTP id u55mr1894325qte.169.1501765912423; Thu, 03 Aug 2017 06:11:52 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 11/14] Remove non cancellable sigsuspend definition Date: Thu, 3 Aug 2017 10:11:11 -0300 Message-Id: <1501765874-6201-12-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1501765874-6201-1-git-send-email-adhemerval.zanella@linaro.org> References: <1501765874-6201-1-git-send-email-adhemerval.zanella@linaro.org> There is no current internal usage fo non cancellable sigsuspend calls. Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu. * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove macro. * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel): Likewise. --- ChangeLog | 5 +++++ sysdeps/generic/not-cancel.h | 2 -- sysdeps/mach/hurd/sigsuspend.c | 1 - sysdeps/unix/sysv/linux/not-cancel.h | 4 ---- 4 files changed, 5 insertions(+), 7 deletions(-) -- 2.7.4 diff --git a/ChangeLog b/ChangeLog index bf9bd57..9ed9789 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2017-08-02 Adhemerval Zanella + * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove + macro. + * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel): + Likewise. + * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace nanosleep_not_cancel with __nanosleep_nocancel. * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro. diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h index e4a8584..70ead55 100644 --- a/sysdeps/generic/not-cancel.h +++ b/sysdeps/generic/not-cancel.h @@ -42,7 +42,5 @@ __pause () #define __nanosleep_nocancel(requested_time, remaining) \ __nanosleep (requested_time, remaining) -#define sigsuspend_not_cancel(set) \ - __sigsuspend (set) #define NO_CANCELLATION 1 diff --git a/sysdeps/mach/hurd/sigsuspend.c b/sysdeps/mach/hurd/sigsuspend.c index 4f5af1d..e60f2eb 100644 --- a/sysdeps/mach/hurd/sigsuspend.c +++ b/sysdeps/mach/hurd/sigsuspend.c @@ -79,5 +79,4 @@ __sigsuspend (const sigset_t *set) return -1; } libc_hidden_def (__sigsuspend) -strong_alias (__sigsuspend, sigsuspend_not_cancel) weak_alias (__sigsuspend, sigsuspend) diff --git a/sysdeps/unix/sysv/linux/not-cancel.h b/sysdeps/unix/sysv/linux/not-cancel.h index 07f07f6..8740d40 100644 --- a/sysdeps/unix/sysv/linux/not-cancel.h +++ b/sysdeps/unix/sysv/linux/not-cancel.h @@ -86,8 +86,4 @@ libc_hidden_proto (__pause_nocancel) __typeof (__nanosleep) __nanosleep_nocancel; hidden_proto (__nanosleep_nocancel) -/* Uncancelable sigsuspend. */ -#define sigsuspend_not_cancel(set) \ - INLINE_SYSCALL (rt_sigsuspend, 2, set, _NSIG / 8) - #endif /* NOT_CANCEL_H */