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
This commit is contained in:
@@ -56,6 +56,7 @@ extern void abort(void);
|
|||||||
extern int atexit(void (*func)(void));
|
extern int atexit(void (*func)(void));
|
||||||
extern int atfork(void (*func)(void));
|
extern int atfork(void (*func)(void));
|
||||||
extern void exit(int);
|
extern void exit(int);
|
||||||
|
extern void _Exit(int);
|
||||||
|
|
||||||
/* misc functions */
|
/* misc functions */
|
||||||
extern char *realpath(const char *path, char *resolved);
|
extern char *realpath(const char *path, char *resolved);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
|
||||||
@@ -20,3 +21,9 @@ _exit(int status)
|
|||||||
_kern_exit_team(status);
|
_kern_exit_team(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
_Exit(int status)
|
||||||
|
{
|
||||||
|
_exit(status);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user