forward __libc interface (see PR #667)
| 265 | #if defined(__wasi__) |
| 266 | // forward __libc interface (see PR #667) |
| 267 | void* __libc_malloc(size_t size) MI_FORWARD1(mi_malloc, size) |
| 268 | void* __libc_calloc(size_t count, size_t size) MI_FORWARD2(mi_calloc, count, size) |
| 269 | void* __libc_realloc(void* p, size_t size) MI_FORWARD2(mi_realloc, p, size) |
| 270 | void __libc_free(void* p) MI_FORWARD0(mi_free, p) |
| 271 | void* __libc_memalign(size_t alignment, size_t size) { return mi_memalign(alignment, size); } |
| 272 | |
| 273 | #elif defined(__GLIBC__) && defined(__linux__) |
| 274 | // forward __libc interface (needed for glibc-based Linux distributions) |
nothing calls this directly
no test coverage detected