kern/77355: Detect i*86 subarches for uname
Robert Millan
rmh at aybabtu.com
Sat Feb 18 05:10:06 PST 2006
The following reply was made to PR kern/77355; it has been noted by GNATS.
From: Robert Millan <rmh at aybabtu.com>
To: bug-followup at FreeBSD.org
Cc: Bruce Evans <bde at zeta.org.au>
Subject: Re: kern/77355: Detect i*86 subarches for uname
Date: Sat, 18 Feb 2006 14:02:31 +0100
Hi!
Can we revisit this? It's feasible for us to have this in HW_MACHINE_ARCH
instead (-p).
Would you like me to send a patch for that?
Bruce Evans <bde at zeta.org.au> wrote:
> -p is supposed to give the arch (e.g., -i386) and -m is supposed to
> give the platfrom (is that the sub-arch?) (e.g., i686). It is useless
> for these to return the same string. (i686 is also useless, since it
> is the same for all i386's newer than about 8 years old, but that is
> another bug. The hw.model sysctl gives more useful info (e.g.,
> "AMD Athlon(tm)"), but uname(1) only uses uname(2) which doesn't go
> near this sysctl.)
>
> However, I don't like changing the -a output (-a gets -m but not -p).
--
Robert Millan
More information about the freebsd-bugs
mailing list