Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual522629-013
16-40
XBNDSTEST Procedure
(Superseded by REFPARAM_BOUNDSCHECK_
XBNDSTEST Procedure
(Superseded by REFPARAM_BOUNDSCHECK_
Procedure )
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Summary
XBNDSTEST aids user programs in checking stack limits and/or parameter addresses.
(LASTADDRX provides a similar function.) XBNDSTEST uses constants obtained
from another procedure, XSTACKTEST, to check a specified address and its length for
potential bounds violations.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
status returned value
INT
returns one of the following values:
1 In bounds, but in a read-only segment or (on native systems only) in the
system library
0 In bounds and writable
Note. This procedure cannot be called by native processes. Although this procedure is
supported for TNS processes, it should not be used for new development.
#include <cextdecs(XBNDSTEST)>
short XBNDSTEST ( char *param
,short bytelen
,short flags
,long long constants );
status := XBNDSTEST ( param ! i
,bytelen ! i
,flags ! i
,constants ); ! i