aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-10-14 07:39:36 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-10-22 17:30:12 +0200
commitd3aed17bc29c534a9e61ff92f766d1a39c5f3d27 (patch)
tree00222ab29c925c306d2a1e0088227ebedd3e8708
parentcfa0985d64957ddf8ef40873ce250625e4f0880f (diff)
downloadnewlib-d3aed17bc29c534a9e61ff92f766d1a39c5f3d27.zip
newlib-d3aed17bc29c534a9e61ff92f766d1a39c5f3d27.tar.gz
newlib-d3aed17bc29c534a9e61ff92f766d1a39c5f3d27.tar.bz2
C11 aligned_alloc() support for <stdlib.h>
newlib/ChangeLog 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/include/stdlib.h (alloc_aligned): Declare.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/stdlib.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9e78fea..d0d357e 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
+ * libc/include/stdlib.h (alloc_aligned): Declare.
+
+2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
* libc/include/stdlib.h (at_quick_exit): Declare.
(quick_exit): Likewise.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add
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);