X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:date:subject:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=k8rOmcN6CxtMa5XO6b+EDj3D63HNz
	ioF9h9nlq2ka7WOgzUJQqTYkDRz6JR1jJfDhOeR/AlKBfPJu3T5P3bZYLvUm3t0o
	bTO8WHnnmycGcAMAc76HuEhFm5i+ozps92EaABp7Ji822obh6+6CNRRg+p6XkaV2
	1kKCmXJkxToUe4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:date:subject:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=nM3/mMTK5uTZHS3a/DOW4YFg0UQ=; b=Y20
	QjGslo+62OxSfCZvpXU9h0m+ReUuTd85t9xI7pCdtJYXTtVCZg+aDIa5plZlIjiV
	BJQYHu0CfABASgP7u4dfROeYdDXL/mW0J22eLu7npgyUiSaOn8x39SpErknKQ2P1
	2XcbZtXNfHhfUTSI/B7ISFoI/c7p8X+yfi1hGfeo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail1.kpnnet.org
From: <peter.wagemans@kpn.com>
To: <cygwin@cygwin.com>
Date: Fri, 18 Apr 2014 14:05:24 +0200
Subject: RE: Wow, just hit RCS bug (attn: Dr Volker Zell)
Message-ID: <00CBC5201250E84D820DE79A91A2E72516696E8B82@EXCNLDCM02.europe.unity>
References: <694832.7961.bm@smtp113.sbc.mail.ne1.yahoo.com> <534F288E.7020808@etr-usa.com> <00CBC5201250E84D820DE79A91A2E72516696E8B30@EXCNLDCM02.europe.unity>
In-Reply-To: <00CBC5201250E84D820DE79A91A2E72516696E8B30@EXCNLDCM02.europe.unity>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s3IC7mLE012362


Had a quick look at some old notes. If someone is looking for a
possible code fix in RCS 5.8: try adding an fflush of the "stream" of
the "fro" struct to the macro "fro_bob" in b-fro.h. Something like
this perhaps:

    #define fro_bob(f)  do { if (STDIO_P(f)) fflush((f)->stream); fro_move (f, 0) } while (0)

Idea: whenever the file is reset to the beginning, the stream is
"cleaned". See also

    https://www.gnu.org/software/libc/manual/html_node/Linked-Channels.html
    https://www.gnu.org/software/libc/manual/html_node/Cleaning-Streams.html

The code in ci.c uses the fro_bob macro to reset the file to the
start.

Untested, don't have time for testing myself now.

Regards,

Peter Wagemans


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


