Guardian Procedure Calls Reference Manual

POOL_PUTSPACE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Example
Related Programming Manual
Summary
The POOL_PUTSPACE_ procedure returns a block of memory to a buffer pool.
Syntax for C Programmers
#include <cextdecs(POOL_PUTSPACE_)>
short POOL_PUTSPACE_ ( short *pool
,short *block );
Syntax for TAL Programmers
error := POOL_PUTSPACE_ ( pool ! i
,block ); ! i
Parameters
pool
input
INT .EXT:ref:*
is the address of the pool as specified in the call to the POOL_DEFINE_ procedure. When
POOL_PUTSPACE_ is called, the pool header is updated.
block
input
INT .EXT:ref:*
is the address of the block to be returned to the pool.
Returned Value
INT
Outcome of the call:
No error.0
Required parameter missing.2
Bounds error: block is not within the pool boundaries.4
Corrupt pool header.9
Corrupt allocated block: Data is probably written beyond the allocated block or the block has already been
returned.
11
POOL_PUTSPACE_ Procedure 949