Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
nativetools
/
787794a1d2aed9f09c6c03a0af42d7403a70fcc3
/
.
/
nativelibc
/
process
/
exit.c
blob: 936867ab36ac05c479e797356015fd72e179365e [
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
);
}