What is XMALLOC and how it compares with malloc?
Daniel Jacobowitz
drow at false.org
Fri May 4 03:12:12 UTC 2007
On Thu, May 03, 2007 at 04:04:36PM -0600, Kevin Day wrote:
> > > rdesktop.c:/* malloc; exit if out of memory */
> > > rdesktop.c:void *xmalloc(int size)
> My next assumption is that xmalloc is some sort of gcc's internal
> implementation of malloc
Your assumption is completely wrong.
> This seems to make more sense than the my gcc assumption above, so I
> feel safest to assume that it is calling Xorg's malloc implementation
> for some reason. Which seems to explain why it is called "xmalloc" for
> Xorg Malloc..
This one too.
As David already said, it's a common name for a common purpose.
rdesktop has its own.
Can we please stop speculating without evidence, now?
--
Daniel Jacobowitz
CodeSourcery
More information about the uClibc
mailing list