Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenrosmem.c
Go to the documentation of this file.
00001 #include "lwip/opt.h" 00002 00003 #include "lwip/def.h" 00004 #include "lwip/mem.h" 00005 00006 #ifndef LWIP_TAG 00007 #define LWIP_TAG 'PIwl' 00008 #endif 00009 00010 void * 00011 malloc(mem_size_t size) 00012 { 00013 return ExAllocatePoolWithTag(NonPagedPool, size, LWIP_TAG); 00014 } 00015 00016 void * 00017 calloc(mem_size_t count, mem_size_t size) 00018 { 00019 void *mem = malloc(count * size); 00020 00021 if (!mem) return NULL; 00022 00023 RtlZeroMemory(mem, count * size); 00024 00025 return mem; 00026 } 00027 00028 void 00029 free(void *mem) 00030 { 00031 ExFreePoolWithTag(mem, LWIP_TAG); 00032 } 00033 00034 void * 00035 realloc(void *mem, size_t size) 00036 { 00037 free(mem); 00038 return malloc(size); 00039 } Generated on Sat May 26 2012 04:35:02 for ReactOS by
1.7.6.1
|