abort - generate an abnormal process abort
[CX] The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 defers to the ISO C standard.
The abort() function shall cause abnormal process termination to occur, unless the signal SIGABRT is being caught and the signal handler does not return.
[CX] The abnormal termination processing shall include at least the effect of fclose() on all open streams and the default actions defined for SIGABRT.
[XSI] On XSI-conformant systems, in addition the abnormal termination processing shall include the effect of fclose() on message catalog descriptors.
The SIGABRT signal shall be sent to the calling process as if by means of raise() with the argument SIGABRT.
[CX] The status made available to wait() or waitpid() by abort() shall be that of a process terminated by the SIGABRT signal. The abort() function shall override blocking or ignoring the SIGABRT signal.
The abort() function shall not return.
No errors are defined.
Catching the signal is intended to provide the application writer with a portable means to abort processing, free from possible interference from any implementation-defined functions.
exit() , kill() , raise() , signal() , wait() , waitpid() , the Base Definitions volume of IEEE Std 1003.1-2001, <stdlib.h>
First released in Issue 1. Derived from Issue 1 of the SVID.
Extensions beyond the ISO C standard are marked.