This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: [ECOS] sscanf() exception issue of C lib
- From: Xiaochen Zhou <zhouxiaochen at h3c dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: eCos discussion <ecos-discuss at ecos dot sourceware dot org>, eCos Patches List <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 16 Jan 2009 08:50:13 +0800
- Subject: Re: [ECOS] sscanf() exception issue of C lib
- References: <496C3E08.7050400@h3c.com> <496E2221.8040505@eCosCentric.com> <496E8D30.5020501@h3c.com> <496EA5F6.1080407@h3c.com> <496EAE96.5000200@eCosCentric.com> <496EB66F.4010003@eCosCentric.com>
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