abort(S)
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),
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)
streams are flushed prior to the signal
being sent, and a core dump results.
See also
exit(S),
sigaction(S),
signal(M),
signal(S)
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
.
© 2003 System Services (S)
SCO OpenServer Release 5.0.7 -- 11 February 2003