1
0

syscalls.c 370 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-02-13 Meco Man implement exit() and abort()
  9. */
  10. #include <rtthread.h>
  11. #include <posix/stdlib.h>
  12. /* for exit() and abort() */
  13. void __exit (int status)
  14. {
  15. __rt_libc_exit(status);
  16. while(1);
  17. }