From patchwork Mon Dec 12 10:43:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 61776 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 9ABCC398242E for ; Mon, 12 Dec 2022 10:44:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ABCC398242E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670841864; bh=cuXv0RRVXe0pQjzH2pINmnKmZQ4q+VQrZ5Sk823LHiQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ZqS3BkT2bW0y0KD8gcUWrppm/2h4t/WdFkY4RTG3V3baQr1NRXOWBIje60O2yr/5O L65/5nwycPAsY05bSG5wtaTrv8ydVFlTaSpcUeAudCPv3EQwIuk/BVJ4F/hQqKeiIL SbpTE0BHmDgQ7BGNgXfHcgC4CCHtnkR6ssKkLhls= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 614383832379 for ; Mon, 12 Dec 2022 10:44:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 614383832379 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-352-ILzaHGVhNRqKBhkXRi_wHQ-1; Mon, 12 Dec 2022 05:43:50 -0500 X-MC-Unique: ILzaHGVhNRqKBhkXRi_wHQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 42A1F101A54E for ; Mon, 12 Dec 2022 10:43:50 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E2022166B26 for ; Mon, 12 Dec 2022 10:43:49 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH] : Add deprecation message for sigpause Date: Mon, 12 Dec 2022 11:43:45 +0100 Message-ID: <87r0x4ucke.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Current compilers merely issue an implicit function declaration warning without -D_XOPEN_SOURCE_EXTENDED, which is not very illuminating. Tested on i686-linux-gnu and x86_64-linux-gnu. --- signal/signal.h | 3 +++ 1 file changed, 3 insertions(+) base-commit: 4e21c2075193e406a92c0d1cb091a7c804fda4d9 diff --git a/signal/signal.h b/signal/signal.h index 78d0d819aa..1299d7e0bc 100644 --- a/signal/signal.h +++ b/signal/signal.h @@ -155,6 +155,9 @@ extern int __sigpause (int __sig_or_mask, int __is_sig); /* Remove a signal from the signal mask and suspend the process. */ # define sigpause(sig) __sigpause ((sig), 1) # endif +#elif defined __USE_MISC +extern int sigpause (int __sig) + __attribute_deprecated_msg__ ("Use the sigsuspend function instead"); #endif