diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-05-14 21:12:08 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-05-14 21:12:08 +0000 |
commit | dcc6ef1644423a970fa515feef81730135e1d87f (patch) | |
tree | 89c956730d97b2d33ff9381ebc866eca2e0bf9d4 /include | |
parent | 0532a7a2dff0d84bf0179cbaab5a43dd1a7f3080 (diff) | |
download | src-test2-dcc6ef1644423a970fa515feef81730135e1d87f.tar.gz src-test2-dcc6ef1644423a970fa515feef81730135e1d87f.zip |
Add memalign(3), mostly for glibc compatibility.
Reviewed by: emaste, imp (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D24307
Notes
Notes:
svn path=/head/; revision=361060
Diffstat (limited to 'include')
-rw-r--r-- | include/malloc_np.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/malloc_np.h b/include/malloc_np.h index fc91cdbf9a90..94c7026ef10f 100644 --- a/include/malloc_np.h +++ b/include/malloc_np.h @@ -122,6 +122,9 @@ size_t __sallocx(const void *ptr, int flags); void __dallocx(void *ptr, int flags); void __sdallocx(void *ptr, size_t size, int flags); size_t __nallocx(size_t size, int flags); + +void *memalign(size_t, size_t) __malloc_like __alloc_align(1) + __alloc_size(2); __END_DECLS #undef __MyBool |