From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTkRf-0003qY-0I for qemu-devel@nongnu.org; Tue, 20 Mar 2007 15:56:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTkRc-0003mR-Ub for qemu-devel@nongnu.org; Tue, 20 Mar 2007 15:56:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTkRc-0003mE-RA for qemu-devel@nongnu.org; Tue, 20 Mar 2007 14:56:32 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HTkQ0-00079r-Vt for qemu-devel@nongnu.org; Tue, 20 Mar 2007 15:54:53 -0400 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id E3862D6588D for ; Tue, 20 Mar 2007 21:57:26 +0200 (EET) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id OT4nmnuAiRjM for ; Tue, 20 Mar 2007 21:57:23 +0200 (EET) Received: from localhost.localdomain (mm-185-159-57-86.adsl.mgts.by [86.57.159.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 6E409D6588A for ; Tue, 20 Mar 2007 21:57:22 +0200 (EET) Date: Tue, 20 Mar 2007 21:34:42 +0200 From: "Kirill A. Shutemov" Subject: Re: [Qemu-devel] [PATCH] fcntl64 fix Message-ID: <20070320193442.GA11933@localhost.localdomain> References: <20070309215335.GB5629@localhost.localdomain> <20070319171303.GE28895@networkno.de> <20070320114315.GA26019@localhost.localdomain> <20070320135910.GA18571@localhost.localdomain> <20070320171103.GA20530@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: 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 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Tue, 20.03.2007 14:03], Stuart Anderson wrote: > On Tue, 20 Mar 2007, Kirill A. Shutemov wrote: >=20 > >>What are you using as a test app? > > > >I got error when runing Debian's apt-get and tried to fix it. >=20 > OK, that's what got me started on this one, but I switched to using the > ltp-kernel-test package for a more comprehensive set of tests once I got > past that first eabi structure change. >=20 > >>I think that remapping the constants > >>is needed, but I'm just curious how we seem to be coming up with differ= ent > >>parts of the fix when we have the same target/host combination. > > > >I'm not sure that I understand you... >=20 > On the arm/x86_64 combination, I think the host & target cmd values are > the same, so the remapping is a noop. No. Remap is needed: $ uname -m; echo -e '#include \nF_GETLK64' | cpp | tail -1 x86_64 5 $ uname -m; echo -e '#include \nF_GETLK64' | cpp | tail -1 armv5l 12 Same for F_SETLK64 and F_SETLKW64. > It may be needed for other > combinations though. Some architectures have very different values for > constants like this in their ABI. >=20 > I was trying to understand how your fix made apt-get/dpkg happy, or if > you were just using a different app that was hitting a different case > for fcntl(). >=20 >=20 > Stuart >=20 > Stuart R. Anderson anderson@netsweng.com > Network & Software Engineering http://www.netsweng.com/ > 1024D/37A79149: 0791 D3B8 9A4C 2CDC A31F > BD03 0A62 E534 37A7 9149 >=20 >=20 > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel >=20 --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGADdpbWYnhzC5v6oRAq4OAJsHDL3D4mqR/honha+sIh904NE/SQCcChCc uOgl1ghquFYDl/9k301leZ4= =yZOJ -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--