From owner-freebsd-hackers Thu Nov 7 16:40:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0553037B401 for ; Thu, 7 Nov 2002 16:40:40 -0800 (PST) Received: from Stalker.alfacom.net (Stalker.Alfacom.net [193.108.124.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09F4343E42 for ; Thu, 7 Nov 2002 16:40:37 -0800 (PST) (envelope-from vkushnir@alfacom.net) Received: from kushnir1.kiev.ua (124-156.dialup.Alfacom.net [193.108.124.156]) by Stalker.alfacom.net (8.12.5/8.12.5) with ESMTP id gA80e22c023238; Fri, 8 Nov 2002 02:40:16 +0200 (EET) Received: from kushnir1.kiev.ua (localhost [127.0.0.1]) by kushnir1.kiev.ua (8.12.6/8.12.2) with ESMTP id gA80deVN012018; Fri, 8 Nov 2002 02:39:40 +0200 (EET) (envelope-from vkushnir@alfacom.net) Received: from localhost (volodya@localhost) by kushnir1.kiev.ua (8.12.6/8.12.6/Submit) with ESMTP id gA80d0SQ012014; Fri, 8 Nov 2002 02:39:28 +0200 (EET) X-Authentication-Warning: kushnir1.kiev.ua: volodya owned process doing -bs Date: Fri, 8 Nov 2002 02:38:46 +0200 (EET) From: Vladimir Kushnir X-X-Sender: volodya@kushnir1.kiev.ua To: Sam Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: cpu class & features In-Reply-To: <200211071916.37988.sam@pcuf.fi> Message-ID: <20021108023635.W8622-100000@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 7 Nov 2002, Sam wrote: > On Thursday 07 November 2002 06:37 pm, Terry Lambert wrote: > > Sam wrote: > > > I'm writing an application that needs info on the machine cpu > > > architecture, the cpu class, and the cpu features. > > > > Is this a status display (e.g. "About This Computer...") for a human > > to read? If not, the entire point of an OS is to hide that information > > from you, so that you can write code that runs on the OS, instead of > > writing code that runs only on particular hardware. > > No. If you really need to know, it is for implementing a Windows API call > on FreeBSD for Wine. > > I'm not interested in getting into a flame war on what a point of an OS > is, what should be allowed and what should not. But there are _many_ > other legitimate reasons to need that info other than "about this > computer" display. > > > -- Terry > > Sam > Take a look at MPlayer sources (ports/graphic/mplayer). They got what you need in TOOLS/cpuinfo.c Regards, Vladimir -- Vladimir Kushnir - vkushnir@Alfacom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message