ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

rosmem.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.