Firmwares/fpga_spn/bsp/libwrap/sys/_exit.c
Johannes Wirth 6bfe684e73 Create separate xspn-fpga FW
Add xspn data for different accelerators
2021-03-04 11:19:35 +01:00

18 lines
361 B
C

/* See LICENSE of license details. */
#include <unistd.h>
#include "platform.h"
#include "weak_under_alias.h"
void __wrap_exit(int code)
{
const char message[] = "\nProgam has exited with code:";
write(STDERR_FILENO, message, sizeof(message) - 1);
write_hex(STDERR_FILENO, code);
write(STDERR_FILENO, "\n", 1);
for (;;);
}
weak_under_alias(exit);