2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 #include "__arosc_privdata.h"
10 #include <aros/debug.h>
11 #include <aros/startup.h>
12 #include <exec/types.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_jmp2exit(1, code
);