delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/04/14/12:49:09

Date: Sun, 14 Apr 1996 12:48:33 -0400
From: dj (DJ Delorie)
Message-Id: <199604141648.MAA23680@delorie.com>
To: terra AT diku DOT dk
CC: djgpp-workers AT delorie DOT com
In-reply-to: <199604141645.SAA27419@tyr.diku.dk> (message from Morten Welinder on Sun, 14 Apr 1996 18:45:54 +0200)
Subject: Re: new write.c

> What are the chances of the transfer buffer _not_ being aligned
> on a paragraph?  Aren't we just wasting time doing "& 15" all
> other the library?

I'd rather not assume that, even if it is true.  Some rogue program
(gdb?)  may move the transfer buffer out of the way, and not align it.

> Another thing: is it valid for _any_ library function to call
> malloc?  If it is, then how about "...any library function
> that would have been a syscall under Unix"?

write() was a special case for emacs, which write()s the file out but
has a special malloc that may move your buffer out from under you
whenever you call it.

- Raw text -


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