Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (R-Z)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
8-12
RESIZESEGMENT
Alters the size of an existing extended data segment (such as a segment created by
ALLOCATESEGMENT), allowing nonprivileged users to conserve processor address
space.
error := RESIZEPOOL ( pool-head ,new-pool-size );
error, INT returned value
0 Successful call; the size of the specified pool had been changed to new-pool-size.
12 The call would shrink the pool too much, leaving less area than that reserved by
GETPOOL; the reserved blocks must be returned by a PUTPOOL.
21 An invalid new-pool-size was specified.
22 One of the parameters specifies an address that is out of bounds.
29 A required parameter was not supplied.
59 The pool is invalid and cannot be resized.
pool-head, INT .EXT:ref:19 input, output
new-pool-size, INT(32):value input
= (CCE) The pool was resized successfully; error contains 0.
> (CCG) An error occurred; error contains the error value.
error := RESIZESEGMENT ( segment-ID
,new-segment-size );
error, INT returned value
-2 Unable to allocate segment space.
-1 Unable to allocate page table space.
0 Successful call; the size of the specified extended segment has been changed to new-
segment-size.
2 The seg-id parameter specified a nonexistent extended segment or the extended
segment is of a type that may not be resized (see Considerations).
12 The extended segment is a shared segment and cannot be reduced, or the segment is
currently being resized.