From: Julian Seward Date: Tue, 18 Jun 2002 09:11:33 +0000 (+0000) Subject: Add __NR_fdatasync. Also fix some formatting. X-Git-Tag: svn/VALGRIND_1_0_3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844e3ba453e62fb9bea41198f0b2ea4b5b866ab5;p=thirdparty%2Fvalgrind.git Add __NR_fdatasync. Also fix some formatting. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@439 --- diff --git a/vg_syscall_mem.c b/vg_syscall_mem.c index e228f8ad7a..2f70c454d1 100644 --- a/vg_syscall_mem.c +++ b/vg_syscall_mem.c @@ -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 */