mempool-system.c revision 81a07ac5ff4bb89761c2cf8d3e56ae902e4648e1
/* Copyright (c) 2002-2003 Timo Sirainen */
/* @UNSAFE: whole file */
#include "lib.h"
#include "mempool.h"
#include <stdlib.h>
#ifdef HAVE_GC_GC_H
# include <gc.h>
#endif
static struct pool static_system_pool = {
};
{
return "system";
}
{
}
{
}
{
void *mem;
#ifndef USE_GC
#else
#endif
i_panic("pool_system_malloc(): Out of memory");
return mem;
}
void *mem __attr_unused__)
{
#ifndef USE_GC
#endif
}
{
#ifndef USE_GC
#else
#endif
i_panic("pool_system_realloc(): Out of memory");
/* clear new data */
}
return mem;
}
{
i_panic("pool_system_clear() must not be called");
}