That's just the thing that I was looking for
Now I've the issue that I when I call getrusage(), the structure is filled with 0, except for two fields, that already have wrong values
I'm using RHEL 5.3 distro, and ldd for my program (procstat) tells me:
libc.so.6 => /lib64/libc.so.6 (0x0000003ab0000000)
and my libc.so.6 already points to libc-2.5.so
Also tested the function mallinfo from malloc.h, and the problem was the same. It compile, but in the runtime it fills the structure with zero values.