diff options
author | ed <ed@FreeBSD.org> | 2012-01-09 06:36:28 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-01-09 06:36:28 +0000 |
commit | 990fc2900cc85359139fbca95c216c6c302873af (patch) | |
tree | 95b1629eb692f9ea1ee495c472e77e7e68422189 /include | |
parent | b9d5a50095d3b8b3b530da7e7b24d476068d01b5 (diff) | |
download | FreeBSD-src-990fc2900cc85359139fbca95c216c6c302873af.zip FreeBSD-src-990fc2900cc85359139fbca95c216c6c302873af.tar.gz |
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@
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |