File: 39_syscall_fadvise64.patch

package info (click to toggle)
qemu 0.8.2-4etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,404 kB
  • ctags: 27,580
  • sloc: ansic: 178,992; sh: 914; objc: 613; perl: 306; makefile: 287; asm: 152
file content (26 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: linux-user/arm/syscall_nr.h
===================================================================
--- linux-user/arm/syscall_nr.h.orig	2006-11-05 07:07:51.000000000 +0200
+++ linux-user/arm/syscall_nr.h	2006-11-05 07:07:56.000000000 +0200
@@ -263,3 +263,4 @@
 #define TARGET_NR_statfs64			(266)
 #define TARGET_NR_fstatfs64			(267)
 #define TARGET_NR_utimes		        (269)
+#define TARGET_NR_fadvise64_64			(270)
Index: linux-user/syscall.c
===================================================================
--- linux-user/syscall.c.orig	2006-11-05 07:07:48.000000000 +0200
+++ linux-user/syscall.c	2006-11-05 07:07:56.000000000 +0200
@@ -3899,6 +3899,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