From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670841840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=cuXv0RRVXe0pQjzH2pINmnKmZQ4q+VQrZ5Sk823LHiQ=; b=hLkRHUPD7sxf9dTcCFa/aui59cd8Za5hL5cjF9DiIP5N8Fe1lMYNYsWqrjiilwD3hSJJR8 dDVjA0Dr7ldTd9OolHwDCr6ODytGTyT8kbbN6L/50ZAWdBhbRRUmIBHkDLJCcR1XfDv5nu HC1aaTsXu89TPsSlJxJi8XSm4n0kkjM= 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) From: Florian Weimer 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 Content-Type: text/plain 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 List-Id: 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(+) 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 base-commit: 4e21c2075193e406a92c0d1cb091a7c804fda4d9