[Gllug] mallinfo

- Tethys tethys at gmail.com
Tue Oct 30 12:13:36 UTC 2007


On 10/30/07, t.clarke <tim at seacon.co.uk> wrote:

> Any suggestions (or do I have a buggy glib ?)

You're making assumptions about how malloc(3) is implemented. So while
traditional Unix may use sbrk(2) to get its memory, Linux uses mmap(2)
instead. Look at the hblkhd field of the mallinfo structure.

Oh, and K&R style arguments to main()? ANSI/ISO style arguments have
been around for nearly 20 years now...

Tet

-- 
Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list