Restored work-around for hangs when trying to use disk-based handlers
[tangerine.git] / compiler / clib / abort.c
blobba0ef8f08430d0a775bd820ae9bf95220e7262c5
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function exit().
6 */
8 #include <exec/types.h>
9 #include <setjmp.h>
10 #include <stdio.h>
12 /*****************************************************************************
14 NAME */
15 #include <stdlib.h>
17 void abort (
19 /* SYNOPSIS */
20 void)
22 /* FUNCTION
23 Causes abnormal program termination. If there is a signal handler
24 for SIGABORT, then the handler will be called. If the handler
25 returns, then the program is continued.
27 INPUTS
28 None.
30 RESULT
31 None. This function does not return.
33 NOTES
34 This function must not be used in a shared library or
35 in a threaded application.
37 EXAMPLE
38 if (fatal_error)
39 abort ();
41 BUGS
42 Signal handling is not implemented yet.
44 SEE ALSO
45 signal(), exit()
47 INTERNALS
49 ******************************************************************************/
51 fprintf(stderr, "Aborted.\n");
52 exit(20);