NAME
abort() — generate a software abort fault
SYNOPSIS
#include <stdlib.h>
void abort(void);
DESCRIPTION
abort()
first closes all open files, streams,
directory streams, and message catalogue descriptors,
if possible, then causes the signal
SIGABRT
to be sent to the calling process.
This may cause a core dump to be generated (see
signal(2)).
If the signal
SIGABRT
is caught, the handling function is executed.
If the handling function returns, the action for
SIGABRT
is then reset to
SIG_DFL,
and the signal
SIGABRT
is sent again to the process to ensure that it terminates.
RETURN VALUE
abort()
does not return.
ERRORS
No errors are defined.
APPLICATION USAGE
SIGABRT
is not intended to be caught.
DIAGNOSTICS
If
SIGABRT
is neither caught nor ignored,
and the current directory is writable,
a core dump is produced and the message
abort - core dumped
is written by the shell.
STANDARDS CONFORMANCE
abort(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C