This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 2/3] C11 aligned_alloc() support for <stdlib.h>
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Wed, 14 Oct 2015 07:39:36 +0200
- Subject: [PATCH 2/3] C11 aligned_alloc() support for <stdlib.h>
- Authentication-results: sourceware.org; auth=none
- References: <1444801177-17444-1-git-send-email-sebastian dot huber at embedded-brains dot de>
newlib/ChangeLog
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/include/stdlib.h (alloc_aligned): Declare.
---
newlib/libc/include/stdlib.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 859c844..51a6f0a 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -284,6 +284,8 @@ extern long double strtold (const char *__restrict, char **__restrict);
* If we're in a mode greater than C99, expose C11 functions.
*/
#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
+void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
+ __alloc_size(2);
int at_quick_exit(void (*)(void));
_Noreturn void
quick_exit(int);
--
1.8.4.5