diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-10-29 22:32:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-29 22:32:47 +0200 |
| commit | 0e47d1269cc660d2b1451e76375b2d3545ce66f4 (patch) | |
| tree | 27c958e5ef3cd147625112a82626624d51fd6fe5 /src/include/debug.h | |
| parent | 7dc5359c2b10521696e7d251627eff029d53ee28 (diff) | |
| download | box64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.tar.gz box64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.zip | |
Malloc override (#437)
* Add some malloc override mecanism, but missing c++ function overriding * Add c++ new/delete redirection too * Added support for libtbbmalloc_proxy
Diffstat (limited to 'src/include/debug.h')
| -rwxr-xr-x | src/include/debug.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index c03fc0b0..7c14a6ee 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -75,8 +75,9 @@ extern FILE* ftrace; #define EXPORTDYN #endif -#ifdef ANDROID void init_malloc_hook(); +extern size_t(*box_malloc_usable_size)(void*); +#ifdef ANDROID extern void*(*__libc_malloc)(size_t); extern void*(*__libc_realloc)(void*, size_t); extern void*(*__libc_calloc)(size_t, size_t); @@ -95,5 +96,6 @@ extern void* __libc_memalign(size_t, size_t); #define box_free __libc_free #define box_memalign __libc_memalign extern char* box_strdup(const char* s); +extern char* box_realpath(const char* path, char* ret); #endif //__DEBUG_H_ |