From nobody Mon Jun 22 11:59:05 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 4gkRZS4h94z6jmGV for ; Mon, 22 Jun 2026 11:59:28 +0000 (UTC) (envelope-from kfv@kfv.io) Received: from outbound.ms.icloud.com (ms-2006b-snip4-1.eps.apple.com [57.103.75.74]) (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 4gkRZR3FMBz3bDh for ; Mon, 22 Jun 2026 11:59:27 +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-100-percent-3 (Postfix) with ESMTPS id 98A4918000F1; Mon, 22 Jun 2026 11:59:23 +0000 (UTC) X-ICL-Out-Info: HUtFAUMHWwJACUgATUQeDx5WFlZNRAJCTQFNHVQHRQBADlYBWQ9LVxQEE1UbdwBUBhcRXE1RDw8bXw4dBFhLQBMEQBMFUgddTVYNRw9YHlwUFxVAQ14IXh9MHB0OWAYSAE0KDjYGWQVeCVYDQwU2EhRdRVgLQUVbHxkVWgkKV3REek51KA4qH0ALTXJAAyoEMhRBAVsFRgRJDU5yLA4vATF8QHMGUR0cGVZGExlOG1dNWg1AGVgGbRRWFVIEWQ== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kfv.io; s=sig1; t=1782129564; x=1784721564; bh=OpnKcDh/fhqhc2PjCv46eXMBI98tvo4pqIQ4jXxCpLU=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To:x-icloud-hme; b=aZZj2/kHrXv0JHmaTMZ5GC8AToiOpOM1DN4jzyL5RAwVzJsoEpz5CsXGZhkDgWEyCnfVgqQ38lh9R7HnCJsiZ+k2oJFfswSORFbemUm7lqXVFGqzQ62X4fYD81e8BgoRJzMfRMjGO3E4Sqc6tsJmfb19c0CIN8Q5HVMqoIkYR67MgxjZx+OoVzDyldbYmTCiJtbyIDaU3an4R9IKYC5sFyyNEd8ykAmr75sdwksLIusvbWe+7/gOGvgQeJSfSrN9H69WdujVb7y9AVmNCZMHMHF0Y4vldvdZBZvScWt87JMMSbGwN0WKpt5seGTywv3Gts5f4q9lJUGiyqCSAWyRKw== mail-alias-created-date: 1649693719123 Received: from smtpclient.apple (unknown [17.57.154.37]) by p00-icloudmta-asmtp-us-west-3a-100-percent-3 (Postfix) with ESMTPSA id 1C1581800303; Mon, 22 Jun 2026 11:59:19 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_73437D90-3A09-40B2-81D3-A40066271039"; 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: <864iiusvc9.fsf@ltc.des.dev> Date: Mon, 22 Jun 2026 15:29:05 +0330 Cc: 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: 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: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Proofpoint-ORIG-GUID: z_9uJFmHV9ferQ4yAo4C0fgNqTh9-I7Q X-Proofpoint-GUID: z_9uJFmHV9ferQ4yAo4C0fgNqTh9-I7Q X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjIyMDExOSBTYWx0ZWRfX3ZxVAUzsQPE4 MdCbSDmHEAVD6IwelT3ydrfYX1SX+UyZAtvaeOUXCVEounY8GVSvuCtv4Azu/utleupucU2TEF8 ynJRW1Mg9OAx2T6qwQoAlHCukoL7jwzP2nLzbUgWr+lxlOT9sw2AUtUgSC9EgrtrWUJAIfjkNap NckBuhZRWgNovN7vabPB3ykKKZdk63hbfNXOxZKP8ORfUWKth5v3cSAsjBtuDFP1dngG5MsfCRQ zEbwo+TpzIl3v5NFjCe+KuEv7APqyDhIWfd58THwc2uCVWyKErdsUaHuK9qhIeOK9fxPrDkFeTf SFua8tZHHo40jAS9Uhe 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: 4gkRZR3FMBz3bDh X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --Apple-Mail=_73437D90-3A09-40B2-81D3-A40066271039 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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. __STDC_VERSION__ < 202311L does not have this problem. It correctly = hides ATOMIC_VAR_INIT in C23 and later modes only, and exposes it otherwise in = all prior modes, regardless of what __BSD_VISIBLE is set to. > No. Using __STDC_VERSION__ here would mean =E2=80=9Cthis library = feature only > works when compiled by a certain compiler=E2=80=9D which is not the = case. To the concern about what __STDC_VERSION__ signals, it reflects the = language standard mode (e.g. -std=3Dc23, if supported), not the implementation = per se. Any C23-conforming compiler will set it to 202311L per the standard. The removal of ATOMIC_VAR_INIT is a language-mode-specific event that = would only target C23 and later modes as it happened in C23. So I do still = believe that the gate belongs on __STDC_VERSION__, not on the API exposure policy.= --Apple-Mail=_73437D90-3A09-40B2-81D3-A40066271039 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/74FAmo5I4kACgkQLdpU9MVz /76MOw//aQtcRnBM//JtDC49o7UmVQbz/S1hxk4x7ORmsCnG++/cqLCM4/V5pCbp pDLsv/9LjWJ+LzoyM1pkFUrYOXlByKhhuHCCE8ymWAj6qKMlF88ibwaKSEJNg7Os Td0HDQGX4+sIgZj+tW7O74Ccvc54uWDhIEM2IokX1zs3TI9bkbv62YmJLv3dP9tO y7OoX82mtHJF8nriDMUMTxSS/w48kXjEgxSsC/k7+nqZIpkSwP8yKaaKESymBHiR 4b3a9IxkFc3agD7PzGLQViDAvcgs+VQme4YEfWSd447+VpAQL0LgqyIL2U7SauXE PtDE+iFSnIFf+HmEGr2d+8y5LaAITma7T5x7tBYmZvnM99w2swh1aJNgFx11vgIz PVaZVEueks/vHVxq631EbsAjPYDqV+Q0UkSTDqyA9Tcy+Rv0Wu67k6hKor1tqDN9 zECH8dEaMDa//HCVRHbykCdBgWncnsDuEJ4y4l7QMDOQBZHVqFWAqWQ0ATYbleDM NbVisQA9TcASfocx3b5iZF35iDzK1zh+I16GjPOt3hjDFdieqdRL6pNzl7e11cLh veiEARMiJrGGjM+3et0qKwWpYs5KKyHjnyoO70gOjkSbTvYR0/MSKPUISgme/daX jp3E49PwqXwaA/sg4UFp5I0eDBGEPEdFR/cGyEdwO60NBZ9aKdw= =8QjO -----END PGP SIGNATURE----- --Apple-Mail=_73437D90-3A09-40B2-81D3-A40066271039--