From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21387 invoked from network); 28 Jul 2021 17:11:25 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 28 Jul 2021 17:11:25 -0000 Received: (qmail 1226 invoked by uid 550); 28 Jul 2021 17:11:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1208 invoked from network); 28 Jul 2021 17:11:22 -0000 From: "Laurent Bercot" To: musl@lists.openwall.com Date: Wed, 28 Jul 2021 17:11:11 +0000 Message-Id: In-Reply-To: <20210728155340.GQ13220@brightrain.aerifal.cx> References: <20210728155340.GQ13220@brightrain.aerifal.cx> User-Agent: eM_Client/8.2.1473.0 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdeludcutefuodetggdotffvucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfrhgfgggtgfesthhqredttderjeenucfhrhhomhepfdfnrghurhgvnhhtuceuvghrtghothdfuceoshhkrgdqughivghtlhhisggtsehskhgrrhhnvghtrdhorhhgqeenucggtffrrghtthgvrhhnpeeuiefhhfeuveegudejgfegudeufeevudeftdelveeifeffiedtieehteehtdevtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht Subject: Re: [musl] Bug in src/signal/block.c >> succeed since _NSIG will be 128 instead of 129. I happen to be in the process of updating my programming library performing workarounds for badly-specified parts of POSIX and related functions. NSIG is one of those parts. It is not specified by POSIX, but it is useful to have a walkable (as in, not 8*sizeof(sigset_t)) upper bound for the number of signals on a system. But NSIG is badly specified even across the systems where it exists. On glibc, it is 1 + the highest signal number. On FreeBSD and OpenBSD at least, it is the highest signal number. musl appears to align on glibc; I suppose the value for MIPS will be updated to 129, for consistency. Can I assume that if NSIG is defined, it is strictly greater than the highest signal number, except on the BSDs which are an unfortunate exception, as they too often are? -- Laurent