This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Wow, just hit RCS bug (attn: Dr Volker Zell)
- From: <peter dot wagemans at kpn dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 18 Apr 2014 14:05:24 +0200
- Subject: RE: Wow, just hit RCS bug (attn: Dr Volker Zell)
- Authentication-results: sourceware.org; auth=none
- References: <694832 dot 7961 dot bm at smtp113 dot sbc dot mail dot ne1 dot yahoo dot com> <534F288E dot 7020808 at etr-usa dot com> <00CBC5201250E84D820DE79A91A2E72516696E8B30 at EXCNLDCM02 dot europe dot unity>
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