From patchwork Thu Feb 18 21:23:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1441900 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vwiJlOl5; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DhSRX3ln1z9sSC for ; Fri, 19 Feb 2021 08:25:28 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 531353953421; Thu, 18 Feb 2021 21:25:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 531353953421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1613683506; bh=zHlbUyw1Y9Rv/V24gqLlUxIa7TGXvo+OPF00LD1mCSk=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=vwiJlOl5Bz75ooj7FP+izwwFFTW3N7jMbUsSdwizi4oUZOT7ha+fpySPJfq5VzFWu z6VmlFEW819yY3tLBZIGykSEdYipvNFX3dXZb1xsVgkYHi7DgPHoJU9G4xujORqC/Y z6eWVZN54hY28cBsE8x0mz9agFmVWYDcYGpxY9k0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 29C4D395042C for ; Thu, 18 Feb 2021 21:25:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 29C4D395042C Received: by mail-wr1-x42f.google.com with SMTP id r21so4499597wrr.9 for ; Thu, 18 Feb 2021 13:25:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zHlbUyw1Y9Rv/V24gqLlUxIa7TGXvo+OPF00LD1mCSk=; b=TS2TP6tgFcLLR3cZ6lYfAOedtEU8NYXq0yxDGqVqxEsSiS+VQUS7UuOo6bv7T/NP4h prMWJZ+guoDS9ETrLe+m282zNkCPD1ymmaU59PjOO+iNXrM05VCl+wNnmrYxR9Iqknvq BPGlGDyjv7Qaml8cfaZNtW8+Opaswu/bAOy/L40EYk+6zcq2zjDJGQxPr2Rwd0eoPIK8 ZjG0gj9h9f776L/HGCLlMYjsQvL4j6bNuDxyoLulOvSCqlctyRNFrDND1rMFLTCnbsfv XlKLDHxodgpD5zkNz2Um1Gh9lY/h2DiYXfy5k2XZ0Wsfn8PE3ojW1Qa6ie989SO5/nJI YjmA== X-Gm-Message-State: AOAM531WMMN8nfSa1GqxQR8Za8Gfx0s2Az+qdNtYHde2gimHya1IUbpL 4LvrEiGp4bCZ1ix2NPjbXb8= X-Google-Smtp-Source: ABdhPJwMhF/qf+z5n6tprOE3eEg9W09/+Dr9WA5Zjy0WMjFTosPB0fiKwlSsxQXSJFo3K4wmtosZAw== X-Received: by 2002:adf:f2c1:: with SMTP id d1mr6166298wrp.345.1613683501318; Thu, 18 Feb 2021 13:25:01 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id s11sm7870940wme.22.2021.02.18.13.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 13:25:01 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 6/6] setjmp.3: SYNOPSIS: Use 'noreturn' in prototypes Date: Thu, 18 Feb 2021 22:23:59 +0100 Message-Id: <20210218212358.246072-7-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210218212358.246072-1-alx.manpages@gmail.com> References: <20210218212358.246072-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" POSIX specifies that [sig]longjmp() shall not return, transferring control back to the caller of [sig]setjmp(). Glibc uses __attribute__((__noreturn__)) for [sig]longjmp(). Let's use standard C11 'noreturn' in the manual page. Signed-off-by: Alejandro Colomar --- man3/setjmp.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/setjmp.3 b/man3/setjmp.3 index 7c52f4bea..d9b011b46 100644 --- a/man3/setjmp.3 +++ b/man3/setjmp.3 @@ -31,8 +31,8 @@ setjmp, sigsetjmp, longjmp, siglongjmp \- performing a nonlocal goto .BI "int setjmp(jmp_buf " env ); .BI "int sigsetjmp(sigjmp_buf " env ", int " savesigs ); .PP -.BI "void longjmp(jmp_buf " env ", int " val ); -.BI "void siglongjmp(sigjmp_buf " env ", int " val ); +.BI "noreturn void longjmp(jmp_buf " env ", int " val ); +.BI "noreturn void siglongjmp(sigjmp_buf " env ", int " val ); .fi .PP .RS -4