From patchwork Sun Feb 9 20:20:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37813 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 20454 invoked by alias); 9 Feb 2020 20:20: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 20378 invoked by uid 89); 9 Feb 2020 20:20:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=dangerous X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2L+xo1udfbuKyTCDaf4FA9oGiu9CekycK6EpFvMOFQQ=; b=CXmj8vviAF6+HT0ykhThXOnIqEAYTIItlyFHEDV042f0ymo2nTHRkkJ57s6Cl6s+ZmVVqI +WvbiHuyOTRlj97uJhQHY5RYrOPMQAMrNmfD06wnNQ1KEf/WVTl56jKuasZM4+TNEqxTHW 1jy2PoitPM78Z27Gc9Kgfzs0KXR/IYI= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 09/26] Linux: sigaltstack syscall number is always available In-Reply-To: References: X-From-Line: a19e646fd70d38f688a41daf15650f56d66cd7d9 Mon Sep 17 00:00:00 2001 Message-Id: Date: Sun, 09 Feb 2020 21:20:14 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_sigaltstack is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/sigstack.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c index 2f75e2643a..32a378bd26 100644 --- a/sysdeps/unix/sysv/linux/sigstack.c +++ b/sysdeps/unix/sysv/linux/sigstack.c @@ -22,7 +22,6 @@ #include -#ifdef __NR_sigaltstack int sigstack (struct sigstack *ss, struct sigstack *oss) { @@ -61,6 +60,3 @@ sigstack (struct sigstack *ss, struct sigstack *oss) } link_warning (sigstack, "the `sigstack' function is dangerous. `sigaltstack' should be used instead.") -#else -# include -#endif