xref: /third_party/musl/src/malloc/realloc.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/malloc/
1570af302Sopenharmony_ci#ifndef HOOK_ENABLE
2570af302Sopenharmony_ci#include <stdlib.h>
3570af302Sopenharmony_ci#ifdef USE_JEMALLOC
4570af302Sopenharmony_ciextern void* je_realloc(void* p, size_t newsize);
5570af302Sopenharmony_ci#endif
6570af302Sopenharmony_ci
7570af302Sopenharmony_civoid *realloc(void *p, size_t n)
8570af302Sopenharmony_ci{
9570af302Sopenharmony_ci#ifdef USE_JEMALLOC
10570af302Sopenharmony_ci	return je_realloc(p, n);
11570af302Sopenharmony_ci#endif
12570af302Sopenharmony_ci	return __libc_realloc(p, n);
13570af302Sopenharmony_ci}
14570af302Sopenharmony_ci#endif
15

Indexes created Thu Nov 07 10:32:03 CST 2024