This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: sscanf() exception issue of C lib
Jonathan Larmour 写道:
> Jonathan Larmour wrote:
>
>> Let me know if there are any problems with the attached patch, which I'm
>> checking in. Thanks.
>>
>
> Ahem. Now attached.
>
> Jifl
>
+ // Don't let the files table change e.g. by closing the file.
+ if ( Cyg_libc_stdio_files::lock() ) {
+ err = EINTR;
+ break;
+ }
In most time, Cyg_libc_stdio_files::lock() return true, flush would not
work.
Xiaochen Zhou
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss