Page MenuHomeFreeBSD

D47580.id146465.diff
No OneTemporary

D47580.id146465.diff

diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9
--- a/share/man/man9/cdefs.9
+++ b/share/man/man9/cdefs.9
@@ -337,7 +337,7 @@
.Dv __STDC_VERSION__ = 202311L
Strict environment selected with
.Dv _C23_SOURCE
-though this is not yet implemented.
+though ISO C23 support is only partially supported.
.El
.Pp
For more information on C standards, see
@@ -356,25 +356,37 @@
.It Dv _POSIX_C_SOURCE = 199506 Ta St -p1003.1c-95 including St -ansiC
.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 in the future IEEE Std 1003.1-2024 (“POSIX.1”) including ISO/IEC 9899:2024 (“ISO C23”)
+.It Dv _POSIX_C_SOURCE = 202405 Ta St -p1003.1-2024 including ISO/IEC 9899:2017 ("ISO C17"),
.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
-.It Dv _XOPEN_SOURCE = 800 Ta in the future IEEE Std 1003.1-2024 (“POSIX.1”) and XPG extensions to Version 5 of the Single UNIX Specification (“SUSv5”) including ISO/IEC 9899:2024 (“ISO C23”)
+.It Dv _XOPEN_SOURCE = 800 Ta IEEE Std 1003.1-2024 (“POSIX.1”) and XPG extensions to Version 5 of the Single UNIX Specification (“SUSv5”) including ISO/IEC 9899:2017 (“ISO C17”)
.It Dv _ANSI_SOURCE Ta St -ansiC
.It Dv _C99_SOURCE Ta St -isoC-99
.It Dv _C11_SOURCE Ta St -isoC-2011
-.It Dv _C23_SOURCE Ta in the future ISO/IEC 9899:2024 (“ISO C23”)
+.It Dv _C23_SOURCE Ta ISO/IEC 9899:2024 (“ISO C23”)
.It Dv _BSD_SOURCE Ta Everything, including Fx extensions
.El
.Pp
+Note:
+.St -p1003.1-2024
+and XPG extensions to Version 5 of the Single UNIX Specification ("SUSv5")
+support is incomplete.
+.Pp
When both POSIX and C environments are selected, the POSIX environment selects
which C environment is used.
However, when C11 dialect is selected with
.St -p1003.1-2008 ,
definitions for
.St -isoC-2011
-are included.
+are also included.
+Likewise, when C23 dialog is selected with
+.St -p1003.1-2008
+or
+.St -p1003.1-2024 ,
+definitions for
+.St -isoC-2023
+are also included.
.Ss Header Visibility Macros
These macros are set by
.Nm
@@ -393,13 +405,14 @@
and 199209
.St -p1003.1-90 .
.It Dv __ISO_C_VISIBLE Ta The C level that's visible.
-Possible values include 1990, 1999, and 2011 for
+Possible values include 1990, 1999, 2011, 2017 and 2023 for
.St -isoC-90 ,
-.St -isoC-99
+.St -isoC-99 ,
+.St -isoC-2011 ,
+ ISO/IEC 9899:2017 ("ISO C17"),
and
-.St -isoC-2011
+ ISO/IEC 9899:2024 ("ISO C23"),
respectively.
-In the future, 2023 will be used for ISO C2023.
.It Dv __BSD_VISIBLE Ta 1 if the
.Fx
extensions are visible, 0 otherwise.

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 13, 6:53 PM (16 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26938841
Default Alt Text
D47580.id146465.diff (2 KB)

Event Timeline