mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
修复common文件夹,该文件夹为armlibc/newlib/dlib的共同文件的文件夹
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user