2 Copyright © 2003, The AROS Development Team. All rights reserved.
5 POSIX function _exit().
8 #include "__arosc_privdata.h"
10 #include <exec/types.h>
12 #include <aros/startup.h>
14 /*****************************************************************************
25 Terminates the running program immediately. The code is returned to
26 the program which has called the running program. In contrast to
27 exit(), this function does not call user exit-handlers added with
28 atexit() or on_exit(). It does, however, close open filehandles.
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 in a threaded
43 Currently, this function *does* trigger user exit-handlers to be
51 ******************************************************************************/
53 __aros_startup_error
= code
;
55 longjmp (__aros_startup_jmp_buf
, 1);
57 # warning TODO: _exit() is not properly implemented