File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
components/libc/compilers/common Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1515/*@{*/
1616
1717#include <stdlib.h>
18+ #include <stdint.h>
1819#include <ctype.h>
1920#include <stdint.h>
2021#include <rtthread.h>
Original file line number Diff line number Diff line change 1010
1111#include <rtthread.h>
1212
13+ #define DBG_TAG "stdlib"
14+ #define DBG_LVL DBG_INFO
15+ #include <rtdbg.h>
16+
1317void __rt_libc_exit (int status )
1418{
1519 rt_thread_t self = rt_thread_self ();
1620
1721 if (self != RT_NULL )
1822 {
19- rt_kprintf ("thread:%s exit:%d!\n " , self -> name , status );
23+ LOG_E ("thread:%s exit:%d!" , self -> name , status );
2024 rt_thread_control (self , RT_THREAD_CTRL_CLOSE , RT_NULL );
2125 }
2226}
2327
2428int __rt_libc_system (const char * string )
2529{
26- /* 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
2734 return 0 ;
2835}
You can’t perform that action at this time.
0 commit comments