delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/11/01:12:52

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: malloc() indirection
11 Jul 1998 01:12:52 -0700 :
Message-ID: <01BDAC56.B2CB6140.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Kurt A. Stephens'"
<stephensk AT acm DOT org>

Kurt A. Stephens wrote:
> I'd like to propose a change to the cygwin32.dll.
> The goal is to allow user defined functions for malloc(), realloc(), and
> free() can be used
> instead of the standard allocator.
>

If you link an application with your own malloc functions, cygwinb19.dll 
will forget about internal functions and will call your ones. You have to 
provide 4 functions - malloc, free, realloc and calloc. For example, 
cygwin-compiled Xemacs doesn't use cygwin's malloc, but provides its own 
malloc.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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