From patchwork Thu May 7 14:23:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 38928 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A1845395B464; Thu, 7 May 2020 14:23:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1845395B464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1588861412; bh=EzIgIEU1yl5ocdw4SJGt8d/VkDBcvEKILiBe/knnXh0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gknZ6m78MTXSs9nT4f9Zy1pdkD8QUjJRf+ap5YFEpvydAAWOT1qe6oBTb0JbmB1Mf hq66FtaQmyOotwHPDkpeqzPTgHJ6+XDCVdkkk3e5ASJPcbMNuL4SjtUIQvqFbdm8cG Cl8y++zyql5uKGWlJ/J5BJQLCB9LYciGRWntwU78= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id 42D0B386F44C for ; Thu, 7 May 2020 14:23:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 42D0B386F44C Received: by mail-qk1-x729.google.com with SMTP id i14so75081qka.10 for ; Thu, 07 May 2020 07:23:30 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=EzIgIEU1yl5ocdw4SJGt8d/VkDBcvEKILiBe/knnXh0=; b=qlGEjh59AFd+ZazltNguHCdvi1WgqXnJ1CltesN2cK6jIhyc4B1OkaoIjioWWMufj2 i1isJKKvcPfQH2vKAhuMKEIF/8I436rk0lb8y+5/XCYcpFTQLU8zSWdzq4KWR7qHHVQv L1SezGUDHtyf5yrnviJbPew007f5oJHcCatp3/Be+yd0JB15hMDvibGMtmKGA55+EoyI tvgYYvufSOY6cwhgVOO7YCP9CQO0FXR0GFFfZTzq9aeovjl311mvJg43IVo6waGoUew2 A5ZPFky1GUdx5NGFNfpjl6ffDV7XE33eOia6VEf5CHeUbPdLt8/0ny1a3fBr9Y4jkPh7 MsBw== X-Gm-Message-State: AGi0PubSb8HbZ3ZYCIUG5bibvg2HgspV7yx7LJpQpkPiHJglDa0Ijy5V ebpq0RVhTsGW0U45lQcYboGOalRzPbQ= X-Google-Smtp-Source: APiQypIwBP2pZJ2I+3F/osJCfnIpFio3i5JIhBk9ijE1fqSDV07DlwpJ7FmLK55gmhZdGKZLRWZOkA== X-Received: by 2002:a37:65c3:: with SMTP id z186mr14008012qkb.484.1588861409507; Thu, 07 May 2020 07:23:29 -0700 (PDT) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id u35sm4190199qtd.88.2020.05.07.07.23.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 07:23:29 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 4/5] mips: Fix SIGRTMAX definition Date: Thu, 7 May 2020 11:23:18 -0300 Message-Id: <20200507142319.1978172-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200507142319.1978172-1-adhemerval.zanella@linaro.org> References: <20200507142319.1978172-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-17.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" MIPS support up to 96 real time signal, instead of current 95. Checked with a mips*-linux-gnu build. Tested-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/alpha/bits/signum-arch.h | 1 + sysdeps/unix/sysv/linux/bits/signum-arch.h | 1 + sysdeps/unix/sysv/linux/hppa/bits/signum-arch.h | 1 + sysdeps/unix/sysv/linux/mips/bits/signum-arch.h | 5 ++++- sysdeps/unix/sysv/linux/siglist-compat.c | 2 +- sysdeps/unix/sysv/linux/sparc/bits/signum-arch.h | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/alpha/bits/signum-arch.h b/sysdeps/unix/sysv/linux/alpha/bits/signum-arch.h index e3aef44e78..bde71f481c 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/signum-arch.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/signum-arch.h @@ -63,5 +63,6 @@ #define __SIGRTMIN 32 #define __SIGRTMAX 64 +#define __OLD_NSIG NSIG #endif /* included. */ diff --git a/sysdeps/unix/sysv/linux/bits/signum-arch.h b/sysdeps/unix/sysv/linux/bits/signum-arch.h index e21dc332ca..83047bffc6 100644 --- a/sysdeps/unix/sysv/linux/bits/signum-arch.h +++ b/sysdeps/unix/sysv/linux/bits/signum-arch.h @@ -60,5 +60,6 @@ #define __SIGRTMIN 32 #define __SIGRTMAX 64 +#define __OLD_NSIG NSIG #endif /* included. */ diff --git a/sysdeps/unix/sysv/linux/hppa/bits/signum-arch.h b/sysdeps/unix/sysv/linux/hppa/bits/signum-arch.h index 364e57ec4a..88f14e675a 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/signum-arch.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/signum-arch.h @@ -65,5 +65,6 @@ #define __SIGRTMIN 32 #define __SIGRTMAX 64 +#define __OLD_NSIG NSIG #endif /* included. */ diff --git a/sysdeps/unix/sysv/linux/mips/bits/signum-arch.h b/sysdeps/unix/sysv/linux/mips/bits/signum-arch.h index c500d38322..5eeed367e8 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/signum-arch.h +++ b/sysdeps/unix/sysv/linux/mips/bits/signum-arch.h @@ -60,6 +60,9 @@ /* By default no real-time signals are supported. */ #define __SIGRTMIN 32 -#define __SIGRTMAX 127 +#define __SIGRTMAX 128 + +/* MIPS used to define __SIGRTMAX as 127 and exported NSIG as 128. */ +#define __OLD_NSIG 128 #endif /* included. */ diff --git a/sysdeps/unix/sysv/linux/siglist-compat.c b/sysdeps/unix/sysv/linux/siglist-compat.c index c322326a99..bc5c584ef3 100644 --- a/sysdeps/unix/sysv/linux/siglist-compat.c +++ b/sysdeps/unix/sysv/linux/siglist-compat.c @@ -27,5 +27,5 @@ DEFINE_COMPAT_SIGLIST (64, GLIBC_2_1) #endif #if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_32) -DEFINE_COMPAT_SIGLIST (NSIG, GLIBC_2_3_3) +DEFINE_COMPAT_SIGLIST (__OLD_NSIG, GLIBC_2_3_3) #endif diff --git a/sysdeps/unix/sysv/linux/sparc/bits/signum-arch.h b/sysdeps/unix/sysv/linux/sparc/bits/signum-arch.h index a19b5100cb..2f4f26d617 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/signum-arch.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/signum-arch.h @@ -62,5 +62,6 @@ #define __SIGRTMIN 32 #define __SIGRTMAX 64 +#define __OLD_NSIG NSIG #endif /* included. */