[posix][libc] 优化libc中posix结构

This commit is contained in:
Meco Man
2021-10-26 00:51:32 -04:00
parent 50bb6e33d1
commit a9910a780e
36 changed files with 361 additions and 704 deletions

View File

@@ -10,16 +10,15 @@
#ifndef __RTT_LIBC_H__
#define __RTT_LIBC_H__
#ifndef _EXFUN
#define _EXFUN(name, proto) name proto
#endif
#ifdef __cplusplus
extern "C" {
#endif
int libc_system_init(void);
#ifdef RT_LIBC_USING_FILEIO
int libc_stdio_get_console(void);
int libc_stdio_set_console(const char* device_name, int mode);
#endif /* RT_LIBC_USING_FILEIO */
#ifdef __cplusplus
}