From nobody Thu Jun 12 21:31:33 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bJG1f0ZkDz5yS8Z; Thu, 12 Jun 2025 21:31:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bJG1d5NvCz3q5k; Thu, 12 Jun 2025 21:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749763893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sN+8FZDIYRk16TbRtyrPB47UVQWKgqOz/KzSIrrIwKU=; b=lKbMbz12OOE6r8sL0L4YnzSIPMJ22K63YZ6qdRHxZPkNxFB1v/chAfS5Zd0yJrT6vb0Hvb B1AHzTt9Unq8FpLwNaaZa/URV9ByIW5KcU5+q88AJbmfOfJDi9PCllx0GVP+6fNpkOxolF BSVFHkgxov++HowY0qxq5aCFrnA+IY0wno/IFVEL9rcko2ndy5TbayLEXwFurKmSO8t4au tZcnido6+doBYFC0FvW87M8vMMbG3mZFPsX48pjbSjD6MLv4+8xh4Ibcn4ggxTiqXdmoCC J5iOyAbPbexuvsA/Fy6g8BFDQTFE932uy3zIehR7g1xhOwCNDIOZ2DsjyPuXmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749763893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sN+8FZDIYRk16TbRtyrPB47UVQWKgqOz/KzSIrrIwKU=; b=adVzOGtmvWr5gGX7zRY8bFkAVkl61Lz/ABpWfiz4spJ/IUO/WrWz0IU2ZD4vb70cIp0BN8 MwYiB1d8JinUcpBBkIjX78VeqoGbEnjKENUrxTj2hhdP2ZgM+rm6uzd/DvhgYMdN08FJ5H +fZwB+BrTMG6mJvKLmZIDha6Ffl7GrcrdY0ZIm+lMtdBl6Gh4VcTYwhVROWnwq/w+9TsBu pHArKfqLQQly5Ly2UYaG5Pmll36iHZIvjTyVP18zhAi4pcoKPqfoQYqXDhjo29WchyYN5u KqQAlCB9FR1wZkty8D2V5QHnZT61Af6Mp+dEs206guq7lSMzjVBMYUEVFAC4Eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749763893; a=rsa-sha256; cv=none; b=QaBdtPweWpMoRZbFp+I+0ANjCIlr9oAiYQbKlGstnM87tNZgLPLnd60mh2ePH7TD3Vd23Z qRN5Hm9qdXqIICBtSSmC2JRd4jfF8MefNowmnPHwwuV/59bmpoA1NQVWUgCtXHREsb5TSy tiFACb22O7Tbc4kczKs0K7xRbwoPeN6vpEmGE3IB0d+EwHIOQXTL5v9RNT9SP16WJZxtw4 v9weoh3kyEj1s3o+Qoj3g7BpjdtwlQoU42GGPoEi9bL/8bOaBAVLlU5Cd6B0HTp3SJWM4s 7bJfqqZfxHyiaIg9VlawH4GjQa0zPVjyGEYhP+FYg2Q/OHff4k/f34SxyRJwdw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bJG1d50MszTJM; Thu, 12 Jun 2025 21:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55CLVXHC057053; Thu, 12 Jun 2025 21:31:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55CLVXau057050; Thu, 12 Jun 2025 21:31:33 GMT (envelope-from git) Date: Thu, 12 Jun 2025 21:31:33 GMT Message-Id: <202506122131.55CLVXau057050@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 1b6936e12538 - main - manuals: Align our tree with upstream C23 macro List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1b6936e125382523509901a4fc5b2932ed0e742d Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=1b6936e125382523509901a4fc5b2932ed0e742d commit 1b6936e125382523509901a4fc5b2932ed0e742d Author: Alexander Ziaee AuthorDate: 2025-05-05 18:52:06 +0000 Commit: Alexander Ziaee CommitDate: 2025-06-12 21:24:10 +0000 manuals: Align our tree with upstream C23 macro Switch all instances of the -isoC-2024 macro to -isoC-2023 selected by upstream. Keep -isoC-2024 defined, but deprecated, for backwards compat. MFC after: 3 days (I will resolve merge conflicts with cdefs) --- contrib/mandoc/st.c | 2 ++ lib/libc/string/memccpy.3 | 2 +- lib/libc/string/memset.3 | 2 +- share/man/man9/cdefs.9 | 10 +++++----- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/contrib/mandoc/st.c b/contrib/mandoc/st.c index 9b9fee4ded17..8a2c687dfc94 100644 --- a/contrib/mandoc/st.c +++ b/contrib/mandoc/st.c @@ -56,6 +56,8 @@ LINE("-isoC-tcor1", "ISO/IEC 9899/TCOR1:1994 (\\(lqISO\\~C90, Technical Corrigen LINE("-isoC-tcor2", "ISO/IEC 9899/TCOR2:1995 (\\(lqISO\\~C90, Technical Corrigendum 2\\(rq)") LINE("-isoC-99", "ISO/IEC 9899:1999 (\\(lqISO\\~C99\\(rq)") LINE("-isoC-2011", "ISO/IEC 9899:2011 (\\(lqISO\\~C11\\(rq)") +LINE("-isoC-2023", "ISO/IEC 9899:2024 (\\(lqISO\\~C23\\(rq)") +/* the -isoC-2024 macro is deprecated in favor of upstream -isoC-2023 */ LINE("-isoC-2024", "ISO/IEC 9899:2024 (\\(lqISO\\~C23\\(rq)") LINE("-iso9945-1-90", "ISO/IEC 9945-1:1990 (\\(lqPOSIX.1\\(rq)") LINE("-iso9945-1-96", "ISO/IEC 9945-1:1996 (\\(lqPOSIX.1\\(rq)") diff --git a/lib/libc/string/memccpy.3 b/lib/libc/string/memccpy.3 index 2de981449119..0d35a68fce67 100644 --- a/lib/libc/string/memccpy.3 +++ b/lib/libc/string/memccpy.3 @@ -80,7 +80,7 @@ The function conforms to .St -p1003.1-2004 and -.St -isoC-2024 . +.St -isoC-2023 . .Sh HISTORY The .Fn memccpy diff --git a/lib/libc/string/memset.3 b/lib/libc/string/memset.3 index f2dba3ec5a48..f6ab9dacb516 100644 --- a/lib/libc/string/memset.3 +++ b/lib/libc/string/memset.3 @@ -141,4 +141,4 @@ conforms to K.3.7.4.1. .Fn memset_explicit conforms to -.St -isoC-2024 . +.St -isoC-2023 . diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9 index 397ddb0891bb..cc56e34d070a 100644 --- a/share/man/man9/cdefs.9 +++ b/share/man/man9/cdefs.9 @@ -319,7 +319,7 @@ to distinguish it from newer standards. Support for this compilation environment is dependent on compilers supporting this configuration. Most of the old forms of C have been deprecated or removed in -.St -isoC-2024 . +.St -isoC-2023 . Compilers make compiling in this mode increasingly difficult and support for it may ultimately be removed from the tree. .It St -ansiC @@ -349,7 +349,7 @@ since there are no new C17 only symbols or macros. .Pp This version of the standard did not introduce any new features, only made minor, technical corrections. -.It St -isoC-2024 +.It St -isoC-2023 .Dv __STDC_VERSION__ = 202311L Strict environment selected with .Dv _C23_SOURCE @@ -385,7 +385,7 @@ implements this as a NOP because too much software breaks with the correct stric .It Dv _ANSI_SOURCE Ta St -ansiC .It Dv _C99_SOURCE Ta St -isoC-99 .It Dv _C11_SOURCE Ta St -isoC-2011 -.It Dv _C23_SOURCE Ta St -isoC-2024 +.It Dv _C23_SOURCE Ta St -isoC-2023 .It Dv _BSD_SOURCE Ta Everything, including Fx extensions .El .Pp @@ -406,7 +406,7 @@ Likewise, when C23 dialog is selected with or .St -p1003.1-2024 , definitions for -.St -isoC-2024 +.St -isoC-2023 are also included. .Ss Header Visibility Macros These macros are set by @@ -432,7 +432,7 @@ Possible values include 1990, 1999, 2011, 2017 and 2023 for .St -isoC-99 , .St -isoC-2011 , ISO/IEC 9899:2018 ("ISO C17"), and -.St -isoC-2024 , +.St -isoC-2023 , respectively. .It Dv __BSD_VISIBLE Ta 1 if the .Fx