Date: Tue, 9 Feb 2010 17:00:12 GMT From: Alexander Best <alexbestms@wwu.de> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/77355: [i386] [patch] Detect i*86 subarches for uname Message-ID: <201002091700.o19H0COb069908@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/77355; it has been noted by GNATS. From: Alexander Best <alexbestms@wwu.de> To: <bug-followup@FreeBSD.org> Cc: Robert Millan <rmh@debian.org>, Bruce Evans <bde@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002091700.o19H0COb069908>