abort.3c (2010 09)

a
abort(3C) abort(3C)
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 pos-
sible, 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.
SEE ALSO
adb(1), exit(2), kill(2), signal(2), signal(5), thread_safety(5).
STANDARDS CONFORMANCE
abort(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)