mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
92. [cleanup] <isc/mem.h> does not need <stddef.h>, <isc/boolean.h>,
or <isc/result.h>.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
92. [cleanup] <isc/mem.h> does not need <stddef.h>, <isc/boolean.h>,
|
||||||
|
or <isc/result.h>.
|
||||||
|
|
||||||
91. [cleanup] <isc/log.h> does not need <sys/types.h> or
|
91. [cleanup] <isc/log.h> does not need <sys/types.h> or
|
||||||
<isc/result.h>.
|
<isc/result.h>.
|
||||||
|
|
||||||
|
@@ -19,12 +19,9 @@
|
|||||||
#define ISC_MEM_H 1
|
#define ISC_MEM_H 1
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#include <isc/boolean.h>
|
|
||||||
#include <isc/lang.h>
|
#include <isc/lang.h>
|
||||||
#include <isc/mutex.h>
|
#include <isc/mutex.h>
|
||||||
#include <isc/result.h>
|
|
||||||
#include <isc/types.h>
|
#include <isc/types.h>
|
||||||
|
|
||||||
ISC_LANG_BEGINDECLS
|
ISC_LANG_BEGINDECLS
|
||||||
@@ -217,29 +214,32 @@ isc_mempool_associatelock(isc_mempool_t *mpctx, isc_mutex_t *lock);
|
|||||||
* mpctx is a valid memory pool
|
* mpctx is a valid memory pool
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned int isc_mempool_getfreemax(isc_mempool_t *mpctx);
|
unsigned int
|
||||||
|
isc_mempool_getfreemax(isc_mempool_t *mpctx);
|
||||||
/*
|
/*
|
||||||
* Returns the maximum allowed size of the free list.
|
* Returns the maximum allowed size of the free list.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void isc_mempool_setfreemax(isc_mempool_t *mpctx,
|
void
|
||||||
unsigned int limit);
|
isc_mempool_setfreemax(isc_mempool_t *mpctx, unsigned int limit);
|
||||||
/*
|
/*
|
||||||
* Sets the maximum allowed size of the free list.
|
* Sets the maximum allowed size of the free list.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned int isc_mempool_getfreecount(isc_mempool_t *mpctx);
|
unsigned int
|
||||||
|
isc_mempool_getfreecount(isc_mempool_t *mpctx);
|
||||||
/*
|
/*
|
||||||
* Returns current size of the free list.
|
* Returns current size of the free list.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned int isc_mempool_getmaxalloc(isc_mempool_t *mpctx);
|
unsigned int
|
||||||
|
isc_mempool_getmaxalloc(isc_mempool_t *mpctx);
|
||||||
/*
|
/*
|
||||||
* Returns the maximum allowed number of allocations.
|
* Returns the maximum allowed number of allocations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void isc_mempool_setmaxalloc(isc_mempool_t *mpctx,
|
void
|
||||||
unsigned int limit);
|
isc_mempool_setmaxalloc(isc_mempool_t *mpctx, unsigned int limit);
|
||||||
/*
|
/*
|
||||||
* Sets the maximum allowed number of allocations.
|
* Sets the maximum allowed number of allocations.
|
||||||
*
|
*
|
||||||
@@ -247,19 +247,21 @@ void isc_mempool_setmaxalloc(isc_mempool_t *mpctx,
|
|||||||
* limit > 0
|
* limit > 0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned int isc_mempool_getallocated(isc_mempool_t *mpctx);
|
unsigned int
|
||||||
|
isc_mempool_getallocated(isc_mempool_t *mpctx);
|
||||||
/*
|
/*
|
||||||
* Returns the number of items allocated from this pool.
|
* Returns the number of items allocated from this pool.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned int isc_mempool_getfillcount(isc_mempool_t *mpctx);
|
unsigned int
|
||||||
|
isc_mempool_getfillcount(isc_mempool_t *mpctx);
|
||||||
/*
|
/*
|
||||||
* Returns the number of items allocated as a block from the parent memory
|
* Returns the number of items allocated as a block from the parent memory
|
||||||
* context when the free list is empty.
|
* context when the free list is empty.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void isc_mempool_setfillcount(isc_mempool_t *mpctx,
|
void
|
||||||
unsigned int limit);
|
isc_mempool_setfillcount(isc_mempool_t *mpctx, unsigned int limit);
|
||||||
/*
|
/*
|
||||||
* Sets the fillcount.
|
* Sets the fillcount.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user