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 <unistd.h> 8 #include <syscalls.h> 9 10 11 extern void _IO_cleanup(void); 12 13 void 14 _exit(int status) 15 { 16 // close all open files 17 _IO_cleanup(); 18 19 // exit with status code 20 _kern_exit_team(status); 21 } 22 23