summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-0.9.0+cvs20070613/39_syscall_fadvise64.patch
blob: 0a7f4c48ddc0a3968ce86ff8fee7cd6a226f8de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
 linux-user/syscall.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: linux-user/syscall.c
===================================================================
--- linux-user/syscall.c.orig	2007-06-13 11:51:55.000000000 +0100
+++ linux-user/syscall.c	2007-06-13 11:52:13.000000000 +0100
@@ -4434,6 +4434,12 @@ long do_syscall(void *cpu_env, int num, 
         ret = get_errno(mincore((void*)arg1, (size_t)arg2, (unsigned char*)arg3));
         break;
 #endif
+#ifdef TARGET_NR_fadvise64_64
+     case TARGET_NR_fadvise64_64:
+        /* Just return success */
+        ret = get_errno(0);
+        break;
+#endif
 #ifdef TARGET_NR_madvise
     case TARGET_NR_madvise:
         /* A straight passthrough may not be safe because qemu sometimes