ABORT(3C)
NAME
abort − generate a software abort fault
SYNOPSIS
#include <stdlib.h>
void abort();
DESCRIPTION
The abort function 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
The abort function 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.
SEE ALSO
adb(1), exit(2), kill(2), raise(2), signal(2). signal(5).
STANDARDS CONFORMANCE
abort: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1, ANSI C
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989