Guardian Programming Reference Summary for C

Functions Summary (R-Z)
Guardian Programming Reference Summary for C522630-001
8-10
RESIZEPOOL
(superseded by POOL_CHECK_, POOL_DEFINE_, POOL_GETINFO_,
POOL_GETSPACE_, POOL_PUTSPACE_, and POOL_RESIZE_) Changes the size of
a pool that was initialized by the DEFINEPOOL procedure.
returned value:
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.
_status_lt (<returned_value>) An error occurred (call FILEINFO).
_status_eq (<returned_value>) RESETSYNC is successful.
_status_gt (<returned_value>) The file is not a disk file.
#include <cextdecs(RESIZEPOOL)>
short RESIZEPOOL ( short *pool-head /* i,o */
,long new-pool-size ); /* i */
_status_eq (<returned_value>) The pool was resized successfully; error
contains 0.
_status_gt (<returned_value>) An error occurred; error contains the error
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.
#include <cextdecs(RESIZESEGMENT)>
short RESIZESEGMENT ( short segment-id /* i */
,long new-segment-size ); /* i */