From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B0D111F8C4 for ; Sun, 7 Feb 2021 16:32:22 +0000 (UTC) Received: from localhost ([::1]:58010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8myz-0003mR-KP for normalperson@yhbt.net; Sun, 07 Feb 2021 11:32:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8myj-0003lv-Qh for bug-gnulib@gnu.org; Sun, 07 Feb 2021 11:32:05 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]:28022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8myd-0006DU-5Q for bug-gnulib@gnu.org; Sun, 07 Feb 2021 11:32:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1612715515; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=ggSdwKTIkFhaCA4UspNO42wz9SjAlx+7wl5CpYdgNSU=; b=QI2azG2iFPDmKiXNXlbiGn+0xnc8kn9BtybWd8Krc/0z26Xx1l3Pcce0i4QzM3O8tJ OCoXLXOuBozbqXSHA76+bxO+7RZltUuHebtiUFf1cHMWKCoSR+4DP+NZ8Cei9nm5fVWu t/7fusMxe8iyomao02lxcNaYCkQF7SZ4lZefoEbPxrnjPygYUlAst0X3KKE1gwOhUTg9 C/eY7wL6rp1/POwi13Gu/3pRbKZ+jaeKTS7HNLBfN8XHAlFdu002q7oqrbBYvHjiGtzy BCZW9zF9+1pYlSoUOlN0bPb5fs4FGULTzhjSbUi0CK4+gfhdUKxiZA5/gWtfUzFKDC9e OKjw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6f3zZ9W" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.17.1 DYNA|AUTH) with ESMTPSA id e06c68x17GVs0Du (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 7 Feb 2021 17:31:54 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: pthread_sigmask: Document MidnightBSD bug Date: Sun, 07 Feb 2021 17:31:53 +0100 Message-ID: <6181986.I4YdumQaKb@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.20; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" The result of configure tests on MidnightBSD 1.1 shows that this platform has the same bug as earlier FreeBSD versions. This patch documents it. 2021-02-07 Bruno Haible pthread_sigmask: Document MidnightBSD bug. * doc/posix-functions/pthread_sigmask.texi: Mention MidnightBSD as an affected platform. * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update cross-compilation guess accordingly. diff --git a/doc/posix-functions/pthread_sigmask.texi b/doc/posix-functions/pthread_sigmask.texi index 2814662..aefe0a9 100644 --- a/doc/posix-functions/pthread_sigmask.texi +++ b/doc/posix-functions/pthread_sigmask.texi @@ -18,7 +18,7 @@ FreeBSD 6.4, OpenBSD 3.8. @item This function does nothing and always returns 0 in programs that are not linked with @code{-lpthread} on some platforms: -FreeBSD 6.4, HP-UX 11.31, Solaris 9. +FreeBSD 6.4, MidnightBSD 1.1, HP-UX 11.31, Solaris 9. @item When it fails, this functions returns @minus{}1 instead of the error number on some platforms: diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4 index eb4c784..7c74415 100644 --- a/m4/pthread_sigmask.m4 +++ b/m4/pthread_sigmask.m4 @@ -1,4 +1,4 @@ -# pthread_sigmask.m4 serial 19 +# pthread_sigmask.m4 serial 20 dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -111,9 +111,9 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK], AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles - dnl On FreeBSD 6.4, HP-UX 11.31, Solaris 9, in programs that are not linked - dnl with -lpthread, the pthread_sigmask() function always returns 0 and has - dnl no effect. + dnl On FreeBSD 6.4, MidnightBSD 1.1, HP-UX 11.31, Solaris 9, in programs + dnl that are not linked with -lpthread, the pthread_sigmask() function + dnl always returns 0 and has no effect. if test -z "$LIB_PTHREAD_SIGMASK"; then case " $LIBS " in *' -pthread '*) ;; @@ -138,7 +138,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK], [ changequote(,)dnl case "$host_os" in - freebsd* | hpux* | solaris | solaris2.[2-9]*) + freebsd* | midnightbsd* | hpux* | solaris | solaris2.[2-9]*) gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; *) gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;