aligned_alloc()
Joseph Myers
joseph@codesourcery.com
Fri Feb 24 22:34:37 GMT 2023
On Thu, 23 Feb 2023, DJ Delorie via Libc-alpha wrote:
> It has been noted that since we've always documented the C11
> restrictions, changing the code to comply with those restrictions
> should not require a versioned symbol. However, if we strictly comply
> with C11, we'd need a new symbol for C17. Since those are wrapped by
> __USE_ISOC* macros, we could (in theory) just #define aligned_alloc to
> __aligned_alloc_c11 or __aligned_alloc_c17 for the modified versions.
C17 is a defect fix release for C11. Where the semantics differ, we
should implement the C17 version; no separate symbols are appropriate.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list