Lines Matching refs:symbol
300 char symbol[128]; in InitMalloc() local
302 snprintf(symbol, sizeof(symbol), "%s_malloc", prefix); in InitMalloc()
303 table->malloc = reinterpret_cast<MallocDebugMalloc>(dlsym(libc_malloc_impl_handle, symbol)); in InitMalloc()
305 error_log("%s: dlsym(\"%s\") failed", __progname, symbol); in InitMalloc()
308 snprintf(symbol, sizeof(symbol), "%s_free", prefix); in InitMalloc()
309 table->free = reinterpret_cast<MallocDebugFree>(dlsym(libc_malloc_impl_handle, symbol)); in InitMalloc()
311 error_log("%s: dlsym(\"%s\") failed", __progname, symbol); in InitMalloc()
314 snprintf(symbol, sizeof(symbol), "%s_calloc", prefix); in InitMalloc()
315 table->calloc = reinterpret_cast<MallocDebugCalloc>(dlsym(libc_malloc_impl_handle, symbol)); in InitMalloc()
317 error_log("%s: dlsym(\"%s\") failed", __progname, symbol); in InitMalloc()
320 snprintf(symbol, sizeof(symbol), "%s_realloc", prefix); in InitMalloc()
321 table->realloc = reinterpret_cast<MallocDebugRealloc>(dlsym(libc_malloc_impl_handle, symbol)); in InitMalloc()
323 error_log("%s: dlsym(\"%s\") failed", __progname, symbol); in InitMalloc()
326 snprintf(symbol, sizeof(symbol), "%s_memalign", prefix); in InitMalloc()
327 table->memalign = reinterpret_cast<MallocDebugMemalign>(dlsym(libc_malloc_impl_handle, symbol)); in InitMalloc()
329 error_log("%s: dlsym(\"%s\") failed", __progname, symbol); in InitMalloc()