From 98bfe22095ed82af9932e0559ab1194947fada72 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 2 Aug 2005 19:28:31 +0000 Subject: [PATCH] 2005-08-02 Shaun Jackman * libgloss/arm/libcfunc.c (isatty): New function. --- libgloss/ChangeLog | 4 ++++ libgloss/arm/libcfunc.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index f06bc7c0b..b78f12ed6 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2005-08-02 Shaun Jackman + + * libgloss/arm/libcfunc.c (isatty): New function. + 2005-08-02 Shaun Jackman * libgloss/arm/syscalls.c (_exit): Call _kill with the second diff --git a/libgloss/arm/libcfunc.c b/libgloss/arm/libcfunc.c index f684c2526..26f563308 100644 --- a/libgloss/arm/libcfunc.c +++ b/libgloss/arm/libcfunc.c @@ -43,6 +43,16 @@ alarm (unsigned seconds) return 0; } +int _isatty(int fildes); +int __attribute__((weak)) +isatty(int fildes) +{ + /* GDB does not yet support the IsTTY SWI that _isatty + * calls, so always return true for now. */ + (void)fildes; + return 1; +} + int __attribute__((weak)) pause (void) { -- 2.43.5