Re: A question about #define WIN32 in dmalloc.c

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 1 Sep 2002 14:55:30 +0200

On Sunday 01 September 2002 13.11, Joe Cooper wrote:
> > 2. What means "sbrk" in the comment? What means "wsbrk"?
>
> I have no idea.

"sbrk" is a UNIX system call used by malloc() and friends to reserve
memory for the process. See "man sbrk". It sets the size of the
process data segment where most of the dynamically allocated memory
is hosted. This system call is almost never called directly by
applications but exclusively by malloc libraries (such as dlmalloc).

"wsbrk" is an dlmalloc internal emulation of "sbrk" for the WIN32
platform to unify most of the the dlmalloc code on both the UNIX and
WIN32 platforms.

Regards
Henrik
Received on Sun Sep 01 2002 - 07:15:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:24 MST