Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (R)
Guardian Procedure Calls Reference Manual—522629-013
13-69
RESIZESEGMENT Procedure
RESIZESEGMENT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Considerations for Privileged Callers
Example
Related Programming Manual
Summary
RESIZESEGMENT alters the size of an existing extended data segment (for example,
a segment created by SEGMENT_ALLOCATE_ ).
Syntax for C Programmers
•
CEXTDECS (via 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
returns a file-system error code indicating the outcome of the call, one of:
-2 Unable to allocate page table space (not returned for unaliased segments).
-1 Unable to allocate segment space.
0 Successful call; the size of the specified extended data segment has been
changed to
new-segment-size.
2
seg-id specified a nonexistent extended data segment, or the segment is of
a type that cannot be resized (see ā€œConsiderationsā€).
#include <cextdecs(RESIZESEGMENT)>
short RESIZESEGMENT ( short segment-id
,__int32_t new-segment-size );
error := RESIZESEGMENT ( segment-id ! i
,new-segment-size ); ! i