Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Return NULL for zero size allocations | Sebastian Huber | 2021-05-06 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Return NULL on RTEMS to more likely catch the use of a zero size memory area by erroneous applications. Update #4390. | ||||
* | Canonicalize config.h include | Sebastian Huber | 2020-04-16 | 1 | -1/+1 |
| | | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif | ||||
* | memalign: Add missing attributes to fix warning | Sebastian Huber | 2019-01-10 | 1 | -1/+3 |
| | | | | Update #3666. | ||||
* | Add aligned_alloc() and memalign() | Sebastian Huber | 2018-12-21 | 1 | -0/+41 |
Ensure that the C++17 aligned new operator works. Close #3666. |