mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-22 00:03:02 +08:00
[posix][libc] 优化libc中posix结构
This commit is contained in:
@@ -7,17 +7,17 @@
|
||||
* Date Author Notes
|
||||
* 2017/10/15 bernard implement stdio for IAR dlib.
|
||||
*/
|
||||
#include <rtthread.h>
|
||||
|
||||
#ifdef RT_USING_POSIX
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include "libc.h"
|
||||
|
||||
#if defined(RT_USING_DFS) && defined(RT_USING_DFS_DEVFS)
|
||||
#include <dfs_posix.h>
|
||||
|
||||
#define STDIO_DEVICE_NAME_MAX 32
|
||||
|
||||
static int std_fd = -1;
|
||||
@@ -46,4 +46,4 @@ int libc_stdio_get_console(void) {
|
||||
return std_fd;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* RT_USING_POSIX */
|
||||
|
Reference in New Issue
Block a user