Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-39
SEGMENTSIZE Procedure (Superseded by
SEGMENT_GETBACKUPINFO_ Procedure )
SEGMENTSIZE Procedure (Superseded by
SEGMENT_GETBACKUPINFO_ Procedure
)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Summary
The SEGMENTSIZE procedure returns the size of the specified segment in bytes.
Syntax for C Programmers
This procedure does not have a C syntax, because it is superseded and should not be
used for new development. This procedure is supported only for compatibility with
previous software.
Syntax for TAL Programmers
Parameters
seg-size returned value
INT(32)
is the size of segment
segment-id in bytes, or -1D as an error indication if
segment-id is an invalid segment number or is a segment not accessible by the
caller.
segment-id input
INT:value
is the segment ID number of a segment accessible by the calling process. If
segment-id is an invalid segment number or is a segment not accessible by the
caller, then SEGMENTSIZE returns -1D as an error indication.
Note. This procedure is supported for compatibility with previous software and should not be
used for new development.
seg-size := SEGMENTSIZE ( segment-id ); ! i