* armos.c (SWIflen): Do not treate file descriptor zero as

special.
This commit is contained in:
Mark Mitchell 2007-02-27 18:51:57 +00:00
parent 7313566fe3
commit e1c9b6f16a
2 changed files with 6 additions and 1 deletions

View 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

View 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;