Date: Sun, 26 Aug 2001 10:10:20 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Andrew Cottrell cc: Charles Sandmann , djgpp-workers AT delorie DOT com Subject: Re: Read 3F00 STDIN problem on Win 2K ( was Re: Fseek on STDIN problem on Win 2K) In-Reply-To: <007401c12dd7$7fa4cd50$0a02a8c0@acceleron> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 26 Aug 2001, Andrew Cottrell wrote: > 3) To turn off / on the poposed changes change the folloing line in main() > from 0 to 1 or vice versa. > USE_EXTRA_4201_CALL = 0; The variable USE_EXTRA_4201_CALL is used inside the modified _read. I'd prefer to do that inside lseek, because _read is a heavily used function. Since it appears that _read only has problems when interspersed with seeks, perhaps we should have a workaround in lseek, not in _read. Could you please modify the test sources along these lines and see if the problem is solved?