Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/sys_exit.c
2023-03-06 14:48:14 +01:00

10 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);
}