/*
* Copyright (C) 2013, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/*! \file */
#include <config.h>
#include <string.h>
/***
*** Types.
***/
struct isc_pool {
unsigned int count;
void * initarg;
void ** pool;
};
/***
*** Functions.
***/
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
}
isc_pool_t **poolp)
{
unsigned int i;
/* Allocate the pool structure */
if (result != ISC_R_SUCCESS)
return (result);
/* Populate the pool */
for (i = 0; i < count; i++) {
if (result != ISC_R_SUCCESS) {
return (result);
}
}
return (ISC_R_SUCCESS);
}
void *
isc_uint32_t i;
isc_random_get(&i);
}
int
}
{
unsigned int i;
/* Allocate a new pool structure */
if (result != ISC_R_SUCCESS)
return (result);
/* Copy over the objects from the old pool */
}
/* Populate the new entries */
if (result != ISC_R_SUCCESS) {
return (result);
}
}
}
return (ISC_R_SUCCESS);
}
void
unsigned int i;
}
}