4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-24 01:29:34 +08:00
* newlib/libc/sys/arm/syscalls.c (findslot): Call
	initialise_monitor_handles.
	(remap_handle): Do not call initialise_monitor_handles.
This commit is contained in:
Mark Mitchell 2006-05-31 13:52:58 +00:00
parent 8d884980d2
commit 63c06e08c3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2006-05-31 Mark Mitchell <mark@codesourcery.com>
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 <nathan@codesourcery.com> 2006-05-25 Nathan Sidwell <nathan@codesourcery.com>
* libgloss/m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New * libgloss/m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New

View File

@ -73,6 +73,8 @@ static int
findslot (int fh) findslot (int fh)
{ {
int i; int i;
initialise_monitor_handles ();
for (i = 0; i < MAX_OPEN_FILES; i ++) for (i = 0; i < MAX_OPEN_FILES; i ++)
if (openfiles[i].handle == fh) if (openfiles[i].handle == fh)
break; break;
@ -83,8 +85,6 @@ findslot (int fh)
static int static int
remap_handle (int fh) remap_handle (int fh)
{ {
initialise_monitor_handles ();
if (fh == STDIN_FILENO) if (fh == STDIN_FILENO)
return monitor_stdin; return monitor_stdin;
if (fh == STDOUT_FILENO) if (fh == STDOUT_FILENO)