summaryrefslogtreecommitdiff
path: root/components/libc/compilers/armlibc
diff options
context:
space:
mode:
authormysterywolf <[email protected]>2020-09-08 10:26:03 +0800
committermysterywolf <[email protected]>2020-09-08 10:26:03 +0800
commit237a71de278b16aa3df3e98f49714ef17cdf0c2b (patch)
tree4782e6407698ac91651678a868f9c87b558f77f9 /components/libc/compilers/armlibc
parent0eadf69f81b2f77eed0cf7a35acdf50c03cc48a4 (diff)
修复common文件夹,该文件夹为armlibc/newlib/dlib的共同文件的文件夹
Diffstat (limited to 'components/libc/compilers/armlibc')
-rw-r--r--components/libc/compilers/armlibc/termios.h17
-rw-r--r--components/libc/compilers/armlibc/unistd.c29
2 files changed, 0 insertions, 46 deletions
diff --git a/components/libc/compilers/armlibc/termios.h b/components/libc/compilers/armlibc/termios.h
deleted file mode 100644
index ee2b4d5718..0000000000
--- a/components/libc/compilers/armlibc/termios.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- */
-#ifndef _TERMIOS_H__
-#define _TERMIOS_H__
-
-#ifdef RT_USING_POSIX_TERMIOS
-#include <sys/types.h>
-#include <posix_termios.h>
-#endif
-
-#endif
diff --git a/components/libc/compilers/armlibc/unistd.c b/components/libc/compilers/armlibc/unistd.c
deleted file mode 100644
index e2f2827beb..0000000000
--- a/components/libc/compilers/armlibc/unistd.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2020-09-01 Meco Man First Version
- */
-
-#include <termios.h>
-#include <unistd.h>
-
-#ifdef RT_USING_POSIX
-
-#ifdef RT_USING_POSIX_TERMIOS
-int isatty(int fd)
-{
- struct termios ts;
- return(tcgetattr(fd,&ts) != -1);/*true if no error (is a tty)*/
-}
-#endif
-
-char *ttyname(int fd)
-{
- return "/dev/tty0"; /*TODO: need to add more specific*/
-}
-
-#endif