D 2009-11-26T14:52:37 J icomment To\sclarify\sthe\sproposed\sfix:\sthe\sidea\sis\sto\n\n(1)\shave\sa\ssingle\sread+write\scursor,\sand\n(2)\shandle\sproperly\sthe\scase\sof\san\soverlap\sbetween\sthe\sinput\sand\soutput\sbuffers.\n\nThe\s(2)\shas\stwo\svariants:\n\n(2a)\sflush\sthe\soutput\sbuffer\sbefore\sa\sread\n(2b)\spatch\sthe\sinput\sbuffer\swith\sthe\soverlapping\spart\sof\sthe\soutput\sbuffer\n\nObviously\s(2a)\shas\sthe\sadvantage\sof\ssimplicity,\sbut\sgenerates\smore\sflushes,\ssome\sof\sthem\sduring\s[read]s.\nWhile\s(2b)\spreserves\sthe\s"filesystem\scache"\smodel\sof\sa\ssingle\sI/O\sRAM\sbuffer,\swithout\schanging\sthe\sinternal\stwo-buffer\sstructure.\n J login ferrieux J mimetype text/plain J username ferrieux K 2901998fffffffffffffffffffffffffffffffff U ferrieux Z 12e92c47a50457c61c9c22f9965ef4f0