1 #ifndef _INTERCEPT_ALLOC_H_ 2 #define _INTERCEPT_ALLOC_H_ 6 #if defined(INTERCEPT_ALLOC) 8 #if defined(RS6K) && defined(__64BIT__) 10 #define EC_free __free 11 #define EC_malloc __malloc 12 #define EC_calloc __calloc 13 #define EC_realloc __realloc 14 #define EC_strdup __strdup 20 #undef INTERCEPT_ALLOC 25 #if defined(INTERCEPT_ALLOC) 29 #define THEmalloc EC_malloc 31 #define THEcalloc EC_calloc 32 extern void *
EC_calloc(
long long int nelem,
long long int elsize);
33 #define THErealloc EC_realloc 35 #define THEstrdup EC_strdup 37 #define THEfree EC_free 42 #define THEmalloc malloc 43 #define THEcalloc calloc 44 #define THErealloc realloc 45 #define THEstrdup strdup
char * EC_strdup(const char *s)
void * EC_calloc(long long int nelem, long long int elsize)
void * EC_realloc(void *p, long long int size)
void * EC_malloc(long long int size)