2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function exit()
9 #include "__arosc_privdata.h"
11 #include <aros/debug.h>
12 #include <exec/types.h>
14 #include <aros/startup.h>
16 /*****************************************************************************
27 Terminates the running program. The code is returned to the
28 program which has called the running program.
31 code - Exit code. 0 for success, other values for failure.
34 None. This function does not return.
37 This function must not be used in a shared library or
38 in a threaded application.
60 ******************************************************************************/
62 D(bug("[arosc] exit(%d)\n", code
));
64 __arosc_startup_error
= code
;
65 longjmp (__arosc_startup_jmp_buf
, 1);