]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add __NR_madvise.
authorJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 02:24:44 +0000 (02:24 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 02:24:44 +0000 (02:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@124

vg_syscall_mem.c

index aebd4e0e632f9f7ecbafd4b4b4db4ff542b123ca..52157ca099677ee16d673d7882d1ea3a5ecd0124 100644 (file)
@@ -354,6 +354,15 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid )
 
       /* !!!!!!!!!! New, untested syscalls !!!!!!!!!!!!!!!!!!!!! */
 
+#     if defined(__NR_madvise)
+      case __NR_madvise: /* syscall 219 */
+         /* int madvise(void *start, size_t length, int advice ); */
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("madvise ( %p, %d, %d )\n", arg1,arg2,arg3);
+         KERNEL_DO_SYSCALL(tid,res);
+         break;
+#     endif
+
 #     if defined(__NR_mremap)
       /* Is this really right?  Perhaps it should copy the permissions
          from the old area into the new.  Unclear from the Linux man