Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual522629-013
2-22
ALLOCATESEGMENT Procedure
(Superseded by SEGMENT_ALLOCATE_
Syntax for TAL Programmers
Parameters
status returned value
INT
indicates the outcome of the call:
0 No error
1-999 File-system error related to the creation or open of the swap file (see
file-name parameter).
-1 Illegal
segment-id .
-2 Illegal
segment-size.
-3 Bounds violation on
file-name.
-4 Illegal combination of options.
-5 Unable to allocate segment space.
-6 Unable to allocate segment page table space.
-7 Security violation on attempt to share segment.
-8 The
pin parameter does not exist.
-9 The
pin parameter does not have the segment allocated.
-10 Trying to share segment with self.
-11 Requested segment is currently being resized (delay and try again), or the
requested segment is a shared selectable segment but the allocated
segment is a flat segment.
segment-id input
INT:value
is the number by which the process chooses to refer to the segment. Segment IDs
are in the following ranges:
0-1023 Can be specified by user processes.
Other IDs Are reserved for HP software.
No nonprivileged process can supply a segment ID greater than 2047.
status := ALLOCATESEGMENT ( segment-id ! i
,[ segment-size ] ! i
,[ file-name ] ! i,o
,[ pin-and-flags ] ); ! i