zephyr/lib/libc/common
Keith Packard 101cdcd86e libc/common: Add memalign
Memalign is another name for the posix aligned_alloc function, although it
has weaker restrictions on the relationship between the alignment and size.

memalign() is used internally by the libstdc++ when built for 'newlib'
targets (which includes picolibc) instead of aligned_alloc() due to a bug
in gcc, so we need to provide an implementation of this when using that
library, even though it's not part of the Zephyr C library API.

When a fix for the libstdc++ is merged upstream and can be consider a
reasonable dependency for Zephyr, this work-around can be removed.

Closes: #57899

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-08-10 11:35:17 -04:00
..
source libc/common: Add memalign 2023-08-10 11:35:17 -04:00
CMakeLists.txt libc: Move abort into common 2023-05-08 09:59:27 +02:00
Kconfig libC COMMON_LIBC_MALLOC_ARENA_SIZE: provide default for POSIX ARCH 2023-06-22 17:16:17 -04:00