Fixed the return value in ferror.

svn path=/trunk/; revision=3802
This commit is contained in:
Hartmut Birr 2002-11-27 20:56:28 +00:00
parent d4386d7b53
commit 99b937362d

View file

@ -7,22 +7,9 @@
int ferror(FILE *stream);
#endif
//int *_errno(void)
//{
// return(&GetThreadData()->terrno);
//}
//int __set_errno(int error)
//{
// PTHREADDATA ThreadData;
// ThreadData = GetThreadData();
// if (ThreadData)
// ThreadData->terrno = error;
// return(error);
//}
int *_errno(void);
int ferror(FILE *stream)
{
// return stream->_flag & _IOERR;
return *_errno();
return stream->_flag & _IOERR;
}