Subject: Re: CVS commit: src/sys/compat/linux/common
To: David Laight <david@l8s.co.uk>
From: Nicolas Joly <njoly@pasteur.fr>
List: source-changes
Date: 05/09/2007 22:16:42
On Wed, May 09, 2007 at 07:43:41PM +0100, David Laight wrote:
> On Thu, May 10, 2007 at 12:51:37AM +1000, matthew green wrote:
> > 
> > many linux systems return "i686" not "i386" and this is needed in
> > some environments.
> 
> Also what should 'linux32' emulation return on an amd64 system ?
> Prior to these changes both 'linux' and 'linux32' emulations
> returned "x86_64" an amd64.

This is what both 32 and 64bit uname(1) return my amd64 Linux
machines:

njoly@raclette-adm2 [~]> file ./uname64 
./uname64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
njoly@raclette-adm2 [~]> ./uname64 -a
Linux raclette-adm2.calcul.pasteur.fr 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 09:40:21 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

njoly@raclette-adm2 [~]> file ./uname32 
./uname32: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
njoly@raclette-adm2 [~]> ./uname32 -a
Linux raclette-adm2.calcul.pasteur.fr 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 09:40:21 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.