On Sun, Sep 6, 2009 at 1:55 AM, Nitin Saxena<nitinsaxena1...@gmail.com> wrote:
> Hi Friends,
>
> Can anybody please tell me how does __morecore() functions works in malloc()
> implementation of glibc ?

This isn't really kernel related - but as you can see[1], it just
calls sbrk to adjust the size of the heap, and returns the old end of
the heap (thus, the space between the old end and the new end is newly
allocated).

[1] - http://xrl.us/bfi4bz (google codesearch display of glibc-2.5)

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to