about summary refs log tree commit diff
path: root/malloc/tst-aligned-alloc-static.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2023-03-21 00:46:43 -0400
committerDJ Delorie <dj@redhat.com>2023-05-08 16:40:10 -0400
commitd1417176a35d27ffb8da0ffb1e33154163b6eeb2 (patch)
treeaa3e8cd61cadf5fec88e4cf57cfaf4b0e0ae6538 /malloc/tst-aligned-alloc-static.c
parentcea74a4a24c36202309e8254f1f938e2166488f3 (diff)
downloadglibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.tar.gz
glibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.tar.xz
glibc-d1417176a35d27ffb8da0ffb1e33154163b6eeb2.zip
aligned_alloc: conform to C17
This patch adds the strict checking for power-of-two alignments
in aligned_alloc(), and updates the manual accordingly.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/tst-aligned-alloc-static.c')
-rw-r--r--malloc/tst-aligned-alloc-static.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/tst-aligned-alloc-static.c b/malloc/tst-aligned-alloc-static.c
new file mode 100644
index 0000000000..d504473094
--- /dev/null
+++ b/malloc/tst-aligned-alloc-static.c
@@ -0,0 +1 @@
+#include "tst-aligned-alloc.c"