From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 9 17:00:12 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADAD11065693 for ; Tue, 9 Feb 2010 17:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9848FC15 for ; Tue, 9 Feb 2010 17:00:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o19H0Cw1069920 for ; Tue, 9 Feb 2010 17:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o19H0COb069908; Tue, 9 Feb 2010 17:00:12 GMT (envelope-from gnats) Date: Tue, 9 Feb 2010 17:00:12 GMT Message-Id: <201002091700.o19H0COb069908@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexander Best Cc: Subject: Re: kern/77355: [i386] [patch] Detect i*86 subarches for uname X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 17:00:12 -0000 The following reply was made to PR kern/77355; it has been noted by GNATS. From: Alexander Best To: Cc: Robert Millan , Bruce Evans 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.