kern/77355: [i386] [patch] Detect i*86 subarches for uname
Alexander Best
alexbestms at wwu.de
Tue Feb 9 17:00:12 UTC 2010
The following reply was made to PR kern/77355; it has been noted by GNATS.
From: Alexander Best <alexbestms at wwu.de>
To: <bug-followup at FreeBSD.org>
Cc: Robert Millan <rmh at debian.org>,
Bruce Evans <bde at zeta.org.au>
Subject: Re: kern/77355: [i386] [patch] Detect i*86 subarches for uname
Date: Tue, 09 Feb 2010 17:57:38 +0100 (CET)
how about returning "hw.model" for uname -p? i believe this is what linux is
doing. also since the -p option isn't defined in POSIX.1-2008, (cross
platform) scripts etc. shouldn't depend on it.
also i don't see a reason why uname -m shouldn't return i686. this is the
architecture of all modern ia32 cpus. and as mentioned before this would
trigger i686 specific optimisation in certain scripts. although most scripts
use /etc/make.conf or gcc itself for detecting cpu specific features.
cheers.
alex
ps: the pr which requested the -p option back in 1998 is bin/5826.
More information about the freebsd-bugs
mailing list