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