From nobody Fri Nov 15 02:02:10 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 4XqKyp4dS0z5dR3y; Fri, 15 Nov 2024 02:02:10 +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 4XqKyp1PNrz4cwT; Fri, 15 Nov 2024 02:02:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636130; 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=c0G0NJpDydo2D4hujAyInl5HHD/qsPqrJYfqLXL7/os=; b=mmQoNb8uIhluBkhc6/xnSSuov4aAyujr/V4bWTthzQAjzFrdGNnlmk+E1gs47lMpPycagE o0Fd4lV2d0gcXvPg72dd8Swn/xog4RHmQk3jhNmRVujhZSVILPjvsFr77dEsG3C6xXtc5R XaOx8Apq4XLP0uFbPVCRwT8VyAerz2vXlbeY0EKK1u26Lb7l+MX7QTg4oefVp7kDoCWBwz lSwanIyAzPdtqZk+VDHVqZY3qEurqTMV5EF8lQGH3YlZhiNz27zHkMEt47YmC7NHXderG2 Dz85XY8QVyOFMN9sFz57zHiyDSHqGTDZWNWDK3u6a3JmpB1l+xvvv7TbUMkNLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731636130; 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=c0G0NJpDydo2D4hujAyInl5HHD/qsPqrJYfqLXL7/os=; b=QbfZ6PZH64nw5IQZJQZVHACyk2IBnDm0W7Vnhrm8nl2fY/QNxCz0cZWka3HzzfD5B+bRoJ qZ4yorqGeudoBM5SH9Iwif39h3dQXEil5fjuu910WuPvdb9DZkT5Q4jeUSpedSEOIkV7rU xxWvplr0YmP0ThXGorrp9+BtkrjKs/IADVUnL6hUorp6jp8EegHgMJ4SqOJwKBr12E0McH x/x9tUusTC4RWeWloWpuzZKv3YjfAMI/Igk/3syQogYB75sUcVfqjOvwD/ZUsBNC5kqoL4 7UNl2PFsj1oH/VGS194rOb2GmAin3aKHyfQVqe1kdRCC3qeoRcp6ILf0q8Az9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731636130; a=rsa-sha256; cv=none; b=ybSyhiKSmcp08ARn3DsvcHGt+Lxz924Wq+BfekQbfv+CnEWqTSCSqxSK8/dD7ztQcLXBg6 nqWaGC+hjsB+W847O+GDAFZS2HMpV4Eyik3FweKO7QnwsgL/+4UFyYF5UeLIHZZxWLOQBr eU87aCk+Fi1WKIvZCse1goqz6LiUnr8GviSOoJllzfPHaFN7NP8UoQDYgNVfVRwTQrPOqd Z3FVYb0O3RVIi2hwsST2IKeH/rqWgJ0VsAyRoo4FB8ufYojgefR6krkvYQzqJ3rOnbL3rs 0Chjgg8CT13NxBzPNJ/2AciNt34Z0lnQCIFaO4cS/xBiu4d6fKy4ilIbKuOUPA== 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 4XqKyp0zd0z13TR; Fri, 15 Nov 2024 02:02:10 +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 4AF22APd047871; Fri, 15 Nov 2024 02:02:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AF22ARP047868; Fri, 15 Nov 2024 02:02:10 GMT (envelope-from git) Date: Fri, 15 Nov 2024 02:02:10 GMT Message-Id: <202411150202.4AF22ARP047868@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: aec6c812be63 - main - cdefs: Add FreeBSD _C23_SOURCE extension 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: aec6c812be63325e2557a03b5f411965ec50ff6b Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=aec6c812be63325e2557a03b5f411965ec50ff6b commit aec6c812be63325e2557a03b5f411965ec50ff6b Author: Warner Losh AuthorDate: 2024-11-14 23:52:43 +0000 Commit: Warner Losh CommitDate: 2024-11-15 02:01:12 +0000 cdefs: Add FreeBSD _C23_SOURCE extension Add _C23_SOURCE extension to mirror the _C11_SOURCE define. Unsure how useful this is. Sponsored by: Netflix Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D47577 --- sys/sys/cdefs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 1a1705129fa6..64dae39be3af 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -616,6 +616,12 @@ #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 2011 #define __EXT1_VISIBLE 0 +#elif defined(_C23_SOURCE) /* Localism to specify strict C23 env. */ +#define __POSIX_VISIBLE 0 +#define __XSI_VISIBLE 0 +#define __BSD_VISIBLE 0 +#define __ISO_C_VISIBLE 2023 +#define __EXT1_VISIBLE 0 #else /* Default environment: show everything. */ #define __POSIX_VISIBLE 200809 #define __XSI_VISIBLE 700