From nobody Mon Jun 22 12:13:49 2026 X-Original-To: dev-commits-src-all@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 4gkRvQ5D9jz6jnCB for ; Mon, 22 Jun 2026 12:14:10 +0000 (UTC) (envelope-from kfv@kfv.io) Received: from outbound.ms.icloud.com (ms-2004h-snip4-11.eps.apple.com [57.103.74.151]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4gkRvQ0bkwz3cfs for ; Mon, 22 Jun 2026 12:14:10 +0000 (UTC) (envelope-from kfv@kfv.io) Authentication-Results: mx1.freebsd.org; none Received: from outbound.ms.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-3a-60-percent-5 (Postfix) with ESMTPS id 1767A18000B7; Mon, 22 Jun 2026 12:14:06 +0000 (UTC) X-ICL-Out-Info: HUtFAUMHWwJACUgATUQeDx5WFlZNRAJCTQFNHVQHRQBADlYBWQ9LVxQEE1UbdwBUBhcRXE1RDw8bXw4dBFhLQBMEQRMFUgddTVYNRw9YHlwUFxVAQ14IXh9MHB0OWAYSAE0KDjYGWQVeCVYDQwU2EhRdRVgLQUVbHxkVWgkKVwtEfEx3KQVcHzQMOgRAA1wGSRRAclQERgE2ez1wL3FfBjN9TXMGUR0cGVZGExlOG1dNWg1AGVgGbRRWFVIEWQ== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kfv.io; s=sig1; t=1782130449; x=1784722449; bh=yp7WtSobFMPkPOWgJDsNSGJHDpU7HgeGQhbNc9rGcQw=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To:x-icloud-hme; b=fpi59Yrxa9HDGJ/pw9pI56DKC6LG9F7I24P0RPQ+9zTMpWWwFFRXkJUwtro9cLrUPzV9g04XNwLPsjEM4y4GK+4ZrS2jNVeMvh2OnevL7d3iVqTZdI+adnLiVevP6BEcUArjOhANIU2qH6ll0uVrRO91TCWwfRZndD03oXuW0hlEvY0pIVN1G3QjRDxQ9yb4ECAKEm+CR6ucA7r5+j3ppOWRbnstn9Y0TGO7WAgXIIIkXcr97gDUhTH1STjMiWxiSAUsXrdLtvHAEX4qOkwyMp3rXEQJJN0SjBMbl4b0tJgJAboseXSITI1jDMHgPq05XgLITJrmxYUEiZD+KsCeSg== mail-alias-created-date: 1649693719123 Received: from smtpclient.apple (unknown [17.57.154.37]) by p00-icloudmta-asmtp-us-west-3a-60-percent-5 (Postfix) with ESMTPSA id BE352180009B; Mon, 22 Jun 2026 12:14:03 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_C7A657A2-1B0E-4CC8-927A-00AE651DCCC9"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance From: Faraz Vahedi In-Reply-To: Date: Mon, 22 Jun 2026 15:43:49 +0330 Cc: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= , Warner Losh , Mark Millard , Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Nuno Teixeira Message-Id: <94E4DD27-D5B7-4749-8A93-3FBECBF44CD5@kfv.io> References: <6a35ddd3.22963.721d614@gitrepo.freebsd.org> <4e902fcf-e79c-47b5-a51f-4881c09f7528@yahoo.com> <94E5F613-3930-464B-AC10-4943230C2025@kfv.io> <86bjd3rmpr.fsf@ltc.des.dev> <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io> <864iiusvc9.fsf@ltc.des.dev> To: Robert Clausecker X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Proofpoint-ORIG-GUID: ZH49XJ_LvBlg8_4KaCugVevfUdYYO5VM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjIyMDEyMSBTYWx0ZWRfX7tCjIsJXbABw SBKp+0QwTiWMzDZYAuhRUQAE9g1Gzt8Q3eCuqKD73P+hPk/oXfUj2Z3fXIobaAnJTtkmD7NMrVY OTP8QnaTmZcnyzNNSyNi2hCY6SEVJs12lqANeF7UHXKFmF6X8KHnObOyyJrn9rpofGckD6Fhy9O W/0tfbQR6tt5DYStmP5KnDOkfjuXqIl6SU9Jd3OfFquh1XpczTxhA9chNoCYpw5pcww7GlwD6LR dpQhijKGTl+e1JSaCZuKlx2K7IgZBSpTiCZpzbcyi8mLWT3WM8AriWl7EyBhlUe4LvHjiHOiU1b h2hGYX7h+R9zFK21JL5 X-Proofpoint-GUID: ZH49XJ_LvBlg8_4KaCugVevfUdYYO5VM X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:714, ipnet:57.103.72.0/22, country:US] X-Rspamd-Queue-Id: 4gkRvQ0bkwz3cfs X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --Apple-Mail=_C7A657A2-1B0E-4CC8-927A-00AE651DCCC9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hey Robert, >> First, let me add that in case we decide to keep the __BSD_VISIBLE = gate, the >> condition needs to be reconsidered entirely, since __BSD_VISIBLE is 1 = in the >> default environment and makes the __ISO_C_VISIBLE check unreachable = in the >> common case. Ergo, with no explicit feature-test macros, = __BSD_VISIBLE is 1 >> unconditionally and the condition __BSD_VISIBLE || __ISO_C_VISIBLE < = 2023 >> erroneously exposes ATOMIC_VAR_INIT even when compiled with -std=3Dc23,= >> which the C23 standard explicitly removed. >=20 > That would be correct then. > We provide this macro as an extension, even if the standard no longer = supplies > it, unless the configuration is set up to disable extensions. > This is the same policy we follow with all libc symbols and macros, = unless > there is a solid reason not to provide them at all (e.g. due to a type = change > or conflict with a more recent feature). Oh, alright, now I get the point. I'll keep it in mind. Thanks to both = of you for taking the time to explain. It took me a while to get there, but it's well = established in my head now. Cheers, Faraz= --Apple-Mail=_C7A657A2-1B0E-4CC8-927A-00AE651DCCC9 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEnunneCmADnpNx8ZMLdpU9MVz/74FAmo5Jv0ACgkQLdpU9MVz /751gRAA1T9IOPGc7NV5r0zwq0qdCRNgbhibixBU8OXrcyi3mz7KFwGW7OjFv0gi AIvctXadFaPFt7Jf2FiR+ph7/a0Cw3jxOcUfv9hbe/GZIxJz/VwmLfP36mXs/iE9 Tnkr0bi13WN4PvXhBeB1sIrs7Ic5FGOnx1xSOHpfd4iLBidIFAF6X7H2LMdCEzWj n0UfiEfslWbwqxA36+vZttrcgL/y45b9Y2yFkW2ETHQOq4cMJA4D2gCquNa0H0ur no1Dg2+zOJM6BJXkFi3TX07450RsuxckT816kbCk406ROSCnzNj3RK1LrJZxoEmP LNY3IXc/k5jqHzi7RbEXMV4HNuKoIKSEDsiMMo4qvRXcekOZFTIYCvlD0Se0f8vw k2YOKmCw3Zw2aLHeI+XRx7PA0WFQYiMSg41jPr48s+s7A65boUHfTBxMpFr8dTBc kaA27gurdWte3qsMDH1XfkIxV9gSkvxk/1mBY5fW8S6D/EXIRmCP0Pi02ad8+Q13 KWpj8ZIYeItFE+tlmnwrkXqTqxIBzAoL9Op3AXYOAONMhDLxmAMMDSRfnDPk113I 4Rn6dQfkXhQI1BA9y3PbBU5f5H6aFOz/xIw5lEZtMhE/Y4i/39Nu5uyxpIQjBflF BgwlLPoGO5mgBQqlPlcB0bqAWN5BDIkd+InJkEXCa6kkKSsFWck= =HFXf -----END PGP SIGNATURE----- --Apple-Mail=_C7A657A2-1B0E-4CC8-927A-00AE651DCCC9--