exit.c 344 B

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