From 917c4aeb8db75492ad8aa0b2c62ca47c905a74fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 28 Nov 2010 05:07:53 +0000 Subject: [PATCH] ISO C and POSIX mandate _Exit() in stdlib.h to be the same as _exit(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39665 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/stdlib.h | 1 + src/system/libroot/posix/unistd/_exit.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/headers/posix/stdlib.h b/headers/posix/stdlib.h index 58b37036fa..24ebf81a1c 100644 --- a/headers/posix/stdlib.h +++ b/headers/posix/stdlib.h @@ -56,6 +56,7 @@ extern void abort(void); extern int atexit(void (*func)(void)); extern int atfork(void (*func)(void)); extern void exit(int); +extern void _Exit(int); /* misc functions */ extern char *realpath(const char *path, char *resolved); diff --git a/src/system/libroot/posix/unistd/_exit.c b/src/system/libroot/posix/unistd/_exit.c index cd22e1bb4a..f245b44182 100644 --- a/src/system/libroot/posix/unistd/_exit.c +++ b/src/system/libroot/posix/unistd/_exit.c @@ -4,6 +4,7 @@ */ +#include #include #include @@ -20,3 +21,9 @@ _exit(int status) _kern_exit_team(status); } + +void +_Exit(int status) +{ + _exit(status); +} \ No newline at end of file