HP C/iX Library Reference Manual (30026-90004)
Chapter 5 101
HP C/iX Library Function Descriptions
abort
abort
Terminates a program abnormally.
Syntax
#include <stdlib.h>
void abort (void);
Parameters
None.
Return Values
None.
Description
The abort function causes abnormal program termination to occur unless the signal
SIGABRT is being caught and the signal handler does not return.
The abort function closes all open files if possible and then terminates the process.
Temporary files under MPE/iX are not saved.
Process termination is achieved by calling the system intrinsic QUIT. This intrinsic
transmits an abort message to the list device of the calling process and sets the job control
word (JCW) to indicate that the program terminated in an error state. The C language job
control word (CJCW) is also set to a non zero value to indicate the error condition.
See Also
exit(), raise(), signal(), ANSI C 4.10.4.1, POSIX.1 8.2.3.12, MPE/iX Intrinsics
Reference Manual