abort(S-osr5)
abort --
generate an abort fault
Syntax
cc . . . -lc
#include <stdlib.h>
void abort ()
Description
The abort function
closes all open files, streams, and directory streams.
This is the same as
exit(S-osr5),
but instead of just exiting, abort
causes SIGABRT to be sent to the calling process.
If SIGABRT
is neither caught nor ignored, all
stdio(S-osr5)
streams are flushed prior to the signal
being sent, and a core dump results.
See also
exit(S-osr5),
sigaction(S-osr5),
signal(M),
signal(S-osr5)
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 is conformant with:
X/Open Portability Guide, Issue 3, 1989
;
ANSI X3.159-1989 Programming Language -- C
;
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1)
;
and
NIST FIPS 151-1
.
© 2005 System Services (S-osr5)
SCO OpenServer Release 6.0.0 -- 02 June 2005