|
From: <sv...@va...> - 2006-10-03 20:33:13
|
Author: sewardj
Date: 2006-10-03 21:33:07 +0100 (Tue, 03 Oct 2006)
New Revision: 6158
Log:
Track SysRes changes.
Modified:
branches/AIX5/coregrind/m_commandline.c
Modified: branches/AIX5/coregrind/m_commandline.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/coregrind/m_commandline.c 2006-10-03 20:30:59 UTC (rev =
6157)
+++ branches/AIX5/coregrind/m_commandline.c 2006-10-03 20:33:07 UTC (rev =
6158)
@@ -29,6 +29,7 @@
*/
=20
#include "pub_core_basics.h"
+#include "pub_core_vki.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcfile.h"
@@ -80,16 +81,16 @@
( NULL =3D=3D dir ? "" : dir ) );
fd =3D VG_(open)(filename, 0, VKI_S_IRUSR);
if ( !fd.isError ) {
- size =3D VG_(fsize)(fd.val);
+ size =3D VG_(fsize)(fd.res);
if (size > 0) {
f_clo =3D VG_(malloc)(size+1);
vg_assert(f_clo);
- n =3D VG_(read)(fd.val, f_clo, size);
+ n =3D VG_(read)(fd.res, f_clo, size);
if (n =3D=3D -1) n =3D 0;
vg_assert(n >=3D 0 && n <=3D size+1);
f_clo[n] =3D '\0';
}
- VG_(close)(fd.val);
+ VG_(close)(fd.res);
}
return f_clo;
}
|