introduces netbsd's reallocarr overriding.

and couple of tests.
This commit is contained in:
David Carlier 2021-12-01 22:43:13 +00:00
parent 15220c6843
commit d6a56dd99d
5 changed files with 24 additions and 1 deletions

View file

@ -48,6 +48,7 @@ not accidentally mix pointers from different allocators).
#define valloc(n) mi_valloc(n)
#define pvalloc(n) mi_pvalloc(n)
#define reallocarray(p,s,n) mi_reallocarray(p,s,n)
#define reallocarr(p,s,n) mi_reallocarr(p,s,n)
#define memalign(a,n) mi_memalign(a,n)
#define aligned_alloc(a,n) mi_aligned_alloc(a,n)
#define posix_memalign(p,a,n) mi_posix_memalign(p,a,n)