Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-12
POOL_DEFINE_ Procedure
POOL_DEFINE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The POOL_DEFINE_ procedure designates a portion of a user’s stack or an extended
data segment for use as a pool.
Syntax for C Programmers
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the
typedef __int32_t which for TNS and TNS/R compiles is defined as long and for
TNS/E compiles is defined as
int.
Syntax for TAL Programmers
Parameters
error returned value
INT
indicates the outcome of the call:
0 No error.
2 Required parameter missing. Pool and pool-size must be specified or a
non-privileged caller specified a non-zero value for priv-only.
#include <cextdecs(POOL_DEFINE_)>
short POOL_DEFINE_ ( short *pool
,__int32_t pool-size
,[ short alignment ]
,[ short priv-only ] );
error := POOL_DEFINE_ ( pool ! i
,pool-size ! i
,[ alignment ] ! i
,[ priv-only ] ); ! i