mempool-unsafe-datastack.c revision 183bea41fa640dc8117f3eb45ff935cd81377a84
/* Copyright (c) 2002-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mempool.h"
#include <stdlib.h>
static struct pool_vfuncs static_unsafe_data_stack_pool_vfuncs = {
};
static struct pool static_unsafe_data_stack_pool = {
.alloconly_pool = TRUE,
};
{
return "unsafe data stack";
}
{
}
{
}
{
}
void *mem ATTR_UNUSED)
{
}
void *mem,
{
void *new_mem;
/* @UNSAFE */
return mem;
}
return mem;
}
{
}
static size_t
{
return t_get_bytes_available();
}