We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c1c946 + 54e30ed commit 56aa0feCopy full SHA for 56aa0fe
components/libc/compilers/common/stdlib.c
@@ -10,19 +10,26 @@
10
11
#include <rtthread.h>
12
13
+#define DBG_TAG "stdlib"
14
+#define DBG_LVL DBG_INFO
15
+#include <rtdbg.h>
16
+
17
void __rt_libc_exit(int status)
18
{
19
rt_thread_t self = rt_thread_self();
20
21
if (self != RT_NULL)
22
- rt_kprintf("thread:%s exit:%d!\n", self->name, status);
23
+ LOG_E("thread:%s exit:%d!", self->name, status);
24
rt_thread_control(self, RT_THREAD_CTRL_CLOSE, RT_NULL);
25
}
26
27
28
int __rt_libc_system(const char *string)
29
- /* TODO */
30
+#ifdef RT_USING_MSH
31
+ extern int msh_exec(char *cmd, rt_size_t length);
32
+ msh_exec((char*)string, rt_strlen(string));
33
+#endif
34
return 0;
35
0 commit comments