Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/arc/isatty.c')
-rw-r--r--newlib/libc/sys/arc/isatty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/sys/arc/isatty.c b/newlib/libc/sys/arc/isatty.c
index fe64209b9..3c64647a9 100644
--- a/newlib/libc/sys/arc/isatty.c
+++ b/newlib/libc/sys/arc/isatty.c
@@ -3,14 +3,13 @@
/* Dumb implementation so programs will at least run. */
#include <sys/stat.h>
-#include <reent.h>
int
-_isatty_r (struct _reent *ptr, int fd)
+isatty (int fd)
{
struct stat buf;
- if (_fstat_r (ptr, fd, &buf) < 0)
+ if (fstat (fd, &buf) < 0)
return 0;
if (S_ISCHR (buf.st_mode))
return 1;