]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add __NR_fdatasync. Also fix some formatting.
authorJulian Seward <jseward@acm.org>
Tue, 18 Jun 2002 09:11:33 +0000 (09:11 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 18 Jun 2002 09:11:33 +0000 (09:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@439

vg_syscall_mem.c

index e228f8ad7a560e7196548b3035ca3e4d46683210..2f70c454d1d610e0b8fa980ea35596e272ec9a8e 100644 (file)
@@ -417,14 +417,23 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid )
 
       /* !!!!!!!!!! New, untested syscalls !!!!!!!!!!!!!!!!!!!!! */
 
+#     if defined(__NR_fdatasync)
+      case __NR_fdatasync: /* syscall 148 */
+         /* int fdatasync(int fd); */
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("fdatasync ( %d )\n", arg1);
+         KERNEL_DO_SYSCALL(tid,res);
+         break;
+#     endif
+
 #     if defined(__NR_msync) /* syscall 144 */
       case __NR_msync:
          /* int msync(const void *start, size_t length, int flags); */
-            if (VG_(clo_trace_syscalls))
-               VG_(printf)("msync ( %p, %d, %d )\n", arg1,arg2,arg3);
-      must_be_readable( tst, "msync(start)", arg1, arg2 );
-      KERNEL_DO_SYSCALL(tid,res);  
-      break;
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("msync ( %p, %d, %d )\n", arg1,arg2,arg3);
+         must_be_readable( tst, "msync(start)", arg1, arg2 );
+         KERNEL_DO_SYSCALL(tid,res);  
+         break;
 #     endif
 
 #     if defined(__NR_getpmsg) /* syscall 188 */