|
From: Tom H. <th...@cy...> - 2004-09-24 22:57:28
|
CVS commit by thughes:
Fixed the statfs64 wrapper to look at the right argument for the
stat buffer and added an fstatfs64 wrapper.
CCMAIL: 901...@bu...
M +16 -4 vg_syscalls.c 1.143
--- valgrind/coregrind/vg_syscalls.c #1.142:1.143
@@ -1638,4 +1638,16 @@ POST(fstatfs)
}
+PRE(fstatfs64)
+{
+ /* int fstatfs64(int fd, size_t sz, struct statfs *buf); */
+ MAYBE_PRINTF("fstatfs64 ( %d, %p )\n",arg1,arg2);
+ SYSCALL_TRACK( pre_mem_write, tid, "stat(buf)", arg3, arg2 );
+}
+
+POST(fstatfs64)
+{
+ VG_TRACK( post_mem_write, arg3, arg2 );
+}
+
PRE(getsid)
{
@@ -5153,14 +5165,13 @@ POST(statfs)
PRE(statfs64)
{
- /* int statfs64(const char *path, struct statfs64 *buf); */
+ /* int statfs64(const char *path, size_t sz, struct statfs64 *buf); */
MAYBE_PRINTF("statfs64 ( %p, %p )\n",arg1,arg2);
SYSCALL_TRACK( pre_mem_read_asciiz, tid, "statfs64(path)", arg1 );
- SYSCALL_TRACK( pre_mem_write, tid, "statfs64(buf)",
- arg2, sizeof(struct vki_statfs64) );
+ SYSCALL_TRACK( pre_mem_write, tid, "statfs64(buf)", arg3, arg2 );
}
POST(statfs64)
{
- VG_TRACK( post_mem_write, arg2, sizeof(struct vki_statfs64) );
+ VG_TRACK( post_mem_write, arg3, arg2 );
}
@@ -6065,4 +6076,5 @@ static const struct sys_info sys_info[]
SYSB_(sync, MayBlock),
SYSBA(fstatfs, 0),
+ SYSBA(fstatfs64, 0),
SYSB_(getsid, 0),
SYSBA(pread64, MayBlock),
|