NAME
abort — generate
an abnormal process abort
SYNOPSIS
#include
<stdlib.h>
void abort(void);
DESCRIPTION
[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 (“POSIX.1”) 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(3) 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(3) on message catalog descriptors.
The SIGABRT signal shall be sent to the calling process as if by means of raise(3) with the argument SIGABRT.
[CX] The status made available to
wait(3) or waitpid(3) by
abort () shall be that of a process terminated by
the SIGABRT signal. The abort () function shall
override blocking or ignoring the SIGABRT signal.
RETURN VALUE
The abort () function shall not
return.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
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.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
exit(3) , kill(3) , raise(3) , signal(3) , wait(3) , waitpid(3) , the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <stdlib.h>
CHANGE HISTORY
First released in Issue 1. Derived from Issue 1 of the SVID.
Issue 6
Extensions beyond the ISO C standard are marked.
End of informative text. footer end