[PATCH v2] unistd: use __USE_XOPEN2K24 for existing POSIX.1-2024 interfaces

Collin Funk collin.funk1@gmail.com
Thu Feb 26 04:06:29 GMT 2026


Joseph Myers <josmyers@redhat.com> writes:

> On Tue, 24 Feb 2026, Collin Funk wrote:
>
>> * conform/data/unistd.h-data: Add checks for the prototypes, although
>> conform has not yet been adjusted to support POSIX.1-2024.
>
> I'm not convinced it's coherent to put POSIX24 conditionals in the 
> conform/ data without first doing the mechanical preparation that makes it 
> a duplicate of POSIX2008 (better: makes POSIX2024 a duplicate of POSIX2008 
> and XOPEN2024 a duplicate of XOPEN2K8).  Without such mechanical 
> preparation, it's essentially random what the expectations for any new 
> standard would look like.

Oh, I realize now that POSIX.1-2024 is based on C17 since it was started
long before C23. That means we don't have to worry about whether the
compiler supports -std=c2x or -std=c23.

I sent patches doing as you said in your message [1], and it shouldn't
be too much effort after to get them passing. We can then change the
headers while updating the conform tests. So lets hold off on this patch
until those are complete.

Collin

[1] https://inbox.sourceware.org/libc-alpha/cover.1772078427.git.collin.funk1@gmail.com/T/#m88e6dbc3945457d212468db6df59f0e9cc2f947e


More information about the Libc-alpha mailing list