stdlib.c 547 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-02-15 Meco Man first version
  9. */
  10. #include <rtthread.h>
  11. void __rt_libc_exit(int status)
  12. {
  13. rt_thread_t self = rt_thread_self();
  14. if (self != RT_NULL)
  15. {
  16. rt_kprintf("thread:%s exit:%d!\n", self->name, status);
  17. rt_thread_control(self, RT_THREAD_CTRL_CLOSE, RT_NULL);
  18. }
  19. }
  20. int __rt_libc_system(const char *string)
  21. {
  22. /* TODO */
  23. return 0;
  24. }