From 990fc2900cc85359139fbca95c216c6c302873af Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 9 Jan 2012 06:36:28 +0000 Subject: Add aligned_alloc(3). The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead of returning the allocation by reference, it returns the address, just like malloc(3). Reviewed by: jasone@ --- include/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index c66f924..2c62f09 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -152,6 +152,7 @@ _Noreturn void _Exit(int); * If we're in a mode greater than C99, expose C11 functions. */ #if __ISO_C_VISIBLE >= 2011 +void * aligned_alloc(size_t, size_t); int at_quick_exit(void (*)(void)); _Noreturn void quick_exit(int); -- cgit v1.1