On Sat, 29 May 2010 14:11:44 +0200 Alan BRASLAU wrote:
uname -s uname -m uname -p ---------------------------------------- Intel Q9400 (Core2 Quad): FreeBSD amd64 amd64 GNU/kFreeBSD x86_64 amd64 Linux x86_64 unknown 32bit os (same processor): FreeBSD ? (untested) ? GNU/kFreeBSD i686 i386 GNU/Linux i686 unknown ---------------------------------------- Intel pentium 4: FreeBSD ? (untested) ? GNU/kFreeBSD i686 i386 GNU/Linux i686 unknown ----------------------------------------
I have collected data from two different machines with a FreeBSD 8.0 i386 LiveCD: uname -s uname -m uname -p ---------------------------------------- Intel E6300 (Core2 Duo): FreeBSD amd64 amd64 32bit os (same processor): FreeBSD i386 i386 ---------------------------------------- Intel Pentium M: FreeBSD i386 i386
The official 64bit OS name is "amd64" for FreeBSD, GNU/kFreeBSD and Linux. However, uname -m gives differing results and depends on the version of the running OS, not the real underlying processor; A 64bit processor can run a 32bit OS.
So both (uname -m and uname -p) don't depend on the installed CPU just on the version of FreeBSD. Probably the implementation of uname(3) is different in FreeBSD libc und GNU libc. Unix is such a homogeneous environment, isn't it ;-) Kind regards, Michael Krauss