summaryrefslogtreecommitdiff
path: root/components/libc/newlib/libc.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-02-25 21:23:24 +0800
committerGitHub <[email protected]>2018-02-25 21:23:24 +0800
commit0522343b927d8a20f890ec0454df59839df7dd15 (patch)
treed661f3852e2da08cd1349ade95b9b20149dd34f4 /components/libc/newlib/libc.c
parent1a158e7e8a62003dd8c578a5b447c8fc487c36fc (diff)
parent63b05a8c73dfb1d842a31fbeb2688941ddde704a (diff)
Merge pull request #1233 from RT-Thread/origin/stable-v2.1.xstable-v2.1.x
fix the fopen issue.
Diffstat (limited to 'components/libc/newlib/libc.c')
-rw-r--r--components/libc/newlib/libc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c
index 8f97e1c8b4..96711784c2 100644
--- a/components/libc/newlib/libc.c
+++ b/components/libc/newlib/libc.c
@@ -21,7 +21,6 @@
int libc_system_init(void)
{
#ifdef RT_USING_DFS
- int fd;
struct rt_device *console_dev;
#ifndef RT_USING_DFS_DEVFS
@@ -33,14 +32,6 @@ int libc_system_init(void)
{
/* initialize console device */
rt_console_init(console_dev->parent.name);
-
- /* open console as stdin/stdout/stderr */
- fd = open("/dev/console", O_RDONLY, 0); /* for stdin */
- fd = open("/dev/console", O_WRONLY, 0); /* for stdout */
- fd = open("/dev/console", O_WRONLY, 0); /* for stderr */
-
- /* skip warning */
- fd = fd;
}
#endif