]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Make the address space manager use fstat64 when it is available. There
authorTom Hughes <tom@compton.nu>
Sun, 13 Nov 2005 16:52:56 +0000 (16:52 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 13 Nov 2005 16:52:56 +0000 (16:52 +0000)
commit0618e53e2841a6451c9a09c32a30a306fc61fd66
tree2ce8de3c7b9dfb5b8f53d5cae0deb04563eef6a0
parent579c660a9023aad99e676b2d7872d8714e21e52f
Make the address space manager use fstat64 when it is available. There
are two reasons for this:

    - It can cope with manjor and minor device numbers outside the
      traditional 0-255 range.

    - It returns correct results for x86 binaries on amd64 systems
      where fstat returns uninitialised rubbish in the top 16 bits
      of the device number.

We also make the /proc/self/maps reading code encode device numbers in
the new style to cope with manjor and minor device numbers outside the
traditional 0-255 range.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5116
coregrind/m_aspacemgr/aspacemgr.c