From patchwork Thu Sep 5 18:33:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1981377 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=WlcTN3/2; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X07KZ3f9rz1yg3 for ; Fri, 6 Sep 2024 04:33:38 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5E3A384A84A for ; Thu, 5 Sep 2024 18:33:36 +0000 (GMT) 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.129.124]) by sourceware.org (Postfix) with ESMTP id 22D61384AB7C for ; Thu, 5 Sep 2024 18:33:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22D61384AB7C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 22D61384AB7C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725561198; cv=none; b=rtVtjmwWSR7Ab+Un3bG3N0rG4nQu7/edNYpWvk8HSgPwO2ApWgDy5IggG2HSpLXgO+N+kPICvSGAmUUJXqhHs0gMSejOkRevFyEukP+p/Yr4UpM/c3vWoNiIDiOZnLu3arHQX5WATsVqBwYEoLdRj8XMmEeJ9lb6EBpw2YjbfLs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725561198; c=relaxed/simple; bh=oUxyg+tTeQT8T+iQfeAxAtIW02J4zvxlAA7QHIVFAgs=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=ViZbYnvhC4z02NUfa3UGNmqmLgRFbCMG/R1x7nxb85/1Pj8n2CSxMG7b/v4gpotI0o4yF/zx4VT6YUPvawPZpXuQ7ZdywGDHGcnRNeDmneBOc40ENutqPhNbjKnSaw21UukE3t75rFwZxBpNquwiGrP0mCbYtlyiUmhQCdemzCg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725561194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ua56W6Z+b2zyrVoOe2nFzV/uas0hoM+/c7tHSVKtgj4=; b=WlcTN3/2lA7C4z0GLuh5eOkJQEF1m+Q1/r4k8sqdbI9r4P6CEnDMNc0ghmdDyAyePniuAZ J0bQ+Jd6LGAt/kpVGMWhCxejQ14Zeah+zAi4jBubYe1owTjPZevMVW442vaPXi7PEysmgR 3JSUaJepX+SQzccm9EYbjoyw0wTMOQI= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-113-f_VT46gROjKtlL836kHNWw-1; Thu, 05 Sep 2024 14:33:13 -0400 X-MC-Unique: f_VT46gROjKtlL836kHNWw-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E01DC19560B0 for ; Thu, 5 Sep 2024 18:33:12 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.26]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E7CC01956056 for ; Thu, 5 Sep 2024 18:33:11 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 1/3] manual: Extract the @manpageurl{func,sec} macro In-Reply-To: Message-ID: <01bc271cfd0622152caf38c805798c0d72f61809.1725561027.git.fweimer@redhat.com> References: X-From-Line: 01bc271cfd0622152caf38c805798c0d72f61809 Mon Sep 17 00:00:00 2001 Date: Thu, 05 Sep 2024 20:33:08 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org From the existing @manpagefunctionstub{func,sec} macro, so that URLs can be included in the manual without the stub text. Reviewed-by: Carlos O'Donell --- manual/macros.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manual/macros.texi b/manual/macros.texi index 579da3fb81..f48dd4ec22 100644 --- a/manual/macros.texi +++ b/manual/macros.texi @@ -282,10 +282,13 @@ cwd\comments\ @macro standardsx {element, standard, header} @end macro +@macro manpageurl {func, sec} +@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html} +@end macro + @macro manpagefunctionstub {func,sec} This documentation is a stub. For additional information on this -function, consult the manual page -@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}. +function, consult the manual page @manpageurl{\func\,\sec\}. @xref{Linux Kernel}. @end macro