ABORT(3C) SysV ABORT(3C)
NAME
abort - generate an IOT fault
SYNOPSIS
#include <stdlib.h>
void abort(void)
DESCRIPTION
abort does the work of exit(2) but, instead of just exiting, abort causes
SIGABRT to be sent to the calling process. If SIGABRT is neither caught
nor ignored, all stdio(3S) streams are flushed prior to the signal being
sent, resulting in a process dump to the file
`node_data/system_logs/proc_dump. Use tb(1) to examine the process dump.
SEE ALSO
cc(1), tb(1), exit(2), kill(2), signal(2), raise(3C).
DIAGNOSTICS
abort does not return. Use raise(SIGABRT) to signal unsuccessful
termination to the calling program.
NOTES
To be compatible with common C usage, make abort return an int by
compiling your program with the
-A nansi
option (see cc(1)) and inserting the directive
#define _CLASSIC_TYPES
before any #include directives in your program. In this case, abort
returns the value of the kill(2) system call.