Guardian Procedure Calls Reference Manual (G06.25+)

Completion Codes
Guardian Procedure Calls Reference Manual522629-013
C-3
The following completion codes are reserved for HP use:
Completion
Code Definition
-1
A trap was detected in a Guardian TNS process. If the system detects
the absence of a trap handler routine or encounters another trap in a
trap handler, then in addition to an abnormal termination, this
completion code is returned automatically in the process deletion
(ABEND) message. The contents of the text string vary with the state
of the process. The first nine characters are "TRAPNO=
nn" with nn
representing the trap number in decimal. Then the text identifies the
code space, including the TNS code segment index when appropriate,
and indicates whether the process was privileged. Finally, the text
displays key registers, depending upon the execution mode of the
process at the time of its termination: P or pc, L, and S for TNS or
accelerated mode; pc and sp for native mode.
Examples:
Invalid address in TNS mode:
TRAPNO=00: (UC.00) P=%000012 L=%000001 S=%000003
Arithmetic overflow (division by zero) in accelerated mode, privileged:
TRAPNO=02: (acc UC, Priv) pc=%h7042370C L=%023520
S=%023526
Limits-exceeded in native mode, privileged:
TRAPNO=05: (SCr, Priv) pc=0x808E2EDC sp=0x5FFFFF00
-2 This code is returned by the system when a process has terminated
itself but the system is unable to pass along the requested completion
code and the associated termination information due to a resource
problem in the system.
-3 This code is returned by the system when a process terminating itself
passed bad parameters to PROCESS_DELETE_, STOP, or ABEND.
In this case, some or all of the information requested in the completion
code message may not be present. Because the process is stopping
itself, it is stopped.
-4 This code is returned by the system when a processor failure caused
the name of a process to be deleted (that is, the only process running
under that name was in the processor that failed).
-5
A communications or resource failure occurred during the execution of
one of the functions in the OSS
exec or tdm_exec set of functions; or
an initialization failure of the new process occurred when it was too
late for the exec or
tdm_exec function to return an error to its caller.