zephyr/lib/libc
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
..
arcmwdt ARC: Fix portability.posix.common.arcmwdtlib test 2023-06-09 14:17:50 -04:00
armstdc libc: Move strnlen into common 2023-05-08 09:59:27 +02:00
common libc/common: Add memalign 2023-08-10 11:35:17 -04:00
minimal libc: minimal: math sqrt: sqrtf: fix numeric accuracy of sqrt and sqrtf. 2023-07-14 12:42:41 -04:00
newlib
picolibc libc/picolibc: Remove unused read_stdin/write_stdout hooks 2023-08-02 10:35:18 +02:00
CMakeLists.txt lib: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
Kconfig libc: remove no longer valid kconfig comment 2023-07-20 12:58:36 -04:00