From nobody Mon Jan 06 23:46:36 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 4YRrRx0Qrfz5kR34; Mon, 06 Jan 2025 23:46:37 +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 4YRrRw6q9kz44Pq; Mon, 6 Jan 2025 23:46:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736207197; 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=9TDBSjpdTjE9JKHDdBcaXIhnlQcx287vG0ldmqtcLg8=; b=OCmPKCbMMQ2ZqHdaO9IGcnt5+aCkE4N/XCV7183X7Px0BOxvM//BBz2kl7UeV31QrtvSzY mfoEanVn1jq2PWpVrGRHx4AX4ayP7Ag/eLQ/QcSXVWBRqzAsMk1y34mqjuaPIn7UBXiaNY +kweOAW277qPyJXrAd66NDvRk/AxpRuSI2OTx5Knsy+qIY1hcAjJUW29kM/JvXwSir8Gqd EWhDlWT+Mh1I8B/sj7vnA+qSbXB3XIcCm25baE4qPk+h4v6Ostyyz3LGFKuPuIvBM+DoWU cRHUbwGGrBeDNxKue8y/zpLyOW8xmgLlnet2f4koXeF8Iv1q87LW63x3hUc2Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736207197; 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=9TDBSjpdTjE9JKHDdBcaXIhnlQcx287vG0ldmqtcLg8=; b=cdfEr6H5OniHRdQrQWl4FF+LgaAAokWGAqFnK8Rt/G1MEO1mK96y5tDisEleTj3O8+stDQ uIrqlaeejE8Kc7FI9JWro2EPXaGpTp12XX85AcTPwuPfz6Un6ge6gFnL7cZOq2ZgizR3ha K1VLUyoPvmPfQgRz9RUmFfAZrOKDQ98CNL5fvqSWmLGAMH5d2+ZRHK67Et5HDYJo+FJuSi JjtlMSiPBtfAPHCEFryN6my8in0DstHhVpB/falC+CApnt+3ZMOjy56AY9Fk6P6oC8KPXF zCn8dqXEhQOpzNDOEnuYXOQedyAv9/aYzM5F/L8JsRWN+W5thMMkZpC4AFAeaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736207197; a=rsa-sha256; cv=none; b=F4t+7VyhrlXd22RnEiO+nrb3MAogFavl07cyIAqMS/F4kZvUAYscaPWVxv6MwvgoWsRBDP h9z6zZVCpQoqlB94lu+jMi0AdpV7cC32U9bhZZqmQoPN0OSfDwNsH5H/Ig9yn3y+V5FQm+ mopUyMDEwcXOEzQW8iLMsoTSkGCIzDBDayIdlsx/20IuG0D7OH6vCNzlQR/xJGGnvnk44D HM+Ev/6HCmpOYOgliPYZBHJ222QuAGaqYiIUnnl6J9iRhPcrhCuxzMcwCxj0RSIG/j2DE8 /pwe1zW6ZWJF2YAvx8KU8yLzEz3HmqyNTwj62nwyu3FwJA6whwRy0naPop6DOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YRrRw699kzlVG; Mon, 06 Jan 2025 23:46:36 +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 506NkakA045226; Mon, 6 Jan 2025 23:46:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 506Nkaoa045223; Mon, 6 Jan 2025 23:46:36 GMT (envelope-from git) Date: Mon, 6 Jan 2025 23:46:36 GMT Message-Id: <202501062346.506Nkaoa045223@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6fc164c7775a - main - cdefs.9: Note only one programming environment at a time 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fc164c7775a5dc7a4277969870abd50eb62cd1e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6fc164c7775a5dc7a4277969870abd50eb62cd1e commit 6fc164c7775a5dc7a4277969870abd50eb62cd1e Author: Warner Losh AuthorDate: 2025-01-06 23:45:47 +0000 Commit: Warner Losh CommitDate: 2025-01-06 23:46:06 +0000 cdefs.9: Note only one programming environment at a time Only one programming environment at a time can be defined at a time. Posix states that when defining _POSIX_C_SOURCE, the system headers must define only the macros, variables, and functions that a given standard level defines. Selecting a different macro along with this is fundamentally incompatible with that. Sponsored by: Netflix --- share/man/man9/cdefs.9 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9 index b9821c70f2a1..2e6f1b440efb 100644 --- a/share/man/man9/cdefs.9 +++ b/share/man/man9/cdefs.9 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: BSD-2-Clause .\" -.Dd December 6, 2024 +.Dd January 6, 2025 .Dt CDEFS 9 .Os .Sh NAME @@ -352,6 +352,7 @@ Defining the macros outlined below requests that the system header files provide only the functions, structures and macros (symbols) defined by the appropriate standard, while suppressing all extensions. However, system headers not defined by that standard may define extensions. +You may only define one of the following for any compilation unit. .Bl -column "---------------" .It Sy Macro Ta Sy Environment .It Dv _POSIX_SOURCE Ta St -p1003.1-88 including St -ansiC