From: Dirk Mueller Date: Fri, 5 Sep 2003 17:46:54 +0000 (+0000) Subject: patch for adjtimex syscall by Bob Van Manen X-Git-Tag: svn/VALGRIND_2_1_0~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be5cd9c8c12f626ee85f97abf79bef4bd6c81565;p=thirdparty%2Fvalgrind.git patch for adjtimex syscall by Bob Van Manen appares to compile for me git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1813 --- diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index 681fe11edb..d6c4d20458 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c @@ -954,6 +954,18 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid ) KERNEL_DO_SYSCALL(tid,res); break; +# if defined(__NR_adjtimex) + case __NR_adjtimex: /* syscall 124 */ + /* int adjtimex(struct timex *buf) */ + MAYBE_PRINTF("adjtimex ( %p )\n",arg1); + SYSCALL_TRACK( pre_mem_write, tst, "adjtimex(buf)", + arg1, sizeof(struct timex) ); + KERNEL_DO_SYSCALL(tid,res); + if (!VG_(is_kerror)(res)) + VG_TRACK( post_mem_write, arg1, sizeof(struct timex) ); + break; +# endif + /* !!!!!!!!!! New, untested syscalls, 14 Mar 02 !!!!!!!!!! */ # if defined(__NR_setresgid32) diff --git a/coregrind/vg_unsafe.h b/coregrind/vg_unsafe.h index dd2b6e0e8b..a0e59374dd 100644 --- a/coregrind/vg_unsafe.h +++ b/coregrind/vg_unsafe.h @@ -57,6 +57,7 @@ #include /* for cd-rom ioctls */ #include /* for struct user_regs_struct et al */ #include /* for siginfo_t */ +#include /* for struct timex */ #define __USE_LARGEFILE64 #include /* for struct stat */