From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg2y6-00037O-Vt for qemu-devel@nongnu.org; Wed, 17 Sep 2008 15:45:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg2y4-00035R-Qf for qemu-devel@nongnu.org; Wed, 17 Sep 2008 15:45:42 -0400 Received: from [199.232.76.173] (port=58437 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg2y4-00035J-N1 for qemu-devel@nongnu.org; Wed, 17 Sep 2008 15:45:40 -0400 Received: from [84.20.150.76] (port=43414 helo=narury.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg2y4-0008U1-HR for qemu-devel@nongnu.org; Wed, 17 Sep 2008 15:45:40 -0400 Received: from kos.to (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by narury.org (Postfix) with ESMTP id CC8663274001 for ; Wed, 17 Sep 2008 22:45:28 +0300 (EEST) Date: Wed, 17 Sep 2008 22:45:28 +0300 From: Riku Voipio Message-ID: <20080917194528.GA21187@kos.to> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] qdd fadvise64_64 syscall Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --9zSXsLTf0vkW971A Content-Type: multipart/mixed; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Since it's only a hint, we can just add a happy passwtrough. Also =66rom scratchbox. Signed-off-by: Riku Voipio --=20 "rm -rf" only sounds scary if you don't have backups --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="39_syscall_fadvise64.patch" 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 --oyUTqETQ0mS9luUI-- --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI0V5YibPvMsrqrwMRAlX1AKCWu1EFsglxQI6ruabkFSjA1ODPBgCfXVI6 w23ZVF32CAOtkVmLDi+oDz4= =OixP -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--