Guardian Programming Reference Summary for C
Functions Summary (O-Q)
Guardian Programming Reference Summary for C—522630-001
7-9
POOL_GETINFO_
Returns information about the specified pool.
return value:
POOL_GETSPACE_
Obtains a block of memory from a buffer pool.
4 = Invalid size. The pool-size parameter is too small to allocate the minimum
size pool including the pool header.
5 = Alignment error on pool. The pool parameter is not in alignment with the
selected alignment.
6 = Invalid alignment. The value of alignment is not 0, 4, 8, or 16.
#include <cextdecs(POOL_GETINFO_)>
short POOL_GETINFO_ ( short *pool
,[ short *error-detail ] /* i */
,[ long *avail-pool-size ] /* o */
,[ long *curalloc ] /* o */
,[ long *maxalloc ] /* o */
,[ long *fail-block-size ] /* o */
,[ short *curfrag ] /* o */
,[ short *maxfrag ] /* o */
,[ short *alignment ] /* o */
,[ short *tag-size] ); /* o */
0=No error.
2 = Required parameter missing. The error-detail parameter contains the
number of the first parameter found to be in error, where 1 designates the first
parameter on the left.
3 = Bounds error. The error-detail parameter contains the number of the first
parameter found to be in error, where 1 designates the first parameter on the left.
9 = Corrupt pool header.
#include <cextdecs(POOL_GETSPACE_)>
long POOL_GETSPACE_ ( short *pool /* i */
,long block-size /* i */
,short *error ); /* o */