Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual522629-013
3-179
CURRENTSPACE Procedure (Superseded)
CURRENTSPACE Procedure (Superseded)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Related Programming Manual
Summary
The CURRENTSPACE procedure returns the ENV register (as saved in the stack
marker) and a string (in ASCII) containing the space ID of the caller.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
stack-env returned value
INT
is the calling procedure’s space ID in the stack-marker ENV register format.
ENV.<4> ! library bit
ENV.<7> ! system code bit
ENV.<11:15> ! space ID bits
For more information about space identifiers and the details of these bits, refer to
the
System Description Manual appropriate for your system.
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(CURRENTSPACE)>
short CURRENTSPACE ( [ char *ascii-space-id ] );
stack-env := CURRENTSPACE [ ( ascii-space-id ) ]; ! o