mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-11-03 20:48:08 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			559 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			559 B
		
	
	
	
		
			C
		
	
	
	
	
	
/**
 | 
						|
 * @file tlib/injected/stdfunc.c
 | 
						|
 *
 | 
						|
 * @copyright 2014-2015 Bill Zissimopoulos
 | 
						|
 */
 | 
						|
 | 
						|
#include <tlib/injected/stdfunc.h>
 | 
						|
#define TLIB_INJECTIONS_ENABLED
 | 
						|
#include <tlib/injection.h>
 | 
						|
 | 
						|
#undef calloc
 | 
						|
#undef malloc
 | 
						|
#undef realloc
 | 
						|
 | 
						|
void *tlib_calloc(size_t count, size_t size)
 | 
						|
{
 | 
						|
    TLIB_INJECT("calloc", return 0);
 | 
						|
    return calloc(count, size);
 | 
						|
}
 | 
						|
void *tlib_malloc(size_t size)
 | 
						|
{
 | 
						|
    TLIB_INJECT("malloc", return 0);
 | 
						|
    return malloc(size);
 | 
						|
}
 | 
						|
void *tlib_realloc(void *ptr, size_t size)
 | 
						|
{
 | 
						|
    TLIB_INJECT("realloc", return 0);
 | 
						|
    return realloc(ptr, size);
 | 
						|
}
 |