Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
nativetools
/
a28327db316fcb3ecfc1dcc2ca9db725fd37c7ae
/
.
/
nativelibc
/
process
/
exit.c
blob: baf5e8b4fb96022b780031e0bebacead67f16588 [
file
] [
log
] [
blame
] [
raw
]
#include
<windows.h>
#include
<nt.h>
#include
<unistd.h>
void
_exit
(
int
status
)
{
NtTerminateProcess
((
void
*)-
1
,
status
);
// Tells compiler do not to generate ret instruction
while
(
1
);
}
void
exit
(
int
status
)
{
_exit
(
status
);
}