1/*
2 * Copyright 2004, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include <stdlib.h>
8#include <unistd.h>
9#include <syscalls.h>
10
11
12extern void _IO_cleanup(void);
13
14void
15_exit(int status)
16{
17	// close all open files
18	_IO_cleanup();
19
20	// exit with status code
21	_kern_exit_team(status);
22}
23
24
25void
26_Exit(int status)
27{
28	_exit(status);
29}