headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / posix / unistd / _exit.c
blobf245b441821106d8ffc8724de7690e961d78d9b8
1 /*
2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <syscalls.h>
12 extern void _IO_cleanup(void);
14 void
15 _exit(int status)
17 // close all open files
18 _IO_cleanup();
20 // exit with status code
21 _kern_exit_team(status);
25 void
26 _Exit(int status)
28 _exit(status);