| Previous | Contents | Index |
Output an error message and then abort the currently running program.
PMDF_abort_program (message, error_code)
Argument Data type Access Mechanism message descriptor read reference error_code signed longword read value
PMDFabortProgram
(message, message_len, error_code)
void PMDFabortProgram(char *message, int message_len, int error_code)
message
A text string to output as an error message. The length of this string should not exceedSHORTALFA_SIZEbytes. Any string exceeding this length will be truncated toSHORTALFA_SIZEbytes.message_len
Length in bytes of message.error_code
An integer error code to output as part of the error message. If error_code is 0, it will not be output.
PMDFabortProgamoutputs as an error message the supplied text string messsage and, if non-zero, error_code. After the error message is output, a halt instruction is issued thereby aborting the currently running program. Generally, this routine should only be called when an unrecoverable error has been detected. Before callingPMDFabortProgram, any active message enqueue or dequeue contexts should be aborted withPMDFabortMessageorPMDFdequeueMessagEnd. Note that this routine can be called even whenPMDFinitializehas failed. On OpenVMS systems, the error message is written to PMDF_OUTPUT if defined and SYS$OUTPUT otherwise. On UNIX systems, the error message is written tostdout. Example output generated on an OpenVMS system in response to the call
is shown below:
PMDFabortProgram("Fatal error in BITBUCKET channel", 8922);
04-MAY-2012 18:04:00: Fatal error in BITBUCKET channel, status = 8922. %PAS-F-HALT, HALT procedure called %TRACE-F-TRACEBACK, symbolic stack dump follows module name routine name line rel PC abs PC 00094E6B 00094E6B MMMOD MM_ABORT_PROGRAM_INT 13141 00000082 00036642 PMDF_API PMDF_ABORT_PROGRAM 5107 00000064 00009BF8 BITBUCKET ROUND_FILE 214 00000031 00007051
| Previous | Next | Contents | Index |