arm/libcfunc.c (isatty): Call _isatty [PATCH]
Jeff Johnston
jjohnstn@redhat.com
Thu Nov 17 19:08:00 GMT 2005
Patch checked in.
-- Jeff J.
Shaun Jackman wrote:
> 2005-11-17 Shaun Jackman <sjackman@gmail.com>
>
> * libgloss/arm/libcfunc.c (isatty): Call _isatty. GDB now supports
> the IsTTY SWI that _isatty calls.
>
> Index: libgloss/arm/libcfunc.c
> ===================================================================
> RCS file: /cvs/src/src/libgloss/arm/libcfunc.c,v
> retrieving revision 1.4
> diff -u -r1.4 libcfunc.c
> --- libgloss/arm/libcfunc.c 2 Aug 2005 19:32:06 -0000 1.4
> +++ libgloss/arm/libcfunc.c 17 Nov 2005 16:54:27 -0000
> @@ -47,10 +47,7 @@
> 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;
> + return _isatty(fildes);
> }
>
> int __attribute__((weak))
More information about the Newlib
mailing list