From 63c06e08c3da4b39117bf05f840c4fc2c65d35eb Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 31 May 2006 13:52:58 +0000 Subject: Issue #667 * newlib/libc/sys/arm/syscalls.c (findslot): Call initialise_monitor_handles. (remap_handle): Do not call initialise_monitor_handles. --- ChangeLog.csl | 7 +++++++ newlib/libc/sys/arm/syscalls.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog.csl b/ChangeLog.csl index 900f465c4..f0832e4a4 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,10 @@ +2006-05-31 Mark Mitchell + + Issue #667 + * newlib/libc/sys/arm/syscalls.c (findslot): Call + initialise_monitor_handles. + (remap_handle): Do not call initialise_monitor_handles. + 2006-05-25 Nathan Sidwell * libgloss/m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index d465d4215..3150a39b0 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -73,6 +73,8 @@ static int findslot (int fh) { int i; + + initialise_monitor_handles (); for (i = 0; i < MAX_OPEN_FILES; i ++) if (openfiles[i].handle == fh) break; @@ -83,8 +85,6 @@ findslot (int fh) static int remap_handle (int fh) { - initialise_monitor_handles (); - if (fh == STDIN_FILENO) return monitor_stdin; if (fh == STDOUT_FILENO) -- cgit v1.2.3