]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
patch for adjtimex syscall by Bob Van Manen <BVanManen@Scene7.com>
authorDirk Mueller <daywalker@users.sourceforge.net>
Fri, 5 Sep 2003 17:46:54 +0000 (17:46 +0000)
committerDirk Mueller <daywalker@users.sourceforge.net>
Fri, 5 Sep 2003 17:46:54 +0000 (17:46 +0000)
appares to compile for me

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1813

coregrind/vg_syscalls.c
coregrind/vg_unsafe.h

index 681fe11edb703a50ff5d41e320f4d5b69ce855d1..d6c4d2045835b1f4a3e1740ecb2d8a12b6ca2981 100644 (file)
@@ -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)
index dd2b6e0e8b24d737e095a2c6779e9c7d2aec5f90..a0e59374dd212e5f2ce75b07f512eb8f9814fb56 100644 (file)
@@ -57,6 +57,7 @@
 #include <linux/cdrom.h>  /* for cd-rom ioctls */
 #include <sys/user.h>     /* for struct user_regs_struct et al */
 #include <signal.h>       /* for siginfo_t */
+#include <sys/timex.h>    /* for struct timex */
 
 #define __USE_LARGEFILE64
 #include <sys/stat.h>     /* for struct stat */