Index: trunk/linux-user/arm/syscall_nr.h =================================================================== --- trunk.orig/linux-user/arm/syscall_nr.h 2008-09-07 02:32:28.000000000 +0300 +++ trunk/linux-user/arm/syscall_nr.h 2008-09-17 22:08:04.000000000 +0300 @@ -273,6 +273,7 @@ #define TARGET_NR_fstatfs64 267 #define TARGET_NR_tgkill 268 #define TARGET_NR_utimes 269 +#define TARGET_NR_fadvise64_64 270 #define TARGET_NR_arm_fadvise64_64 270 #define TARGET_NR_pciconfig_iobase 271 #define TARGET_NR_pciconfig_read 272 Index: trunk/linux-user/syscall.c =================================================================== --- trunk.orig/linux-user/syscall.c 2008-09-17 21:43:47.000000000 +0300 +++ trunk/linux-user/syscall.c 2008-09-17 22:08:51.000000000 +0300 @@ -5532,6 +5532,12 @@ } break; #endif +#ifdef TARGET_NR_fadvise64_64 + case TARGET_NR_fadvise64_64: + /* This is a hint, so ignoring and returning success is ok. */ + ret = get_errno(0); + break; +#endif #ifdef TARGET_NR_madvise case TARGET_NR_madvise: /* A straight passthrough may not be safe because qemu sometimes