abort(3) CLIX abort(3)
NAME
abort - Generates an IOT fault
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
int abort(
void );
DESCRIPTION
The abort() function does the work of exit(); but also, abort() causes
SIGABRT to be sent to the calling process. If SIGABRT is not caught or
ignored, all stdio streams are flushed prior to the signal being sent, and
a core dump results.
EXAMPLES
/* This program stops execution when a 'Q' is typed. */
#include<stdlib.h>
main()
{
for(;;) {
if (getchar() == 'Q')
abort();
}
}
RETURN VALUES
The abort() function returns the value of the kill() function.
If SIGABRT is not caught or ignored, and the current directory is
writable, a core dump is produced and the message
abort - core dumped
is written by the shell.
RELATED INFORMATION
Commands: sdb(1)
Functions: exit(2), kill(2), signal(2)
2/94 - Intergraph Corporation 1