From the GNU uname man page:
-m, --machine
print the machine hardware name -p, --processor
print the processor type -i, --hardware-platform
print the hardware platformGNU uname
(from Gentoo GNU/Linux with coreutils 5.2.1 and SPARC64 kernel 2.4.26 on an Ultra 60)
mtraining1 ~ # uname --machine sparc64 mtraining1 ~ # uname --processor sun4u mtraining1 ~ # uname --hardware-platform TI UltraSparc II (BlackBird)
GNU uname (from Solaris 8 with coreutils 5.2 on an Ultra60)
[EMAIL PROTECTED] $ uname --machine sun4u [EMAIL PROTECTED] $ uname --processor sparc [EMAIL PROTECTED] $ uname --hardware-platform SUNW,Ultra-60
Solaris uname (from same machine) whardin|cds1 <32> uname -m sun4u whardin|cds1 <33> uname -p sparc whardin|cds1 <34> uname -i SUNW,Ultra-60
It seems to me that at a minimum, you'd want as many responses to match across OSes on the same hardware. On Solaris, both versions of uname return sun4u for uname -m, but on Linux, sun4u is returned by uname -p.
GNU uname on Linux/SPARC64 returns all the right information, but at what seems to be the wrong spots. If I was to do uname -p, I'd expect "TI UltraSparc II (BlackBird)", not "sun4u". If I was to do uname -m, thats where I'd expect to see "sun4u". And "sparc64", while a good answer for machine type, is trumped by "sun4u". And uname -i should return "sparc64", certainly not "TI UltraSparc II (BlackBird)", which makes very little sense as a hardware platform.
But maybe I'm just crazy... -- /* wes hardin */ | Help Desk: x6474 [EMAIL PROTECTED] | Phone: 972-371-6909 [EMAIL PROTECTED] | Pager: 214-359-1054 UNIX System Admin I | Office: M.112
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils
