Sender: vheyndri AT rug DOT ac DOT be Message-Id: <34190B6F.60C2@rug.ac.be> Date: Fri, 12 Sep 1997 11:29:19 +0200 From: Vik Heyndrickx Mime-Version: 1.0 To: Diego Zuccato Cc: djgpp-workers AT delorie DOT com Subject: Re: Transfer buffer (Was: Re: fread slowstart) References: <3417996D DOT 6E5C AT bo DOT dada DOT it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Diego Zuccato wrote: > > > > I don't remember libc functions that assume that tb isn't altered. .. > during a call, let's document that it can change during some calls. There are so many calls during which it can be changed (there are many calls that might change the tb when you absolutely do not expect it) that documenting explicitely every function would almost be impossible and it would make it very difficult to maintain the library in the light of backward compatibility. What I want to say is: don't use the transfer buffer at all for any purposes in an application program except for put something into it and call some DOS/BIOS/whatever function and immediately retrieve the results. Assuming that anything lasts any longer in the TB is very dangerous. -- +----------------+ | Vik Heyndrickx | +----------------+