www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/12/05:29:47

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 <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: Diego Zuccato <dz AT bo DOT dada DOT it>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: Transfer buffer (Was: Re: fread slowstart)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970910165039 DOT 10485B-100000 AT is> <3417996D DOT 6E5C AT bo DOT dada DOT it>

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 |
+----------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019