mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 17:54:19 +08:00
Removed isatty() since we are now using newlib's implementation as
a result of enabling the newlib POSIX directory.
This commit is contained in:
@@ -97,7 +97,6 @@ int __rtems_write(int fd, const void *buffer, unsigned32 count);
|
||||
int __rtems_ioctl(int fd, unsigned32 command, void *buffer);
|
||||
int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
|
||||
int __rtems_fstat(int _fd, struct stat* _sbuf);
|
||||
int __rtems_isatty(int _fd);
|
||||
|
||||
/*
|
||||
* External I/O handlers
|
||||
|
||||
@@ -97,7 +97,6 @@ int __rtems_write(int fd, const void *buffer, unsigned32 count);
|
||||
int __rtems_ioctl(int fd, unsigned32 command, void *buffer);
|
||||
int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
|
||||
int __rtems_fstat(int _fd, struct stat* _sbuf);
|
||||
int __rtems_isatty(int _fd);
|
||||
|
||||
/*
|
||||
* External I/O handlers
|
||||
|
||||
@@ -97,7 +97,6 @@ int __rtems_write(int fd, const void *buffer, unsigned32 count);
|
||||
int __rtems_ioctl(int fd, unsigned32 command, void *buffer);
|
||||
int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
|
||||
int __rtems_fstat(int _fd, struct stat* _sbuf);
|
||||
int __rtems_isatty(int _fd);
|
||||
|
||||
/*
|
||||
* External I/O handlers
|
||||
|
||||
@@ -53,16 +53,6 @@ close(int fd)
|
||||
return __rtems_close(fd);
|
||||
}
|
||||
|
||||
/*
|
||||
* isatty -- returns 1 if connected to a terminal device,
|
||||
* returns 0 if not.
|
||||
*/
|
||||
int
|
||||
isatty(int fd)
|
||||
{
|
||||
return __rtems_isatty(fd);
|
||||
}
|
||||
|
||||
/*
|
||||
* lseek -- move read/write pointer. Since a serial port
|
||||
* is non-seekable, we return an error.
|
||||
|
||||
@@ -71,15 +71,6 @@ int __rtems_fstat(int _fd, struct stat* _sbuf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __rtems_isatty(int _fd)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
if (__rtems_fstat(_fd, &st) < 0)
|
||||
return 0;
|
||||
return S_ISCHR (st.st_mode);
|
||||
}
|
||||
|
||||
#if !defined(RTEMS_UNIX)
|
||||
int stat( const char *path, struct stat *buf )
|
||||
{
|
||||
|
||||
@@ -97,7 +97,6 @@ int __rtems_write(int fd, const void *buffer, unsigned32 count);
|
||||
int __rtems_ioctl(int fd, unsigned32 command, void *buffer);
|
||||
int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
|
||||
int __rtems_fstat(int _fd, struct stat* _sbuf);
|
||||
int __rtems_isatty(int _fd);
|
||||
|
||||
/*
|
||||
* External I/O handlers
|
||||
|
||||
Reference in New Issue
Block a user