2021-02-17 00:02:28 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2021-02-17 00:02:28 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-02-15 Meco Man first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2021-02-17 23:50:12 +08:00
|
|
|
void __rt_libc_exit(int status)
|
2021-02-17 00:02:28 +08:00
|
|
|
{
|
|
|
|
rt_thread_t self = rt_thread_self();
|
|
|
|
|
|
|
|
if (self != RT_NULL)
|
|
|
|
{
|
2021-02-20 11:31:58 +08:00
|
|
|
rt_kprintf("thread:%s exit:%d!\n", self->name, status);
|
2021-02-24 16:29:43 +08:00
|
|
|
rt_thread_control(self, RT_THREAD_CTRL_CLOSE, RT_NULL);
|
2021-02-17 00:02:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-17 23:50:12 +08:00
|
|
|
int __rt_libc_system(const char *string)
|
2021-02-17 00:02:28 +08:00
|
|
|
{
|
|
|
|
/* TODO */
|
|
|
|
return 0;
|
|
|
|
}
|