]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Support __NR_mount and __NR_umount.
authorJulian Seward <jseward@acm.org>
Tue, 17 Sep 2002 15:24:09 +0000 (15:24 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 17 Sep 2002 15:24:09 +0000 (15:24 +0000)
MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1016

vg_syscall_mem.c

index 66a68a5442f5ce2ea444caa15625dbb0ee47caf9..b6e3f027ff7842367169a2ebb7ca2cb2858481d0 100644 (file)
@@ -417,6 +417,30 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid )
 
       /* !!!!!!!!!! New, untested syscalls !!!!!!!!!!!!!!!!!!!!! */
 
+#     if defined(__NR_mount)
+      case __NR_mount:
+         /* int mount(const char *specialfile, const char *dir,
+            const char *filesystemtype, unsigned long rwflag,
+            const void *data); */
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("mount()\n");
+         must_be_readable_asciiz(tst,"mount(specialfile)",arg1);
+         must_be_readable_asciiz(tst,"mount(dir)",arg2);
+         must_be_readable_asciiz(tst,"mount(filesystemtype)",arg3);
+         KERNEL_DO_SYSCALL(tid,res);
+         break;
+#     endif
+
+#     if defined(__NR_umount)
+      case __NR_umount:
+         /* int umount(const char *path) */
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("umount()\n");
+         must_be_readable_asciiz(tst,"umount(path)",arg1);
+         KERNEL_DO_SYSCALL(tid,res);
+         break;
+#     endif
+
 #     if defined(__NR_ptrace)
       case __NR_ptrace: /* syscall 26 */
          /* long ptrace (enum __ptrace_request request, pid_t pid,