Searched defs:SIZEOF_POOLBLOCK (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/lib/
H A Dmempool-allocfree.c32 #define SIZEOF_POOLBLOCK (MEM_ALIGN(sizeof(struct pool_block))) macro
144 block->block = PTR_OFFSET(block,SIZEOF_POOLBLOCK);
153 struct pool_block *block = PTR_OFFSET(mem, -SIZEOF_POOLBLOCK);
174 if (unlikely(size == 0 || size > SSIZE_T_MAX - SIZEOF_POOLBLOCK))
177 struct pool_block *block = calloc(1, SIZEOF_POOLBLOCK + size);
180 SIZEOF_POOLBLOCK + size);
193 safe_memset(block, 0, SIZEOF_POOLBLOCK+block->size);
204 if (unlikely(new_size == 0 || new_size > SSIZE_T_MAX - SIZEOF_POOLBLOCK))
211 if ((new_mem = realloc(block, SIZEOF_POOLBLOCK+new_size)) == NULL)
213 SIZEOF_POOLBLOCK
[all...]
H A Dmempool-alloconly.c37 #define SIZEOF_POOLBLOCK (MEM_ALIGN(sizeof(struct pool_block))) macro
40 ((unsigned char *) (block) + SIZEOF_POOLBLOCK)
123 size_t min_alloc = SIZEOF_POOLBLOCK +
182 safe_memset(block, CLEAR_CHR, SIZEOF_POOLBLOCK + apool->block->size);
186 SIZEOF_POOLBLOCK + apool->block->size);
229 i_assert(size > SIZEOF_POOLBLOCK);
262 block->size = size - SIZEOF_POOLBLOCK;
283 block_alloc(apool, alloc_size + SIZEOF_POOLBLOCK);
379 safe_memset(block, CLEAR_CHR, SIZEOF_POOLBLOCK + block->size);
383 SIZEOF_POOLBLOCK
[all...]

Completed in 11 milliseconds