ABORT(S) UNIX System V ABORT(S)
Name
abort - generate an abort fault
Syntax
int abort ( )
Description
The abort function does the work of 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.
The abort function returns the value of the kill(S) system
call.
See Also
sdb(CP), exit(S), kill(S), 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:
AT&T SVID Issue 2, Select Code 307-127;
The X/Open Portability Guide II of January 1987;
ANSI X3.159-198X C Language Draft Standard, May 13,
1988;
IEEE POSIX Std 1003.1-1988 with C Standard Language-
Dependent System Support;
and NIST FIPS 151-1.
(printed 6/20/89)