Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (R)
Guardian Procedure Calls Reference Manual522629-013
13-73
RESIZESEGMENT Procedure
Considerations for Privileged Callers
Following a call to RESIZESEGMENT, any underlying absolute segments allocated
to the specified extended data segment might change if the resize causes the
segment to be extended. Privileged users must not use absolute addresses to
reference locations in any extended data segment that could be resized.
Resident cache segments (segment IDs in the range of 2817 through 3071) are
not checked for message system buffers. Resident cache segments should only
be allocated by the disk process.
Example
INT ERROR;
ERROR := SEGMENT_ALLOCATE_ ( 0, 2048D ): ! 1 page extended
! segment
.
.
.
! extend segment to 65 pages
IF ( ERROR := RESIZESEGMENT( 0, 65D * 2048D ) ) THEN...
! an error occurred, ERROR has the error code
Related Programming Manual
For programming information about the RESIZESEGMENT procedure, see the
Guardian Programmer’s Guide.