From nobody Wed Nov 20 21:36:04 2024 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 4Xtvn05y1xz5dmnC; Wed, 20 Nov 2024 21:36:04 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xtvn05GPJz4tS7; Wed, 20 Nov 2024 21:36:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732138564; 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=L8sq4om64B/SMicDx7Z65dgBLSDeAme1owmp4VIFgs8=; b=pAwBuX8UXXZJypLpZhhjDpvIy7byryfHddwPQ9sgbXb7xSsGHZDyd3IkX7QN5PnVpCsDfp zrKF2kyHKh+FZVAzc2XTayPP9x/ZSPk3YKLt7EdzQo4ZIGo2Wka+0+UtWeZ2FoNgWSHNfd E5HzKfi+EVP45bkPnrcDw5d/nPe10MSxi7XhSqwVUrOjTdDUxr+wHWTcbFsQexdN10wvUY 3+6/P+u4iEaAOAKjFGdTINpEs9fUrqq4dX4Jspkm/Q+Vr1FM281el1KR4mfmb4rZXaCq3m rY9TSQL+8NkZKjAHVuNFJOLSRmp7KJHlCDER0C6IJiVCj070UPijCkNmRpvKVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732138564; 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=L8sq4om64B/SMicDx7Z65dgBLSDeAme1owmp4VIFgs8=; b=JEsWN0kdMrB3NseO7PRV3P4Z2GwSLbMc9CBARtEXLyxm+o2bYoGc7hcCkI1Ft43dz53X2P Ku3nRj/Wef1bfW8X/217F9j0KAvX/134ei31fVLC4PuGOa7a3XsubJ4GS5oqh6PIhv5PxM 9hFXl9Gw1gnZwAqIUayakqo5uzx81m71aX4T7MjJJ1C8QC9k6fKDvqTwD8MVs4zKXuy0+H T9/Zdc02+SVPN4R3jwNf6bSsZ0lml6GnsL6rcfnHsf3Yh44PoQuNU54CYJjXvcNdRT+v91 KgvfJgYmrdw1x5MxA8h7rL5WO0MTpgNJQNLm/eP1FweYwADUfM3GVin9Rue4EQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732138564; a=rsa-sha256; cv=none; b=b0SGmGz4G9O4nDLGPBiJLEH6Fm9rKUc6uEP0Wy5ihY1Qsg85GBzhUpeoblrSwPdfE9dc0n Hr0Ba6B3aumLU6W8sLDqF0YBGoIla4m0eEGFPVVZdVgszUvVt2x11hCKUJkJQ4HoUZAf4B BKu79BJm2G6695XiEIA7IrRO346Ynjgo7QmM88VSpnUi1rzP1wHYgxaQ1Lnmyqmm3L12m4 nPqfONJOt1mvYTX6fW/tLBIyWruj8I+whV/f28if6sUHPdVtFvNdBkHbRTptnXEvh5a5S+ OybmmaSLU/UtBSud63ybWevimr0QANxVKDGJjHbx2fNNIAjRguvHdwRNpAMt2A== 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 4Xtvn02MDkz19b0; Wed, 20 Nov 2024 21:36:04 +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 4AKLa4gV009844; Wed, 20 Nov 2024 21:36:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AKLa4i5009841; Wed, 20 Nov 2024 21:36:04 GMT (envelope-from git) Date: Wed, 20 Nov 2024 21:36:04 GMT Message-Id: <202411202136.4AKLa4i5009841@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: 4365a13bda5f - main - cdefs: Document what we do when _XOPEN_SOURCE is an empty string 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 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: 4365a13bda5fb9f930b9cca7f9797537695441d7 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4365a13bda5fb9f930b9cca7f9797537695441d7 commit 4365a13bda5fb9f930b9cca7f9797537695441d7 Author: Warner Losh AuthorDate: 2024-11-20 20:51:18 +0000 Commit: Warner Losh CommitDate: 2024-11-20 21:35:56 +0000 cdefs: Document what we do when _XOPEN_SOURCE is an empty string X/Open originally had _XOPEN_SOURCE defined to signify conformance with the Single Unix Specification, starting with its third iteration. There it defined _XOPEN_SOURCE being defined as the same thing as _POSIC_C_SOURCE=2, though the different versions of the spec had slight variances as to what's defined and wheter or not _XOPEN_SOURCE_EXTENSION needed to be defined. Document that we don't do anything in this case. It turns out that enabling the proper strict environment breaks at least some old software, so for the moment it's a nop until that can be sorted out (though that is a very low proprity task). Sponsored by: Netflix --- share/man/man9/cdefs.9 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9 index 350e5d773004..0edd6e8392ca 100644 --- a/share/man/man9/cdefs.9 +++ b/share/man/man9/cdefs.9 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: BSD-2-Clause .\" -.Dd July 20, 2024 +.Dd November 20, 2024 .Dt CDEFS 9 .Os .Sh NAME @@ -357,6 +357,10 @@ However, system headers not defined by that standard may define extensions. .It Dv _POSIX_C_SOURCE = 200112 Ta St -p1003.1-2001 including St -isoC-99 .It Dv _POSIX_C_SOURCE = 200809 Ta St -p1003.1-2008 including St -isoC-99 .It Dv _POSIX_C_SOURCE = 202405 Ta St -p1003.1-2024 including ISO/IEC 9899:2018 ("ISO C17"), +.It Dv _XOPEN_SOURCE defined Ta St -p1003.1-90 with XPG Extensions to St -susv1 including St -ansiC . +However, +.Fx +implements this as a NOP because too much software breaks with the correct strict environment. .It Dv _XOPEN_SOURCE = 500 Ta St -p1003.1c-95 and XPG extensions to St -susv2 including St -ansiC .It Dv _XOPEN_SOURCE = 600 Ta St -p1003.1-2001 and XPG extensions to St -susv3 including St -isoC-99 .It Dv _XOPEN_SOURCE = 700 Ta St -p1003.1-2008 and XPG extensions to St -susv4 including St -isoC-99