* armos.c (SWIflen): Do not treate file descriptor zero as
authorMark Mitchell <mark@codesourcery.com>
Tue, 27 Feb 2007 18:51:57 +0000 (18:51 +0000)
committerMark Mitchell <mark@codesourcery.com>
Tue, 27 Feb 2007 18:51:57 +0000 (18:51 +0000)
special.

sim/arm/ChangeLog
sim/arm/armos.c

index 10c75ad1c435b71536e42d17d66e55add7afbbf2..43523fd208dc2f5647475826723db72c8b64448c 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-27  Mark Mitchell  <mark@codesourcery.com>
+
+       * armos.c (SWIflen): Do not treate file descriptor zero as
+       special.
+
 2007-02-15  Nick Clifton  <nickc@redhat.com>
 
        * armemu.c (handle_v6_insn): Fix typo in sign extension test of
index 77390521009889ffe65dbcec4a78c35d72796528..39b9d4f06156d47ca09c8be63d3b4280e05d3f9e 100644 (file)
@@ -401,7 +401,7 @@ SWIflen (ARMul_State * state, ARMword fh)
   struct OSblock *OSptr = (struct OSblock *) state->OSptr;
   ARMword addr;
 
-  if (fh == 0 || fh > FOPEN_MAX)
+  if (fh > FOPEN_MAX)
     {
       OSptr->ErrorNo = EBADF;
       state->Reg[0] = -1L;
This page took 0.025052 seconds and 4 git commands to generate.