[PATCH] stdlib: Define WCOREDUMP in stdlib.h [BZ #32551]
Collin Funk
collin.funk1@gmail.com
Thu May 22 16:56:18 GMT 2025
Hi Joseph,
Joseph Myers <josmyers@redhat.com> writes:
> On Wed, 21 May 2025, Collin Funk wrote:
>
>> Ideally this macro would be hidden behind a macro '__USE_XOPEN2K24'
>> which has not been yet introduced.
>>
>> I had a patch to define that macro but decided against submitting it
>> until the conform tests are updated.
>
> It makes sense to me for the feature test macro handling (and updating
> headers for whatever new POSIX features are already supported under
> __USE_GNU or other extension conditions) to go in independently of conform
> test updates for the new POSIX version.
True, I guess since _POSIX_C_SOURCE is monotonically increasing it
shouldn't break conform tests to add it. We will just not have complete
tests for POSIX 2024 symbol visibility.
The patch I wrote previously but didn't sent defined the internal
features.h macros '__USE_XOPEN2K24' and '__USE_XOPEN2K24XSI' based on
_POSIX_C_SOURCE==202405L and/or _XOPEN_SOURCE==800. I think that is the
correct thing to do. I will send it later.
Collin
More information about the Libc-alpha
mailing list