From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15530 invoked by alias); 16 Jan 2009 00:59:18 -0000 Received: (qmail 15515 invoked by uid 22791); 16 Jan 2009 00:59:17 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 00:58:45 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 727523B4003E; Fri, 16 Jan 2009 00:58:43 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lj5BuoieYfPU; Fri, 16 Jan 2009 00:58:22 +0000 (GMT) Message-ID: <496FDBAB.5010400@eCosCentric.com> Date: Fri, 16 Jan 2009 00:59:00 -0000 From: Jonathan Larmour User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Xiaochen Zhou CC: eCos discussion , eCos Patches List 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> <496FD9C5.80700@h3c.com> In-Reply-To: <496FD9C5.80700@h3c.com> OpenPGP: id=A5FB74E6 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00014.txt.bz2 Xiaochen Zhou wrote: > + // 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. Doh. I even had it the other way round before, and then "corrected" it. Silly thinko. Fixed in obvious way, thanks. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["Si fractum non sit, noli id reficere"]------ Opinions==mine