newlib-cygwin/libgloss/riscv/sys_exit.c

11 lines
213 B
C

#include <machine/syscall.h>
#include "internal_syscall.h"
/* Exit a program without cleaning up files. */
void
_exit(int exit_status)
{
syscall_errno (SYS_exit, 1, exit_status, 0, 0, 0, 0, 0);
while (1);
}