This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arm/libcfunc.c (isatty): Call _isatty [PATCH]


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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]