mempool-system.c revision 88775e21bdd872dcea6e61910be4eca8d5e68b09
/* Copyright (c) 2002-2007 Dovecot authors, see the included COPYING file */
/* @UNSAFE: whole file */
#include "lib.h"
#include "mempool.h"
#include <stdlib.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
#ifdef HAVE_GC_GC_H
# include <gc.h>
#endif
static struct pool_vfuncs static_system_pool_vfuncs = {
};
struct pool static_system_pool = {
};
{
return "system";
}
{
}
{
}
{
void *mem;
#ifndef USE_GC
#else
#endif
"pool_system_malloc(): Out of memory");
}
return mem;
}
void *mem ATTR_UNUSED)
{
#ifndef USE_GC
#endif
}
{
#if !defined(USE_GC) && defined(HAVE_MALLOC_USABLE_SIZE)
#endif
#ifndef USE_GC
#else
#endif
"pool_system_realloc(): Out of memory");
}
/* clear new data */
}
return mem;
}
static void ATTR_NORETURN
{
i_panic("pool_system_clear() must not be called");
}
{
return 0;
}