|
From: Tom H. <th...@cy...> - 2004-11-04 13:20:23
|
CVS commit by thughes:
Add support for the settimeofday system call.
MERGE TO STABLE
M +14 -0 vg_syscalls.c 1.131.2.1
--- valgrind/coregrind/vg_syscalls.c #1.131:1.131.2.1
@@ -4675,4 +4675,17 @@ PRE(setrlimit)
}
+PRE(settimeofday)
+{
+ /* int settimeofday(const struct timeval *tv, const struct timezone *tz); */
+ MAYBE_PRINTF("settimeofday ( %p, %p )\n",arg1,arg2);
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tv)", arg1,
+ sizeof(struct timeval) );
+ if (arg2 != 0) {
+ SYSCALL_TRACK( pre_mem_read, tid, "settimeofday(tz)", arg2,
+ sizeof(struct timezone) );
+ /* maybe should warn if tz->tz_dsttime is non-zero? */
+ }
+}
+
PRE(setuid)
{
@@ -6072,4 +6085,5 @@ static const struct sys_info sys_info[]
SYSB_(setreuid, 0),
SYSB_(setrlimit, 0),
+ SYSB_(settimeofday, 0),
SYSB_(setuid32, 0),
SYSB_(setuid, 0),
|